configure 666 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for lcms2 2.16.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME='lcms2mt'
  562. PACKAGE_TARNAME='lcms2mt'
  563. PACKAGE_VERSION='2.16'
  564. PACKAGE_STRING='lcms2mt 2.16'
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. # Factoring default headers for most tests.
  568. ac_includes_default="\
  569. #include <stddef.h>
  570. #ifdef HAVE_STDIO_H
  571. # include <stdio.h>
  572. #endif
  573. #ifdef HAVE_STDLIB_H
  574. # include <stdlib.h>
  575. #endif
  576. #ifdef HAVE_STRING_H
  577. # include <string.h>
  578. #endif
  579. #ifdef HAVE_INTTYPES_H
  580. # include <inttypes.h>
  581. #endif
  582. #ifdef HAVE_STDINT_H
  583. # include <stdint.h>
  584. #endif
  585. #ifdef HAVE_STRINGS_H
  586. # include <strings.h>
  587. #endif
  588. #ifdef HAVE_SYS_TYPES_H
  589. # include <sys/types.h>
  590. #endif
  591. #ifdef HAVE_SYS_STAT_H
  592. # include <sys/stat.h>
  593. #endif
  594. #ifdef HAVE_UNISTD_H
  595. # include <unistd.h>
  596. #endif"
  597. ac_header_c_list=
  598. ac_subst_vars='am__EXEEXT_FALSE
  599. am__EXEEXT_TRUE
  600. LTLIBOBJS
  601. LIBOBJS
  602. COND_THREADED_FALSE
  603. COND_THREADED_TRUE
  604. COND_FASTFLOAT_FALSE
  605. COND_FASTFLOAT_TRUE
  606. TIFFICC_DEPLIBS
  607. JPEGICC_DEPLIBS
  608. LIB_PLUGINS
  609. LCMS_LIB_DEPLIBS
  610. LIB_TIFF
  611. HasTIFF_FALSE
  612. HasTIFF_TRUE
  613. LIB_ZLIB
  614. HasZLIB_FALSE
  615. HasZLIB_TRUE
  616. LIB_JPEG
  617. HasJPEG_FALSE
  618. HasJPEG_TRUE
  619. LIB_THREAD
  620. LIB_MATH
  621. PTHREAD_CFLAGS
  622. PTHREAD_LIBS
  623. PTHREAD_CXX
  624. PTHREAD_CC
  625. ax_pthread_config
  626. inline
  627. MAINT
  628. MAINTAINER_MODE_FALSE
  629. MAINTAINER_MODE_TRUE
  630. LIBTOOL_DEPS
  631. AS
  632. CXXCPP
  633. LT_SYS_LIBRARY_PATH
  634. OTOOL64
  635. OTOOL
  636. LIPO
  637. NMEDIT
  638. DSYMUTIL
  639. MANIFEST_TOOL
  640. RANLIB
  641. ac_ct_AR
  642. AR
  643. DLLTOOL
  644. OBJDUMP
  645. FILECMD
  646. LN_S
  647. NM
  648. ac_ct_DUMPBIN
  649. DUMPBIN
  650. LD
  651. FGREP
  652. EGREP
  653. GREP
  654. SED
  655. LIBTOOL
  656. am__fastdepCXX_FALSE
  657. am__fastdepCXX_TRUE
  658. CXXDEPMODE
  659. ac_ct_CXX
  660. CXXFLAGS
  661. CXX
  662. CPP
  663. am__fastdepCC_FALSE
  664. am__fastdepCC_TRUE
  665. CCDEPMODE
  666. am__nodep
  667. AMDEPBACKSLASH
  668. AMDEP_FALSE
  669. AMDEP_TRUE
  670. am__quote
  671. am__include
  672. DEPDIR
  673. OBJEXT
  674. EXEEXT
  675. ac_ct_CC
  676. CPPFLAGS
  677. LDFLAGS
  678. CFLAGS
  679. CC
  680. AM_BACKSLASH
  681. AM_DEFAULT_VERBOSITY
  682. AM_DEFAULT_V
  683. AM_V
  684. CSCOPE
  685. ETAGS
  686. CTAGS
  687. am__untar
  688. am__tar
  689. AMTAR
  690. am__leading_dot
  691. SET_MAKE
  692. AWK
  693. mkdir_p
  694. MKDIR_P
  695. INSTALL_STRIP_PROGRAM
  696. STRIP
  697. install_sh
  698. MAKEINFO
  699. AUTOHEADER
  700. AUTOMAKE
  701. AUTOCONF
  702. ACLOCAL
  703. VERSION
  704. PACKAGE
  705. CYGPATH_W
  706. am__isrc
  707. INSTALL_DATA
  708. INSTALL_SCRIPT
  709. INSTALL_PROGRAM
  710. host_os
  711. host_vendor
  712. host_cpu
  713. host
  714. build_os
  715. build_vendor
  716. build_cpu
  717. build
  718. LIBRARY_AGE
  719. LIBRARY_REVISION
  720. LIBRARY_CURRENT
  721. target_alias
  722. host_alias
  723. build_alias
  724. LIBS
  725. ECHO_T
  726. ECHO_N
  727. ECHO_C
  728. DEFS
  729. mandir
  730. localedir
  731. libdir
  732. psdir
  733. pdfdir
  734. dvidir
  735. htmldir
  736. infodir
  737. docdir
  738. oldincludedir
  739. includedir
  740. runstatedir
  741. localstatedir
  742. sharedstatedir
  743. sysconfdir
  744. datadir
  745. datarootdir
  746. libexecdir
  747. sbindir
  748. bindir
  749. program_transform_name
  750. prefix
  751. exec_prefix
  752. PACKAGE_URL
  753. PACKAGE_BUGREPORT
  754. PACKAGE_STRING
  755. PACKAGE_VERSION
  756. PACKAGE_TARNAME
  757. PACKAGE_NAME
  758. PATH_SEPARATOR
  759. SHELL'
  760. ac_subst_files=''
  761. ac_user_opts='
  762. enable_option_checking
  763. enable_silent_rules
  764. enable_dependency_tracking
  765. enable_shared
  766. enable_static
  767. with_pic
  768. enable_fast_install
  769. with_aix_soname
  770. with_gnu_ld
  771. with_sysroot
  772. enable_libtool_lock
  773. enable_maintainer_mode
  774. with_jpeg
  775. with_tiff
  776. with_zlib
  777. with_fastfloat
  778. with_threaded
  779. with_threads
  780. '
  781. ac_precious_vars='build_alias
  782. host_alias
  783. target_alias
  784. CC
  785. CFLAGS
  786. LDFLAGS
  787. LIBS
  788. CPPFLAGS
  789. CPP
  790. CXX
  791. CXXFLAGS
  792. CCC
  793. LT_SYS_LIBRARY_PATH
  794. CXXCPP'
  795. # Initialize some variables set by options.
  796. ac_init_help=
  797. ac_init_version=false
  798. ac_unrecognized_opts=
  799. ac_unrecognized_sep=
  800. # The variables have the same names as the options, with
  801. # dashes changed to underlines.
  802. cache_file=/dev/null
  803. exec_prefix=NONE
  804. no_create=
  805. no_recursion=
  806. prefix=NONE
  807. program_prefix=NONE
  808. program_suffix=NONE
  809. program_transform_name=s,x,x,
  810. silent=
  811. site=
  812. srcdir=
  813. verbose=
  814. x_includes=NONE
  815. x_libraries=NONE
  816. # Installation directory options.
  817. # These are left unexpanded so users can "make install exec_prefix=/foo"
  818. # and all the variables that are supposed to be based on exec_prefix
  819. # by default will actually change.
  820. # Use braces instead of parens because sh, perl, etc. also accept them.
  821. # (The list follows the same order as the GNU Coding Standards.)
  822. bindir='${exec_prefix}/bin'
  823. sbindir='${exec_prefix}/sbin'
  824. libexecdir='${exec_prefix}/libexec'
  825. datarootdir='${prefix}/share'
  826. datadir='${datarootdir}'
  827. sysconfdir='${prefix}/etc'
  828. sharedstatedir='${prefix}/com'
  829. localstatedir='${prefix}/var'
  830. runstatedir='${localstatedir}/run'
  831. includedir='${prefix}/include'
  832. oldincludedir='/usr/include'
  833. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  834. infodir='${datarootdir}/info'
  835. htmldir='${docdir}'
  836. dvidir='${docdir}'
  837. pdfdir='${docdir}'
  838. psdir='${docdir}'
  839. libdir='${exec_prefix}/lib'
  840. localedir='${datarootdir}/locale'
  841. mandir='${datarootdir}/man'
  842. ac_prev=
  843. ac_dashdash=
  844. for ac_option
  845. do
  846. # If the previous option needs an argument, assign it.
  847. if test -n "$ac_prev"; then
  848. eval $ac_prev=\$ac_option
  849. ac_prev=
  850. continue
  851. fi
  852. case $ac_option in
  853. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  854. *=) ac_optarg= ;;
  855. *) ac_optarg=yes ;;
  856. esac
  857. case $ac_dashdash$ac_option in
  858. --)
  859. ac_dashdash=yes ;;
  860. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  861. ac_prev=bindir ;;
  862. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  863. bindir=$ac_optarg ;;
  864. -build | --build | --buil | --bui | --bu)
  865. ac_prev=build_alias ;;
  866. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  867. build_alias=$ac_optarg ;;
  868. -cache-file | --cache-file | --cache-fil | --cache-fi \
  869. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  870. ac_prev=cache_file ;;
  871. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  872. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  873. cache_file=$ac_optarg ;;
  874. --config-cache | -C)
  875. cache_file=config.cache ;;
  876. -datadir | --datadir | --datadi | --datad)
  877. ac_prev=datadir ;;
  878. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  879. datadir=$ac_optarg ;;
  880. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  881. | --dataroo | --dataro | --datar)
  882. ac_prev=datarootdir ;;
  883. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  884. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  885. datarootdir=$ac_optarg ;;
  886. -disable-* | --disable-*)
  887. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  888. # Reject names that are not valid shell variable names.
  889. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  890. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  891. ac_useropt_orig=$ac_useropt
  892. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  893. case $ac_user_opts in
  894. *"
  895. "enable_$ac_useropt"
  896. "*) ;;
  897. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  898. ac_unrecognized_sep=', ';;
  899. esac
  900. eval enable_$ac_useropt=no ;;
  901. -docdir | --docdir | --docdi | --doc | --do)
  902. ac_prev=docdir ;;
  903. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  904. docdir=$ac_optarg ;;
  905. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  906. ac_prev=dvidir ;;
  907. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  908. dvidir=$ac_optarg ;;
  909. -enable-* | --enable-*)
  910. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  911. # Reject names that are not valid shell variable names.
  912. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  913. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  914. ac_useropt_orig=$ac_useropt
  915. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  916. case $ac_user_opts in
  917. *"
  918. "enable_$ac_useropt"
  919. "*) ;;
  920. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  921. ac_unrecognized_sep=', ';;
  922. esac
  923. eval enable_$ac_useropt=\$ac_optarg ;;
  924. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  925. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  926. | --exec | --exe | --ex)
  927. ac_prev=exec_prefix ;;
  928. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  929. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  930. | --exec=* | --exe=* | --ex=*)
  931. exec_prefix=$ac_optarg ;;
  932. -gas | --gas | --ga | --g)
  933. # Obsolete; use --with-gas.
  934. with_gas=yes ;;
  935. -help | --help | --hel | --he | -h)
  936. ac_init_help=long ;;
  937. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  938. ac_init_help=recursive ;;
  939. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  940. ac_init_help=short ;;
  941. -host | --host | --hos | --ho)
  942. ac_prev=host_alias ;;
  943. -host=* | --host=* | --hos=* | --ho=*)
  944. host_alias=$ac_optarg ;;
  945. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  946. ac_prev=htmldir ;;
  947. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  948. | --ht=*)
  949. htmldir=$ac_optarg ;;
  950. -includedir | --includedir | --includedi | --included | --include \
  951. | --includ | --inclu | --incl | --inc)
  952. ac_prev=includedir ;;
  953. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  954. | --includ=* | --inclu=* | --incl=* | --inc=*)
  955. includedir=$ac_optarg ;;
  956. -infodir | --infodir | --infodi | --infod | --info | --inf)
  957. ac_prev=infodir ;;
  958. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  959. infodir=$ac_optarg ;;
  960. -libdir | --libdir | --libdi | --libd)
  961. ac_prev=libdir ;;
  962. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  963. libdir=$ac_optarg ;;
  964. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  965. | --libexe | --libex | --libe)
  966. ac_prev=libexecdir ;;
  967. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  968. | --libexe=* | --libex=* | --libe=*)
  969. libexecdir=$ac_optarg ;;
  970. -localedir | --localedir | --localedi | --localed | --locale)
  971. ac_prev=localedir ;;
  972. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  973. localedir=$ac_optarg ;;
  974. -localstatedir | --localstatedir | --localstatedi | --localstated \
  975. | --localstate | --localstat | --localsta | --localst | --locals)
  976. ac_prev=localstatedir ;;
  977. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  978. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  979. localstatedir=$ac_optarg ;;
  980. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  981. ac_prev=mandir ;;
  982. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  983. mandir=$ac_optarg ;;
  984. -nfp | --nfp | --nf)
  985. # Obsolete; use --without-fp.
  986. with_fp=no ;;
  987. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  988. | --no-cr | --no-c | -n)
  989. no_create=yes ;;
  990. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  991. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  992. no_recursion=yes ;;
  993. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  994. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  995. | --oldin | --oldi | --old | --ol | --o)
  996. ac_prev=oldincludedir ;;
  997. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  998. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  999. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1000. oldincludedir=$ac_optarg ;;
  1001. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1002. ac_prev=prefix ;;
  1003. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1004. prefix=$ac_optarg ;;
  1005. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1006. | --program-pre | --program-pr | --program-p)
  1007. ac_prev=program_prefix ;;
  1008. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1009. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1010. program_prefix=$ac_optarg ;;
  1011. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1012. | --program-suf | --program-su | --program-s)
  1013. ac_prev=program_suffix ;;
  1014. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1015. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1016. program_suffix=$ac_optarg ;;
  1017. -program-transform-name | --program-transform-name \
  1018. | --program-transform-nam | --program-transform-na \
  1019. | --program-transform-n | --program-transform- \
  1020. | --program-transform | --program-transfor \
  1021. | --program-transfo | --program-transf \
  1022. | --program-trans | --program-tran \
  1023. | --progr-tra | --program-tr | --program-t)
  1024. ac_prev=program_transform_name ;;
  1025. -program-transform-name=* | --program-transform-name=* \
  1026. | --program-transform-nam=* | --program-transform-na=* \
  1027. | --program-transform-n=* | --program-transform-=* \
  1028. | --program-transform=* | --program-transfor=* \
  1029. | --program-transfo=* | --program-transf=* \
  1030. | --program-trans=* | --program-tran=* \
  1031. | --progr-tra=* | --program-tr=* | --program-t=*)
  1032. program_transform_name=$ac_optarg ;;
  1033. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1034. ac_prev=pdfdir ;;
  1035. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1036. pdfdir=$ac_optarg ;;
  1037. -psdir | --psdir | --psdi | --psd | --ps)
  1038. ac_prev=psdir ;;
  1039. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1040. psdir=$ac_optarg ;;
  1041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1042. | -silent | --silent | --silen | --sile | --sil)
  1043. silent=yes ;;
  1044. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1045. | --runstate | --runstat | --runsta | --runst | --runs \
  1046. | --run | --ru | --r)
  1047. ac_prev=runstatedir ;;
  1048. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1049. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1050. | --run=* | --ru=* | --r=*)
  1051. runstatedir=$ac_optarg ;;
  1052. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1053. ac_prev=sbindir ;;
  1054. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1055. | --sbi=* | --sb=*)
  1056. sbindir=$ac_optarg ;;
  1057. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1058. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1059. | --sharedst | --shareds | --shared | --share | --shar \
  1060. | --sha | --sh)
  1061. ac_prev=sharedstatedir ;;
  1062. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1063. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1064. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1065. | --sha=* | --sh=*)
  1066. sharedstatedir=$ac_optarg ;;
  1067. -site | --site | --sit)
  1068. ac_prev=site ;;
  1069. -site=* | --site=* | --sit=*)
  1070. site=$ac_optarg ;;
  1071. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1072. ac_prev=srcdir ;;
  1073. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1074. srcdir=$ac_optarg ;;
  1075. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1076. | --syscon | --sysco | --sysc | --sys | --sy)
  1077. ac_prev=sysconfdir ;;
  1078. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1079. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1080. sysconfdir=$ac_optarg ;;
  1081. -target | --target | --targe | --targ | --tar | --ta | --t)
  1082. ac_prev=target_alias ;;
  1083. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1084. target_alias=$ac_optarg ;;
  1085. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1086. verbose=yes ;;
  1087. -version | --version | --versio | --versi | --vers | -V)
  1088. ac_init_version=: ;;
  1089. -with-* | --with-*)
  1090. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1091. # Reject names that are not valid shell variable names.
  1092. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1093. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1094. ac_useropt_orig=$ac_useropt
  1095. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1096. case $ac_user_opts in
  1097. *"
  1098. "with_$ac_useropt"
  1099. "*) ;;
  1100. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1101. ac_unrecognized_sep=', ';;
  1102. esac
  1103. eval with_$ac_useropt=\$ac_optarg ;;
  1104. -without-* | --without-*)
  1105. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1108. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1109. ac_useropt_orig=$ac_useropt
  1110. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1111. case $ac_user_opts in
  1112. *"
  1113. "with_$ac_useropt"
  1114. "*) ;;
  1115. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1116. ac_unrecognized_sep=', ';;
  1117. esac
  1118. eval with_$ac_useropt=no ;;
  1119. --x)
  1120. # Obsolete; use --with-x.
  1121. with_x=yes ;;
  1122. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1123. | --x-incl | --x-inc | --x-in | --x-i)
  1124. ac_prev=x_includes ;;
  1125. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1126. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1127. x_includes=$ac_optarg ;;
  1128. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1129. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1130. ac_prev=x_libraries ;;
  1131. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1132. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1133. x_libraries=$ac_optarg ;;
  1134. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1135. Try \`$0 --help' for more information"
  1136. ;;
  1137. *=*)
  1138. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1139. # Reject names that are not valid shell variable names.
  1140. case $ac_envvar in #(
  1141. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1142. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1143. esac
  1144. eval $ac_envvar=\$ac_optarg
  1145. export $ac_envvar ;;
  1146. *)
  1147. # FIXME: should be removed in autoconf 3.0.
  1148. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1149. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1150. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1151. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1152. ;;
  1153. esac
  1154. done
  1155. if test -n "$ac_prev"; then
  1156. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1157. as_fn_error $? "missing argument to $ac_option"
  1158. fi
  1159. if test -n "$ac_unrecognized_opts"; then
  1160. case $enable_option_checking in
  1161. no) ;;
  1162. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1163. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1164. esac
  1165. fi
  1166. # Check all directory arguments for consistency.
  1167. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1168. datadir sysconfdir sharedstatedir localstatedir includedir \
  1169. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1170. libdir localedir mandir runstatedir
  1171. do
  1172. eval ac_val=\$$ac_var
  1173. # Remove trailing slashes.
  1174. case $ac_val in
  1175. */ )
  1176. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1177. eval $ac_var=\$ac_val;;
  1178. esac
  1179. # Be sure to have absolute directory names.
  1180. case $ac_val in
  1181. [\\/$]* | ?:[\\/]* ) continue;;
  1182. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1183. esac
  1184. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1185. done
  1186. # There might be people who depend on the old broken behavior: `$host'
  1187. # used to hold the argument of --host etc.
  1188. # FIXME: To remove some day.
  1189. build=$build_alias
  1190. host=$host_alias
  1191. target=$target_alias
  1192. # FIXME: To remove some day.
  1193. if test "x$host_alias" != x; then
  1194. if test "x$build_alias" = x; then
  1195. cross_compiling=maybe
  1196. elif test "x$build_alias" != "x$host_alias"; then
  1197. cross_compiling=yes
  1198. fi
  1199. fi
  1200. ac_tool_prefix=
  1201. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1202. test "$silent" = yes && exec 6>/dev/null
  1203. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1204. ac_ls_di=`ls -di .` &&
  1205. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1206. as_fn_error $? "working directory cannot be determined"
  1207. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1208. as_fn_error $? "pwd does not report name of working directory"
  1209. # Find the source files, if location was not specified.
  1210. if test -z "$srcdir"; then
  1211. ac_srcdir_defaulted=yes
  1212. # Try the directory containing this script, then the parent directory.
  1213. ac_confdir=`$as_dirname -- "$as_myself" ||
  1214. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1215. X"$as_myself" : 'X\(//\)[^/]' \| \
  1216. X"$as_myself" : 'X\(//\)$' \| \
  1217. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1218. printf "%s\n" X"$as_myself" |
  1219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1220. s//\1/
  1221. q
  1222. }
  1223. /^X\(\/\/\)[^/].*/{
  1224. s//\1/
  1225. q
  1226. }
  1227. /^X\(\/\/\)$/{
  1228. s//\1/
  1229. q
  1230. }
  1231. /^X\(\/\).*/{
  1232. s//\1/
  1233. q
  1234. }
  1235. s/.*/./; q'`
  1236. srcdir=$ac_confdir
  1237. if test ! -r "$srcdir/$ac_unique_file"; then
  1238. srcdir=..
  1239. fi
  1240. else
  1241. ac_srcdir_defaulted=no
  1242. fi
  1243. if test ! -r "$srcdir/$ac_unique_file"; then
  1244. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1245. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1246. fi
  1247. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1248. ac_abs_confdir=`(
  1249. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1250. pwd)`
  1251. # When building in place, set srcdir=.
  1252. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1253. srcdir=.
  1254. fi
  1255. # Remove unnecessary trailing slashes from srcdir.
  1256. # Double slashes in file names in object file debugging info
  1257. # mess up M-x gdb in Emacs.
  1258. case $srcdir in
  1259. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1260. esac
  1261. for ac_var in $ac_precious_vars; do
  1262. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1263. eval ac_env_${ac_var}_value=\$${ac_var}
  1264. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1265. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1266. done
  1267. #
  1268. # Report the --help message.
  1269. #
  1270. if test "$ac_init_help" = "long"; then
  1271. # Omit some internal or obsolete options to make the list less imposing.
  1272. # This message is too long to be a string in the A/UX 3.1 sh.
  1273. cat <<_ACEOF
  1274. \`configure' configures lcms2mt 2.16 to adapt to many kinds of systems.
  1275. Usage: $0 [OPTION]... [VAR=VALUE]...
  1276. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1277. VAR=VALUE. See below for descriptions of some of the useful variables.
  1278. Defaults for the options are specified in brackets.
  1279. Configuration:
  1280. -h, --help display this help and exit
  1281. --help=short display options specific to this package
  1282. --help=recursive display the short help of all the included packages
  1283. -V, --version display version information and exit
  1284. -q, --quiet, --silent do not print \`checking ...' messages
  1285. --cache-file=FILE cache test results in FILE [disabled]
  1286. -C, --config-cache alias for \`--cache-file=config.cache'
  1287. -n, --no-create do not create output files
  1288. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1289. Installation directories:
  1290. --prefix=PREFIX install architecture-independent files in PREFIX
  1291. [$ac_default_prefix]
  1292. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1293. [PREFIX]
  1294. By default, \`make install' will install all the files in
  1295. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1296. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1297. for instance \`--prefix=\$HOME'.
  1298. For better control, use the options below.
  1299. Fine tuning of the installation directories:
  1300. --bindir=DIR user executables [EPREFIX/bin]
  1301. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1302. --libexecdir=DIR program executables [EPREFIX/libexec]
  1303. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1304. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1305. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1306. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1307. --libdir=DIR object code libraries [EPREFIX/lib]
  1308. --includedir=DIR C header files [PREFIX/include]
  1309. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1310. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1311. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1312. --infodir=DIR info documentation [DATAROOTDIR/info]
  1313. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1314. --mandir=DIR man documentation [DATAROOTDIR/man]
  1315. --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2mt]
  1316. --htmldir=DIR html documentation [DOCDIR]
  1317. --dvidir=DIR dvi documentation [DOCDIR]
  1318. --pdfdir=DIR pdf documentation [DOCDIR]
  1319. --psdir=DIR ps documentation [DOCDIR]
  1320. _ACEOF
  1321. cat <<\_ACEOF
  1322. Program names:
  1323. --program-prefix=PREFIX prepend PREFIX to installed program names
  1324. --program-suffix=SUFFIX append SUFFIX to installed program names
  1325. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1326. System types:
  1327. --build=BUILD configure for building on BUILD [guessed]
  1328. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1329. _ACEOF
  1330. fi
  1331. if test -n "$ac_init_help"; then
  1332. case $ac_init_help in
  1333. short | recursive ) echo "Configuration of lcms2mt 2.16:";;
  1334. esac
  1335. cat <<\_ACEOF
  1336. Optional Features:
  1337. --disable-option-checking ignore unrecognized --enable/--with options
  1338. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1339. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1340. --enable-silent-rules less verbose build output (undo: "make V=1")
  1341. --disable-silent-rules verbose build output (undo: "make V=0")
  1342. --enable-dependency-tracking
  1343. do not reject slow dependency extractors
  1344. --disable-dependency-tracking
  1345. speeds up one-time build
  1346. --enable-shared[=PKGS] build shared libraries [default=yes]
  1347. --enable-static[=PKGS] build static libraries [default=yes]
  1348. --enable-fast-install[=PKGS]
  1349. optimize for fast installation [default=yes]
  1350. --disable-libtool-lock avoid locking (might break parallel builds)
  1351. --enable-maintainer-mode
  1352. enable make rules and dependencies not useful (and
  1353. sometimes confusing) to the casual installer
  1354. Optional Packages:
  1355. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1356. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1357. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1358. both]
  1359. --with-aix-soname=aix|svr4|both
  1360. shared library versioning (aka "SONAME") variant to
  1361. provide on AIX, [default=aix].
  1362. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1363. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1364. compiler's sysroot if not specified).
  1365. --with-jpeg=DIR use jpeg installed in DIR
  1366. --with-tiff=DIR use tiff installed in DIR
  1367. --without-zlib disable ZLIB support
  1368. --with-fastfloat build and install fast_float plugin, use only if GPL
  1369. 3.0 is acceptable
  1370. --with-threaded build and install multi threaded plugin, use only if
  1371. GPL 3.0 is acceptable
  1372. --without-pthreads disable POSIX pthreads API support
  1373. Some influential environment variables:
  1374. CC C compiler command
  1375. CFLAGS C compiler flags
  1376. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1377. nonstandard directory <lib dir>
  1378. LIBS libraries to pass to the linker, e.g. -l<library>
  1379. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1380. you have headers in a nonstandard directory <include dir>
  1381. CPP C preprocessor
  1382. CXX C++ compiler command
  1383. CXXFLAGS C++ compiler flags
  1384. LT_SYS_LIBRARY_PATH
  1385. User-defined run-time library search path.
  1386. CXXCPP C++ preprocessor
  1387. Use these variables to override the choices made by `configure' or to help
  1388. it to find libraries and programs with nonstandard names/locations.
  1389. Report bugs to the package provider.
  1390. _ACEOF
  1391. ac_status=$?
  1392. fi
  1393. if test "$ac_init_help" = "recursive"; then
  1394. # If there are subdirs, report their specific --help.
  1395. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1396. test -d "$ac_dir" ||
  1397. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1398. continue
  1399. ac_builddir=.
  1400. case "$ac_dir" in
  1401. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1402. *)
  1403. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1404. # A ".." for each directory in $ac_dir_suffix.
  1405. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1406. case $ac_top_builddir_sub in
  1407. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1408. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1409. esac ;;
  1410. esac
  1411. ac_abs_top_builddir=$ac_pwd
  1412. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1413. # for backward compatibility:
  1414. ac_top_builddir=$ac_top_build_prefix
  1415. case $srcdir in
  1416. .) # We are building in place.
  1417. ac_srcdir=.
  1418. ac_top_srcdir=$ac_top_builddir_sub
  1419. ac_abs_top_srcdir=$ac_pwd ;;
  1420. [\\/]* | ?:[\\/]* ) # Absolute name.
  1421. ac_srcdir=$srcdir$ac_dir_suffix;
  1422. ac_top_srcdir=$srcdir
  1423. ac_abs_top_srcdir=$srcdir ;;
  1424. *) # Relative name.
  1425. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1426. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1427. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1428. esac
  1429. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1430. cd "$ac_dir" || { ac_status=$?; continue; }
  1431. # Check for configure.gnu first; this name is used for a wrapper for
  1432. # Metaconfig's "Configure" on case-insensitive file systems.
  1433. if test -f "$ac_srcdir/configure.gnu"; then
  1434. echo &&
  1435. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1436. elif test -f "$ac_srcdir/configure"; then
  1437. echo &&
  1438. $SHELL "$ac_srcdir/configure" --help=recursive
  1439. else
  1440. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1441. fi || ac_status=$?
  1442. cd "$ac_pwd" || { ac_status=$?; break; }
  1443. done
  1444. fi
  1445. test -n "$ac_init_help" && exit $ac_status
  1446. if $ac_init_version; then
  1447. cat <<\_ACEOF
  1448. lcms2mt configure 2.16
  1449. generated by GNU Autoconf 2.71
  1450. Copyright (C) 2021 Free Software Foundation, Inc.
  1451. This configure script is free software; the Free Software Foundation
  1452. gives unlimited permission to copy, distribute and modify it.
  1453. _ACEOF
  1454. exit
  1455. fi
  1456. ## ------------------------ ##
  1457. ## Autoconf initialization. ##
  1458. ## ------------------------ ##
  1459. # ac_fn_c_try_compile LINENO
  1460. # --------------------------
  1461. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1462. ac_fn_c_try_compile ()
  1463. {
  1464. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1465. rm -f conftest.$ac_objext conftest.beam
  1466. if { { ac_try="$ac_compile"
  1467. case "(($ac_try" in
  1468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1469. *) ac_try_echo=$ac_try;;
  1470. esac
  1471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1472. printf "%s\n" "$ac_try_echo"; } >&5
  1473. (eval "$ac_compile") 2>conftest.err
  1474. ac_status=$?
  1475. if test -s conftest.err; then
  1476. grep -v '^ *+' conftest.err >conftest.er1
  1477. cat conftest.er1 >&5
  1478. mv -f conftest.er1 conftest.err
  1479. fi
  1480. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1481. test $ac_status = 0; } && {
  1482. test -z "$ac_c_werror_flag" ||
  1483. test ! -s conftest.err
  1484. } && test -s conftest.$ac_objext
  1485. then :
  1486. ac_retval=0
  1487. else $as_nop
  1488. printf "%s\n" "$as_me: failed program was:" >&5
  1489. sed 's/^/| /' conftest.$ac_ext >&5
  1490. ac_retval=1
  1491. fi
  1492. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1493. as_fn_set_status $ac_retval
  1494. } # ac_fn_c_try_compile
  1495. # ac_fn_c_try_cpp LINENO
  1496. # ----------------------
  1497. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1498. ac_fn_c_try_cpp ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1502. case "(($ac_try" in
  1503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1504. *) ac_try_echo=$ac_try;;
  1505. esac
  1506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1507. printf "%s\n" "$ac_try_echo"; } >&5
  1508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1509. ac_status=$?
  1510. if test -s conftest.err; then
  1511. grep -v '^ *+' conftest.err >conftest.er1
  1512. cat conftest.er1 >&5
  1513. mv -f conftest.er1 conftest.err
  1514. fi
  1515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } > conftest.i && {
  1517. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1518. test ! -s conftest.err
  1519. }
  1520. then :
  1521. ac_retval=0
  1522. else $as_nop
  1523. printf "%s\n" "$as_me: failed program was:" >&5
  1524. sed 's/^/| /' conftest.$ac_ext >&5
  1525. ac_retval=1
  1526. fi
  1527. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1528. as_fn_set_status $ac_retval
  1529. } # ac_fn_c_try_cpp
  1530. # ac_fn_cxx_try_compile LINENO
  1531. # ----------------------------
  1532. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1533. ac_fn_cxx_try_compile ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. rm -f conftest.$ac_objext conftest.beam
  1537. if { { ac_try="$ac_compile"
  1538. case "(($ac_try" in
  1539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1540. *) ac_try_echo=$ac_try;;
  1541. esac
  1542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1543. printf "%s\n" "$ac_try_echo"; } >&5
  1544. (eval "$ac_compile") 2>conftest.err
  1545. ac_status=$?
  1546. if test -s conftest.err; then
  1547. grep -v '^ *+' conftest.err >conftest.er1
  1548. cat conftest.er1 >&5
  1549. mv -f conftest.er1 conftest.err
  1550. fi
  1551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1552. test $ac_status = 0; } && {
  1553. test -z "$ac_cxx_werror_flag" ||
  1554. test ! -s conftest.err
  1555. } && test -s conftest.$ac_objext
  1556. then :
  1557. ac_retval=0
  1558. else $as_nop
  1559. printf "%s\n" "$as_me: failed program was:" >&5
  1560. sed 's/^/| /' conftest.$ac_ext >&5
  1561. ac_retval=1
  1562. fi
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. as_fn_set_status $ac_retval
  1565. } # ac_fn_cxx_try_compile
  1566. # ac_fn_c_try_link LINENO
  1567. # -----------------------
  1568. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1569. ac_fn_c_try_link ()
  1570. {
  1571. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1572. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1573. if { { ac_try="$ac_link"
  1574. case "(($ac_try" in
  1575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1576. *) ac_try_echo=$ac_try;;
  1577. esac
  1578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1579. printf "%s\n" "$ac_try_echo"; } >&5
  1580. (eval "$ac_link") 2>conftest.err
  1581. ac_status=$?
  1582. if test -s conftest.err; then
  1583. grep -v '^ *+' conftest.err >conftest.er1
  1584. cat conftest.er1 >&5
  1585. mv -f conftest.er1 conftest.err
  1586. fi
  1587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1588. test $ac_status = 0; } && {
  1589. test -z "$ac_c_werror_flag" ||
  1590. test ! -s conftest.err
  1591. } && test -s conftest$ac_exeext && {
  1592. test "$cross_compiling" = yes ||
  1593. test -x conftest$ac_exeext
  1594. }
  1595. then :
  1596. ac_retval=0
  1597. else $as_nop
  1598. printf "%s\n" "$as_me: failed program was:" >&5
  1599. sed 's/^/| /' conftest.$ac_ext >&5
  1600. ac_retval=1
  1601. fi
  1602. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1603. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1604. # interfere with the next link command; also delete a directory that is
  1605. # left behind by Apple's compiler. We do this before executing the actions.
  1606. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1607. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1608. as_fn_set_status $ac_retval
  1609. } # ac_fn_c_try_link
  1610. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1611. # -------------------------------------------------------
  1612. # Tests whether HEADER exists and can be compiled using the include files in
  1613. # INCLUDES, setting the cache variable VAR accordingly.
  1614. ac_fn_c_check_header_compile ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1618. printf %s "checking for $2... " >&6; }
  1619. if eval test \${$3+y}
  1620. then :
  1621. printf %s "(cached) " >&6
  1622. else $as_nop
  1623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end confdefs.h. */
  1625. $4
  1626. #include <$2>
  1627. _ACEOF
  1628. if ac_fn_c_try_compile "$LINENO"
  1629. then :
  1630. eval "$3=yes"
  1631. else $as_nop
  1632. eval "$3=no"
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1635. fi
  1636. eval ac_res=\$$3
  1637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1638. printf "%s\n" "$ac_res" >&6; }
  1639. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1640. } # ac_fn_c_check_header_compile
  1641. # ac_fn_c_check_func LINENO FUNC VAR
  1642. # ----------------------------------
  1643. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1644. ac_fn_c_check_func ()
  1645. {
  1646. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1648. printf %s "checking for $2... " >&6; }
  1649. if eval test \${$3+y}
  1650. then :
  1651. printf %s "(cached) " >&6
  1652. else $as_nop
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1656. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1657. #define $2 innocuous_$2
  1658. /* System header to define __stub macros and hopefully few prototypes,
  1659. which can conflict with char $2 (); below. */
  1660. #include <limits.h>
  1661. #undef $2
  1662. /* Override any GCC internal prototype to avoid an error.
  1663. Use char because int might match the return type of a GCC
  1664. builtin and then its argument prototype would still apply. */
  1665. #ifdef __cplusplus
  1666. extern "C"
  1667. #endif
  1668. char $2 ();
  1669. /* The GNU C library defines this for functions which it implements
  1670. to always fail with ENOSYS. Some functions are actually named
  1671. something starting with __ and the normal name is an alias. */
  1672. #if defined __stub_$2 || defined __stub___$2
  1673. choke me
  1674. #endif
  1675. int
  1676. main (void)
  1677. {
  1678. return $2 ();
  1679. ;
  1680. return 0;
  1681. }
  1682. _ACEOF
  1683. if ac_fn_c_try_link "$LINENO"
  1684. then :
  1685. eval "$3=yes"
  1686. else $as_nop
  1687. eval "$3=no"
  1688. fi
  1689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1690. conftest$ac_exeext conftest.$ac_ext
  1691. fi
  1692. eval ac_res=\$$3
  1693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1694. printf "%s\n" "$ac_res" >&6; }
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. } # ac_fn_c_check_func
  1697. # ac_fn_cxx_try_cpp LINENO
  1698. # ------------------------
  1699. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1700. ac_fn_cxx_try_cpp ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. printf "%s\n" "$ac_try_echo"; } >&5
  1710. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1711. ac_status=$?
  1712. if test -s conftest.err; then
  1713. grep -v '^ *+' conftest.err >conftest.er1
  1714. cat conftest.er1 >&5
  1715. mv -f conftest.er1 conftest.err
  1716. fi
  1717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1718. test $ac_status = 0; } > conftest.i && {
  1719. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1720. test ! -s conftest.err
  1721. }
  1722. then :
  1723. ac_retval=0
  1724. else $as_nop
  1725. printf "%s\n" "$as_me: failed program was:" >&5
  1726. sed 's/^/| /' conftest.$ac_ext >&5
  1727. ac_retval=1
  1728. fi
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. as_fn_set_status $ac_retval
  1731. } # ac_fn_cxx_try_cpp
  1732. # ac_fn_cxx_try_link LINENO
  1733. # -------------------------
  1734. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1735. ac_fn_cxx_try_link ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1739. if { { ac_try="$ac_link"
  1740. case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. printf "%s\n" "$ac_try_echo"; } >&5
  1746. (eval "$ac_link") 2>conftest.err
  1747. ac_status=$?
  1748. if test -s conftest.err; then
  1749. grep -v '^ *+' conftest.err >conftest.er1
  1750. cat conftest.er1 >&5
  1751. mv -f conftest.er1 conftest.err
  1752. fi
  1753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; } && {
  1755. test -z "$ac_cxx_werror_flag" ||
  1756. test ! -s conftest.err
  1757. } && test -s conftest$ac_exeext && {
  1758. test "$cross_compiling" = yes ||
  1759. test -x conftest$ac_exeext
  1760. }
  1761. then :
  1762. ac_retval=0
  1763. else $as_nop
  1764. printf "%s\n" "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1769. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1770. # interfere with the next link command; also delete a directory that is
  1771. # left behind by Apple's compiler. We do this before executing the actions.
  1772. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. as_fn_set_status $ac_retval
  1775. } # ac_fn_cxx_try_link
  1776. # ac_fn_c_try_run LINENO
  1777. # ----------------------
  1778. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1779. # executables *can* be run.
  1780. ac_fn_c_try_run ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. printf "%s\n" "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>&5
  1791. ac_status=$?
  1792. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1794. { { case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1799. printf "%s\n" "$ac_try_echo"; } >&5
  1800. (eval "$ac_try") 2>&5
  1801. ac_status=$?
  1802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1803. test $ac_status = 0; }; }
  1804. then :
  1805. ac_retval=0
  1806. else $as_nop
  1807. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1808. printf "%s\n" "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. ac_retval=$ac_status
  1811. fi
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. as_fn_set_status $ac_retval
  1815. } # ac_fn_c_try_run
  1816. ac_configure_args_raw=
  1817. for ac_arg
  1818. do
  1819. case $ac_arg in
  1820. *\'*)
  1821. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1822. esac
  1823. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1824. done
  1825. case $ac_configure_args_raw in
  1826. *$as_nl*)
  1827. ac_safe_unquote= ;;
  1828. *)
  1829. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1830. ac_unsafe_a="$ac_unsafe_z#~"
  1831. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1832. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1833. esac
  1834. cat >config.log <<_ACEOF
  1835. This file contains any messages produced by compilers while
  1836. running configure, to aid debugging if configure makes a mistake.
  1837. It was created by lcms2mt $as_me 2.16, which was
  1838. generated by GNU Autoconf 2.71. Invocation command line was
  1839. $ $0$ac_configure_args_raw
  1840. _ACEOF
  1841. exec 5>>config.log
  1842. {
  1843. cat <<_ASUNAME
  1844. ## --------- ##
  1845. ## Platform. ##
  1846. ## --------- ##
  1847. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1848. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1849. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1850. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1851. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1852. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1853. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1854. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1855. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1856. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1857. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1858. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1859. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1860. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1861. _ASUNAME
  1862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1863. for as_dir in $PATH
  1864. do
  1865. IFS=$as_save_IFS
  1866. case $as_dir in #(((
  1867. '') as_dir=./ ;;
  1868. */) ;;
  1869. *) as_dir=$as_dir/ ;;
  1870. esac
  1871. printf "%s\n" "PATH: $as_dir"
  1872. done
  1873. IFS=$as_save_IFS
  1874. } >&5
  1875. cat >&5 <<_ACEOF
  1876. ## ----------- ##
  1877. ## Core tests. ##
  1878. ## ----------- ##
  1879. _ACEOF
  1880. # Keep a trace of the command line.
  1881. # Strip out --no-create and --no-recursion so they do not pile up.
  1882. # Strip out --silent because we don't want to record it for future runs.
  1883. # Also quote any args containing shell meta-characters.
  1884. # Make two passes to allow for proper duplicate-argument suppression.
  1885. ac_configure_args=
  1886. ac_configure_args0=
  1887. ac_configure_args1=
  1888. ac_must_keep_next=false
  1889. for ac_pass in 1 2
  1890. do
  1891. for ac_arg
  1892. do
  1893. case $ac_arg in
  1894. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1895. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1896. | -silent | --silent | --silen | --sile | --sil)
  1897. continue ;;
  1898. *\'*)
  1899. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1900. esac
  1901. case $ac_pass in
  1902. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1903. 2)
  1904. as_fn_append ac_configure_args1 " '$ac_arg'"
  1905. if test $ac_must_keep_next = true; then
  1906. ac_must_keep_next=false # Got value, back to normal.
  1907. else
  1908. case $ac_arg in
  1909. *=* | --config-cache | -C | -disable-* | --disable-* \
  1910. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1911. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1912. | -with-* | --with-* | -without-* | --without-* | --x)
  1913. case "$ac_configure_args0 " in
  1914. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1915. esac
  1916. ;;
  1917. -* ) ac_must_keep_next=true ;;
  1918. esac
  1919. fi
  1920. as_fn_append ac_configure_args " '$ac_arg'"
  1921. ;;
  1922. esac
  1923. done
  1924. done
  1925. { ac_configure_args0=; unset ac_configure_args0;}
  1926. { ac_configure_args1=; unset ac_configure_args1;}
  1927. # When interrupted or exit'd, cleanup temporary files, and complete
  1928. # config.log. We remove comments because anyway the quotes in there
  1929. # would cause problems or look ugly.
  1930. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1931. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1932. trap 'exit_status=$?
  1933. # Sanitize IFS.
  1934. IFS=" "" $as_nl"
  1935. # Save into config.log some information that might help in debugging.
  1936. {
  1937. echo
  1938. printf "%s\n" "## ---------------- ##
  1939. ## Cache variables. ##
  1940. ## ---------------- ##"
  1941. echo
  1942. # The following way of writing the cache mishandles newlines in values,
  1943. (
  1944. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1945. eval ac_val=\$$ac_var
  1946. case $ac_val in #(
  1947. *${as_nl}*)
  1948. case $ac_var in #(
  1949. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1950. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1951. esac
  1952. case $ac_var in #(
  1953. _ | IFS | as_nl) ;; #(
  1954. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1955. *) { eval $ac_var=; unset $ac_var;} ;;
  1956. esac ;;
  1957. esac
  1958. done
  1959. (set) 2>&1 |
  1960. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1961. *${as_nl}ac_space=\ *)
  1962. sed -n \
  1963. "s/'\''/'\''\\\\'\'''\''/g;
  1964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1965. ;; #(
  1966. *)
  1967. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1968. ;;
  1969. esac |
  1970. sort
  1971. )
  1972. echo
  1973. printf "%s\n" "## ----------------- ##
  1974. ## Output variables. ##
  1975. ## ----------------- ##"
  1976. echo
  1977. for ac_var in $ac_subst_vars
  1978. do
  1979. eval ac_val=\$$ac_var
  1980. case $ac_val in
  1981. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1982. esac
  1983. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1984. done | sort
  1985. echo
  1986. if test -n "$ac_subst_files"; then
  1987. printf "%s\n" "## ------------------- ##
  1988. ## File substitutions. ##
  1989. ## ------------------- ##"
  1990. echo
  1991. for ac_var in $ac_subst_files
  1992. do
  1993. eval ac_val=\$$ac_var
  1994. case $ac_val in
  1995. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1996. esac
  1997. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1998. done | sort
  1999. echo
  2000. fi
  2001. if test -s confdefs.h; then
  2002. printf "%s\n" "## ----------- ##
  2003. ## confdefs.h. ##
  2004. ## ----------- ##"
  2005. echo
  2006. cat confdefs.h
  2007. echo
  2008. fi
  2009. test "$ac_signal" != 0 &&
  2010. printf "%s\n" "$as_me: caught signal $ac_signal"
  2011. printf "%s\n" "$as_me: exit $exit_status"
  2012. } >&5
  2013. rm -f core *.core core.conftest.* &&
  2014. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2015. exit $exit_status
  2016. ' 0
  2017. for ac_signal in 1 2 13 15; do
  2018. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2019. done
  2020. ac_signal=0
  2021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2022. rm -f -r conftest* confdefs.h
  2023. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2024. # Predefined preprocessor variables.
  2025. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2026. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2027. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2028. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2029. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2030. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2031. # Let the site file select an alternate cache file if it wants to.
  2032. # Prefer an explicitly selected file to automatically selected ones.
  2033. if test -n "$CONFIG_SITE"; then
  2034. ac_site_files="$CONFIG_SITE"
  2035. elif test "x$prefix" != xNONE; then
  2036. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2037. else
  2038. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2039. fi
  2040. for ac_site_file in $ac_site_files
  2041. do
  2042. case $ac_site_file in #(
  2043. */*) :
  2044. ;; #(
  2045. *) :
  2046. ac_site_file=./$ac_site_file ;;
  2047. esac
  2048. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2050. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2051. sed 's/^/| /' "$ac_site_file" >&5
  2052. . "$ac_site_file" \
  2053. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2054. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2055. as_fn_error $? "failed to load site script $ac_site_file
  2056. See \`config.log' for more details" "$LINENO" 5; }
  2057. fi
  2058. done
  2059. if test -r "$cache_file"; then
  2060. # Some versions of bash will fail to source /dev/null (special files
  2061. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2062. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2064. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2065. case $cache_file in
  2066. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2067. *) . "./$cache_file";;
  2068. esac
  2069. fi
  2070. else
  2071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2072. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2073. >$cache_file
  2074. fi
  2075. # Test code for whether the C compiler supports C89 (global declarations)
  2076. ac_c_conftest_c89_globals='
  2077. /* Does the compiler advertise C89 conformance?
  2078. Do not test the value of __STDC__, because some compilers set it to 0
  2079. while being otherwise adequately conformant. */
  2080. #if !defined __STDC__
  2081. # error "Compiler does not advertise C89 conformance"
  2082. #endif
  2083. #include <stddef.h>
  2084. #include <stdarg.h>
  2085. struct stat;
  2086. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2087. struct buf { int x; };
  2088. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2089. static char *e (p, i)
  2090. char **p;
  2091. int i;
  2092. {
  2093. return p[i];
  2094. }
  2095. static char *f (char * (*g) (char **, int), char **p, ...)
  2096. {
  2097. char *s;
  2098. va_list v;
  2099. va_start (v,p);
  2100. s = g (p, va_arg (v,int));
  2101. va_end (v);
  2102. return s;
  2103. }
  2104. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2105. function prototypes and stuff, but not \xHH hex character constants.
  2106. These do not provoke an error unfortunately, instead are silently treated
  2107. as an "x". The following induces an error, until -std is added to get
  2108. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2109. array size at least. It is necessary to write \x00 == 0 to get something
  2110. that is true only with -std. */
  2111. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2112. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2113. inside strings and character constants. */
  2114. #define FOO(x) '\''x'\''
  2115. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2116. int test (int i, double x);
  2117. struct s1 {int (*f) (int a);};
  2118. struct s2 {int (*f) (double a);};
  2119. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2120. int, int);'
  2121. # Test code for whether the C compiler supports C89 (body of main).
  2122. ac_c_conftest_c89_main='
  2123. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2124. '
  2125. # Test code for whether the C compiler supports C99 (global declarations)
  2126. ac_c_conftest_c99_globals='
  2127. // Does the compiler advertise C99 conformance?
  2128. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2129. # error "Compiler does not advertise C99 conformance"
  2130. #endif
  2131. #include <stdbool.h>
  2132. extern int puts (const char *);
  2133. extern int printf (const char *, ...);
  2134. extern int dprintf (int, const char *, ...);
  2135. extern void *malloc (size_t);
  2136. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2137. // dprintf is used instead of fprintf to avoid needing to declare
  2138. // FILE and stderr.
  2139. #define debug(...) dprintf (2, __VA_ARGS__)
  2140. #define showlist(...) puts (#__VA_ARGS__)
  2141. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2142. static void
  2143. test_varargs_macros (void)
  2144. {
  2145. int x = 1234;
  2146. int y = 5678;
  2147. debug ("Flag");
  2148. debug ("X = %d\n", x);
  2149. showlist (The first, second, and third items.);
  2150. report (x>y, "x is %d but y is %d", x, y);
  2151. }
  2152. // Check long long types.
  2153. #define BIG64 18446744073709551615ull
  2154. #define BIG32 4294967295ul
  2155. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2156. #if !BIG_OK
  2157. #error "your preprocessor is broken"
  2158. #endif
  2159. #if BIG_OK
  2160. #else
  2161. #error "your preprocessor is broken"
  2162. #endif
  2163. static long long int bignum = -9223372036854775807LL;
  2164. static unsigned long long int ubignum = BIG64;
  2165. struct incomplete_array
  2166. {
  2167. int datasize;
  2168. double data[];
  2169. };
  2170. struct named_init {
  2171. int number;
  2172. const wchar_t *name;
  2173. double average;
  2174. };
  2175. typedef const char *ccp;
  2176. static inline int
  2177. test_restrict (ccp restrict text)
  2178. {
  2179. // See if C++-style comments work.
  2180. // Iterate through items via the restricted pointer.
  2181. // Also check for declarations in for loops.
  2182. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2183. continue;
  2184. return 0;
  2185. }
  2186. // Check varargs and va_copy.
  2187. static bool
  2188. test_varargs (const char *format, ...)
  2189. {
  2190. va_list args;
  2191. va_start (args, format);
  2192. va_list args_copy;
  2193. va_copy (args_copy, args);
  2194. const char *str = "";
  2195. int number = 0;
  2196. float fnumber = 0;
  2197. while (*format)
  2198. {
  2199. switch (*format++)
  2200. {
  2201. case '\''s'\'': // string
  2202. str = va_arg (args_copy, const char *);
  2203. break;
  2204. case '\''d'\'': // int
  2205. number = va_arg (args_copy, int);
  2206. break;
  2207. case '\''f'\'': // float
  2208. fnumber = va_arg (args_copy, double);
  2209. break;
  2210. default:
  2211. break;
  2212. }
  2213. }
  2214. va_end (args_copy);
  2215. va_end (args);
  2216. return *str && number && fnumber;
  2217. }
  2218. '
  2219. # Test code for whether the C compiler supports C99 (body of main).
  2220. ac_c_conftest_c99_main='
  2221. // Check bool.
  2222. _Bool success = false;
  2223. success |= (argc != 0);
  2224. // Check restrict.
  2225. if (test_restrict ("String literal") == 0)
  2226. success = true;
  2227. char *restrict newvar = "Another string";
  2228. // Check varargs.
  2229. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2230. test_varargs_macros ();
  2231. // Check flexible array members.
  2232. struct incomplete_array *ia =
  2233. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2234. ia->datasize = 10;
  2235. for (int i = 0; i < ia->datasize; ++i)
  2236. ia->data[i] = i * 1.234;
  2237. // Check named initializers.
  2238. struct named_init ni = {
  2239. .number = 34,
  2240. .name = L"Test wide string",
  2241. .average = 543.34343,
  2242. };
  2243. ni.number = 58;
  2244. int dynamic_array[ni.number];
  2245. dynamic_array[0] = argv[0][0];
  2246. dynamic_array[ni.number - 1] = 543;
  2247. // work around unused variable warnings
  2248. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2249. || dynamic_array[ni.number - 1] != 543);
  2250. '
  2251. # Test code for whether the C compiler supports C11 (global declarations)
  2252. ac_c_conftest_c11_globals='
  2253. // Does the compiler advertise C11 conformance?
  2254. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2255. # error "Compiler does not advertise C11 conformance"
  2256. #endif
  2257. // Check _Alignas.
  2258. char _Alignas (double) aligned_as_double;
  2259. char _Alignas (0) no_special_alignment;
  2260. extern char aligned_as_int;
  2261. char _Alignas (0) _Alignas (int) aligned_as_int;
  2262. // Check _Alignof.
  2263. enum
  2264. {
  2265. int_alignment = _Alignof (int),
  2266. int_array_alignment = _Alignof (int[100]),
  2267. char_alignment = _Alignof (char)
  2268. };
  2269. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2270. // Check _Noreturn.
  2271. int _Noreturn does_not_return (void) { for (;;) continue; }
  2272. // Check _Static_assert.
  2273. struct test_static_assert
  2274. {
  2275. int x;
  2276. _Static_assert (sizeof (int) <= sizeof (long int),
  2277. "_Static_assert does not work in struct");
  2278. long int y;
  2279. };
  2280. // Check UTF-8 literals.
  2281. #define u8 syntax error!
  2282. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2283. // Check duplicate typedefs.
  2284. typedef long *long_ptr;
  2285. typedef long int *long_ptr;
  2286. typedef long_ptr long_ptr;
  2287. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2288. struct anonymous
  2289. {
  2290. union {
  2291. struct { int i; int j; };
  2292. struct { int k; long int l; } w;
  2293. };
  2294. int m;
  2295. } v1;
  2296. '
  2297. # Test code for whether the C compiler supports C11 (body of main).
  2298. ac_c_conftest_c11_main='
  2299. _Static_assert ((offsetof (struct anonymous, i)
  2300. == offsetof (struct anonymous, w.k)),
  2301. "Anonymous union alignment botch");
  2302. v1.i = 2;
  2303. v1.w.k = 5;
  2304. ok |= v1.i != 5;
  2305. '
  2306. # Test code for whether the C compiler supports C11 (complete).
  2307. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2308. ${ac_c_conftest_c99_globals}
  2309. ${ac_c_conftest_c11_globals}
  2310. int
  2311. main (int argc, char **argv)
  2312. {
  2313. int ok = 0;
  2314. ${ac_c_conftest_c89_main}
  2315. ${ac_c_conftest_c99_main}
  2316. ${ac_c_conftest_c11_main}
  2317. return ok;
  2318. }
  2319. "
  2320. # Test code for whether the C compiler supports C99 (complete).
  2321. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2322. ${ac_c_conftest_c99_globals}
  2323. int
  2324. main (int argc, char **argv)
  2325. {
  2326. int ok = 0;
  2327. ${ac_c_conftest_c89_main}
  2328. ${ac_c_conftest_c99_main}
  2329. return ok;
  2330. }
  2331. "
  2332. # Test code for whether the C compiler supports C89 (complete).
  2333. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2334. int
  2335. main (int argc, char **argv)
  2336. {
  2337. int ok = 0;
  2338. ${ac_c_conftest_c89_main}
  2339. return ok;
  2340. }
  2341. "
  2342. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2343. ac_cxx_conftest_cxx98_globals='
  2344. // Does the compiler advertise C++98 conformance?
  2345. #if !defined __cplusplus || __cplusplus < 199711L
  2346. # error "Compiler does not advertise C++98 conformance"
  2347. #endif
  2348. // These inclusions are to reject old compilers that
  2349. // lack the unsuffixed header files.
  2350. #include <cstdlib>
  2351. #include <exception>
  2352. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2353. extern void assert (int);
  2354. namespace std {
  2355. extern int strcmp (const char *, const char *);
  2356. }
  2357. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2358. using std::exception;
  2359. using std::strcmp;
  2360. namespace {
  2361. void test_exception_syntax()
  2362. {
  2363. try {
  2364. throw "test";
  2365. } catch (const char *s) {
  2366. // Extra parentheses suppress a warning when building autoconf itself,
  2367. // due to lint rules shared with more typical C programs.
  2368. assert (!(strcmp) (s, "test"));
  2369. }
  2370. }
  2371. template <typename T> struct test_template
  2372. {
  2373. T const val;
  2374. explicit test_template(T t) : val(t) {}
  2375. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2376. };
  2377. } // anonymous namespace
  2378. '
  2379. # Test code for whether the C++ compiler supports C++98 (body of main)
  2380. ac_cxx_conftest_cxx98_main='
  2381. assert (argc);
  2382. assert (! argv[0]);
  2383. {
  2384. test_exception_syntax ();
  2385. test_template<double> tt (2.0);
  2386. assert (tt.add (4) == 6.0);
  2387. assert (true && !false);
  2388. }
  2389. '
  2390. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2391. ac_cxx_conftest_cxx11_globals='
  2392. // Does the compiler advertise C++ 2011 conformance?
  2393. #if !defined __cplusplus || __cplusplus < 201103L
  2394. # error "Compiler does not advertise C++11 conformance"
  2395. #endif
  2396. namespace cxx11test
  2397. {
  2398. constexpr int get_val() { return 20; }
  2399. struct testinit
  2400. {
  2401. int i;
  2402. double d;
  2403. };
  2404. class delegate
  2405. {
  2406. public:
  2407. delegate(int n) : n(n) {}
  2408. delegate(): delegate(2354) {}
  2409. virtual int getval() { return this->n; };
  2410. protected:
  2411. int n;
  2412. };
  2413. class overridden : public delegate
  2414. {
  2415. public:
  2416. overridden(int n): delegate(n) {}
  2417. virtual int getval() override final { return this->n * 2; }
  2418. };
  2419. class nocopy
  2420. {
  2421. public:
  2422. nocopy(int i): i(i) {}
  2423. nocopy() = default;
  2424. nocopy(const nocopy&) = delete;
  2425. nocopy & operator=(const nocopy&) = delete;
  2426. private:
  2427. int i;
  2428. };
  2429. // for testing lambda expressions
  2430. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2431. {
  2432. return f(v);
  2433. }
  2434. // for testing variadic templates and trailing return types
  2435. template <typename V> auto sum(V first) -> V
  2436. {
  2437. return first;
  2438. }
  2439. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2440. {
  2441. return first + sum(rest...);
  2442. }
  2443. }
  2444. '
  2445. # Test code for whether the C++ compiler supports C++11 (body of main)
  2446. ac_cxx_conftest_cxx11_main='
  2447. {
  2448. // Test auto and decltype
  2449. auto a1 = 6538;
  2450. auto a2 = 48573953.4;
  2451. auto a3 = "String literal";
  2452. int total = 0;
  2453. for (auto i = a3; *i; ++i) { total += *i; }
  2454. decltype(a2) a4 = 34895.034;
  2455. }
  2456. {
  2457. // Test constexpr
  2458. short sa[cxx11test::get_val()] = { 0 };
  2459. }
  2460. {
  2461. // Test initializer lists
  2462. cxx11test::testinit il = { 4323, 435234.23544 };
  2463. }
  2464. {
  2465. // Test range-based for
  2466. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2467. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2468. for (auto &x : array) { x += 23; }
  2469. }
  2470. {
  2471. // Test lambda expressions
  2472. using cxx11test::eval;
  2473. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2474. double d = 2.0;
  2475. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2476. assert (d == 5.0);
  2477. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2478. assert (d == 5.0);
  2479. }
  2480. {
  2481. // Test use of variadic templates
  2482. using cxx11test::sum;
  2483. auto a = sum(1);
  2484. auto b = sum(1, 2);
  2485. auto c = sum(1.0, 2.0, 3.0);
  2486. }
  2487. {
  2488. // Test constructor delegation
  2489. cxx11test::delegate d1;
  2490. cxx11test::delegate d2();
  2491. cxx11test::delegate d3(45);
  2492. }
  2493. {
  2494. // Test override and final
  2495. cxx11test::overridden o1(55464);
  2496. }
  2497. {
  2498. // Test nullptr
  2499. char *c = nullptr;
  2500. }
  2501. {
  2502. // Test template brackets
  2503. test_template<::test_template<int>> v(test_template<int>(12));
  2504. }
  2505. {
  2506. // Unicode literals
  2507. char const *utf8 = u8"UTF-8 string \u2500";
  2508. char16_t const *utf16 = u"UTF-8 string \u2500";
  2509. char32_t const *utf32 = U"UTF-32 string \u2500";
  2510. }
  2511. '
  2512. # Test code for whether the C compiler supports C++11 (complete).
  2513. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2514. ${ac_cxx_conftest_cxx11_globals}
  2515. int
  2516. main (int argc, char **argv)
  2517. {
  2518. int ok = 0;
  2519. ${ac_cxx_conftest_cxx98_main}
  2520. ${ac_cxx_conftest_cxx11_main}
  2521. return ok;
  2522. }
  2523. "
  2524. # Test code for whether the C compiler supports C++98 (complete).
  2525. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2526. int
  2527. main (int argc, char **argv)
  2528. {
  2529. int ok = 0;
  2530. ${ac_cxx_conftest_cxx98_main}
  2531. return ok;
  2532. }
  2533. "
  2534. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2535. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2536. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2537. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2538. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2539. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2540. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2541. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2542. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2543. # Auxiliary files required by this configure script.
  2544. ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
  2545. # Locations in which to look for auxiliary files.
  2546. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2547. # Search for a directory containing all of the required auxiliary files,
  2548. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2549. # If we don't find one directory that contains all the files we need,
  2550. # we report the set of missing files from the *first* directory in
  2551. # $ac_aux_dir_candidates and give up.
  2552. ac_missing_aux_files=""
  2553. ac_first_candidate=:
  2554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. as_found=false
  2557. for as_dir in $ac_aux_dir_candidates
  2558. do
  2559. IFS=$as_save_IFS
  2560. case $as_dir in #(((
  2561. '') as_dir=./ ;;
  2562. */) ;;
  2563. *) as_dir=$as_dir/ ;;
  2564. esac
  2565. as_found=:
  2566. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2567. ac_aux_dir_found=yes
  2568. ac_install_sh=
  2569. for ac_aux in $ac_aux_files
  2570. do
  2571. # As a special case, if "install-sh" is required, that requirement
  2572. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2573. # and $ac_install_sh is set appropriately for whichever one is found.
  2574. if test x"$ac_aux" = x"install-sh"
  2575. then
  2576. if test -f "${as_dir}install-sh"; then
  2577. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2578. ac_install_sh="${as_dir}install-sh -c"
  2579. elif test -f "${as_dir}install.sh"; then
  2580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2581. ac_install_sh="${as_dir}install.sh -c"
  2582. elif test -f "${as_dir}shtool"; then
  2583. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2584. ac_install_sh="${as_dir}shtool install -c"
  2585. else
  2586. ac_aux_dir_found=no
  2587. if $ac_first_candidate; then
  2588. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2589. else
  2590. break
  2591. fi
  2592. fi
  2593. else
  2594. if test -f "${as_dir}${ac_aux}"; then
  2595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2596. else
  2597. ac_aux_dir_found=no
  2598. if $ac_first_candidate; then
  2599. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2600. else
  2601. break
  2602. fi
  2603. fi
  2604. fi
  2605. done
  2606. if test "$ac_aux_dir_found" = yes; then
  2607. ac_aux_dir="$as_dir"
  2608. break
  2609. fi
  2610. ac_first_candidate=false
  2611. as_found=false
  2612. done
  2613. IFS=$as_save_IFS
  2614. if $as_found
  2615. then :
  2616. else $as_nop
  2617. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2618. fi
  2619. # These three variables are undocumented and unsupported,
  2620. # and are intended to be withdrawn in a future Autoconf release.
  2621. # They can cause serious problems if a builder's source tree is in a directory
  2622. # whose full name contains unusual characters.
  2623. if test -f "${ac_aux_dir}config.guess"; then
  2624. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2625. fi
  2626. if test -f "${ac_aux_dir}config.sub"; then
  2627. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2628. fi
  2629. if test -f "$ac_aux_dir/configure"; then
  2630. ac_configure="$SHELL ${ac_aux_dir}configure"
  2631. fi
  2632. # Check that the precious variables saved in the cache have kept the same
  2633. # value.
  2634. ac_cache_corrupted=false
  2635. for ac_var in $ac_precious_vars; do
  2636. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2637. eval ac_new_set=\$ac_env_${ac_var}_set
  2638. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2639. eval ac_new_val=\$ac_env_${ac_var}_value
  2640. case $ac_old_set,$ac_new_set in
  2641. set,)
  2642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2643. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2644. ac_cache_corrupted=: ;;
  2645. ,set)
  2646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2647. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2648. ac_cache_corrupted=: ;;
  2649. ,);;
  2650. *)
  2651. if test "x$ac_old_val" != "x$ac_new_val"; then
  2652. # differences in whitespace do not lead to failure.
  2653. ac_old_val_w=`echo x $ac_old_val`
  2654. ac_new_val_w=`echo x $ac_new_val`
  2655. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2657. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2658. ac_cache_corrupted=:
  2659. else
  2660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2661. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2662. eval $ac_var=\$ac_old_val
  2663. fi
  2664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2665. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2667. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2668. fi;;
  2669. esac
  2670. # Pass precious variables to config.status.
  2671. if test "$ac_new_set" = set; then
  2672. case $ac_new_val in
  2673. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2674. *) ac_arg=$ac_var=$ac_new_val ;;
  2675. esac
  2676. case " $ac_configure_args " in
  2677. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2678. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2679. esac
  2680. fi
  2681. done
  2682. if $ac_cache_corrupted; then
  2683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2684. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2686. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2687. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2688. and start over" "$LINENO" 5
  2689. fi
  2690. ## -------------------- ##
  2691. ## Main body of script. ##
  2692. ## -------------------- ##
  2693. ac_ext=c
  2694. ac_cpp='$CPP $CPPFLAGS'
  2695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2698. # Specify directory where m4 macros may be found.
  2699. #
  2700. # Libtool library revision control info
  2701. #
  2702. LIBRARY_CURRENT=2
  2703. LIBRARY_REVISION=16
  2704. LIBRARY_AGE=0
  2705. # Obtain system type by running config.guess
  2706. # Make sure we can run config.sub.
  2707. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2708. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2710. printf %s "checking build system type... " >&6; }
  2711. if test ${ac_cv_build+y}
  2712. then :
  2713. printf %s "(cached) " >&6
  2714. else $as_nop
  2715. ac_build_alias=$build_alias
  2716. test "x$ac_build_alias" = x &&
  2717. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2718. test "x$ac_build_alias" = x &&
  2719. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2720. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2721. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2722. fi
  2723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2724. printf "%s\n" "$ac_cv_build" >&6; }
  2725. case $ac_cv_build in
  2726. *-*-*) ;;
  2727. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2728. esac
  2729. build=$ac_cv_build
  2730. ac_save_IFS=$IFS; IFS='-'
  2731. set x $ac_cv_build
  2732. shift
  2733. build_cpu=$1
  2734. build_vendor=$2
  2735. shift; shift
  2736. # Remember, the first character of IFS is used to create $*,
  2737. # except with old shells:
  2738. build_os=$*
  2739. IFS=$ac_save_IFS
  2740. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2742. printf %s "checking host system type... " >&6; }
  2743. if test ${ac_cv_host+y}
  2744. then :
  2745. printf %s "(cached) " >&6
  2746. else $as_nop
  2747. if test "x$host_alias" = x; then
  2748. ac_cv_host=$ac_cv_build
  2749. else
  2750. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2751. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2752. fi
  2753. fi
  2754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2755. printf "%s\n" "$ac_cv_host" >&6; }
  2756. case $ac_cv_host in
  2757. *-*-*) ;;
  2758. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2759. esac
  2760. host=$ac_cv_host
  2761. ac_save_IFS=$IFS; IFS='-'
  2762. set x $ac_cv_host
  2763. shift
  2764. host_cpu=$1
  2765. host_vendor=$2
  2766. shift; shift
  2767. # Remember, the first character of IFS is used to create $*,
  2768. # except with old shells:
  2769. host_os=$*
  2770. IFS=$ac_save_IFS
  2771. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2772. am__api_version='1.15'
  2773. # Find a good install program. We prefer a C program (faster),
  2774. # so one script is as good as another. But avoid the broken or
  2775. # incompatible versions:
  2776. # SysV /etc/install, /usr/sbin/install
  2777. # SunOS /usr/etc/install
  2778. # IRIX /sbin/install
  2779. # AIX /bin/install
  2780. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2781. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2782. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2783. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2784. # OS/2's system install, which has a completely different semantic
  2785. # ./install, which can be erroneously created by make from ./install.sh.
  2786. # Reject install programs that cannot install multiple files.
  2787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2788. printf %s "checking for a BSD-compatible install... " >&6; }
  2789. if test -z "$INSTALL"; then
  2790. if test ${ac_cv_path_install+y}
  2791. then :
  2792. printf %s "(cached) " >&6
  2793. else $as_nop
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. case $as_dir in #(((
  2799. '') as_dir=./ ;;
  2800. */) ;;
  2801. *) as_dir=$as_dir/ ;;
  2802. esac
  2803. # Account for fact that we put trailing slashes in our PATH walk.
  2804. case $as_dir in #((
  2805. ./ | /[cC]/* | \
  2806. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2807. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2808. /usr/ucb/* ) ;;
  2809. *)
  2810. # OSF1 and SCO ODT 3.0 have their own names for install.
  2811. # Don't use installbsd from OSF since it installs stuff as root
  2812. # by default.
  2813. for ac_prog in ginstall scoinst install; do
  2814. for ac_exec_ext in '' $ac_executable_extensions; do
  2815. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2816. if test $ac_prog = install &&
  2817. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2818. # AIX install. It has an incompatible calling convention.
  2819. :
  2820. elif test $ac_prog = install &&
  2821. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2822. # program-specific install script used by HP pwplus--don't use.
  2823. :
  2824. else
  2825. rm -rf conftest.one conftest.two conftest.dir
  2826. echo one > conftest.one
  2827. echo two > conftest.two
  2828. mkdir conftest.dir
  2829. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2830. test -s conftest.one && test -s conftest.two &&
  2831. test -s conftest.dir/conftest.one &&
  2832. test -s conftest.dir/conftest.two
  2833. then
  2834. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2835. break 3
  2836. fi
  2837. fi
  2838. fi
  2839. done
  2840. done
  2841. ;;
  2842. esac
  2843. done
  2844. IFS=$as_save_IFS
  2845. rm -rf conftest.one conftest.two conftest.dir
  2846. fi
  2847. if test ${ac_cv_path_install+y}; then
  2848. INSTALL=$ac_cv_path_install
  2849. else
  2850. # As a last resort, use the slow shell script. Don't cache a
  2851. # value for INSTALL within a source directory, because that will
  2852. # break other packages using the cache if that directory is
  2853. # removed, or if the value is a relative name.
  2854. INSTALL=$ac_install_sh
  2855. fi
  2856. fi
  2857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2858. printf "%s\n" "$INSTALL" >&6; }
  2859. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2860. # It thinks the first close brace ends the variable substitution.
  2861. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2862. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2863. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2865. printf %s "checking whether build environment is sane... " >&6; }
  2866. # Reject unsafe characters in $srcdir or the absolute working directory
  2867. # name. Accept space and tab only in the latter.
  2868. am_lf='
  2869. '
  2870. case `pwd` in
  2871. *[\\\"\#\$\&\'\`$am_lf]*)
  2872. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2873. esac
  2874. case $srcdir in
  2875. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2876. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2877. esac
  2878. # Do 'set' in a subshell so we don't clobber the current shell's
  2879. # arguments. Must try -L first in case configure is actually a
  2880. # symlink; some systems play weird games with the mod time of symlinks
  2881. # (eg FreeBSD returns the mod time of the symlink's containing
  2882. # directory).
  2883. if (
  2884. am_has_slept=no
  2885. for am_try in 1 2; do
  2886. echo "timestamp, slept: $am_has_slept" > conftest.file
  2887. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2888. if test "$*" = "X"; then
  2889. # -L didn't work.
  2890. set X `ls -t "$srcdir/configure" conftest.file`
  2891. fi
  2892. if test "$*" != "X $srcdir/configure conftest.file" \
  2893. && test "$*" != "X conftest.file $srcdir/configure"; then
  2894. # If neither matched, then we have a broken ls. This can happen
  2895. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2896. # broken ls alias from the environment. This has actually
  2897. # happened. Such a system could not be considered "sane".
  2898. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2899. alias in your environment" "$LINENO" 5
  2900. fi
  2901. if test "$2" = conftest.file || test $am_try -eq 2; then
  2902. break
  2903. fi
  2904. # Just in case.
  2905. sleep 1
  2906. am_has_slept=yes
  2907. done
  2908. test "$2" = conftest.file
  2909. )
  2910. then
  2911. # Ok.
  2912. :
  2913. else
  2914. as_fn_error $? "newly created file is older than distributed files!
  2915. Check your system clock" "$LINENO" 5
  2916. fi
  2917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2918. printf "%s\n" "yes" >&6; }
  2919. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2920. # generated files are strictly newer.
  2921. am_sleep_pid=
  2922. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2923. ( sleep 1 ) &
  2924. am_sleep_pid=$!
  2925. fi
  2926. rm -f conftest.file
  2927. test "$program_prefix" != NONE &&
  2928. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2929. # Use a double $ so make ignores it.
  2930. test "$program_suffix" != NONE &&
  2931. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2932. # Double any \ or $.
  2933. # By default was `s,x,x', remove it if useless.
  2934. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2935. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2936. # Expand $ac_aux_dir to an absolute path.
  2937. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2938. if test x"${MISSING+set}" != xset; then
  2939. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2940. fi
  2941. # Use eval to expand $SHELL
  2942. if eval "$MISSING --is-lightweight"; then
  2943. am_missing_run="$MISSING "
  2944. else
  2945. am_missing_run=
  2946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2947. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2948. fi
  2949. if test x"${install_sh+set}" != xset; then
  2950. case $am_aux_dir in
  2951. *\ * | *\ *)
  2952. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2953. *)
  2954. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2955. esac
  2956. fi
  2957. # Installed binaries are usually stripped using 'strip' when the user
  2958. # run "make install-strip". However 'strip' might not be the right
  2959. # tool to use in cross-compilation environments, therefore Automake
  2960. # will honor the 'STRIP' environment variable to overrule this program.
  2961. if test "$cross_compiling" != no; then
  2962. if test -n "$ac_tool_prefix"; then
  2963. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2964. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2966. printf %s "checking for $ac_word... " >&6; }
  2967. if test ${ac_cv_prog_STRIP+y}
  2968. then :
  2969. printf %s "(cached) " >&6
  2970. else $as_nop
  2971. if test -n "$STRIP"; then
  2972. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2973. else
  2974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2975. for as_dir in $PATH
  2976. do
  2977. IFS=$as_save_IFS
  2978. case $as_dir in #(((
  2979. '') as_dir=./ ;;
  2980. */) ;;
  2981. *) as_dir=$as_dir/ ;;
  2982. esac
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2985. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. IFS=$as_save_IFS
  2992. fi
  2993. fi
  2994. STRIP=$ac_cv_prog_STRIP
  2995. if test -n "$STRIP"; then
  2996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2997. printf "%s\n" "$STRIP" >&6; }
  2998. else
  2999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3000. printf "%s\n" "no" >&6; }
  3001. fi
  3002. fi
  3003. if test -z "$ac_cv_prog_STRIP"; then
  3004. ac_ct_STRIP=$STRIP
  3005. # Extract the first word of "strip", so it can be a program name with args.
  3006. set dummy strip; ac_word=$2
  3007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3008. printf %s "checking for $ac_word... " >&6; }
  3009. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3010. then :
  3011. printf %s "(cached) " >&6
  3012. else $as_nop
  3013. if test -n "$ac_ct_STRIP"; then
  3014. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3015. else
  3016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3017. for as_dir in $PATH
  3018. do
  3019. IFS=$as_save_IFS
  3020. case $as_dir in #(((
  3021. '') as_dir=./ ;;
  3022. */) ;;
  3023. *) as_dir=$as_dir/ ;;
  3024. esac
  3025. for ac_exec_ext in '' $ac_executable_extensions; do
  3026. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3027. ac_cv_prog_ac_ct_STRIP="strip"
  3028. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3029. break 2
  3030. fi
  3031. done
  3032. done
  3033. IFS=$as_save_IFS
  3034. fi
  3035. fi
  3036. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3037. if test -n "$ac_ct_STRIP"; then
  3038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3039. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3040. else
  3041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3042. printf "%s\n" "no" >&6; }
  3043. fi
  3044. if test "x$ac_ct_STRIP" = x; then
  3045. STRIP=":"
  3046. else
  3047. case $cross_compiling:$ac_tool_warned in
  3048. yes:)
  3049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3050. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3051. ac_tool_warned=yes ;;
  3052. esac
  3053. STRIP=$ac_ct_STRIP
  3054. fi
  3055. else
  3056. STRIP="$ac_cv_prog_STRIP"
  3057. fi
  3058. fi
  3059. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3061. printf %s "checking for a race-free mkdir -p... " >&6; }
  3062. if test -z "$MKDIR_P"; then
  3063. if test ${ac_cv_path_mkdir+y}
  3064. then :
  3065. printf %s "(cached) " >&6
  3066. else $as_nop
  3067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3068. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3069. do
  3070. IFS=$as_save_IFS
  3071. case $as_dir in #(((
  3072. '') as_dir=./ ;;
  3073. */) ;;
  3074. *) as_dir=$as_dir/ ;;
  3075. esac
  3076. for ac_prog in mkdir gmkdir; do
  3077. for ac_exec_ext in '' $ac_executable_extensions; do
  3078. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3079. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3080. 'mkdir ('*'coreutils) '* | \
  3081. 'BusyBox '* | \
  3082. 'mkdir (fileutils) '4.1*)
  3083. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3084. break 3;;
  3085. esac
  3086. done
  3087. done
  3088. done
  3089. IFS=$as_save_IFS
  3090. fi
  3091. test -d ./--version && rmdir ./--version
  3092. if test ${ac_cv_path_mkdir+y}; then
  3093. MKDIR_P="$ac_cv_path_mkdir -p"
  3094. else
  3095. # As a last resort, use the slow shell script. Don't cache a
  3096. # value for MKDIR_P within a source directory, because that will
  3097. # break other packages using the cache if that directory is
  3098. # removed, or if the value is a relative name.
  3099. MKDIR_P="$ac_install_sh -d"
  3100. fi
  3101. fi
  3102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3103. printf "%s\n" "$MKDIR_P" >&6; }
  3104. for ac_prog in gawk mawk nawk awk
  3105. do
  3106. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3107. set dummy $ac_prog; ac_word=$2
  3108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. printf %s "checking for $ac_word... " >&6; }
  3110. if test ${ac_cv_prog_AWK+y}
  3111. then :
  3112. printf %s "(cached) " >&6
  3113. else $as_nop
  3114. if test -n "$AWK"; then
  3115. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3116. else
  3117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3118. for as_dir in $PATH
  3119. do
  3120. IFS=$as_save_IFS
  3121. case $as_dir in #(((
  3122. '') as_dir=./ ;;
  3123. */) ;;
  3124. *) as_dir=$as_dir/ ;;
  3125. esac
  3126. for ac_exec_ext in '' $ac_executable_extensions; do
  3127. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3128. ac_cv_prog_AWK="$ac_prog"
  3129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3130. break 2
  3131. fi
  3132. done
  3133. done
  3134. IFS=$as_save_IFS
  3135. fi
  3136. fi
  3137. AWK=$ac_cv_prog_AWK
  3138. if test -n "$AWK"; then
  3139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3140. printf "%s\n" "$AWK" >&6; }
  3141. else
  3142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3143. printf "%s\n" "no" >&6; }
  3144. fi
  3145. test -n "$AWK" && break
  3146. done
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3148. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3149. set x ${MAKE-make}
  3150. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3151. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3152. then :
  3153. printf %s "(cached) " >&6
  3154. else $as_nop
  3155. cat >conftest.make <<\_ACEOF
  3156. SHELL = /bin/sh
  3157. all:
  3158. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3159. _ACEOF
  3160. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3161. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3162. *@@@%%%=?*=@@@%%%*)
  3163. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3164. *)
  3165. eval ac_cv_prog_make_${ac_make}_set=no;;
  3166. esac
  3167. rm -f conftest.make
  3168. fi
  3169. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3171. printf "%s\n" "yes" >&6; }
  3172. SET_MAKE=
  3173. else
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3175. printf "%s\n" "no" >&6; }
  3176. SET_MAKE="MAKE=${MAKE-make}"
  3177. fi
  3178. rm -rf .tst 2>/dev/null
  3179. mkdir .tst 2>/dev/null
  3180. if test -d .tst; then
  3181. am__leading_dot=.
  3182. else
  3183. am__leading_dot=_
  3184. fi
  3185. rmdir .tst 2>/dev/null
  3186. # Check whether --enable-silent-rules was given.
  3187. if test ${enable_silent_rules+y}
  3188. then :
  3189. enableval=$enable_silent_rules;
  3190. fi
  3191. case $enable_silent_rules in # (((
  3192. yes) AM_DEFAULT_VERBOSITY=0;;
  3193. no) AM_DEFAULT_VERBOSITY=1;;
  3194. *) AM_DEFAULT_VERBOSITY=1;;
  3195. esac
  3196. am_make=${MAKE-make}
  3197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3198. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3199. if test ${am_cv_make_support_nested_variables+y}
  3200. then :
  3201. printf %s "(cached) " >&6
  3202. else $as_nop
  3203. if printf "%s\n" 'TRUE=$(BAR$(V))
  3204. BAR0=false
  3205. BAR1=true
  3206. V=1
  3207. am__doit:
  3208. @$(TRUE)
  3209. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3210. am_cv_make_support_nested_variables=yes
  3211. else
  3212. am_cv_make_support_nested_variables=no
  3213. fi
  3214. fi
  3215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3216. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3217. if test $am_cv_make_support_nested_variables = yes; then
  3218. AM_V='$(V)'
  3219. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3220. else
  3221. AM_V=$AM_DEFAULT_VERBOSITY
  3222. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3223. fi
  3224. AM_BACKSLASH='\'
  3225. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3226. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3227. # is not polluted with repeated "-I."
  3228. am__isrc=' -I$(srcdir)'
  3229. # test to see if srcdir already configured
  3230. if test -f $srcdir/config.status; then
  3231. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3232. fi
  3233. fi
  3234. # test whether we have cygpath
  3235. if test -z "$CYGPATH_W"; then
  3236. if (cygpath --version) >/dev/null 2>/dev/null; then
  3237. CYGPATH_W='cygpath -w'
  3238. else
  3239. CYGPATH_W=echo
  3240. fi
  3241. fi
  3242. # Define the identity of the package.
  3243. PACKAGE='lcms2mt'
  3244. VERSION='2.16'
  3245. # Some tools Automake needs.
  3246. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3247. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3248. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3249. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3250. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3251. # For better backward compatibility. To be removed once Automake 1.9.x
  3252. # dies out for good. For more background, see:
  3253. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3254. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3255. mkdir_p='$(MKDIR_P)'
  3256. # We need awk for the "check" target (and possibly the TAP driver). The
  3257. # system "awk" is bad on some platforms.
  3258. # Always define AMTAR for backward compatibility. Yes, it's still used
  3259. # in the wild :-( We should find a proper way to deprecate it ...
  3260. AMTAR='$${TAR-tar}'
  3261. # We'll loop over all known methods to create a tar archive until one works.
  3262. _am_tools='gnutar plaintar pax cpio none'
  3263. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3264. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3265. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3266. # and bug#13588).
  3267. am_max_uid=2097151 # 2^21 - 1
  3268. am_max_gid=$am_max_uid
  3269. # The $UID and $GID variables are not portable, so we need to resort
  3270. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3271. # below are definitely unexpected, so allow the users to see them
  3272. # (that is, avoid stderr redirection).
  3273. am_uid=`id -u || echo unknown`
  3274. am_gid=`id -g || echo unknown`
  3275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3276. printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3277. if test $am_uid -le $am_max_uid; then
  3278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3279. printf "%s\n" "yes" >&6; }
  3280. else
  3281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3282. printf "%s\n" "no" >&6; }
  3283. _am_tools=none
  3284. fi
  3285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3286. printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3287. if test $am_gid -le $am_max_gid; then
  3288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3289. printf "%s\n" "yes" >&6; }
  3290. else
  3291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3292. printf "%s\n" "no" >&6; }
  3293. _am_tools=none
  3294. fi
  3295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3296. printf %s "checking how to create a ustar tar archive... " >&6; }
  3297. # Go ahead even if we have the value already cached. We do so because we
  3298. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3299. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3300. for _am_tool in $_am_tools; do
  3301. case $_am_tool in
  3302. gnutar)
  3303. for _am_tar in tar gnutar gtar; do
  3304. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3305. ($_am_tar --version) >&5 2>&5
  3306. ac_status=$?
  3307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3308. (exit $ac_status); } && break
  3309. done
  3310. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3311. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3312. am__untar="$_am_tar -xf -"
  3313. ;;
  3314. plaintar)
  3315. # Must skip GNU tar: if it does not support --format= it doesn't create
  3316. # ustar tarball either.
  3317. (tar --version) >/dev/null 2>&1 && continue
  3318. am__tar='tar chf - "$$tardir"'
  3319. am__tar_='tar chf - "$tardir"'
  3320. am__untar='tar xf -'
  3321. ;;
  3322. pax)
  3323. am__tar='pax -L -x ustar -w "$$tardir"'
  3324. am__tar_='pax -L -x ustar -w "$tardir"'
  3325. am__untar='pax -r'
  3326. ;;
  3327. cpio)
  3328. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3329. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3330. am__untar='cpio -i -H ustar -d'
  3331. ;;
  3332. none)
  3333. am__tar=false
  3334. am__tar_=false
  3335. am__untar=false
  3336. ;;
  3337. esac
  3338. # If the value was cached, stop now. We just wanted to have am__tar
  3339. # and am__untar set.
  3340. test -n "${am_cv_prog_tar_ustar}" && break
  3341. # tar/untar a dummy directory, and stop if the command works.
  3342. rm -rf conftest.dir
  3343. mkdir conftest.dir
  3344. echo GrepMe > conftest.dir/file
  3345. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3346. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3347. ac_status=$?
  3348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3349. (exit $ac_status); }
  3350. rm -rf conftest.dir
  3351. if test -s conftest.tar; then
  3352. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3353. ($am__untar <conftest.tar) >&5 2>&5
  3354. ac_status=$?
  3355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3356. (exit $ac_status); }
  3357. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3358. (cat conftest.dir/file) >&5 2>&5
  3359. ac_status=$?
  3360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3361. (exit $ac_status); }
  3362. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3363. fi
  3364. done
  3365. rm -rf conftest.dir
  3366. if test ${am_cv_prog_tar_ustar+y}
  3367. then :
  3368. printf %s "(cached) " >&6
  3369. else $as_nop
  3370. am_cv_prog_tar_ustar=$_am_tool
  3371. fi
  3372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3373. printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
  3374. # Variables for tags utilities; see am/tags.am
  3375. if test -z "$CTAGS"; then
  3376. CTAGS=ctags
  3377. fi
  3378. if test -z "$ETAGS"; then
  3379. ETAGS=etags
  3380. fi
  3381. if test -z "$CSCOPE"; then
  3382. CSCOPE=cscope
  3383. fi
  3384. # POSIX will say in a future version that running "rm -f" with no argument
  3385. # is OK; and we want to be able to make that assumption in our Makefile
  3386. # recipes. So use an aggressive probe to check that the usage we want is
  3387. # actually supported "in the wild" to an acceptable degree.
  3388. # See automake bug#10828.
  3389. # To make any issue more visible, cause the running configure to be aborted
  3390. # by default if the 'rm' program in use doesn't match our expectations; the
  3391. # user can still override this though.
  3392. if rm -f && rm -fr && rm -rf; then : OK; else
  3393. cat >&2 <<'END'
  3394. Oops!
  3395. Your 'rm' program seems unable to run without file operands specified
  3396. on the command line, even when the '-f' option is present. This is contrary
  3397. to the behaviour of most rm programs out there, and not conforming with
  3398. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3399. Please tell bug-automake@gnu.org about your system, including the value
  3400. of your $PATH and any error possibly output before this message. This
  3401. can help us improve future automake versions.
  3402. END
  3403. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3404. echo 'Configuration will proceed anyway, since you have set the' >&2
  3405. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3406. echo >&2
  3407. else
  3408. cat >&2 <<'END'
  3409. Aborting the configuration process, to ensure you take notice of the issue.
  3410. You can download and install GNU coreutils to get an 'rm' implementation
  3411. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3412. If you want to complete the configuration process using your problematic
  3413. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3414. to "yes", and re-run configure.
  3415. END
  3416. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3417. fi
  3418. fi
  3419. # Check for programs
  3420. ac_ext=c
  3421. ac_cpp='$CPP $CPPFLAGS'
  3422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3425. if test -n "$ac_tool_prefix"; then
  3426. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3427. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. printf %s "checking for $ac_word... " >&6; }
  3430. if test ${ac_cv_prog_CC+y}
  3431. then :
  3432. printf %s "(cached) " >&6
  3433. else $as_nop
  3434. if test -n "$CC"; then
  3435. ac_cv_prog_CC="$CC" # Let the user override the test.
  3436. else
  3437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3438. for as_dir in $PATH
  3439. do
  3440. IFS=$as_save_IFS
  3441. case $as_dir in #(((
  3442. '') as_dir=./ ;;
  3443. */) ;;
  3444. *) as_dir=$as_dir/ ;;
  3445. esac
  3446. for ac_exec_ext in '' $ac_executable_extensions; do
  3447. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3448. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3450. break 2
  3451. fi
  3452. done
  3453. done
  3454. IFS=$as_save_IFS
  3455. fi
  3456. fi
  3457. CC=$ac_cv_prog_CC
  3458. if test -n "$CC"; then
  3459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3460. printf "%s\n" "$CC" >&6; }
  3461. else
  3462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3463. printf "%s\n" "no" >&6; }
  3464. fi
  3465. fi
  3466. if test -z "$ac_cv_prog_CC"; then
  3467. ac_ct_CC=$CC
  3468. # Extract the first word of "gcc", so it can be a program name with args.
  3469. set dummy gcc; ac_word=$2
  3470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3471. printf %s "checking for $ac_word... " >&6; }
  3472. if test ${ac_cv_prog_ac_ct_CC+y}
  3473. then :
  3474. printf %s "(cached) " >&6
  3475. else $as_nop
  3476. if test -n "$ac_ct_CC"; then
  3477. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3478. else
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. case $as_dir in #(((
  3484. '') as_dir=./ ;;
  3485. */) ;;
  3486. *) as_dir=$as_dir/ ;;
  3487. esac
  3488. for ac_exec_ext in '' $ac_executable_extensions; do
  3489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3490. ac_cv_prog_ac_ct_CC="gcc"
  3491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3492. break 2
  3493. fi
  3494. done
  3495. done
  3496. IFS=$as_save_IFS
  3497. fi
  3498. fi
  3499. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3500. if test -n "$ac_ct_CC"; then
  3501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3502. printf "%s\n" "$ac_ct_CC" >&6; }
  3503. else
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3505. printf "%s\n" "no" >&6; }
  3506. fi
  3507. if test "x$ac_ct_CC" = x; then
  3508. CC=""
  3509. else
  3510. case $cross_compiling:$ac_tool_warned in
  3511. yes:)
  3512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3513. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3514. ac_tool_warned=yes ;;
  3515. esac
  3516. CC=$ac_ct_CC
  3517. fi
  3518. else
  3519. CC="$ac_cv_prog_CC"
  3520. fi
  3521. if test -z "$CC"; then
  3522. if test -n "$ac_tool_prefix"; then
  3523. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3524. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3526. printf %s "checking for $ac_word... " >&6; }
  3527. if test ${ac_cv_prog_CC+y}
  3528. then :
  3529. printf %s "(cached) " >&6
  3530. else $as_nop
  3531. if test -n "$CC"; then
  3532. ac_cv_prog_CC="$CC" # Let the user override the test.
  3533. else
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. for as_dir in $PATH
  3536. do
  3537. IFS=$as_save_IFS
  3538. case $as_dir in #(((
  3539. '') as_dir=./ ;;
  3540. */) ;;
  3541. *) as_dir=$as_dir/ ;;
  3542. esac
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3545. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3547. break 2
  3548. fi
  3549. done
  3550. done
  3551. IFS=$as_save_IFS
  3552. fi
  3553. fi
  3554. CC=$ac_cv_prog_CC
  3555. if test -n "$CC"; then
  3556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3557. printf "%s\n" "$CC" >&6; }
  3558. else
  3559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3560. printf "%s\n" "no" >&6; }
  3561. fi
  3562. fi
  3563. fi
  3564. if test -z "$CC"; then
  3565. # Extract the first word of "cc", so it can be a program name with args.
  3566. set dummy cc; ac_word=$2
  3567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3568. printf %s "checking for $ac_word... " >&6; }
  3569. if test ${ac_cv_prog_CC+y}
  3570. then :
  3571. printf %s "(cached) " >&6
  3572. else $as_nop
  3573. if test -n "$CC"; then
  3574. ac_cv_prog_CC="$CC" # Let the user override the test.
  3575. else
  3576. ac_prog_rejected=no
  3577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3578. for as_dir in $PATH
  3579. do
  3580. IFS=$as_save_IFS
  3581. case $as_dir in #(((
  3582. '') as_dir=./ ;;
  3583. */) ;;
  3584. *) as_dir=$as_dir/ ;;
  3585. esac
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3588. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3589. ac_prog_rejected=yes
  3590. continue
  3591. fi
  3592. ac_cv_prog_CC="cc"
  3593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. if test $ac_prog_rejected = yes; then
  3600. # We found a bogon in the path, so make sure we never use it.
  3601. set dummy $ac_cv_prog_CC
  3602. shift
  3603. if test $# != 0; then
  3604. # We chose a different compiler from the bogus one.
  3605. # However, it has the same basename, so the bogon will be chosen
  3606. # first if we set CC to just the basename; use the full file name.
  3607. shift
  3608. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3609. fi
  3610. fi
  3611. fi
  3612. fi
  3613. CC=$ac_cv_prog_CC
  3614. if test -n "$CC"; then
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3616. printf "%s\n" "$CC" >&6; }
  3617. else
  3618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3619. printf "%s\n" "no" >&6; }
  3620. fi
  3621. fi
  3622. if test -z "$CC"; then
  3623. if test -n "$ac_tool_prefix"; then
  3624. for ac_prog in cl.exe
  3625. do
  3626. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3627. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3629. printf %s "checking for $ac_word... " >&6; }
  3630. if test ${ac_cv_prog_CC+y}
  3631. then :
  3632. printf %s "(cached) " >&6
  3633. else $as_nop
  3634. if test -n "$CC"; then
  3635. ac_cv_prog_CC="$CC" # Let the user override the test.
  3636. else
  3637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3638. for as_dir in $PATH
  3639. do
  3640. IFS=$as_save_IFS
  3641. case $as_dir in #(((
  3642. '') as_dir=./ ;;
  3643. */) ;;
  3644. *) as_dir=$as_dir/ ;;
  3645. esac
  3646. for ac_exec_ext in '' $ac_executable_extensions; do
  3647. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3648. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3650. break 2
  3651. fi
  3652. done
  3653. done
  3654. IFS=$as_save_IFS
  3655. fi
  3656. fi
  3657. CC=$ac_cv_prog_CC
  3658. if test -n "$CC"; then
  3659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3660. printf "%s\n" "$CC" >&6; }
  3661. else
  3662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. printf "%s\n" "no" >&6; }
  3664. fi
  3665. test -n "$CC" && break
  3666. done
  3667. fi
  3668. if test -z "$CC"; then
  3669. ac_ct_CC=$CC
  3670. for ac_prog in cl.exe
  3671. do
  3672. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3673. set dummy $ac_prog; ac_word=$2
  3674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3675. printf %s "checking for $ac_word... " >&6; }
  3676. if test ${ac_cv_prog_ac_ct_CC+y}
  3677. then :
  3678. printf %s "(cached) " >&6
  3679. else $as_nop
  3680. if test -n "$ac_ct_CC"; then
  3681. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3682. else
  3683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3684. for as_dir in $PATH
  3685. do
  3686. IFS=$as_save_IFS
  3687. case $as_dir in #(((
  3688. '') as_dir=./ ;;
  3689. */) ;;
  3690. *) as_dir=$as_dir/ ;;
  3691. esac
  3692. for ac_exec_ext in '' $ac_executable_extensions; do
  3693. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3694. ac_cv_prog_ac_ct_CC="$ac_prog"
  3695. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3696. break 2
  3697. fi
  3698. done
  3699. done
  3700. IFS=$as_save_IFS
  3701. fi
  3702. fi
  3703. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3704. if test -n "$ac_ct_CC"; then
  3705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3706. printf "%s\n" "$ac_ct_CC" >&6; }
  3707. else
  3708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3709. printf "%s\n" "no" >&6; }
  3710. fi
  3711. test -n "$ac_ct_CC" && break
  3712. done
  3713. if test "x$ac_ct_CC" = x; then
  3714. CC=""
  3715. else
  3716. case $cross_compiling:$ac_tool_warned in
  3717. yes:)
  3718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3719. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3720. ac_tool_warned=yes ;;
  3721. esac
  3722. CC=$ac_ct_CC
  3723. fi
  3724. fi
  3725. fi
  3726. if test -z "$CC"; then
  3727. if test -n "$ac_tool_prefix"; then
  3728. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3729. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3731. printf %s "checking for $ac_word... " >&6; }
  3732. if test ${ac_cv_prog_CC+y}
  3733. then :
  3734. printf %s "(cached) " >&6
  3735. else $as_nop
  3736. if test -n "$CC"; then
  3737. ac_cv_prog_CC="$CC" # Let the user override the test.
  3738. else
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH
  3741. do
  3742. IFS=$as_save_IFS
  3743. case $as_dir in #(((
  3744. '') as_dir=./ ;;
  3745. */) ;;
  3746. *) as_dir=$as_dir/ ;;
  3747. esac
  3748. for ac_exec_ext in '' $ac_executable_extensions; do
  3749. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3750. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3752. break 2
  3753. fi
  3754. done
  3755. done
  3756. IFS=$as_save_IFS
  3757. fi
  3758. fi
  3759. CC=$ac_cv_prog_CC
  3760. if test -n "$CC"; then
  3761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3762. printf "%s\n" "$CC" >&6; }
  3763. else
  3764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3765. printf "%s\n" "no" >&6; }
  3766. fi
  3767. fi
  3768. if test -z "$ac_cv_prog_CC"; then
  3769. ac_ct_CC=$CC
  3770. # Extract the first word of "clang", so it can be a program name with args.
  3771. set dummy clang; ac_word=$2
  3772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3773. printf %s "checking for $ac_word... " >&6; }
  3774. if test ${ac_cv_prog_ac_ct_CC+y}
  3775. then :
  3776. printf %s "(cached) " >&6
  3777. else $as_nop
  3778. if test -n "$ac_ct_CC"; then
  3779. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3780. else
  3781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3782. for as_dir in $PATH
  3783. do
  3784. IFS=$as_save_IFS
  3785. case $as_dir in #(((
  3786. '') as_dir=./ ;;
  3787. */) ;;
  3788. *) as_dir=$as_dir/ ;;
  3789. esac
  3790. for ac_exec_ext in '' $ac_executable_extensions; do
  3791. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3792. ac_cv_prog_ac_ct_CC="clang"
  3793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3794. break 2
  3795. fi
  3796. done
  3797. done
  3798. IFS=$as_save_IFS
  3799. fi
  3800. fi
  3801. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3802. if test -n "$ac_ct_CC"; then
  3803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3804. printf "%s\n" "$ac_ct_CC" >&6; }
  3805. else
  3806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3807. printf "%s\n" "no" >&6; }
  3808. fi
  3809. if test "x$ac_ct_CC" = x; then
  3810. CC=""
  3811. else
  3812. case $cross_compiling:$ac_tool_warned in
  3813. yes:)
  3814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3815. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3816. ac_tool_warned=yes ;;
  3817. esac
  3818. CC=$ac_ct_CC
  3819. fi
  3820. else
  3821. CC="$ac_cv_prog_CC"
  3822. fi
  3823. fi
  3824. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3825. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3826. as_fn_error $? "no acceptable C compiler found in \$PATH
  3827. See \`config.log' for more details" "$LINENO" 5; }
  3828. # Provide some information about the compiler.
  3829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3830. set X $ac_compile
  3831. ac_compiler=$2
  3832. for ac_option in --version -v -V -qversion -version; do
  3833. { { ac_try="$ac_compiler $ac_option >&5"
  3834. case "(($ac_try" in
  3835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3836. *) ac_try_echo=$ac_try;;
  3837. esac
  3838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3839. printf "%s\n" "$ac_try_echo"; } >&5
  3840. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3841. ac_status=$?
  3842. if test -s conftest.err; then
  3843. sed '10a\
  3844. ... rest of stderr output deleted ...
  3845. 10q' conftest.err >conftest.er1
  3846. cat conftest.er1 >&5
  3847. fi
  3848. rm -f conftest.er1 conftest.err
  3849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3850. test $ac_status = 0; }
  3851. done
  3852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3853. /* end confdefs.h. */
  3854. int
  3855. main (void)
  3856. {
  3857. ;
  3858. return 0;
  3859. }
  3860. _ACEOF
  3861. ac_clean_files_save=$ac_clean_files
  3862. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3863. # Try to create an executable without -o first, disregard a.out.
  3864. # It will help us diagnose broken compilers, and finding out an intuition
  3865. # of exeext.
  3866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3867. printf %s "checking whether the C compiler works... " >&6; }
  3868. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3869. # The possible output files:
  3870. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3871. ac_rmfiles=
  3872. for ac_file in $ac_files
  3873. do
  3874. case $ac_file in
  3875. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3876. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3877. esac
  3878. done
  3879. rm -f $ac_rmfiles
  3880. if { { ac_try="$ac_link_default"
  3881. case "(($ac_try" in
  3882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3883. *) ac_try_echo=$ac_try;;
  3884. esac
  3885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3886. printf "%s\n" "$ac_try_echo"; } >&5
  3887. (eval "$ac_link_default") 2>&5
  3888. ac_status=$?
  3889. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3890. test $ac_status = 0; }
  3891. then :
  3892. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3893. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3894. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3895. # so that the user can short-circuit this test for compilers unknown to
  3896. # Autoconf.
  3897. for ac_file in $ac_files ''
  3898. do
  3899. test -f "$ac_file" || continue
  3900. case $ac_file in
  3901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3902. ;;
  3903. [ab].out )
  3904. # We found the default executable, but exeext='' is most
  3905. # certainly right.
  3906. break;;
  3907. *.* )
  3908. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3909. then :; else
  3910. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3911. fi
  3912. # We set ac_cv_exeext here because the later test for it is not
  3913. # safe: cross compilers may not add the suffix if given an `-o'
  3914. # argument, so we may need to know it at that point already.
  3915. # Even if this section looks crufty: it has the advantage of
  3916. # actually working.
  3917. break;;
  3918. * )
  3919. break;;
  3920. esac
  3921. done
  3922. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3923. else $as_nop
  3924. ac_file=''
  3925. fi
  3926. if test -z "$ac_file"
  3927. then :
  3928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3929. printf "%s\n" "no" >&6; }
  3930. printf "%s\n" "$as_me: failed program was:" >&5
  3931. sed 's/^/| /' conftest.$ac_ext >&5
  3932. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3933. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3934. as_fn_error 77 "C compiler cannot create executables
  3935. See \`config.log' for more details" "$LINENO" 5; }
  3936. else $as_nop
  3937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3938. printf "%s\n" "yes" >&6; }
  3939. fi
  3940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3941. printf %s "checking for C compiler default output file name... " >&6; }
  3942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3943. printf "%s\n" "$ac_file" >&6; }
  3944. ac_exeext=$ac_cv_exeext
  3945. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3946. ac_clean_files=$ac_clean_files_save
  3947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3948. printf %s "checking for suffix of executables... " >&6; }
  3949. if { { ac_try="$ac_link"
  3950. case "(($ac_try" in
  3951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3952. *) ac_try_echo=$ac_try;;
  3953. esac
  3954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3955. printf "%s\n" "$ac_try_echo"; } >&5
  3956. (eval "$ac_link") 2>&5
  3957. ac_status=$?
  3958. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3959. test $ac_status = 0; }
  3960. then :
  3961. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3962. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3963. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3964. # `rm'.
  3965. for ac_file in conftest.exe conftest conftest.*; do
  3966. test -f "$ac_file" || continue
  3967. case $ac_file in
  3968. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3969. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3970. break;;
  3971. * ) break;;
  3972. esac
  3973. done
  3974. else $as_nop
  3975. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3976. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3977. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3978. See \`config.log' for more details" "$LINENO" 5; }
  3979. fi
  3980. rm -f conftest conftest$ac_cv_exeext
  3981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3982. printf "%s\n" "$ac_cv_exeext" >&6; }
  3983. rm -f conftest.$ac_ext
  3984. EXEEXT=$ac_cv_exeext
  3985. ac_exeext=$EXEEXT
  3986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3987. /* end confdefs.h. */
  3988. #include <stdio.h>
  3989. int
  3990. main (void)
  3991. {
  3992. FILE *f = fopen ("conftest.out", "w");
  3993. return ferror (f) || fclose (f) != 0;
  3994. ;
  3995. return 0;
  3996. }
  3997. _ACEOF
  3998. ac_clean_files="$ac_clean_files conftest.out"
  3999. # Check that the compiler produces executables we can run. If not, either
  4000. # the compiler is broken, or we cross compile.
  4001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4002. printf %s "checking whether we are cross compiling... " >&6; }
  4003. if test "$cross_compiling" != yes; then
  4004. { { ac_try="$ac_link"
  4005. case "(($ac_try" in
  4006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4007. *) ac_try_echo=$ac_try;;
  4008. esac
  4009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4010. printf "%s\n" "$ac_try_echo"; } >&5
  4011. (eval "$ac_link") 2>&5
  4012. ac_status=$?
  4013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4014. test $ac_status = 0; }
  4015. if { ac_try='./conftest$ac_cv_exeext'
  4016. { { case "(($ac_try" in
  4017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4018. *) ac_try_echo=$ac_try;;
  4019. esac
  4020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4021. printf "%s\n" "$ac_try_echo"; } >&5
  4022. (eval "$ac_try") 2>&5
  4023. ac_status=$?
  4024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4025. test $ac_status = 0; }; }; then
  4026. cross_compiling=no
  4027. else
  4028. if test "$cross_compiling" = maybe; then
  4029. cross_compiling=yes
  4030. else
  4031. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4032. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4033. as_fn_error 77 "cannot run C compiled programs.
  4034. If you meant to cross compile, use \`--host'.
  4035. See \`config.log' for more details" "$LINENO" 5; }
  4036. fi
  4037. fi
  4038. fi
  4039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4040. printf "%s\n" "$cross_compiling" >&6; }
  4041. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4042. ac_clean_files=$ac_clean_files_save
  4043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4044. printf %s "checking for suffix of object files... " >&6; }
  4045. if test ${ac_cv_objext+y}
  4046. then :
  4047. printf %s "(cached) " >&6
  4048. else $as_nop
  4049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end confdefs.h. */
  4051. int
  4052. main (void)
  4053. {
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. rm -f conftest.o conftest.obj
  4059. if { { ac_try="$ac_compile"
  4060. case "(($ac_try" in
  4061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4062. *) ac_try_echo=$ac_try;;
  4063. esac
  4064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4065. printf "%s\n" "$ac_try_echo"; } >&5
  4066. (eval "$ac_compile") 2>&5
  4067. ac_status=$?
  4068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4069. test $ac_status = 0; }
  4070. then :
  4071. for ac_file in conftest.o conftest.obj conftest.*; do
  4072. test -f "$ac_file" || continue;
  4073. case $ac_file in
  4074. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4075. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4076. break;;
  4077. esac
  4078. done
  4079. else $as_nop
  4080. printf "%s\n" "$as_me: failed program was:" >&5
  4081. sed 's/^/| /' conftest.$ac_ext >&5
  4082. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4083. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4084. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4085. See \`config.log' for more details" "$LINENO" 5; }
  4086. fi
  4087. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4088. fi
  4089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4090. printf "%s\n" "$ac_cv_objext" >&6; }
  4091. OBJEXT=$ac_cv_objext
  4092. ac_objext=$OBJEXT
  4093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4094. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4095. if test ${ac_cv_c_compiler_gnu+y}
  4096. then :
  4097. printf %s "(cached) " >&6
  4098. else $as_nop
  4099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4100. /* end confdefs.h. */
  4101. int
  4102. main (void)
  4103. {
  4104. #ifndef __GNUC__
  4105. choke me
  4106. #endif
  4107. ;
  4108. return 0;
  4109. }
  4110. _ACEOF
  4111. if ac_fn_c_try_compile "$LINENO"
  4112. then :
  4113. ac_compiler_gnu=yes
  4114. else $as_nop
  4115. ac_compiler_gnu=no
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4118. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4119. fi
  4120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4121. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4123. if test $ac_compiler_gnu = yes; then
  4124. GCC=yes
  4125. else
  4126. GCC=
  4127. fi
  4128. ac_test_CFLAGS=${CFLAGS+y}
  4129. ac_save_CFLAGS=$CFLAGS
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4131. printf %s "checking whether $CC accepts -g... " >&6; }
  4132. if test ${ac_cv_prog_cc_g+y}
  4133. then :
  4134. printf %s "(cached) " >&6
  4135. else $as_nop
  4136. ac_save_c_werror_flag=$ac_c_werror_flag
  4137. ac_c_werror_flag=yes
  4138. ac_cv_prog_cc_g=no
  4139. CFLAGS="-g"
  4140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4141. /* end confdefs.h. */
  4142. int
  4143. main (void)
  4144. {
  4145. ;
  4146. return 0;
  4147. }
  4148. _ACEOF
  4149. if ac_fn_c_try_compile "$LINENO"
  4150. then :
  4151. ac_cv_prog_cc_g=yes
  4152. else $as_nop
  4153. CFLAGS=""
  4154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4155. /* end confdefs.h. */
  4156. int
  4157. main (void)
  4158. {
  4159. ;
  4160. return 0;
  4161. }
  4162. _ACEOF
  4163. if ac_fn_c_try_compile "$LINENO"
  4164. then :
  4165. else $as_nop
  4166. ac_c_werror_flag=$ac_save_c_werror_flag
  4167. CFLAGS="-g"
  4168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4169. /* end confdefs.h. */
  4170. int
  4171. main (void)
  4172. {
  4173. ;
  4174. return 0;
  4175. }
  4176. _ACEOF
  4177. if ac_fn_c_try_compile "$LINENO"
  4178. then :
  4179. ac_cv_prog_cc_g=yes
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4182. fi
  4183. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4184. fi
  4185. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4186. ac_c_werror_flag=$ac_save_c_werror_flag
  4187. fi
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4189. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4190. if test $ac_test_CFLAGS; then
  4191. CFLAGS=$ac_save_CFLAGS
  4192. elif test $ac_cv_prog_cc_g = yes; then
  4193. if test "$GCC" = yes; then
  4194. CFLAGS="-g -O2"
  4195. else
  4196. CFLAGS="-g"
  4197. fi
  4198. else
  4199. if test "$GCC" = yes; then
  4200. CFLAGS="-O2"
  4201. else
  4202. CFLAGS=
  4203. fi
  4204. fi
  4205. ac_prog_cc_stdc=no
  4206. if test x$ac_prog_cc_stdc = xno
  4207. then :
  4208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4209. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4210. if test ${ac_cv_prog_cc_c11+y}
  4211. then :
  4212. printf %s "(cached) " >&6
  4213. else $as_nop
  4214. ac_cv_prog_cc_c11=no
  4215. ac_save_CC=$CC
  4216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4217. /* end confdefs.h. */
  4218. $ac_c_conftest_c11_program
  4219. _ACEOF
  4220. for ac_arg in '' -std=gnu11
  4221. do
  4222. CC="$ac_save_CC $ac_arg"
  4223. if ac_fn_c_try_compile "$LINENO"
  4224. then :
  4225. ac_cv_prog_cc_c11=$ac_arg
  4226. fi
  4227. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4228. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4229. done
  4230. rm -f conftest.$ac_ext
  4231. CC=$ac_save_CC
  4232. fi
  4233. if test "x$ac_cv_prog_cc_c11" = xno
  4234. then :
  4235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4236. printf "%s\n" "unsupported" >&6; }
  4237. else $as_nop
  4238. if test "x$ac_cv_prog_cc_c11" = x
  4239. then :
  4240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4241. printf "%s\n" "none needed" >&6; }
  4242. else $as_nop
  4243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4244. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4245. CC="$CC $ac_cv_prog_cc_c11"
  4246. fi
  4247. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4248. ac_prog_cc_stdc=c11
  4249. fi
  4250. fi
  4251. if test x$ac_prog_cc_stdc = xno
  4252. then :
  4253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4254. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4255. if test ${ac_cv_prog_cc_c99+y}
  4256. then :
  4257. printf %s "(cached) " >&6
  4258. else $as_nop
  4259. ac_cv_prog_cc_c99=no
  4260. ac_save_CC=$CC
  4261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4262. /* end confdefs.h. */
  4263. $ac_c_conftest_c99_program
  4264. _ACEOF
  4265. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4266. do
  4267. CC="$ac_save_CC $ac_arg"
  4268. if ac_fn_c_try_compile "$LINENO"
  4269. then :
  4270. ac_cv_prog_cc_c99=$ac_arg
  4271. fi
  4272. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4273. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4274. done
  4275. rm -f conftest.$ac_ext
  4276. CC=$ac_save_CC
  4277. fi
  4278. if test "x$ac_cv_prog_cc_c99" = xno
  4279. then :
  4280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4281. printf "%s\n" "unsupported" >&6; }
  4282. else $as_nop
  4283. if test "x$ac_cv_prog_cc_c99" = x
  4284. then :
  4285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4286. printf "%s\n" "none needed" >&6; }
  4287. else $as_nop
  4288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4289. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4290. CC="$CC $ac_cv_prog_cc_c99"
  4291. fi
  4292. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4293. ac_prog_cc_stdc=c99
  4294. fi
  4295. fi
  4296. if test x$ac_prog_cc_stdc = xno
  4297. then :
  4298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4299. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4300. if test ${ac_cv_prog_cc_c89+y}
  4301. then :
  4302. printf %s "(cached) " >&6
  4303. else $as_nop
  4304. ac_cv_prog_cc_c89=no
  4305. ac_save_CC=$CC
  4306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4307. /* end confdefs.h. */
  4308. $ac_c_conftest_c89_program
  4309. _ACEOF
  4310. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4311. do
  4312. CC="$ac_save_CC $ac_arg"
  4313. if ac_fn_c_try_compile "$LINENO"
  4314. then :
  4315. ac_cv_prog_cc_c89=$ac_arg
  4316. fi
  4317. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4318. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4319. done
  4320. rm -f conftest.$ac_ext
  4321. CC=$ac_save_CC
  4322. fi
  4323. if test "x$ac_cv_prog_cc_c89" = xno
  4324. then :
  4325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4326. printf "%s\n" "unsupported" >&6; }
  4327. else $as_nop
  4328. if test "x$ac_cv_prog_cc_c89" = x
  4329. then :
  4330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4331. printf "%s\n" "none needed" >&6; }
  4332. else $as_nop
  4333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4334. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4335. CC="$CC $ac_cv_prog_cc_c89"
  4336. fi
  4337. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4338. ac_prog_cc_stdc=c89
  4339. fi
  4340. fi
  4341. ac_ext=c
  4342. ac_cpp='$CPP $CPPFLAGS'
  4343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4346. ac_ext=c
  4347. ac_cpp='$CPP $CPPFLAGS'
  4348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4352. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4353. if test ${am_cv_prog_cc_c_o+y}
  4354. then :
  4355. printf %s "(cached) " >&6
  4356. else $as_nop
  4357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end confdefs.h. */
  4359. int
  4360. main (void)
  4361. {
  4362. ;
  4363. return 0;
  4364. }
  4365. _ACEOF
  4366. # Make sure it works both with $CC and with simple cc.
  4367. # Following AC_PROG_CC_C_O, we do the test twice because some
  4368. # compilers refuse to overwrite an existing .o file with -o,
  4369. # though they will create one.
  4370. am_cv_prog_cc_c_o=yes
  4371. for am_i in 1 2; do
  4372. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4373. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4374. ac_status=$?
  4375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4376. (exit $ac_status); } \
  4377. && test -f conftest2.$ac_objext; then
  4378. : OK
  4379. else
  4380. am_cv_prog_cc_c_o=no
  4381. break
  4382. fi
  4383. done
  4384. rm -f core conftest*
  4385. unset am_i
  4386. fi
  4387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4388. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4389. if test "$am_cv_prog_cc_c_o" != yes; then
  4390. # Losing compiler, so override with the script.
  4391. # FIXME: It is wrong to rewrite CC.
  4392. # But if we don't then we get into trouble of one sort or another.
  4393. # A longer-term fix would be to have automake use am__CC in this case,
  4394. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4395. CC="$am_aux_dir/compile $CC"
  4396. fi
  4397. ac_ext=c
  4398. ac_cpp='$CPP $CPPFLAGS'
  4399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4402. DEPDIR="${am__leading_dot}deps"
  4403. ac_config_commands="$ac_config_commands depfiles"
  4404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4405. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4406. cat > confinc.mk << 'END'
  4407. am__doit:
  4408. @echo this is the am__doit target
  4409. .PHONY: am__doit
  4410. END
  4411. # If we don't find an include directive, just comment out the code.
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4413. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4414. am__include="#"
  4415. am__quote=
  4416. _am_result=none
  4417. # First try GNU make style include.
  4418. echo "include confinc" > confmf
  4419. # Ignore all kinds of additional output from 'make'.
  4420. case `$am_make -s -f confmf 2> /dev/null` in #(
  4421. *the\ am__doit\ target*)
  4422. am__include=include
  4423. am__quote=
  4424. _am_result=GNU
  4425. ;;
  4426. esac
  4427. if test "$am__include" != "#"; then
  4428. _am_result="yes ($s style)"
  4429. break
  4430. fi
  4431. done
  4432. rm -f confinc.* confmf.*
  4433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4434. printf "%s\n" "${_am_result}" >&6; }
  4435. # Check whether --enable-dependency-tracking was given.
  4436. if test ${enable_dependency_tracking+y}
  4437. then :
  4438. enableval=$enable_dependency_tracking;
  4439. fi
  4440. if test "x$enable_dependency_tracking" != xno; then
  4441. am_depcomp="$ac_aux_dir/depcomp"
  4442. AMDEPBACKSLASH='\'
  4443. am__nodep='_no'
  4444. fi
  4445. if test "x$enable_dependency_tracking" != xno; then
  4446. AMDEP_TRUE=
  4447. AMDEP_FALSE='#'
  4448. else
  4449. AMDEP_TRUE='#'
  4450. AMDEP_FALSE=
  4451. fi
  4452. depcc="$CC" am_compiler_list=
  4453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4454. printf %s "checking dependency style of $depcc... " >&6; }
  4455. if test ${am_cv_CC_dependencies_compiler_type+y}
  4456. then :
  4457. printf %s "(cached) " >&6
  4458. else $as_nop
  4459. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4460. # We make a subdir and do the tests there. Otherwise we can end up
  4461. # making bogus files that we don't know about and never remove. For
  4462. # instance it was reported that on HP-UX the gcc test will end up
  4463. # making a dummy file named 'D' -- because '-MD' means "put the output
  4464. # in D".
  4465. rm -rf conftest.dir
  4466. mkdir conftest.dir
  4467. # Copy depcomp to subdir because otherwise we won't find it if we're
  4468. # using a relative directory.
  4469. cp "$am_depcomp" conftest.dir
  4470. cd conftest.dir
  4471. # We will build objects and dependencies in a subdirectory because
  4472. # it helps to detect inapplicable dependency modes. For instance
  4473. # both Tru64's cc and ICC support -MD to output dependencies as a
  4474. # side effect of compilation, but ICC will put the dependencies in
  4475. # the current directory while Tru64 will put them in the object
  4476. # directory.
  4477. mkdir sub
  4478. am_cv_CC_dependencies_compiler_type=none
  4479. if test "$am_compiler_list" = ""; then
  4480. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4481. fi
  4482. am__universal=false
  4483. case " $depcc " in #(
  4484. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4485. esac
  4486. for depmode in $am_compiler_list; do
  4487. # Setup a source with many dependencies, because some compilers
  4488. # like to wrap large dependency lists on column 80 (with \), and
  4489. # we should not choose a depcomp mode which is confused by this.
  4490. #
  4491. # We need to recreate these files for each test, as the compiler may
  4492. # overwrite some of them when testing with obscure command lines.
  4493. # This happens at least with the AIX C compiler.
  4494. : > sub/conftest.c
  4495. for i in 1 2 3 4 5 6; do
  4496. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4497. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4498. # Solaris 10 /bin/sh.
  4499. echo '/* dummy */' > sub/conftst$i.h
  4500. done
  4501. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4502. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4503. # mode. It turns out that the SunPro C++ compiler does not properly
  4504. # handle '-M -o', and we need to detect this. Also, some Intel
  4505. # versions had trouble with output in subdirs.
  4506. am__obj=sub/conftest.${OBJEXT-o}
  4507. am__minus_obj="-o $am__obj"
  4508. case $depmode in
  4509. gcc)
  4510. # This depmode causes a compiler race in universal mode.
  4511. test "$am__universal" = false || continue
  4512. ;;
  4513. nosideeffect)
  4514. # After this tag, mechanisms are not by side-effect, so they'll
  4515. # only be used when explicitly requested.
  4516. if test "x$enable_dependency_tracking" = xyes; then
  4517. continue
  4518. else
  4519. break
  4520. fi
  4521. ;;
  4522. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4523. # This compiler won't grok '-c -o', but also, the minuso test has
  4524. # not run yet. These depmodes are late enough in the game, and
  4525. # so weak that their functioning should not be impacted.
  4526. am__obj=conftest.${OBJEXT-o}
  4527. am__minus_obj=
  4528. ;;
  4529. none) break ;;
  4530. esac
  4531. if depmode=$depmode \
  4532. source=sub/conftest.c object=$am__obj \
  4533. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4534. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4535. >/dev/null 2>conftest.err &&
  4536. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4537. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4538. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4539. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4540. # icc doesn't choke on unknown options, it will just issue warnings
  4541. # or remarks (even with -Werror). So we grep stderr for any message
  4542. # that says an option was ignored or not supported.
  4543. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4544. # icc: Command line warning: ignoring option '-M'; no argument required
  4545. # The diagnosis changed in icc 8.0:
  4546. # icc: Command line remark: option '-MP' not supported
  4547. if (grep 'ignoring option' conftest.err ||
  4548. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4549. am_cv_CC_dependencies_compiler_type=$depmode
  4550. break
  4551. fi
  4552. fi
  4553. done
  4554. cd ..
  4555. rm -rf conftest.dir
  4556. else
  4557. am_cv_CC_dependencies_compiler_type=none
  4558. fi
  4559. fi
  4560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4561. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4562. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4563. if
  4564. test "x$enable_dependency_tracking" != xno \
  4565. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4566. am__fastdepCC_TRUE=
  4567. am__fastdepCC_FALSE='#'
  4568. else
  4569. am__fastdepCC_TRUE='#'
  4570. am__fastdepCC_FALSE=
  4571. fi
  4572. ac_ext=c
  4573. ac_cpp='$CPP $CPPFLAGS'
  4574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4578. printf %s "checking how to run the C preprocessor... " >&6; }
  4579. # On Suns, sometimes $CPP names a directory.
  4580. if test -n "$CPP" && test -d "$CPP"; then
  4581. CPP=
  4582. fi
  4583. if test -z "$CPP"; then
  4584. if test ${ac_cv_prog_CPP+y}
  4585. then :
  4586. printf %s "(cached) " >&6
  4587. else $as_nop
  4588. # Double quotes because $CC needs to be expanded
  4589. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4590. do
  4591. ac_preproc_ok=false
  4592. for ac_c_preproc_warn_flag in '' yes
  4593. do
  4594. # Use a header file that comes with gcc, so configuring glibc
  4595. # with a fresh cross-compiler works.
  4596. # On the NeXT, cc -E runs the code through the compiler's parser,
  4597. # not just through cpp. "Syntax error" is here to catch this case.
  4598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4599. /* end confdefs.h. */
  4600. #include <limits.h>
  4601. Syntax error
  4602. _ACEOF
  4603. if ac_fn_c_try_cpp "$LINENO"
  4604. then :
  4605. else $as_nop
  4606. # Broken: fails on valid input.
  4607. continue
  4608. fi
  4609. rm -f conftest.err conftest.i conftest.$ac_ext
  4610. # OK, works on sane cases. Now check whether nonexistent headers
  4611. # can be detected and how.
  4612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4613. /* end confdefs.h. */
  4614. #include <ac_nonexistent.h>
  4615. _ACEOF
  4616. if ac_fn_c_try_cpp "$LINENO"
  4617. then :
  4618. # Broken: success on invalid input.
  4619. continue
  4620. else $as_nop
  4621. # Passes both tests.
  4622. ac_preproc_ok=:
  4623. break
  4624. fi
  4625. rm -f conftest.err conftest.i conftest.$ac_ext
  4626. done
  4627. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4628. rm -f conftest.i conftest.err conftest.$ac_ext
  4629. if $ac_preproc_ok
  4630. then :
  4631. break
  4632. fi
  4633. done
  4634. ac_cv_prog_CPP=$CPP
  4635. fi
  4636. CPP=$ac_cv_prog_CPP
  4637. else
  4638. ac_cv_prog_CPP=$CPP
  4639. fi
  4640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4641. printf "%s\n" "$CPP" >&6; }
  4642. ac_preproc_ok=false
  4643. for ac_c_preproc_warn_flag in '' yes
  4644. do
  4645. # Use a header file that comes with gcc, so configuring glibc
  4646. # with a fresh cross-compiler works.
  4647. # On the NeXT, cc -E runs the code through the compiler's parser,
  4648. # not just through cpp. "Syntax error" is here to catch this case.
  4649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4650. /* end confdefs.h. */
  4651. #include <limits.h>
  4652. Syntax error
  4653. _ACEOF
  4654. if ac_fn_c_try_cpp "$LINENO"
  4655. then :
  4656. else $as_nop
  4657. # Broken: fails on valid input.
  4658. continue
  4659. fi
  4660. rm -f conftest.err conftest.i conftest.$ac_ext
  4661. # OK, works on sane cases. Now check whether nonexistent headers
  4662. # can be detected and how.
  4663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4664. /* end confdefs.h. */
  4665. #include <ac_nonexistent.h>
  4666. _ACEOF
  4667. if ac_fn_c_try_cpp "$LINENO"
  4668. then :
  4669. # Broken: success on invalid input.
  4670. continue
  4671. else $as_nop
  4672. # Passes both tests.
  4673. ac_preproc_ok=:
  4674. break
  4675. fi
  4676. rm -f conftest.err conftest.i conftest.$ac_ext
  4677. done
  4678. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4679. rm -f conftest.i conftest.err conftest.$ac_ext
  4680. if $ac_preproc_ok
  4681. then :
  4682. else $as_nop
  4683. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4684. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4685. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4686. See \`config.log' for more details" "$LINENO" 5; }
  4687. fi
  4688. ac_ext=c
  4689. ac_cpp='$CPP $CPPFLAGS'
  4690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4693. ac_ext=cpp
  4694. ac_cpp='$CXXCPP $CPPFLAGS'
  4695. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4696. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4697. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4698. if test -z "$CXX"; then
  4699. if test -n "$CCC"; then
  4700. CXX=$CCC
  4701. else
  4702. if test -n "$ac_tool_prefix"; then
  4703. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  4704. do
  4705. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4706. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4708. printf %s "checking for $ac_word... " >&6; }
  4709. if test ${ac_cv_prog_CXX+y}
  4710. then :
  4711. printf %s "(cached) " >&6
  4712. else $as_nop
  4713. if test -n "$CXX"; then
  4714. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4715. else
  4716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4717. for as_dir in $PATH
  4718. do
  4719. IFS=$as_save_IFS
  4720. case $as_dir in #(((
  4721. '') as_dir=./ ;;
  4722. */) ;;
  4723. *) as_dir=$as_dir/ ;;
  4724. esac
  4725. for ac_exec_ext in '' $ac_executable_extensions; do
  4726. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4727. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4728. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4729. break 2
  4730. fi
  4731. done
  4732. done
  4733. IFS=$as_save_IFS
  4734. fi
  4735. fi
  4736. CXX=$ac_cv_prog_CXX
  4737. if test -n "$CXX"; then
  4738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4739. printf "%s\n" "$CXX" >&6; }
  4740. else
  4741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4742. printf "%s\n" "no" >&6; }
  4743. fi
  4744. test -n "$CXX" && break
  4745. done
  4746. fi
  4747. if test -z "$CXX"; then
  4748. ac_ct_CXX=$CXX
  4749. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  4750. do
  4751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4752. set dummy $ac_prog; ac_word=$2
  4753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4754. printf %s "checking for $ac_word... " >&6; }
  4755. if test ${ac_cv_prog_ac_ct_CXX+y}
  4756. then :
  4757. printf %s "(cached) " >&6
  4758. else $as_nop
  4759. if test -n "$ac_ct_CXX"; then
  4760. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4761. else
  4762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4763. for as_dir in $PATH
  4764. do
  4765. IFS=$as_save_IFS
  4766. case $as_dir in #(((
  4767. '') as_dir=./ ;;
  4768. */) ;;
  4769. *) as_dir=$as_dir/ ;;
  4770. esac
  4771. for ac_exec_ext in '' $ac_executable_extensions; do
  4772. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4773. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4775. break 2
  4776. fi
  4777. done
  4778. done
  4779. IFS=$as_save_IFS
  4780. fi
  4781. fi
  4782. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4783. if test -n "$ac_ct_CXX"; then
  4784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4785. printf "%s\n" "$ac_ct_CXX" >&6; }
  4786. else
  4787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4788. printf "%s\n" "no" >&6; }
  4789. fi
  4790. test -n "$ac_ct_CXX" && break
  4791. done
  4792. if test "x$ac_ct_CXX" = x; then
  4793. CXX="g++"
  4794. else
  4795. case $cross_compiling:$ac_tool_warned in
  4796. yes:)
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4798. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4799. ac_tool_warned=yes ;;
  4800. esac
  4801. CXX=$ac_ct_CXX
  4802. fi
  4803. fi
  4804. fi
  4805. fi
  4806. # Provide some information about the compiler.
  4807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4808. set X $ac_compile
  4809. ac_compiler=$2
  4810. for ac_option in --version -v -V -qversion; do
  4811. { { ac_try="$ac_compiler $ac_option >&5"
  4812. case "(($ac_try" in
  4813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4814. *) ac_try_echo=$ac_try;;
  4815. esac
  4816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4817. printf "%s\n" "$ac_try_echo"; } >&5
  4818. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4819. ac_status=$?
  4820. if test -s conftest.err; then
  4821. sed '10a\
  4822. ... rest of stderr output deleted ...
  4823. 10q' conftest.err >conftest.er1
  4824. cat conftest.er1 >&5
  4825. fi
  4826. rm -f conftest.er1 conftest.err
  4827. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4828. test $ac_status = 0; }
  4829. done
  4830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  4831. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  4832. if test ${ac_cv_cxx_compiler_gnu+y}
  4833. then :
  4834. printf %s "(cached) " >&6
  4835. else $as_nop
  4836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4837. /* end confdefs.h. */
  4838. int
  4839. main (void)
  4840. {
  4841. #ifndef __GNUC__
  4842. choke me
  4843. #endif
  4844. ;
  4845. return 0;
  4846. }
  4847. _ACEOF
  4848. if ac_fn_cxx_try_compile "$LINENO"
  4849. then :
  4850. ac_compiler_gnu=yes
  4851. else $as_nop
  4852. ac_compiler_gnu=no
  4853. fi
  4854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4855. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4856. fi
  4857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4858. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  4859. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4860. if test $ac_compiler_gnu = yes; then
  4861. GXX=yes
  4862. else
  4863. GXX=
  4864. fi
  4865. ac_test_CXXFLAGS=${CXXFLAGS+y}
  4866. ac_save_CXXFLAGS=$CXXFLAGS
  4867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4868. printf %s "checking whether $CXX accepts -g... " >&6; }
  4869. if test ${ac_cv_prog_cxx_g+y}
  4870. then :
  4871. printf %s "(cached) " >&6
  4872. else $as_nop
  4873. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4874. ac_cxx_werror_flag=yes
  4875. ac_cv_prog_cxx_g=no
  4876. CXXFLAGS="-g"
  4877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4878. /* end confdefs.h. */
  4879. int
  4880. main (void)
  4881. {
  4882. ;
  4883. return 0;
  4884. }
  4885. _ACEOF
  4886. if ac_fn_cxx_try_compile "$LINENO"
  4887. then :
  4888. ac_cv_prog_cxx_g=yes
  4889. else $as_nop
  4890. CXXFLAGS=""
  4891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4892. /* end confdefs.h. */
  4893. int
  4894. main (void)
  4895. {
  4896. ;
  4897. return 0;
  4898. }
  4899. _ACEOF
  4900. if ac_fn_cxx_try_compile "$LINENO"
  4901. then :
  4902. else $as_nop
  4903. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4904. CXXFLAGS="-g"
  4905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4906. /* end confdefs.h. */
  4907. int
  4908. main (void)
  4909. {
  4910. ;
  4911. return 0;
  4912. }
  4913. _ACEOF
  4914. if ac_fn_cxx_try_compile "$LINENO"
  4915. then :
  4916. ac_cv_prog_cxx_g=yes
  4917. fi
  4918. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4919. fi
  4920. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4921. fi
  4922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4923. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4924. fi
  4925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4926. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  4927. if test $ac_test_CXXFLAGS; then
  4928. CXXFLAGS=$ac_save_CXXFLAGS
  4929. elif test $ac_cv_prog_cxx_g = yes; then
  4930. if test "$GXX" = yes; then
  4931. CXXFLAGS="-g -O2"
  4932. else
  4933. CXXFLAGS="-g"
  4934. fi
  4935. else
  4936. if test "$GXX" = yes; then
  4937. CXXFLAGS="-O2"
  4938. else
  4939. CXXFLAGS=
  4940. fi
  4941. fi
  4942. ac_prog_cxx_stdcxx=no
  4943. if test x$ac_prog_cxx_stdcxx = xno
  4944. then :
  4945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  4946. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  4947. if test ${ac_cv_prog_cxx_cxx11+y}
  4948. then :
  4949. printf %s "(cached) " >&6
  4950. else $as_nop
  4951. ac_cv_prog_cxx_cxx11=no
  4952. ac_save_CXX=$CXX
  4953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4954. /* end confdefs.h. */
  4955. $ac_cxx_conftest_cxx11_program
  4956. _ACEOF
  4957. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  4958. do
  4959. CXX="$ac_save_CXX $ac_arg"
  4960. if ac_fn_cxx_try_compile "$LINENO"
  4961. then :
  4962. ac_cv_prog_cxx_cxx11=$ac_arg
  4963. fi
  4964. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4965. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  4966. done
  4967. rm -f conftest.$ac_ext
  4968. CXX=$ac_save_CXX
  4969. fi
  4970. if test "x$ac_cv_prog_cxx_cxx11" = xno
  4971. then :
  4972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4973. printf "%s\n" "unsupported" >&6; }
  4974. else $as_nop
  4975. if test "x$ac_cv_prog_cxx_cxx11" = x
  4976. then :
  4977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4978. printf "%s\n" "none needed" >&6; }
  4979. else $as_nop
  4980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  4981. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  4982. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  4983. fi
  4984. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  4985. ac_prog_cxx_stdcxx=cxx11
  4986. fi
  4987. fi
  4988. if test x$ac_prog_cxx_stdcxx = xno
  4989. then :
  4990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  4991. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  4992. if test ${ac_cv_prog_cxx_cxx98+y}
  4993. then :
  4994. printf %s "(cached) " >&6
  4995. else $as_nop
  4996. ac_cv_prog_cxx_cxx98=no
  4997. ac_save_CXX=$CXX
  4998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4999. /* end confdefs.h. */
  5000. $ac_cxx_conftest_cxx98_program
  5001. _ACEOF
  5002. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  5003. do
  5004. CXX="$ac_save_CXX $ac_arg"
  5005. if ac_fn_cxx_try_compile "$LINENO"
  5006. then :
  5007. ac_cv_prog_cxx_cxx98=$ac_arg
  5008. fi
  5009. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5010. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  5011. done
  5012. rm -f conftest.$ac_ext
  5013. CXX=$ac_save_CXX
  5014. fi
  5015. if test "x$ac_cv_prog_cxx_cxx98" = xno
  5016. then :
  5017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5018. printf "%s\n" "unsupported" >&6; }
  5019. else $as_nop
  5020. if test "x$ac_cv_prog_cxx_cxx98" = x
  5021. then :
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5023. printf "%s\n" "none needed" >&6; }
  5024. else $as_nop
  5025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  5026. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  5027. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  5028. fi
  5029. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  5030. ac_prog_cxx_stdcxx=cxx98
  5031. fi
  5032. fi
  5033. ac_ext=c
  5034. ac_cpp='$CPP $CPPFLAGS'
  5035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5038. depcc="$CXX" am_compiler_list=
  5039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5040. printf %s "checking dependency style of $depcc... " >&6; }
  5041. if test ${am_cv_CXX_dependencies_compiler_type+y}
  5042. then :
  5043. printf %s "(cached) " >&6
  5044. else $as_nop
  5045. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5046. # We make a subdir and do the tests there. Otherwise we can end up
  5047. # making bogus files that we don't know about and never remove. For
  5048. # instance it was reported that on HP-UX the gcc test will end up
  5049. # making a dummy file named 'D' -- because '-MD' means "put the output
  5050. # in D".
  5051. rm -rf conftest.dir
  5052. mkdir conftest.dir
  5053. # Copy depcomp to subdir because otherwise we won't find it if we're
  5054. # using a relative directory.
  5055. cp "$am_depcomp" conftest.dir
  5056. cd conftest.dir
  5057. # We will build objects and dependencies in a subdirectory because
  5058. # it helps to detect inapplicable dependency modes. For instance
  5059. # both Tru64's cc and ICC support -MD to output dependencies as a
  5060. # side effect of compilation, but ICC will put the dependencies in
  5061. # the current directory while Tru64 will put them in the object
  5062. # directory.
  5063. mkdir sub
  5064. am_cv_CXX_dependencies_compiler_type=none
  5065. if test "$am_compiler_list" = ""; then
  5066. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5067. fi
  5068. am__universal=false
  5069. case " $depcc " in #(
  5070. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5071. esac
  5072. for depmode in $am_compiler_list; do
  5073. # Setup a source with many dependencies, because some compilers
  5074. # like to wrap large dependency lists on column 80 (with \), and
  5075. # we should not choose a depcomp mode which is confused by this.
  5076. #
  5077. # We need to recreate these files for each test, as the compiler may
  5078. # overwrite some of them when testing with obscure command lines.
  5079. # This happens at least with the AIX C compiler.
  5080. : > sub/conftest.c
  5081. for i in 1 2 3 4 5 6; do
  5082. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5083. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5084. # Solaris 10 /bin/sh.
  5085. echo '/* dummy */' > sub/conftst$i.h
  5086. done
  5087. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5088. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5089. # mode. It turns out that the SunPro C++ compiler does not properly
  5090. # handle '-M -o', and we need to detect this. Also, some Intel
  5091. # versions had trouble with output in subdirs.
  5092. am__obj=sub/conftest.${OBJEXT-o}
  5093. am__minus_obj="-o $am__obj"
  5094. case $depmode in
  5095. gcc)
  5096. # This depmode causes a compiler race in universal mode.
  5097. test "$am__universal" = false || continue
  5098. ;;
  5099. nosideeffect)
  5100. # After this tag, mechanisms are not by side-effect, so they'll
  5101. # only be used when explicitly requested.
  5102. if test "x$enable_dependency_tracking" = xyes; then
  5103. continue
  5104. else
  5105. break
  5106. fi
  5107. ;;
  5108. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5109. # This compiler won't grok '-c -o', but also, the minuso test has
  5110. # not run yet. These depmodes are late enough in the game, and
  5111. # so weak that their functioning should not be impacted.
  5112. am__obj=conftest.${OBJEXT-o}
  5113. am__minus_obj=
  5114. ;;
  5115. none) break ;;
  5116. esac
  5117. if depmode=$depmode \
  5118. source=sub/conftest.c object=$am__obj \
  5119. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5120. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5121. >/dev/null 2>conftest.err &&
  5122. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5123. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5124. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5125. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5126. # icc doesn't choke on unknown options, it will just issue warnings
  5127. # or remarks (even with -Werror). So we grep stderr for any message
  5128. # that says an option was ignored or not supported.
  5129. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5130. # icc: Command line warning: ignoring option '-M'; no argument required
  5131. # The diagnosis changed in icc 8.0:
  5132. # icc: Command line remark: option '-MP' not supported
  5133. if (grep 'ignoring option' conftest.err ||
  5134. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5135. am_cv_CXX_dependencies_compiler_type=$depmode
  5136. break
  5137. fi
  5138. fi
  5139. done
  5140. cd ..
  5141. rm -rf conftest.dir
  5142. else
  5143. am_cv_CXX_dependencies_compiler_type=none
  5144. fi
  5145. fi
  5146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5147. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5148. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5149. if
  5150. test "x$enable_dependency_tracking" != xno \
  5151. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5152. am__fastdepCXX_TRUE=
  5153. am__fastdepCXX_FALSE='#'
  5154. else
  5155. am__fastdepCXX_TRUE='#'
  5156. am__fastdepCXX_FALSE=
  5157. fi
  5158. case `pwd` in
  5159. *\ * | *\ *)
  5160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5161. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5162. esac
  5163. macro_version='2.4.7'
  5164. macro_revision='2.4.7'
  5165. ltmain=$ac_aux_dir/ltmain.sh
  5166. # Backslashify metacharacters that are still active within
  5167. # double-quoted strings.
  5168. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5169. # Same as above, but do not quote variable references.
  5170. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5171. # Sed substitution to delay expansion of an escaped shell variable in a
  5172. # double_quote_subst'ed string.
  5173. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5174. # Sed substitution to delay expansion of an escaped single quote.
  5175. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5176. # Sed substitution to avoid accidental globbing in evaled expressions
  5177. no_glob_subst='s/\*/\\\*/g'
  5178. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5179. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5180. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5182. printf %s "checking how to print strings... " >&6; }
  5183. # Test print first, because it will be a builtin if present.
  5184. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5185. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5186. ECHO='print -r --'
  5187. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5188. ECHO='printf %s\n'
  5189. else
  5190. # Use this function as a fallback that always works.
  5191. func_fallback_echo ()
  5192. {
  5193. eval 'cat <<_LTECHO_EOF
  5194. $1
  5195. _LTECHO_EOF'
  5196. }
  5197. ECHO='func_fallback_echo'
  5198. fi
  5199. # func_echo_all arg...
  5200. # Invoke $ECHO with all args, space-separated.
  5201. func_echo_all ()
  5202. {
  5203. $ECHO ""
  5204. }
  5205. case $ECHO in
  5206. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5207. printf "%s\n" "printf" >&6; } ;;
  5208. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5209. printf "%s\n" "print -r" >&6; } ;;
  5210. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5211. printf "%s\n" "cat" >&6; } ;;
  5212. esac
  5213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5214. printf %s "checking for a sed that does not truncate output... " >&6; }
  5215. if test ${ac_cv_path_SED+y}
  5216. then :
  5217. printf %s "(cached) " >&6
  5218. else $as_nop
  5219. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5220. for ac_i in 1 2 3 4 5 6 7; do
  5221. ac_script="$ac_script$as_nl$ac_script"
  5222. done
  5223. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5224. { ac_script=; unset ac_script;}
  5225. if test -z "$SED"; then
  5226. ac_path_SED_found=false
  5227. # Loop through the user's path and test for each of PROGNAME-LIST
  5228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5229. for as_dir in $PATH
  5230. do
  5231. IFS=$as_save_IFS
  5232. case $as_dir in #(((
  5233. '') as_dir=./ ;;
  5234. */) ;;
  5235. *) as_dir=$as_dir/ ;;
  5236. esac
  5237. for ac_prog in sed gsed
  5238. do
  5239. for ac_exec_ext in '' $ac_executable_extensions; do
  5240. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5241. as_fn_executable_p "$ac_path_SED" || continue
  5242. # Check for GNU ac_path_SED and select it if it is found.
  5243. # Check for GNU $ac_path_SED
  5244. case `"$ac_path_SED" --version 2>&1` in
  5245. *GNU*)
  5246. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5247. *)
  5248. ac_count=0
  5249. printf %s 0123456789 >"conftest.in"
  5250. while :
  5251. do
  5252. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5253. mv "conftest.tmp" "conftest.in"
  5254. cp "conftest.in" "conftest.nl"
  5255. printf "%s\n" '' >> "conftest.nl"
  5256. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5257. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5258. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5259. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5260. # Best one so far, save it but keep looking for a better one
  5261. ac_cv_path_SED="$ac_path_SED"
  5262. ac_path_SED_max=$ac_count
  5263. fi
  5264. # 10*(2^10) chars as input seems more than enough
  5265. test $ac_count -gt 10 && break
  5266. done
  5267. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5268. esac
  5269. $ac_path_SED_found && break 3
  5270. done
  5271. done
  5272. done
  5273. IFS=$as_save_IFS
  5274. if test -z "$ac_cv_path_SED"; then
  5275. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5276. fi
  5277. else
  5278. ac_cv_path_SED=$SED
  5279. fi
  5280. fi
  5281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5282. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5283. SED="$ac_cv_path_SED"
  5284. rm -f conftest.sed
  5285. test -z "$SED" && SED=sed
  5286. Xsed="$SED -e 1s/^X//"
  5287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5288. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5289. if test ${ac_cv_path_GREP+y}
  5290. then :
  5291. printf %s "(cached) " >&6
  5292. else $as_nop
  5293. if test -z "$GREP"; then
  5294. ac_path_GREP_found=false
  5295. # Loop through the user's path and test for each of PROGNAME-LIST
  5296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5297. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5298. do
  5299. IFS=$as_save_IFS
  5300. case $as_dir in #(((
  5301. '') as_dir=./ ;;
  5302. */) ;;
  5303. *) as_dir=$as_dir/ ;;
  5304. esac
  5305. for ac_prog in grep ggrep
  5306. do
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5309. as_fn_executable_p "$ac_path_GREP" || continue
  5310. # Check for GNU ac_path_GREP and select it if it is found.
  5311. # Check for GNU $ac_path_GREP
  5312. case `"$ac_path_GREP" --version 2>&1` in
  5313. *GNU*)
  5314. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5315. *)
  5316. ac_count=0
  5317. printf %s 0123456789 >"conftest.in"
  5318. while :
  5319. do
  5320. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5321. mv "conftest.tmp" "conftest.in"
  5322. cp "conftest.in" "conftest.nl"
  5323. printf "%s\n" 'GREP' >> "conftest.nl"
  5324. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5325. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5326. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5327. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5328. # Best one so far, save it but keep looking for a better one
  5329. ac_cv_path_GREP="$ac_path_GREP"
  5330. ac_path_GREP_max=$ac_count
  5331. fi
  5332. # 10*(2^10) chars as input seems more than enough
  5333. test $ac_count -gt 10 && break
  5334. done
  5335. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5336. esac
  5337. $ac_path_GREP_found && break 3
  5338. done
  5339. done
  5340. done
  5341. IFS=$as_save_IFS
  5342. if test -z "$ac_cv_path_GREP"; then
  5343. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5344. fi
  5345. else
  5346. ac_cv_path_GREP=$GREP
  5347. fi
  5348. fi
  5349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5350. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5351. GREP="$ac_cv_path_GREP"
  5352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5353. printf %s "checking for egrep... " >&6; }
  5354. if test ${ac_cv_path_EGREP+y}
  5355. then :
  5356. printf %s "(cached) " >&6
  5357. else $as_nop
  5358. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5359. then ac_cv_path_EGREP="$GREP -E"
  5360. else
  5361. if test -z "$EGREP"; then
  5362. ac_path_EGREP_found=false
  5363. # Loop through the user's path and test for each of PROGNAME-LIST
  5364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5365. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5366. do
  5367. IFS=$as_save_IFS
  5368. case $as_dir in #(((
  5369. '') as_dir=./ ;;
  5370. */) ;;
  5371. *) as_dir=$as_dir/ ;;
  5372. esac
  5373. for ac_prog in egrep
  5374. do
  5375. for ac_exec_ext in '' $ac_executable_extensions; do
  5376. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5377. as_fn_executable_p "$ac_path_EGREP" || continue
  5378. # Check for GNU ac_path_EGREP and select it if it is found.
  5379. # Check for GNU $ac_path_EGREP
  5380. case `"$ac_path_EGREP" --version 2>&1` in
  5381. *GNU*)
  5382. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5383. *)
  5384. ac_count=0
  5385. printf %s 0123456789 >"conftest.in"
  5386. while :
  5387. do
  5388. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5389. mv "conftest.tmp" "conftest.in"
  5390. cp "conftest.in" "conftest.nl"
  5391. printf "%s\n" 'EGREP' >> "conftest.nl"
  5392. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5393. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5394. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5395. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5396. # Best one so far, save it but keep looking for a better one
  5397. ac_cv_path_EGREP="$ac_path_EGREP"
  5398. ac_path_EGREP_max=$ac_count
  5399. fi
  5400. # 10*(2^10) chars as input seems more than enough
  5401. test $ac_count -gt 10 && break
  5402. done
  5403. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5404. esac
  5405. $ac_path_EGREP_found && break 3
  5406. done
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. if test -z "$ac_cv_path_EGREP"; then
  5411. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5412. fi
  5413. else
  5414. ac_cv_path_EGREP=$EGREP
  5415. fi
  5416. fi
  5417. fi
  5418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5419. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5420. EGREP="$ac_cv_path_EGREP"
  5421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5422. printf %s "checking for fgrep... " >&6; }
  5423. if test ${ac_cv_path_FGREP+y}
  5424. then :
  5425. printf %s "(cached) " >&6
  5426. else $as_nop
  5427. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5428. then ac_cv_path_FGREP="$GREP -F"
  5429. else
  5430. if test -z "$FGREP"; then
  5431. ac_path_FGREP_found=false
  5432. # Loop through the user's path and test for each of PROGNAME-LIST
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5435. do
  5436. IFS=$as_save_IFS
  5437. case $as_dir in #(((
  5438. '') as_dir=./ ;;
  5439. */) ;;
  5440. *) as_dir=$as_dir/ ;;
  5441. esac
  5442. for ac_prog in fgrep
  5443. do
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5446. as_fn_executable_p "$ac_path_FGREP" || continue
  5447. # Check for GNU ac_path_FGREP and select it if it is found.
  5448. # Check for GNU $ac_path_FGREP
  5449. case `"$ac_path_FGREP" --version 2>&1` in
  5450. *GNU*)
  5451. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5452. *)
  5453. ac_count=0
  5454. printf %s 0123456789 >"conftest.in"
  5455. while :
  5456. do
  5457. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5458. mv "conftest.tmp" "conftest.in"
  5459. cp "conftest.in" "conftest.nl"
  5460. printf "%s\n" 'FGREP' >> "conftest.nl"
  5461. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5462. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5463. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5464. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5465. # Best one so far, save it but keep looking for a better one
  5466. ac_cv_path_FGREP="$ac_path_FGREP"
  5467. ac_path_FGREP_max=$ac_count
  5468. fi
  5469. # 10*(2^10) chars as input seems more than enough
  5470. test $ac_count -gt 10 && break
  5471. done
  5472. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5473. esac
  5474. $ac_path_FGREP_found && break 3
  5475. done
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. if test -z "$ac_cv_path_FGREP"; then
  5480. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5481. fi
  5482. else
  5483. ac_cv_path_FGREP=$FGREP
  5484. fi
  5485. fi
  5486. fi
  5487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5488. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5489. FGREP="$ac_cv_path_FGREP"
  5490. test -z "$GREP" && GREP=grep
  5491. # Check whether --with-gnu-ld was given.
  5492. if test ${with_gnu_ld+y}
  5493. then :
  5494. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5495. else $as_nop
  5496. with_gnu_ld=no
  5497. fi
  5498. ac_prog=ld
  5499. if test yes = "$GCC"; then
  5500. # Check if gcc -print-prog-name=ld gives a path.
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5502. printf %s "checking for ld used by $CC... " >&6; }
  5503. case $host in
  5504. *-*-mingw*)
  5505. # gcc leaves a trailing carriage return, which upsets mingw
  5506. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5507. *)
  5508. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5509. esac
  5510. case $ac_prog in
  5511. # Accept absolute paths.
  5512. [\\/]* | ?:[\\/]*)
  5513. re_direlt='/[^/][^/]*/\.\./'
  5514. # Canonicalize the pathname of ld
  5515. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5516. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5517. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5518. done
  5519. test -z "$LD" && LD=$ac_prog
  5520. ;;
  5521. "")
  5522. # If it fails, then pretend we aren't using GCC.
  5523. ac_prog=ld
  5524. ;;
  5525. *)
  5526. # If it is relative, then search for the first ld in PATH.
  5527. with_gnu_ld=unknown
  5528. ;;
  5529. esac
  5530. elif test yes = "$with_gnu_ld"; then
  5531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5532. printf %s "checking for GNU ld... " >&6; }
  5533. else
  5534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5535. printf %s "checking for non-GNU ld... " >&6; }
  5536. fi
  5537. if test ${lt_cv_path_LD+y}
  5538. then :
  5539. printf %s "(cached) " >&6
  5540. else $as_nop
  5541. if test -z "$LD"; then
  5542. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5543. for ac_dir in $PATH; do
  5544. IFS=$lt_save_ifs
  5545. test -z "$ac_dir" && ac_dir=.
  5546. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5547. lt_cv_path_LD=$ac_dir/$ac_prog
  5548. # Check to see if the program is GNU ld. I'd rather use --version,
  5549. # but apparently some variants of GNU ld only accept -v.
  5550. # Break only if it was the GNU/non-GNU ld that we prefer.
  5551. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5552. *GNU* | *'with BFD'*)
  5553. test no != "$with_gnu_ld" && break
  5554. ;;
  5555. *)
  5556. test yes != "$with_gnu_ld" && break
  5557. ;;
  5558. esac
  5559. fi
  5560. done
  5561. IFS=$lt_save_ifs
  5562. else
  5563. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5564. fi
  5565. fi
  5566. LD=$lt_cv_path_LD
  5567. if test -n "$LD"; then
  5568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5569. printf "%s\n" "$LD" >&6; }
  5570. else
  5571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5572. printf "%s\n" "no" >&6; }
  5573. fi
  5574. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5576. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5577. if test ${lt_cv_prog_gnu_ld+y}
  5578. then :
  5579. printf %s "(cached) " >&6
  5580. else $as_nop
  5581. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5582. case `$LD -v 2>&1 </dev/null` in
  5583. *GNU* | *'with BFD'*)
  5584. lt_cv_prog_gnu_ld=yes
  5585. ;;
  5586. *)
  5587. lt_cv_prog_gnu_ld=no
  5588. ;;
  5589. esac
  5590. fi
  5591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5592. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5593. with_gnu_ld=$lt_cv_prog_gnu_ld
  5594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5595. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5596. if test ${lt_cv_path_NM+y}
  5597. then :
  5598. printf %s "(cached) " >&6
  5599. else $as_nop
  5600. if test -n "$NM"; then
  5601. # Let the user override the test.
  5602. lt_cv_path_NM=$NM
  5603. else
  5604. lt_nm_to_check=${ac_tool_prefix}nm
  5605. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5606. lt_nm_to_check="$lt_nm_to_check nm"
  5607. fi
  5608. for lt_tmp_nm in $lt_nm_to_check; do
  5609. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5610. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5611. IFS=$lt_save_ifs
  5612. test -z "$ac_dir" && ac_dir=.
  5613. tmp_nm=$ac_dir/$lt_tmp_nm
  5614. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5615. # Check to see if the nm accepts a BSD-compat flag.
  5616. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5617. # nm: unknown option "B" ignored
  5618. # Tru64's nm complains that /dev/null is an invalid object file
  5619. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5620. case $build_os in
  5621. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5622. *) lt_bad_file=/dev/null ;;
  5623. esac
  5624. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5625. *$lt_bad_file* | *'Invalid file or object type'*)
  5626. lt_cv_path_NM="$tmp_nm -B"
  5627. break 2
  5628. ;;
  5629. *)
  5630. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5631. */dev/null*)
  5632. lt_cv_path_NM="$tmp_nm -p"
  5633. break 2
  5634. ;;
  5635. *)
  5636. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5637. continue # so that we can try to find one that supports BSD flags
  5638. ;;
  5639. esac
  5640. ;;
  5641. esac
  5642. fi
  5643. done
  5644. IFS=$lt_save_ifs
  5645. done
  5646. : ${lt_cv_path_NM=no}
  5647. fi
  5648. fi
  5649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5650. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5651. if test no != "$lt_cv_path_NM"; then
  5652. NM=$lt_cv_path_NM
  5653. else
  5654. # Didn't find any BSD compatible name lister, look for dumpbin.
  5655. if test -n "$DUMPBIN"; then :
  5656. # Let the user override the test.
  5657. else
  5658. if test -n "$ac_tool_prefix"; then
  5659. for ac_prog in dumpbin "link -dump"
  5660. do
  5661. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5662. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. printf %s "checking for $ac_word... " >&6; }
  5665. if test ${ac_cv_prog_DUMPBIN+y}
  5666. then :
  5667. printf %s "(cached) " >&6
  5668. else $as_nop
  5669. if test -n "$DUMPBIN"; then
  5670. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. case $as_dir in #(((
  5677. '') as_dir=./ ;;
  5678. */) ;;
  5679. *) as_dir=$as_dir/ ;;
  5680. esac
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. DUMPBIN=$ac_cv_prog_DUMPBIN
  5693. if test -n "$DUMPBIN"; then
  5694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5695. printf "%s\n" "$DUMPBIN" >&6; }
  5696. else
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. printf "%s\n" "no" >&6; }
  5699. fi
  5700. test -n "$DUMPBIN" && break
  5701. done
  5702. fi
  5703. if test -z "$DUMPBIN"; then
  5704. ac_ct_DUMPBIN=$DUMPBIN
  5705. for ac_prog in dumpbin "link -dump"
  5706. do
  5707. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5708. set dummy $ac_prog; ac_word=$2
  5709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. printf %s "checking for $ac_word... " >&6; }
  5711. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5712. then :
  5713. printf %s "(cached) " >&6
  5714. else $as_nop
  5715. if test -n "$ac_ct_DUMPBIN"; then
  5716. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. case $as_dir in #(((
  5723. '') as_dir=./ ;;
  5724. */) ;;
  5725. *) as_dir=$as_dir/ ;;
  5726. esac
  5727. for ac_exec_ext in '' $ac_executable_extensions; do
  5728. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5729. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5731. break 2
  5732. fi
  5733. done
  5734. done
  5735. IFS=$as_save_IFS
  5736. fi
  5737. fi
  5738. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5739. if test -n "$ac_ct_DUMPBIN"; then
  5740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5741. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5742. else
  5743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. printf "%s\n" "no" >&6; }
  5745. fi
  5746. test -n "$ac_ct_DUMPBIN" && break
  5747. done
  5748. if test "x$ac_ct_DUMPBIN" = x; then
  5749. DUMPBIN=":"
  5750. else
  5751. case $cross_compiling:$ac_tool_warned in
  5752. yes:)
  5753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5755. ac_tool_warned=yes ;;
  5756. esac
  5757. DUMPBIN=$ac_ct_DUMPBIN
  5758. fi
  5759. fi
  5760. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  5761. *COFF*)
  5762. DUMPBIN="$DUMPBIN -symbols -headers"
  5763. ;;
  5764. *)
  5765. DUMPBIN=:
  5766. ;;
  5767. esac
  5768. fi
  5769. if test : != "$DUMPBIN"; then
  5770. NM=$DUMPBIN
  5771. fi
  5772. fi
  5773. test -z "$NM" && NM=nm
  5774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5775. printf %s "checking the name lister ($NM) interface... " >&6; }
  5776. if test ${lt_cv_nm_interface+y}
  5777. then :
  5778. printf %s "(cached) " >&6
  5779. else $as_nop
  5780. lt_cv_nm_interface="BSD nm"
  5781. echo "int some_variable = 0;" > conftest.$ac_ext
  5782. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5783. (eval "$ac_compile" 2>conftest.err)
  5784. cat conftest.err >&5
  5785. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5786. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5787. cat conftest.err >&5
  5788. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5789. cat conftest.out >&5
  5790. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5791. lt_cv_nm_interface="MS dumpbin"
  5792. fi
  5793. rm -f conftest*
  5794. fi
  5795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5796. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5798. printf %s "checking whether ln -s works... " >&6; }
  5799. LN_S=$as_ln_s
  5800. if test "$LN_S" = "ln -s"; then
  5801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5802. printf "%s\n" "yes" >&6; }
  5803. else
  5804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5805. printf "%s\n" "no, using $LN_S" >&6; }
  5806. fi
  5807. # find the maximum length of command line arguments
  5808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5809. printf %s "checking the maximum length of command line arguments... " >&6; }
  5810. if test ${lt_cv_sys_max_cmd_len+y}
  5811. then :
  5812. printf %s "(cached) " >&6
  5813. else $as_nop
  5814. i=0
  5815. teststring=ABCD
  5816. case $build_os in
  5817. msdosdjgpp*)
  5818. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5819. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5820. # during glob expansion). Even if it were fixed, the result of this
  5821. # check would be larger than it should be.
  5822. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5823. ;;
  5824. gnu*)
  5825. # Under GNU Hurd, this test is not required because there is
  5826. # no limit to the length of command line arguments.
  5827. # Libtool will interpret -1 as no limit whatsoever
  5828. lt_cv_sys_max_cmd_len=-1;
  5829. ;;
  5830. cygwin* | mingw* | cegcc*)
  5831. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5832. # about 5 minutes as the teststring grows exponentially.
  5833. # Worse, since 9x/ME are not pre-emptively multitasking,
  5834. # you end up with a "frozen" computer, even though with patience
  5835. # the test eventually succeeds (with a max line length of 256k).
  5836. # Instead, let's just punt: use the minimum linelength reported by
  5837. # all of the supported platforms: 8192 (on NT/2K/XP).
  5838. lt_cv_sys_max_cmd_len=8192;
  5839. ;;
  5840. mint*)
  5841. # On MiNT this can take a long time and run out of memory.
  5842. lt_cv_sys_max_cmd_len=8192;
  5843. ;;
  5844. amigaos*)
  5845. # On AmigaOS with pdksh, this test takes hours, literally.
  5846. # So we just punt and use a minimum line length of 8192.
  5847. lt_cv_sys_max_cmd_len=8192;
  5848. ;;
  5849. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  5850. # This has been around since 386BSD, at least. Likely further.
  5851. if test -x /sbin/sysctl; then
  5852. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5853. elif test -x /usr/sbin/sysctl; then
  5854. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5855. else
  5856. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5857. fi
  5858. # And add a safety zone
  5859. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5860. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5861. ;;
  5862. interix*)
  5863. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5864. lt_cv_sys_max_cmd_len=196608
  5865. ;;
  5866. os2*)
  5867. # The test takes a long time on OS/2.
  5868. lt_cv_sys_max_cmd_len=8192
  5869. ;;
  5870. osf*)
  5871. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5872. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5873. # nice to cause kernel panics so lets avoid the loop below.
  5874. # First set a reasonable default.
  5875. lt_cv_sys_max_cmd_len=16384
  5876. #
  5877. if test -x /sbin/sysconfig; then
  5878. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5879. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5880. esac
  5881. fi
  5882. ;;
  5883. sco3.2v5*)
  5884. lt_cv_sys_max_cmd_len=102400
  5885. ;;
  5886. sysv5* | sco5v6* | sysv4.2uw2*)
  5887. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5888. if test -n "$kargmax"; then
  5889. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  5890. else
  5891. lt_cv_sys_max_cmd_len=32768
  5892. fi
  5893. ;;
  5894. *)
  5895. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5896. if test -n "$lt_cv_sys_max_cmd_len" && \
  5897. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5898. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5899. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5900. else
  5901. # Make teststring a little bigger before we do anything with it.
  5902. # a 1K string should be a reasonable start.
  5903. for i in 1 2 3 4 5 6 7 8; do
  5904. teststring=$teststring$teststring
  5905. done
  5906. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5907. # If test is not a shell built-in, we'll probably end up computing a
  5908. # maximum length that is only half of the actual maximum length, but
  5909. # we can't tell.
  5910. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5911. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5912. test 17 != "$i" # 1/2 MB should be enough
  5913. do
  5914. i=`expr $i + 1`
  5915. teststring=$teststring$teststring
  5916. done
  5917. # Only check the string length outside the loop.
  5918. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5919. teststring=
  5920. # Add a significant safety factor because C++ compilers can tack on
  5921. # massive amounts of additional arguments before passing them to the
  5922. # linker. It appears as though 1/2 is a usable value.
  5923. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5924. fi
  5925. ;;
  5926. esac
  5927. fi
  5928. if test -n "$lt_cv_sys_max_cmd_len"; then
  5929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5930. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5931. else
  5932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5933. printf "%s\n" "none" >&6; }
  5934. fi
  5935. max_cmd_len=$lt_cv_sys_max_cmd_len
  5936. : ${CP="cp -f"}
  5937. : ${MV="mv -f"}
  5938. : ${RM="rm -f"}
  5939. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5940. lt_unset=unset
  5941. else
  5942. lt_unset=false
  5943. fi
  5944. # test EBCDIC or ASCII
  5945. case `echo X|tr X '\101'` in
  5946. A) # ASCII based system
  5947. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5948. lt_SP2NL='tr \040 \012'
  5949. lt_NL2SP='tr \015\012 \040\040'
  5950. ;;
  5951. *) # EBCDIC based system
  5952. lt_SP2NL='tr \100 \n'
  5953. lt_NL2SP='tr \r\n \100\100'
  5954. ;;
  5955. esac
  5956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5957. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5958. if test ${lt_cv_to_host_file_cmd+y}
  5959. then :
  5960. printf %s "(cached) " >&6
  5961. else $as_nop
  5962. case $host in
  5963. *-*-mingw* )
  5964. case $build in
  5965. *-*-mingw* ) # actually msys
  5966. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5967. ;;
  5968. *-*-cygwin* )
  5969. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5970. ;;
  5971. * ) # otherwise, assume *nix
  5972. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5973. ;;
  5974. esac
  5975. ;;
  5976. *-*-cygwin* )
  5977. case $build in
  5978. *-*-mingw* ) # actually msys
  5979. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5980. ;;
  5981. *-*-cygwin* )
  5982. lt_cv_to_host_file_cmd=func_convert_file_noop
  5983. ;;
  5984. * ) # otherwise, assume *nix
  5985. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5986. ;;
  5987. esac
  5988. ;;
  5989. * ) # unhandled hosts (and "normal" native builds)
  5990. lt_cv_to_host_file_cmd=func_convert_file_noop
  5991. ;;
  5992. esac
  5993. fi
  5994. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5996. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5998. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5999. if test ${lt_cv_to_tool_file_cmd+y}
  6000. then :
  6001. printf %s "(cached) " >&6
  6002. else $as_nop
  6003. #assume ordinary cross tools, or native build.
  6004. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6005. case $host in
  6006. *-*-mingw* )
  6007. case $build in
  6008. *-*-mingw* ) # actually msys
  6009. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6010. ;;
  6011. esac
  6012. ;;
  6013. esac
  6014. fi
  6015. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6017. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  6018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6019. printf %s "checking for $LD option to reload object files... " >&6; }
  6020. if test ${lt_cv_ld_reload_flag+y}
  6021. then :
  6022. printf %s "(cached) " >&6
  6023. else $as_nop
  6024. lt_cv_ld_reload_flag='-r'
  6025. fi
  6026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6027. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  6028. reload_flag=$lt_cv_ld_reload_flag
  6029. case $reload_flag in
  6030. "" | " "*) ;;
  6031. *) reload_flag=" $reload_flag" ;;
  6032. esac
  6033. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6034. case $host_os in
  6035. cygwin* | mingw* | pw32* | cegcc*)
  6036. if test yes != "$GCC"; then
  6037. reload_cmds=false
  6038. fi
  6039. ;;
  6040. darwin*)
  6041. if test yes = "$GCC"; then
  6042. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6043. else
  6044. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6045. fi
  6046. ;;
  6047. esac
  6048. if test -n "$ac_tool_prefix"; then
  6049. # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
  6050. set dummy ${ac_tool_prefix}file; ac_word=$2
  6051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6052. printf %s "checking for $ac_word... " >&6; }
  6053. if test ${ac_cv_prog_FILECMD+y}
  6054. then :
  6055. printf %s "(cached) " >&6
  6056. else $as_nop
  6057. if test -n "$FILECMD"; then
  6058. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  6059. else
  6060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6061. for as_dir in $PATH
  6062. do
  6063. IFS=$as_save_IFS
  6064. case $as_dir in #(((
  6065. '') as_dir=./ ;;
  6066. */) ;;
  6067. *) as_dir=$as_dir/ ;;
  6068. esac
  6069. for ac_exec_ext in '' $ac_executable_extensions; do
  6070. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6071. ac_cv_prog_FILECMD="${ac_tool_prefix}file"
  6072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6073. break 2
  6074. fi
  6075. done
  6076. done
  6077. IFS=$as_save_IFS
  6078. fi
  6079. fi
  6080. FILECMD=$ac_cv_prog_FILECMD
  6081. if test -n "$FILECMD"; then
  6082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  6083. printf "%s\n" "$FILECMD" >&6; }
  6084. else
  6085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6086. printf "%s\n" "no" >&6; }
  6087. fi
  6088. fi
  6089. if test -z "$ac_cv_prog_FILECMD"; then
  6090. ac_ct_FILECMD=$FILECMD
  6091. # Extract the first word of "file", so it can be a program name with args.
  6092. set dummy file; ac_word=$2
  6093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6094. printf %s "checking for $ac_word... " >&6; }
  6095. if test ${ac_cv_prog_ac_ct_FILECMD+y}
  6096. then :
  6097. printf %s "(cached) " >&6
  6098. else $as_nop
  6099. if test -n "$ac_ct_FILECMD"; then
  6100. ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
  6101. else
  6102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6103. for as_dir in $PATH
  6104. do
  6105. IFS=$as_save_IFS
  6106. case $as_dir in #(((
  6107. '') as_dir=./ ;;
  6108. */) ;;
  6109. *) as_dir=$as_dir/ ;;
  6110. esac
  6111. for ac_exec_ext in '' $ac_executable_extensions; do
  6112. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6113. ac_cv_prog_ac_ct_FILECMD="file"
  6114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6115. break 2
  6116. fi
  6117. done
  6118. done
  6119. IFS=$as_save_IFS
  6120. fi
  6121. fi
  6122. ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
  6123. if test -n "$ac_ct_FILECMD"; then
  6124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
  6125. printf "%s\n" "$ac_ct_FILECMD" >&6; }
  6126. else
  6127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6128. printf "%s\n" "no" >&6; }
  6129. fi
  6130. if test "x$ac_ct_FILECMD" = x; then
  6131. FILECMD=":"
  6132. else
  6133. case $cross_compiling:$ac_tool_warned in
  6134. yes:)
  6135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6136. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6137. ac_tool_warned=yes ;;
  6138. esac
  6139. FILECMD=$ac_ct_FILECMD
  6140. fi
  6141. else
  6142. FILECMD="$ac_cv_prog_FILECMD"
  6143. fi
  6144. if test -n "$ac_tool_prefix"; then
  6145. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6146. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6148. printf %s "checking for $ac_word... " >&6; }
  6149. if test ${ac_cv_prog_OBJDUMP+y}
  6150. then :
  6151. printf %s "(cached) " >&6
  6152. else $as_nop
  6153. if test -n "$OBJDUMP"; then
  6154. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6155. else
  6156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6157. for as_dir in $PATH
  6158. do
  6159. IFS=$as_save_IFS
  6160. case $as_dir in #(((
  6161. '') as_dir=./ ;;
  6162. */) ;;
  6163. *) as_dir=$as_dir/ ;;
  6164. esac
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6167. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. OBJDUMP=$ac_cv_prog_OBJDUMP
  6177. if test -n "$OBJDUMP"; then
  6178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6179. printf "%s\n" "$OBJDUMP" >&6; }
  6180. else
  6181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. printf "%s\n" "no" >&6; }
  6183. fi
  6184. fi
  6185. if test -z "$ac_cv_prog_OBJDUMP"; then
  6186. ac_ct_OBJDUMP=$OBJDUMP
  6187. # Extract the first word of "objdump", so it can be a program name with args.
  6188. set dummy objdump; ac_word=$2
  6189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6190. printf %s "checking for $ac_word... " >&6; }
  6191. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6192. then :
  6193. printf %s "(cached) " >&6
  6194. else $as_nop
  6195. if test -n "$ac_ct_OBJDUMP"; then
  6196. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6197. else
  6198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6199. for as_dir in $PATH
  6200. do
  6201. IFS=$as_save_IFS
  6202. case $as_dir in #(((
  6203. '') as_dir=./ ;;
  6204. */) ;;
  6205. *) as_dir=$as_dir/ ;;
  6206. esac
  6207. for ac_exec_ext in '' $ac_executable_extensions; do
  6208. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6209. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6211. break 2
  6212. fi
  6213. done
  6214. done
  6215. IFS=$as_save_IFS
  6216. fi
  6217. fi
  6218. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6219. if test -n "$ac_ct_OBJDUMP"; then
  6220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6221. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6222. else
  6223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6224. printf "%s\n" "no" >&6; }
  6225. fi
  6226. if test "x$ac_ct_OBJDUMP" = x; then
  6227. OBJDUMP="false"
  6228. else
  6229. case $cross_compiling:$ac_tool_warned in
  6230. yes:)
  6231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6232. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6233. ac_tool_warned=yes ;;
  6234. esac
  6235. OBJDUMP=$ac_ct_OBJDUMP
  6236. fi
  6237. else
  6238. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6239. fi
  6240. test -z "$OBJDUMP" && OBJDUMP=objdump
  6241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6242. printf %s "checking how to recognize dependent libraries... " >&6; }
  6243. if test ${lt_cv_deplibs_check_method+y}
  6244. then :
  6245. printf %s "(cached) " >&6
  6246. else $as_nop
  6247. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6248. lt_cv_file_magic_test_file=
  6249. lt_cv_deplibs_check_method='unknown'
  6250. # Need to set the preceding variable on all platforms that support
  6251. # interlibrary dependencies.
  6252. # 'none' -- dependencies not supported.
  6253. # 'unknown' -- same as none, but documents that we really don't know.
  6254. # 'pass_all' -- all dependencies passed with no checks.
  6255. # 'test_compile' -- check by making test program.
  6256. # 'file_magic [[regex]]' -- check by looking for files in library path
  6257. # that responds to the $file_magic_cmd with a given extended regex.
  6258. # If you have 'file' or equivalent on your system and you're not sure
  6259. # whether 'pass_all' will *always* work, you probably want this one.
  6260. case $host_os in
  6261. aix[4-9]*)
  6262. lt_cv_deplibs_check_method=pass_all
  6263. ;;
  6264. beos*)
  6265. lt_cv_deplibs_check_method=pass_all
  6266. ;;
  6267. bsdi[45]*)
  6268. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6269. lt_cv_file_magic_cmd='$FILECMD -L'
  6270. lt_cv_file_magic_test_file=/shlib/libc.so
  6271. ;;
  6272. cygwin*)
  6273. # func_win32_libid is a shell function defined in ltmain.sh
  6274. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6275. lt_cv_file_magic_cmd='func_win32_libid'
  6276. ;;
  6277. mingw* | pw32*)
  6278. # Base MSYS/MinGW do not provide the 'file' command needed by
  6279. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6280. # unless we find 'file', for example because we are cross-compiling.
  6281. if ( file / ) >/dev/null 2>&1; then
  6282. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6283. lt_cv_file_magic_cmd='func_win32_libid'
  6284. else
  6285. # Keep this pattern in sync with the one in func_win32_libid.
  6286. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6287. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6288. fi
  6289. ;;
  6290. cegcc*)
  6291. # use the weaker test based on 'objdump'. See mingw*.
  6292. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6293. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6294. ;;
  6295. darwin* | rhapsody*)
  6296. lt_cv_deplibs_check_method=pass_all
  6297. ;;
  6298. freebsd* | dragonfly* | midnightbsd*)
  6299. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6300. case $host_cpu in
  6301. i*86 )
  6302. # Not sure whether the presence of OpenBSD here was a mistake.
  6303. # Let's accept both of them until this is cleared up.
  6304. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6305. lt_cv_file_magic_cmd=$FILECMD
  6306. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6307. ;;
  6308. esac
  6309. else
  6310. lt_cv_deplibs_check_method=pass_all
  6311. fi
  6312. ;;
  6313. haiku*)
  6314. lt_cv_deplibs_check_method=pass_all
  6315. ;;
  6316. hpux10.20* | hpux11*)
  6317. lt_cv_file_magic_cmd=$FILECMD
  6318. case $host_cpu in
  6319. ia64*)
  6320. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6321. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6322. ;;
  6323. hppa*64*)
  6324. 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]'
  6325. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6326. ;;
  6327. *)
  6328. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6329. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6330. ;;
  6331. esac
  6332. ;;
  6333. interix[3-9]*)
  6334. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6335. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6336. ;;
  6337. irix5* | irix6* | nonstopux*)
  6338. case $LD in
  6339. *-32|*"-32 ") libmagic=32-bit;;
  6340. *-n32|*"-n32 ") libmagic=N32;;
  6341. *-64|*"-64 ") libmagic=64-bit;;
  6342. *) libmagic=never-match;;
  6343. esac
  6344. lt_cv_deplibs_check_method=pass_all
  6345. ;;
  6346. # This must be glibc/ELF.
  6347. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6348. lt_cv_deplibs_check_method=pass_all
  6349. ;;
  6350. netbsd* | netbsdelf*-gnu)
  6351. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6352. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6353. else
  6354. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6355. fi
  6356. ;;
  6357. newos6*)
  6358. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6359. lt_cv_file_magic_cmd=$FILECMD
  6360. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6361. ;;
  6362. *nto* | *qnx*)
  6363. lt_cv_deplibs_check_method=pass_all
  6364. ;;
  6365. openbsd* | bitrig*)
  6366. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6367. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6368. else
  6369. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6370. fi
  6371. ;;
  6372. osf3* | osf4* | osf5*)
  6373. lt_cv_deplibs_check_method=pass_all
  6374. ;;
  6375. rdos*)
  6376. lt_cv_deplibs_check_method=pass_all
  6377. ;;
  6378. solaris*)
  6379. lt_cv_deplibs_check_method=pass_all
  6380. ;;
  6381. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6382. lt_cv_deplibs_check_method=pass_all
  6383. ;;
  6384. sysv4 | sysv4.3*)
  6385. case $host_vendor in
  6386. motorola)
  6387. 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]'
  6388. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6389. ;;
  6390. ncr)
  6391. lt_cv_deplibs_check_method=pass_all
  6392. ;;
  6393. sequent)
  6394. lt_cv_file_magic_cmd='/bin/file'
  6395. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6396. ;;
  6397. sni)
  6398. lt_cv_file_magic_cmd='/bin/file'
  6399. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6400. lt_cv_file_magic_test_file=/lib/libc.so
  6401. ;;
  6402. siemens)
  6403. lt_cv_deplibs_check_method=pass_all
  6404. ;;
  6405. pc)
  6406. lt_cv_deplibs_check_method=pass_all
  6407. ;;
  6408. esac
  6409. ;;
  6410. tpf*)
  6411. lt_cv_deplibs_check_method=pass_all
  6412. ;;
  6413. os2*)
  6414. lt_cv_deplibs_check_method=pass_all
  6415. ;;
  6416. esac
  6417. fi
  6418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6419. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6420. file_magic_glob=
  6421. want_nocaseglob=no
  6422. if test "$build" = "$host"; then
  6423. case $host_os in
  6424. mingw* | pw32*)
  6425. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6426. want_nocaseglob=yes
  6427. else
  6428. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6429. fi
  6430. ;;
  6431. esac
  6432. fi
  6433. file_magic_cmd=$lt_cv_file_magic_cmd
  6434. deplibs_check_method=$lt_cv_deplibs_check_method
  6435. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6436. if test -n "$ac_tool_prefix"; then
  6437. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6438. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6440. printf %s "checking for $ac_word... " >&6; }
  6441. if test ${ac_cv_prog_DLLTOOL+y}
  6442. then :
  6443. printf %s "(cached) " >&6
  6444. else $as_nop
  6445. if test -n "$DLLTOOL"; then
  6446. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6447. else
  6448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6449. for as_dir in $PATH
  6450. do
  6451. IFS=$as_save_IFS
  6452. case $as_dir in #(((
  6453. '') as_dir=./ ;;
  6454. */) ;;
  6455. *) as_dir=$as_dir/ ;;
  6456. esac
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6459. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. fi
  6467. fi
  6468. DLLTOOL=$ac_cv_prog_DLLTOOL
  6469. if test -n "$DLLTOOL"; then
  6470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6471. printf "%s\n" "$DLLTOOL" >&6; }
  6472. else
  6473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6474. printf "%s\n" "no" >&6; }
  6475. fi
  6476. fi
  6477. if test -z "$ac_cv_prog_DLLTOOL"; then
  6478. ac_ct_DLLTOOL=$DLLTOOL
  6479. # Extract the first word of "dlltool", so it can be a program name with args.
  6480. set dummy dlltool; ac_word=$2
  6481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. printf %s "checking for $ac_word... " >&6; }
  6483. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6484. then :
  6485. printf %s "(cached) " >&6
  6486. else $as_nop
  6487. if test -n "$ac_ct_DLLTOOL"; then
  6488. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6489. else
  6490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6491. for as_dir in $PATH
  6492. do
  6493. IFS=$as_save_IFS
  6494. case $as_dir in #(((
  6495. '') as_dir=./ ;;
  6496. */) ;;
  6497. *) as_dir=$as_dir/ ;;
  6498. esac
  6499. for ac_exec_ext in '' $ac_executable_extensions; do
  6500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6501. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6503. break 2
  6504. fi
  6505. done
  6506. done
  6507. IFS=$as_save_IFS
  6508. fi
  6509. fi
  6510. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6511. if test -n "$ac_ct_DLLTOOL"; then
  6512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6513. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6514. else
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6516. printf "%s\n" "no" >&6; }
  6517. fi
  6518. if test "x$ac_ct_DLLTOOL" = x; then
  6519. DLLTOOL="false"
  6520. else
  6521. case $cross_compiling:$ac_tool_warned in
  6522. yes:)
  6523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6524. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6525. ac_tool_warned=yes ;;
  6526. esac
  6527. DLLTOOL=$ac_ct_DLLTOOL
  6528. fi
  6529. else
  6530. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6531. fi
  6532. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6534. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6535. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6536. then :
  6537. printf %s "(cached) " >&6
  6538. else $as_nop
  6539. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6540. case $host_os in
  6541. cygwin* | mingw* | pw32* | cegcc*)
  6542. # two different shell functions defined in ltmain.sh;
  6543. # decide which one to use based on capabilities of $DLLTOOL
  6544. case `$DLLTOOL --help 2>&1` in
  6545. *--identify-strict*)
  6546. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6547. ;;
  6548. *)
  6549. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6550. ;;
  6551. esac
  6552. ;;
  6553. *)
  6554. # fallback: assume linklib IS sharedlib
  6555. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6556. ;;
  6557. esac
  6558. fi
  6559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6560. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6561. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6562. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6563. if test -n "$ac_tool_prefix"; then
  6564. for ac_prog in ar
  6565. do
  6566. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6567. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6569. printf %s "checking for $ac_word... " >&6; }
  6570. if test ${ac_cv_prog_AR+y}
  6571. then :
  6572. printf %s "(cached) " >&6
  6573. else $as_nop
  6574. if test -n "$AR"; then
  6575. ac_cv_prog_AR="$AR" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. case $as_dir in #(((
  6582. '') as_dir=./ ;;
  6583. */) ;;
  6584. *) as_dir=$as_dir/ ;;
  6585. esac
  6586. for ac_exec_ext in '' $ac_executable_extensions; do
  6587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6588. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6590. break 2
  6591. fi
  6592. done
  6593. done
  6594. IFS=$as_save_IFS
  6595. fi
  6596. fi
  6597. AR=$ac_cv_prog_AR
  6598. if test -n "$AR"; then
  6599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6600. printf "%s\n" "$AR" >&6; }
  6601. else
  6602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6603. printf "%s\n" "no" >&6; }
  6604. fi
  6605. test -n "$AR" && break
  6606. done
  6607. fi
  6608. if test -z "$AR"; then
  6609. ac_ct_AR=$AR
  6610. for ac_prog in ar
  6611. do
  6612. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6613. set dummy $ac_prog; ac_word=$2
  6614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6615. printf %s "checking for $ac_word... " >&6; }
  6616. if test ${ac_cv_prog_ac_ct_AR+y}
  6617. then :
  6618. printf %s "(cached) " >&6
  6619. else $as_nop
  6620. if test -n "$ac_ct_AR"; then
  6621. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. case $as_dir in #(((
  6628. '') as_dir=./ ;;
  6629. */) ;;
  6630. *) as_dir=$as_dir/ ;;
  6631. esac
  6632. for ac_exec_ext in '' $ac_executable_extensions; do
  6633. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6634. ac_cv_prog_ac_ct_AR="$ac_prog"
  6635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6636. break 2
  6637. fi
  6638. done
  6639. done
  6640. IFS=$as_save_IFS
  6641. fi
  6642. fi
  6643. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6644. if test -n "$ac_ct_AR"; then
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6646. printf "%s\n" "$ac_ct_AR" >&6; }
  6647. else
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6649. printf "%s\n" "no" >&6; }
  6650. fi
  6651. test -n "$ac_ct_AR" && break
  6652. done
  6653. if test "x$ac_ct_AR" = x; then
  6654. AR="false"
  6655. else
  6656. case $cross_compiling:$ac_tool_warned in
  6657. yes:)
  6658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6659. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6660. ac_tool_warned=yes ;;
  6661. esac
  6662. AR=$ac_ct_AR
  6663. fi
  6664. fi
  6665. : ${AR=ar}
  6666. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6667. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6668. # higher priority because thats what people were doing historically (setting
  6669. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6670. # variable obsoleted/removed.
  6671. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6672. lt_ar_flags=$AR_FLAGS
  6673. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6674. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6676. printf %s "checking for archiver @FILE support... " >&6; }
  6677. if test ${lt_cv_ar_at_file+y}
  6678. then :
  6679. printf %s "(cached) " >&6
  6680. else $as_nop
  6681. lt_cv_ar_at_file=no
  6682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6683. /* end confdefs.h. */
  6684. int
  6685. main (void)
  6686. {
  6687. ;
  6688. return 0;
  6689. }
  6690. _ACEOF
  6691. if ac_fn_c_try_compile "$LINENO"
  6692. then :
  6693. echo conftest.$ac_objext > conftest.lst
  6694. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6695. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6696. (eval $lt_ar_try) 2>&5
  6697. ac_status=$?
  6698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6699. test $ac_status = 0; }
  6700. if test 0 -eq "$ac_status"; then
  6701. # Ensure the archiver fails upon bogus file names.
  6702. rm -f conftest.$ac_objext libconftest.a
  6703. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6704. (eval $lt_ar_try) 2>&5
  6705. ac_status=$?
  6706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6707. test $ac_status = 0; }
  6708. if test 0 -ne "$ac_status"; then
  6709. lt_cv_ar_at_file=@
  6710. fi
  6711. fi
  6712. rm -f conftest.* libconftest.a
  6713. fi
  6714. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6715. fi
  6716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6717. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6718. if test no = "$lt_cv_ar_at_file"; then
  6719. archiver_list_spec=
  6720. else
  6721. archiver_list_spec=$lt_cv_ar_at_file
  6722. fi
  6723. if test -n "$ac_tool_prefix"; then
  6724. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6725. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6727. printf %s "checking for $ac_word... " >&6; }
  6728. if test ${ac_cv_prog_STRIP+y}
  6729. then :
  6730. printf %s "(cached) " >&6
  6731. else $as_nop
  6732. if test -n "$STRIP"; then
  6733. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6734. else
  6735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6736. for as_dir in $PATH
  6737. do
  6738. IFS=$as_save_IFS
  6739. case $as_dir in #(((
  6740. '') as_dir=./ ;;
  6741. */) ;;
  6742. *) as_dir=$as_dir/ ;;
  6743. esac
  6744. for ac_exec_ext in '' $ac_executable_extensions; do
  6745. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6746. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6747. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6748. break 2
  6749. fi
  6750. done
  6751. done
  6752. IFS=$as_save_IFS
  6753. fi
  6754. fi
  6755. STRIP=$ac_cv_prog_STRIP
  6756. if test -n "$STRIP"; then
  6757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6758. printf "%s\n" "$STRIP" >&6; }
  6759. else
  6760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6761. printf "%s\n" "no" >&6; }
  6762. fi
  6763. fi
  6764. if test -z "$ac_cv_prog_STRIP"; then
  6765. ac_ct_STRIP=$STRIP
  6766. # Extract the first word of "strip", so it can be a program name with args.
  6767. set dummy strip; ac_word=$2
  6768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6769. printf %s "checking for $ac_word... " >&6; }
  6770. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6771. then :
  6772. printf %s "(cached) " >&6
  6773. else $as_nop
  6774. if test -n "$ac_ct_STRIP"; then
  6775. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6776. else
  6777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6778. for as_dir in $PATH
  6779. do
  6780. IFS=$as_save_IFS
  6781. case $as_dir in #(((
  6782. '') as_dir=./ ;;
  6783. */) ;;
  6784. *) as_dir=$as_dir/ ;;
  6785. esac
  6786. for ac_exec_ext in '' $ac_executable_extensions; do
  6787. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6788. ac_cv_prog_ac_ct_STRIP="strip"
  6789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6790. break 2
  6791. fi
  6792. done
  6793. done
  6794. IFS=$as_save_IFS
  6795. fi
  6796. fi
  6797. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6798. if test -n "$ac_ct_STRIP"; then
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6800. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6801. else
  6802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6803. printf "%s\n" "no" >&6; }
  6804. fi
  6805. if test "x$ac_ct_STRIP" = x; then
  6806. STRIP=":"
  6807. else
  6808. case $cross_compiling:$ac_tool_warned in
  6809. yes:)
  6810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6811. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6812. ac_tool_warned=yes ;;
  6813. esac
  6814. STRIP=$ac_ct_STRIP
  6815. fi
  6816. else
  6817. STRIP="$ac_cv_prog_STRIP"
  6818. fi
  6819. test -z "$STRIP" && STRIP=:
  6820. if test -n "$ac_tool_prefix"; then
  6821. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6822. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6824. printf %s "checking for $ac_word... " >&6; }
  6825. if test ${ac_cv_prog_RANLIB+y}
  6826. then :
  6827. printf %s "(cached) " >&6
  6828. else $as_nop
  6829. if test -n "$RANLIB"; then
  6830. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6831. else
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. case $as_dir in #(((
  6837. '') as_dir=./ ;;
  6838. */) ;;
  6839. *) as_dir=$as_dir/ ;;
  6840. esac
  6841. for ac_exec_ext in '' $ac_executable_extensions; do
  6842. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6843. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6844. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6845. break 2
  6846. fi
  6847. done
  6848. done
  6849. IFS=$as_save_IFS
  6850. fi
  6851. fi
  6852. RANLIB=$ac_cv_prog_RANLIB
  6853. if test -n "$RANLIB"; then
  6854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6855. printf "%s\n" "$RANLIB" >&6; }
  6856. else
  6857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6858. printf "%s\n" "no" >&6; }
  6859. fi
  6860. fi
  6861. if test -z "$ac_cv_prog_RANLIB"; then
  6862. ac_ct_RANLIB=$RANLIB
  6863. # Extract the first word of "ranlib", so it can be a program name with args.
  6864. set dummy ranlib; ac_word=$2
  6865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6866. printf %s "checking for $ac_word... " >&6; }
  6867. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6868. then :
  6869. printf %s "(cached) " >&6
  6870. else $as_nop
  6871. if test -n "$ac_ct_RANLIB"; then
  6872. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6873. else
  6874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6875. for as_dir in $PATH
  6876. do
  6877. IFS=$as_save_IFS
  6878. case $as_dir in #(((
  6879. '') as_dir=./ ;;
  6880. */) ;;
  6881. *) as_dir=$as_dir/ ;;
  6882. esac
  6883. for ac_exec_ext in '' $ac_executable_extensions; do
  6884. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6885. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6887. break 2
  6888. fi
  6889. done
  6890. done
  6891. IFS=$as_save_IFS
  6892. fi
  6893. fi
  6894. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6895. if test -n "$ac_ct_RANLIB"; then
  6896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6897. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6898. else
  6899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6900. printf "%s\n" "no" >&6; }
  6901. fi
  6902. if test "x$ac_ct_RANLIB" = x; then
  6903. RANLIB=":"
  6904. else
  6905. case $cross_compiling:$ac_tool_warned in
  6906. yes:)
  6907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6908. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6909. ac_tool_warned=yes ;;
  6910. esac
  6911. RANLIB=$ac_ct_RANLIB
  6912. fi
  6913. else
  6914. RANLIB="$ac_cv_prog_RANLIB"
  6915. fi
  6916. test -z "$RANLIB" && RANLIB=:
  6917. # Determine commands to create old-style static archives.
  6918. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6919. old_postinstall_cmds='chmod 644 $oldlib'
  6920. old_postuninstall_cmds=
  6921. if test -n "$RANLIB"; then
  6922. case $host_os in
  6923. bitrig* | openbsd*)
  6924. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6925. ;;
  6926. *)
  6927. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6928. ;;
  6929. esac
  6930. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6931. fi
  6932. case $host_os in
  6933. darwin*)
  6934. lock_old_archive_extraction=yes ;;
  6935. *)
  6936. lock_old_archive_extraction=no ;;
  6937. esac
  6938. # If no C compiler was specified, use CC.
  6939. LTCC=${LTCC-"$CC"}
  6940. # If no C compiler flags were specified, use CFLAGS.
  6941. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6942. # Allow CC to be a program name with arguments.
  6943. compiler=$CC
  6944. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6946. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6947. if test ${lt_cv_sys_global_symbol_pipe+y}
  6948. then :
  6949. printf %s "(cached) " >&6
  6950. else $as_nop
  6951. # These are sane defaults that work on at least a few old systems.
  6952. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6953. # Character class describing NM global symbol codes.
  6954. symcode='[BCDEGRST]'
  6955. # Regexp to match symbols that can be accessed directly from C.
  6956. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6957. # Define system-specific variables.
  6958. case $host_os in
  6959. aix*)
  6960. symcode='[BCDT]'
  6961. ;;
  6962. cygwin* | mingw* | pw32* | cegcc*)
  6963. symcode='[ABCDGISTW]'
  6964. ;;
  6965. hpux*)
  6966. if test ia64 = "$host_cpu"; then
  6967. symcode='[ABCDEGRST]'
  6968. fi
  6969. ;;
  6970. irix* | nonstopux*)
  6971. symcode='[BCDEGRST]'
  6972. ;;
  6973. osf*)
  6974. symcode='[BCDEGQRST]'
  6975. ;;
  6976. solaris*)
  6977. symcode='[BDRT]'
  6978. ;;
  6979. sco3.2v5*)
  6980. symcode='[DT]'
  6981. ;;
  6982. sysv4.2uw2*)
  6983. symcode='[DT]'
  6984. ;;
  6985. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6986. symcode='[ABDT]'
  6987. ;;
  6988. sysv4)
  6989. symcode='[DFNSTU]'
  6990. ;;
  6991. esac
  6992. # If we're using GNU nm, then use its standard symbol codes.
  6993. case `$NM -V 2>&1` in
  6994. *GNU* | *'with BFD'*)
  6995. symcode='[ABCDGIRSTW]' ;;
  6996. esac
  6997. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6998. # Gets list of data symbols to import.
  6999. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  7000. # Adjust the below global symbol transforms to fixup imported variables.
  7001. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7002. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7003. lt_c_name_lib_hook="\
  7004. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7005. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7006. else
  7007. # Disable hooks by default.
  7008. lt_cv_sys_global_symbol_to_import=
  7009. lt_cdecl_hook=
  7010. lt_c_name_hook=
  7011. lt_c_name_lib_hook=
  7012. fi
  7013. # Transform an extracted symbol line into a proper C declaration.
  7014. # Some systems (esp. on ia64) link data and code symbols differently,
  7015. # so use this general approach.
  7016. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  7017. $lt_cdecl_hook\
  7018. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7019. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7020. # Transform an extracted symbol line into symbol name and symbol address
  7021. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  7022. $lt_c_name_hook\
  7023. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7024. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7025. # Transform an extracted symbol line into symbol name with lib prefix and
  7026. # symbol address.
  7027. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  7028. $lt_c_name_lib_hook\
  7029. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7030. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7031. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7032. # Handle CRLF in mingw tool chain
  7033. opt_cr=
  7034. case $build_os in
  7035. mingw*)
  7036. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7037. ;;
  7038. esac
  7039. # Try without a prefix underscore, then with it.
  7040. for ac_symprfx in "" "_"; do
  7041. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7042. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7043. # Write the raw and C identifiers.
  7044. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7045. # Fake it for dumpbin and say T for any non-static function,
  7046. # D for any global variable and I for any imported variable.
  7047. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  7048. # which start with @ or ?.
  7049. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7050. " {last_section=section; section=\$ 3};"\
  7051. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7052. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7053. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7054. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7055. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7056. " \$ 0!~/External *\|/{next};"\
  7057. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7058. " {if(hide[section]) next};"\
  7059. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7060. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7061. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7062. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7063. " ' prfx=^$ac_symprfx"
  7064. else
  7065. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7066. fi
  7067. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  7068. # Check to see that the pipe works correctly.
  7069. pipe_works=no
  7070. rm -f conftest*
  7071. cat > conftest.$ac_ext <<_LT_EOF
  7072. #ifdef __cplusplus
  7073. extern "C" {
  7074. #endif
  7075. char nm_test_var;
  7076. void nm_test_func(void);
  7077. void nm_test_func(void){}
  7078. #ifdef __cplusplus
  7079. }
  7080. #endif
  7081. int main(){nm_test_var='a';nm_test_func();return(0);}
  7082. _LT_EOF
  7083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7084. (eval $ac_compile) 2>&5
  7085. ac_status=$?
  7086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7087. test $ac_status = 0; }; then
  7088. # Now try to grab the symbols.
  7089. nlist=conftest.nm
  7090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7091. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7092. ac_status=$?
  7093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7094. test $ac_status = 0; } && test -s "$nlist"; then
  7095. # Try sorting and uniquifying the output.
  7096. if sort "$nlist" | uniq > "$nlist"T; then
  7097. mv -f "$nlist"T "$nlist"
  7098. else
  7099. rm -f "$nlist"T
  7100. fi
  7101. # Make sure that we snagged all the symbols we need.
  7102. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7103. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7104. cat <<_LT_EOF > conftest.$ac_ext
  7105. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7106. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7107. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7108. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7109. # define LT_DLSYM_CONST
  7110. #elif defined __osf__
  7111. /* This system does not cope well with relocations in const data. */
  7112. # define LT_DLSYM_CONST
  7113. #else
  7114. # define LT_DLSYM_CONST const
  7115. #endif
  7116. #ifdef __cplusplus
  7117. extern "C" {
  7118. #endif
  7119. _LT_EOF
  7120. # Now generate the symbol file.
  7121. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7122. cat <<_LT_EOF >> conftest.$ac_ext
  7123. /* The mapping between symbol names and symbols. */
  7124. LT_DLSYM_CONST struct {
  7125. const char *name;
  7126. void *address;
  7127. }
  7128. lt__PROGRAM__LTX_preloaded_symbols[] =
  7129. {
  7130. { "@PROGRAM@", (void *) 0 },
  7131. _LT_EOF
  7132. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7133. cat <<\_LT_EOF >> conftest.$ac_ext
  7134. {0, (void *) 0}
  7135. };
  7136. /* This works around a problem in FreeBSD linker */
  7137. #ifdef FREEBSD_WORKAROUND
  7138. static const void *lt_preloaded_setup() {
  7139. return lt__PROGRAM__LTX_preloaded_symbols;
  7140. }
  7141. #endif
  7142. #ifdef __cplusplus
  7143. }
  7144. #endif
  7145. _LT_EOF
  7146. # Now try linking the two files.
  7147. mv conftest.$ac_objext conftstm.$ac_objext
  7148. lt_globsym_save_LIBS=$LIBS
  7149. lt_globsym_save_CFLAGS=$CFLAGS
  7150. LIBS=conftstm.$ac_objext
  7151. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7152. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7153. (eval $ac_link) 2>&5
  7154. ac_status=$?
  7155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7156. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7157. pipe_works=yes
  7158. fi
  7159. LIBS=$lt_globsym_save_LIBS
  7160. CFLAGS=$lt_globsym_save_CFLAGS
  7161. else
  7162. echo "cannot find nm_test_func in $nlist" >&5
  7163. fi
  7164. else
  7165. echo "cannot find nm_test_var in $nlist" >&5
  7166. fi
  7167. else
  7168. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7169. fi
  7170. else
  7171. echo "$progname: failed program was:" >&5
  7172. cat conftest.$ac_ext >&5
  7173. fi
  7174. rm -rf conftest* conftst*
  7175. # Do not use the global_symbol_pipe unless it works.
  7176. if test yes = "$pipe_works"; then
  7177. break
  7178. else
  7179. lt_cv_sys_global_symbol_pipe=
  7180. fi
  7181. done
  7182. fi
  7183. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7184. lt_cv_sys_global_symbol_to_cdecl=
  7185. fi
  7186. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7188. printf "%s\n" "failed" >&6; }
  7189. else
  7190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7191. printf "%s\n" "ok" >&6; }
  7192. fi
  7193. # Response file support.
  7194. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7195. nm_file_list_spec='@'
  7196. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7197. nm_file_list_spec='@'
  7198. fi
  7199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7200. printf %s "checking for sysroot... " >&6; }
  7201. # Check whether --with-sysroot was given.
  7202. if test ${with_sysroot+y}
  7203. then :
  7204. withval=$with_sysroot;
  7205. else $as_nop
  7206. with_sysroot=no
  7207. fi
  7208. lt_sysroot=
  7209. case $with_sysroot in #(
  7210. yes)
  7211. if test yes = "$GCC"; then
  7212. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7213. fi
  7214. ;; #(
  7215. /*)
  7216. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  7217. ;; #(
  7218. no|'')
  7219. ;; #(
  7220. *)
  7221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7222. printf "%s\n" "$with_sysroot" >&6; }
  7223. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7224. ;;
  7225. esac
  7226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7227. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7229. printf %s "checking for a working dd... " >&6; }
  7230. if test ${ac_cv_path_lt_DD+y}
  7231. then :
  7232. printf %s "(cached) " >&6
  7233. else $as_nop
  7234. printf 0123456789abcdef0123456789abcdef >conftest.i
  7235. cat conftest.i conftest.i >conftest2.i
  7236. : ${lt_DD:=$DD}
  7237. if test -z "$lt_DD"; then
  7238. ac_path_lt_DD_found=false
  7239. # Loop through the user's path and test for each of PROGNAME-LIST
  7240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7241. for as_dir in $PATH
  7242. do
  7243. IFS=$as_save_IFS
  7244. case $as_dir in #(((
  7245. '') as_dir=./ ;;
  7246. */) ;;
  7247. *) as_dir=$as_dir/ ;;
  7248. esac
  7249. for ac_prog in dd
  7250. do
  7251. for ac_exec_ext in '' $ac_executable_extensions; do
  7252. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7253. as_fn_executable_p "$ac_path_lt_DD" || continue
  7254. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7255. cmp -s conftest.i conftest.out \
  7256. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7257. fi
  7258. $ac_path_lt_DD_found && break 3
  7259. done
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. if test -z "$ac_cv_path_lt_DD"; then
  7264. :
  7265. fi
  7266. else
  7267. ac_cv_path_lt_DD=$lt_DD
  7268. fi
  7269. rm -f conftest.i conftest2.i conftest.out
  7270. fi
  7271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7272. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7274. printf %s "checking how to truncate binary pipes... " >&6; }
  7275. if test ${lt_cv_truncate_bin+y}
  7276. then :
  7277. printf %s "(cached) " >&6
  7278. else $as_nop
  7279. printf 0123456789abcdef0123456789abcdef >conftest.i
  7280. cat conftest.i conftest.i >conftest2.i
  7281. lt_cv_truncate_bin=
  7282. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7283. cmp -s conftest.i conftest.out \
  7284. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7285. fi
  7286. rm -f conftest.i conftest2.i conftest.out
  7287. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7288. fi
  7289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7290. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7291. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7292. func_cc_basename ()
  7293. {
  7294. for cc_temp in $*""; do
  7295. case $cc_temp in
  7296. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7297. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7298. \-*) ;;
  7299. *) break;;
  7300. esac
  7301. done
  7302. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7303. }
  7304. # Check whether --enable-libtool-lock was given.
  7305. if test ${enable_libtool_lock+y}
  7306. then :
  7307. enableval=$enable_libtool_lock;
  7308. fi
  7309. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7310. # Some flags need to be propagated to the compiler or linker for good
  7311. # libtool support.
  7312. case $host in
  7313. ia64-*-hpux*)
  7314. # Find out what ABI is being produced by ac_compile, and set mode
  7315. # options accordingly.
  7316. echo 'int i;' > conftest.$ac_ext
  7317. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7318. (eval $ac_compile) 2>&5
  7319. ac_status=$?
  7320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7321. test $ac_status = 0; }; then
  7322. case `$FILECMD conftest.$ac_objext` in
  7323. *ELF-32*)
  7324. HPUX_IA64_MODE=32
  7325. ;;
  7326. *ELF-64*)
  7327. HPUX_IA64_MODE=64
  7328. ;;
  7329. esac
  7330. fi
  7331. rm -rf conftest*
  7332. ;;
  7333. *-*-irix6*)
  7334. # Find out what ABI is being produced by ac_compile, and set linker
  7335. # options accordingly.
  7336. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7337. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7338. (eval $ac_compile) 2>&5
  7339. ac_status=$?
  7340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7341. test $ac_status = 0; }; then
  7342. if test yes = "$lt_cv_prog_gnu_ld"; then
  7343. case `$FILECMD conftest.$ac_objext` in
  7344. *32-bit*)
  7345. LD="${LD-ld} -melf32bsmip"
  7346. ;;
  7347. *N32*)
  7348. LD="${LD-ld} -melf32bmipn32"
  7349. ;;
  7350. *64-bit*)
  7351. LD="${LD-ld} -melf64bmip"
  7352. ;;
  7353. esac
  7354. else
  7355. case `$FILECMD conftest.$ac_objext` in
  7356. *32-bit*)
  7357. LD="${LD-ld} -32"
  7358. ;;
  7359. *N32*)
  7360. LD="${LD-ld} -n32"
  7361. ;;
  7362. *64-bit*)
  7363. LD="${LD-ld} -64"
  7364. ;;
  7365. esac
  7366. fi
  7367. fi
  7368. rm -rf conftest*
  7369. ;;
  7370. mips64*-*linux*)
  7371. # Find out what ABI is being produced by ac_compile, and set linker
  7372. # options accordingly.
  7373. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7375. (eval $ac_compile) 2>&5
  7376. ac_status=$?
  7377. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7378. test $ac_status = 0; }; then
  7379. emul=elf
  7380. case `$FILECMD conftest.$ac_objext` in
  7381. *32-bit*)
  7382. emul="${emul}32"
  7383. ;;
  7384. *64-bit*)
  7385. emul="${emul}64"
  7386. ;;
  7387. esac
  7388. case `$FILECMD conftest.$ac_objext` in
  7389. *MSB*)
  7390. emul="${emul}btsmip"
  7391. ;;
  7392. *LSB*)
  7393. emul="${emul}ltsmip"
  7394. ;;
  7395. esac
  7396. case `$FILECMD conftest.$ac_objext` in
  7397. *N32*)
  7398. emul="${emul}n32"
  7399. ;;
  7400. esac
  7401. LD="${LD-ld} -m $emul"
  7402. fi
  7403. rm -rf conftest*
  7404. ;;
  7405. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7406. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7407. # Find out what ABI is being produced by ac_compile, and set linker
  7408. # options accordingly. Note that the listed cases only cover the
  7409. # situations where additional linker options are needed (such as when
  7410. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7411. # vice versa); the common cases where no linker options are needed do
  7412. # not appear in the list.
  7413. echo 'int i;' > conftest.$ac_ext
  7414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7415. (eval $ac_compile) 2>&5
  7416. ac_status=$?
  7417. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7418. test $ac_status = 0; }; then
  7419. case `$FILECMD conftest.o` in
  7420. *32-bit*)
  7421. case $host in
  7422. x86_64-*kfreebsd*-gnu)
  7423. LD="${LD-ld} -m elf_i386_fbsd"
  7424. ;;
  7425. x86_64-*linux*)
  7426. case `$FILECMD conftest.o` in
  7427. *x86-64*)
  7428. LD="${LD-ld} -m elf32_x86_64"
  7429. ;;
  7430. *)
  7431. LD="${LD-ld} -m elf_i386"
  7432. ;;
  7433. esac
  7434. ;;
  7435. powerpc64le-*linux*)
  7436. LD="${LD-ld} -m elf32lppclinux"
  7437. ;;
  7438. powerpc64-*linux*)
  7439. LD="${LD-ld} -m elf32ppclinux"
  7440. ;;
  7441. s390x-*linux*)
  7442. LD="${LD-ld} -m elf_s390"
  7443. ;;
  7444. sparc64-*linux*)
  7445. LD="${LD-ld} -m elf32_sparc"
  7446. ;;
  7447. esac
  7448. ;;
  7449. *64-bit*)
  7450. case $host in
  7451. x86_64-*kfreebsd*-gnu)
  7452. LD="${LD-ld} -m elf_x86_64_fbsd"
  7453. ;;
  7454. x86_64-*linux*)
  7455. LD="${LD-ld} -m elf_x86_64"
  7456. ;;
  7457. powerpcle-*linux*)
  7458. LD="${LD-ld} -m elf64lppc"
  7459. ;;
  7460. powerpc-*linux*)
  7461. LD="${LD-ld} -m elf64ppc"
  7462. ;;
  7463. s390*-*linux*|s390*-*tpf*)
  7464. LD="${LD-ld} -m elf64_s390"
  7465. ;;
  7466. sparc*-*linux*)
  7467. LD="${LD-ld} -m elf64_sparc"
  7468. ;;
  7469. esac
  7470. ;;
  7471. esac
  7472. fi
  7473. rm -rf conftest*
  7474. ;;
  7475. *-*-sco3.2v5*)
  7476. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7477. SAVE_CFLAGS=$CFLAGS
  7478. CFLAGS="$CFLAGS -belf"
  7479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7480. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7481. if test ${lt_cv_cc_needs_belf+y}
  7482. then :
  7483. printf %s "(cached) " >&6
  7484. else $as_nop
  7485. ac_ext=c
  7486. ac_cpp='$CPP $CPPFLAGS'
  7487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7491. /* end confdefs.h. */
  7492. int
  7493. main (void)
  7494. {
  7495. ;
  7496. return 0;
  7497. }
  7498. _ACEOF
  7499. if ac_fn_c_try_link "$LINENO"
  7500. then :
  7501. lt_cv_cc_needs_belf=yes
  7502. else $as_nop
  7503. lt_cv_cc_needs_belf=no
  7504. fi
  7505. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7506. conftest$ac_exeext conftest.$ac_ext
  7507. ac_ext=c
  7508. ac_cpp='$CPP $CPPFLAGS'
  7509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7512. fi
  7513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7514. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7515. if test yes != "$lt_cv_cc_needs_belf"; then
  7516. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7517. CFLAGS=$SAVE_CFLAGS
  7518. fi
  7519. ;;
  7520. *-*solaris*)
  7521. # Find out what ABI is being produced by ac_compile, and set linker
  7522. # options accordingly.
  7523. echo 'int i;' > conftest.$ac_ext
  7524. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7525. (eval $ac_compile) 2>&5
  7526. ac_status=$?
  7527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7528. test $ac_status = 0; }; then
  7529. case `$FILECMD conftest.o` in
  7530. *64-bit*)
  7531. case $lt_cv_prog_gnu_ld in
  7532. yes*)
  7533. case $host in
  7534. i?86-*-solaris*|x86_64-*-solaris*)
  7535. LD="${LD-ld} -m elf_x86_64"
  7536. ;;
  7537. sparc*-*-solaris*)
  7538. LD="${LD-ld} -m elf64_sparc"
  7539. ;;
  7540. esac
  7541. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7542. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7543. LD=${LD-ld}_sol2
  7544. fi
  7545. ;;
  7546. *)
  7547. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7548. LD="${LD-ld} -64"
  7549. fi
  7550. ;;
  7551. esac
  7552. ;;
  7553. esac
  7554. fi
  7555. rm -rf conftest*
  7556. ;;
  7557. esac
  7558. need_locks=$enable_libtool_lock
  7559. if test -n "$ac_tool_prefix"; then
  7560. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7561. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7563. printf %s "checking for $ac_word... " >&6; }
  7564. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7565. then :
  7566. printf %s "(cached) " >&6
  7567. else $as_nop
  7568. if test -n "$MANIFEST_TOOL"; then
  7569. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7570. else
  7571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7572. for as_dir in $PATH
  7573. do
  7574. IFS=$as_save_IFS
  7575. case $as_dir in #(((
  7576. '') as_dir=./ ;;
  7577. */) ;;
  7578. *) as_dir=$as_dir/ ;;
  7579. esac
  7580. for ac_exec_ext in '' $ac_executable_extensions; do
  7581. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7582. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7583. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7584. break 2
  7585. fi
  7586. done
  7587. done
  7588. IFS=$as_save_IFS
  7589. fi
  7590. fi
  7591. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7592. if test -n "$MANIFEST_TOOL"; then
  7593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7594. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7595. else
  7596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7597. printf "%s\n" "no" >&6; }
  7598. fi
  7599. fi
  7600. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7601. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7602. # Extract the first word of "mt", so it can be a program name with args.
  7603. set dummy mt; ac_word=$2
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7605. printf %s "checking for $ac_word... " >&6; }
  7606. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7607. then :
  7608. printf %s "(cached) " >&6
  7609. else $as_nop
  7610. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7611. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7612. else
  7613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7614. for as_dir in $PATH
  7615. do
  7616. IFS=$as_save_IFS
  7617. case $as_dir in #(((
  7618. '') as_dir=./ ;;
  7619. */) ;;
  7620. *) as_dir=$as_dir/ ;;
  7621. esac
  7622. for ac_exec_ext in '' $ac_executable_extensions; do
  7623. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7624. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7626. break 2
  7627. fi
  7628. done
  7629. done
  7630. IFS=$as_save_IFS
  7631. fi
  7632. fi
  7633. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7634. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7636. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7637. else
  7638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7639. printf "%s\n" "no" >&6; }
  7640. fi
  7641. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7642. MANIFEST_TOOL=":"
  7643. else
  7644. case $cross_compiling:$ac_tool_warned in
  7645. yes:)
  7646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7647. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7648. ac_tool_warned=yes ;;
  7649. esac
  7650. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7651. fi
  7652. else
  7653. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7654. fi
  7655. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7657. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7658. if test ${lt_cv_path_mainfest_tool+y}
  7659. then :
  7660. printf %s "(cached) " >&6
  7661. else $as_nop
  7662. lt_cv_path_mainfest_tool=no
  7663. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7664. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7665. cat conftest.err >&5
  7666. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7667. lt_cv_path_mainfest_tool=yes
  7668. fi
  7669. rm -f conftest*
  7670. fi
  7671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7672. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7673. if test yes != "$lt_cv_path_mainfest_tool"; then
  7674. MANIFEST_TOOL=:
  7675. fi
  7676. case $host_os in
  7677. rhapsody* | darwin*)
  7678. if test -n "$ac_tool_prefix"; then
  7679. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7680. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7682. printf %s "checking for $ac_word... " >&6; }
  7683. if test ${ac_cv_prog_DSYMUTIL+y}
  7684. then :
  7685. printf %s "(cached) " >&6
  7686. else $as_nop
  7687. if test -n "$DSYMUTIL"; then
  7688. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7689. else
  7690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7691. for as_dir in $PATH
  7692. do
  7693. IFS=$as_save_IFS
  7694. case $as_dir in #(((
  7695. '') as_dir=./ ;;
  7696. */) ;;
  7697. *) as_dir=$as_dir/ ;;
  7698. esac
  7699. for ac_exec_ext in '' $ac_executable_extensions; do
  7700. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7701. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7703. break 2
  7704. fi
  7705. done
  7706. done
  7707. IFS=$as_save_IFS
  7708. fi
  7709. fi
  7710. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7711. if test -n "$DSYMUTIL"; then
  7712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7713. printf "%s\n" "$DSYMUTIL" >&6; }
  7714. else
  7715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7716. printf "%s\n" "no" >&6; }
  7717. fi
  7718. fi
  7719. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7720. ac_ct_DSYMUTIL=$DSYMUTIL
  7721. # Extract the first word of "dsymutil", so it can be a program name with args.
  7722. set dummy dsymutil; ac_word=$2
  7723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7724. printf %s "checking for $ac_word... " >&6; }
  7725. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7726. then :
  7727. printf %s "(cached) " >&6
  7728. else $as_nop
  7729. if test -n "$ac_ct_DSYMUTIL"; then
  7730. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7731. else
  7732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7733. for as_dir in $PATH
  7734. do
  7735. IFS=$as_save_IFS
  7736. case $as_dir in #(((
  7737. '') as_dir=./ ;;
  7738. */) ;;
  7739. *) as_dir=$as_dir/ ;;
  7740. esac
  7741. for ac_exec_ext in '' $ac_executable_extensions; do
  7742. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7743. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7745. break 2
  7746. fi
  7747. done
  7748. done
  7749. IFS=$as_save_IFS
  7750. fi
  7751. fi
  7752. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7753. if test -n "$ac_ct_DSYMUTIL"; then
  7754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7755. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7756. else
  7757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7758. printf "%s\n" "no" >&6; }
  7759. fi
  7760. if test "x$ac_ct_DSYMUTIL" = x; then
  7761. DSYMUTIL=":"
  7762. else
  7763. case $cross_compiling:$ac_tool_warned in
  7764. yes:)
  7765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7766. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7767. ac_tool_warned=yes ;;
  7768. esac
  7769. DSYMUTIL=$ac_ct_DSYMUTIL
  7770. fi
  7771. else
  7772. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7773. fi
  7774. if test -n "$ac_tool_prefix"; then
  7775. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7776. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7778. printf %s "checking for $ac_word... " >&6; }
  7779. if test ${ac_cv_prog_NMEDIT+y}
  7780. then :
  7781. printf %s "(cached) " >&6
  7782. else $as_nop
  7783. if test -n "$NMEDIT"; then
  7784. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7785. else
  7786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7787. for as_dir in $PATH
  7788. do
  7789. IFS=$as_save_IFS
  7790. case $as_dir in #(((
  7791. '') as_dir=./ ;;
  7792. */) ;;
  7793. *) as_dir=$as_dir/ ;;
  7794. esac
  7795. for ac_exec_ext in '' $ac_executable_extensions; do
  7796. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7797. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7798. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7799. break 2
  7800. fi
  7801. done
  7802. done
  7803. IFS=$as_save_IFS
  7804. fi
  7805. fi
  7806. NMEDIT=$ac_cv_prog_NMEDIT
  7807. if test -n "$NMEDIT"; then
  7808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7809. printf "%s\n" "$NMEDIT" >&6; }
  7810. else
  7811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7812. printf "%s\n" "no" >&6; }
  7813. fi
  7814. fi
  7815. if test -z "$ac_cv_prog_NMEDIT"; then
  7816. ac_ct_NMEDIT=$NMEDIT
  7817. # Extract the first word of "nmedit", so it can be a program name with args.
  7818. set dummy nmedit; ac_word=$2
  7819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7820. printf %s "checking for $ac_word... " >&6; }
  7821. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7822. then :
  7823. printf %s "(cached) " >&6
  7824. else $as_nop
  7825. if test -n "$ac_ct_NMEDIT"; then
  7826. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7827. else
  7828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7829. for as_dir in $PATH
  7830. do
  7831. IFS=$as_save_IFS
  7832. case $as_dir in #(((
  7833. '') as_dir=./ ;;
  7834. */) ;;
  7835. *) as_dir=$as_dir/ ;;
  7836. esac
  7837. for ac_exec_ext in '' $ac_executable_extensions; do
  7838. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7839. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7840. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7841. break 2
  7842. fi
  7843. done
  7844. done
  7845. IFS=$as_save_IFS
  7846. fi
  7847. fi
  7848. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7849. if test -n "$ac_ct_NMEDIT"; then
  7850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7851. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7852. else
  7853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7854. printf "%s\n" "no" >&6; }
  7855. fi
  7856. if test "x$ac_ct_NMEDIT" = x; then
  7857. NMEDIT=":"
  7858. else
  7859. case $cross_compiling:$ac_tool_warned in
  7860. yes:)
  7861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7862. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7863. ac_tool_warned=yes ;;
  7864. esac
  7865. NMEDIT=$ac_ct_NMEDIT
  7866. fi
  7867. else
  7868. NMEDIT="$ac_cv_prog_NMEDIT"
  7869. fi
  7870. if test -n "$ac_tool_prefix"; then
  7871. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7872. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7874. printf %s "checking for $ac_word... " >&6; }
  7875. if test ${ac_cv_prog_LIPO+y}
  7876. then :
  7877. printf %s "(cached) " >&6
  7878. else $as_nop
  7879. if test -n "$LIPO"; then
  7880. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7881. else
  7882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7883. for as_dir in $PATH
  7884. do
  7885. IFS=$as_save_IFS
  7886. case $as_dir in #(((
  7887. '') as_dir=./ ;;
  7888. */) ;;
  7889. *) as_dir=$as_dir/ ;;
  7890. esac
  7891. for ac_exec_ext in '' $ac_executable_extensions; do
  7892. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7893. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7894. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7895. break 2
  7896. fi
  7897. done
  7898. done
  7899. IFS=$as_save_IFS
  7900. fi
  7901. fi
  7902. LIPO=$ac_cv_prog_LIPO
  7903. if test -n "$LIPO"; then
  7904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7905. printf "%s\n" "$LIPO" >&6; }
  7906. else
  7907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7908. printf "%s\n" "no" >&6; }
  7909. fi
  7910. fi
  7911. if test -z "$ac_cv_prog_LIPO"; then
  7912. ac_ct_LIPO=$LIPO
  7913. # Extract the first word of "lipo", so it can be a program name with args.
  7914. set dummy lipo; ac_word=$2
  7915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7916. printf %s "checking for $ac_word... " >&6; }
  7917. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7918. then :
  7919. printf %s "(cached) " >&6
  7920. else $as_nop
  7921. if test -n "$ac_ct_LIPO"; then
  7922. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7923. else
  7924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7925. for as_dir in $PATH
  7926. do
  7927. IFS=$as_save_IFS
  7928. case $as_dir in #(((
  7929. '') as_dir=./ ;;
  7930. */) ;;
  7931. *) as_dir=$as_dir/ ;;
  7932. esac
  7933. for ac_exec_ext in '' $ac_executable_extensions; do
  7934. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7935. ac_cv_prog_ac_ct_LIPO="lipo"
  7936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7937. break 2
  7938. fi
  7939. done
  7940. done
  7941. IFS=$as_save_IFS
  7942. fi
  7943. fi
  7944. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7945. if test -n "$ac_ct_LIPO"; then
  7946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7947. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7948. else
  7949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7950. printf "%s\n" "no" >&6; }
  7951. fi
  7952. if test "x$ac_ct_LIPO" = x; then
  7953. LIPO=":"
  7954. else
  7955. case $cross_compiling:$ac_tool_warned in
  7956. yes:)
  7957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7958. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7959. ac_tool_warned=yes ;;
  7960. esac
  7961. LIPO=$ac_ct_LIPO
  7962. fi
  7963. else
  7964. LIPO="$ac_cv_prog_LIPO"
  7965. fi
  7966. if test -n "$ac_tool_prefix"; then
  7967. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7968. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7970. printf %s "checking for $ac_word... " >&6; }
  7971. if test ${ac_cv_prog_OTOOL+y}
  7972. then :
  7973. printf %s "(cached) " >&6
  7974. else $as_nop
  7975. if test -n "$OTOOL"; then
  7976. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7977. else
  7978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7979. for as_dir in $PATH
  7980. do
  7981. IFS=$as_save_IFS
  7982. case $as_dir in #(((
  7983. '') as_dir=./ ;;
  7984. */) ;;
  7985. *) as_dir=$as_dir/ ;;
  7986. esac
  7987. for ac_exec_ext in '' $ac_executable_extensions; do
  7988. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7989. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7991. break 2
  7992. fi
  7993. done
  7994. done
  7995. IFS=$as_save_IFS
  7996. fi
  7997. fi
  7998. OTOOL=$ac_cv_prog_OTOOL
  7999. if test -n "$OTOOL"; then
  8000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8001. printf "%s\n" "$OTOOL" >&6; }
  8002. else
  8003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8004. printf "%s\n" "no" >&6; }
  8005. fi
  8006. fi
  8007. if test -z "$ac_cv_prog_OTOOL"; then
  8008. ac_ct_OTOOL=$OTOOL
  8009. # Extract the first word of "otool", so it can be a program name with args.
  8010. set dummy otool; ac_word=$2
  8011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8012. printf %s "checking for $ac_word... " >&6; }
  8013. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  8014. then :
  8015. printf %s "(cached) " >&6
  8016. else $as_nop
  8017. if test -n "$ac_ct_OTOOL"; then
  8018. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8019. else
  8020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8021. for as_dir in $PATH
  8022. do
  8023. IFS=$as_save_IFS
  8024. case $as_dir in #(((
  8025. '') as_dir=./ ;;
  8026. */) ;;
  8027. *) as_dir=$as_dir/ ;;
  8028. esac
  8029. for ac_exec_ext in '' $ac_executable_extensions; do
  8030. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8031. ac_cv_prog_ac_ct_OTOOL="otool"
  8032. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8033. break 2
  8034. fi
  8035. done
  8036. done
  8037. IFS=$as_save_IFS
  8038. fi
  8039. fi
  8040. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8041. if test -n "$ac_ct_OTOOL"; then
  8042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8043. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  8044. else
  8045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8046. printf "%s\n" "no" >&6; }
  8047. fi
  8048. if test "x$ac_ct_OTOOL" = x; then
  8049. OTOOL=":"
  8050. else
  8051. case $cross_compiling:$ac_tool_warned in
  8052. yes:)
  8053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8054. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8055. ac_tool_warned=yes ;;
  8056. esac
  8057. OTOOL=$ac_ct_OTOOL
  8058. fi
  8059. else
  8060. OTOOL="$ac_cv_prog_OTOOL"
  8061. fi
  8062. if test -n "$ac_tool_prefix"; then
  8063. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8064. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8066. printf %s "checking for $ac_word... " >&6; }
  8067. if test ${ac_cv_prog_OTOOL64+y}
  8068. then :
  8069. printf %s "(cached) " >&6
  8070. else $as_nop
  8071. if test -n "$OTOOL64"; then
  8072. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8073. else
  8074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8075. for as_dir in $PATH
  8076. do
  8077. IFS=$as_save_IFS
  8078. case $as_dir in #(((
  8079. '') as_dir=./ ;;
  8080. */) ;;
  8081. *) as_dir=$as_dir/ ;;
  8082. esac
  8083. for ac_exec_ext in '' $ac_executable_extensions; do
  8084. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8085. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8087. break 2
  8088. fi
  8089. done
  8090. done
  8091. IFS=$as_save_IFS
  8092. fi
  8093. fi
  8094. OTOOL64=$ac_cv_prog_OTOOL64
  8095. if test -n "$OTOOL64"; then
  8096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8097. printf "%s\n" "$OTOOL64" >&6; }
  8098. else
  8099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8100. printf "%s\n" "no" >&6; }
  8101. fi
  8102. fi
  8103. if test -z "$ac_cv_prog_OTOOL64"; then
  8104. ac_ct_OTOOL64=$OTOOL64
  8105. # Extract the first word of "otool64", so it can be a program name with args.
  8106. set dummy otool64; ac_word=$2
  8107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8108. printf %s "checking for $ac_word... " >&6; }
  8109. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  8110. then :
  8111. printf %s "(cached) " >&6
  8112. else $as_nop
  8113. if test -n "$ac_ct_OTOOL64"; then
  8114. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8115. else
  8116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8117. for as_dir in $PATH
  8118. do
  8119. IFS=$as_save_IFS
  8120. case $as_dir in #(((
  8121. '') as_dir=./ ;;
  8122. */) ;;
  8123. *) as_dir=$as_dir/ ;;
  8124. esac
  8125. for ac_exec_ext in '' $ac_executable_extensions; do
  8126. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8127. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8128. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8129. break 2
  8130. fi
  8131. done
  8132. done
  8133. IFS=$as_save_IFS
  8134. fi
  8135. fi
  8136. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8137. if test -n "$ac_ct_OTOOL64"; then
  8138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8139. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  8140. else
  8141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8142. printf "%s\n" "no" >&6; }
  8143. fi
  8144. if test "x$ac_ct_OTOOL64" = x; then
  8145. OTOOL64=":"
  8146. else
  8147. case $cross_compiling:$ac_tool_warned in
  8148. yes:)
  8149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8150. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8151. ac_tool_warned=yes ;;
  8152. esac
  8153. OTOOL64=$ac_ct_OTOOL64
  8154. fi
  8155. else
  8156. OTOOL64="$ac_cv_prog_OTOOL64"
  8157. fi
  8158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8159. printf %s "checking for -single_module linker flag... " >&6; }
  8160. if test ${lt_cv_apple_cc_single_mod+y}
  8161. then :
  8162. printf %s "(cached) " >&6
  8163. else $as_nop
  8164. lt_cv_apple_cc_single_mod=no
  8165. if test -z "$LT_MULTI_MODULE"; then
  8166. # By default we will add the -single_module flag. You can override
  8167. # by either setting the environment variable LT_MULTI_MODULE
  8168. # non-empty at configure time, or by adding -multi_module to the
  8169. # link flags.
  8170. rm -rf libconftest.dylib*
  8171. echo "int foo(void){return 1;}" > conftest.c
  8172. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8173. -dynamiclib -Wl,-single_module conftest.c" >&5
  8174. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8175. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8176. _lt_result=$?
  8177. # If there is a non-empty error log, and "single_module"
  8178. # appears in it, assume the flag caused a linker warning
  8179. if test -s conftest.err && $GREP single_module conftest.err; then
  8180. cat conftest.err >&5
  8181. # Otherwise, if the output was created with a 0 exit code from
  8182. # the compiler, it worked.
  8183. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8184. lt_cv_apple_cc_single_mod=yes
  8185. else
  8186. cat conftest.err >&5
  8187. fi
  8188. rm -rf libconftest.dylib*
  8189. rm -f conftest.*
  8190. fi
  8191. fi
  8192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8193. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  8194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8195. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  8196. if test ${lt_cv_ld_exported_symbols_list+y}
  8197. then :
  8198. printf %s "(cached) " >&6
  8199. else $as_nop
  8200. lt_cv_ld_exported_symbols_list=no
  8201. save_LDFLAGS=$LDFLAGS
  8202. echo "_main" > conftest.sym
  8203. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8205. /* end confdefs.h. */
  8206. int
  8207. main (void)
  8208. {
  8209. ;
  8210. return 0;
  8211. }
  8212. _ACEOF
  8213. if ac_fn_c_try_link "$LINENO"
  8214. then :
  8215. lt_cv_ld_exported_symbols_list=yes
  8216. else $as_nop
  8217. lt_cv_ld_exported_symbols_list=no
  8218. fi
  8219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8220. conftest$ac_exeext conftest.$ac_ext
  8221. LDFLAGS=$save_LDFLAGS
  8222. fi
  8223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8224. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8226. printf %s "checking for -force_load linker flag... " >&6; }
  8227. if test ${lt_cv_ld_force_load+y}
  8228. then :
  8229. printf %s "(cached) " >&6
  8230. else $as_nop
  8231. lt_cv_ld_force_load=no
  8232. cat > conftest.c << _LT_EOF
  8233. int forced_loaded() { return 2;}
  8234. _LT_EOF
  8235. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8236. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8237. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8238. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8239. echo "$RANLIB libconftest.a" >&5
  8240. $RANLIB libconftest.a 2>&5
  8241. cat > conftest.c << _LT_EOF
  8242. int main() { return 0;}
  8243. _LT_EOF
  8244. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8245. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8246. _lt_result=$?
  8247. if test -s conftest.err && $GREP force_load conftest.err; then
  8248. cat conftest.err >&5
  8249. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8250. lt_cv_ld_force_load=yes
  8251. else
  8252. cat conftest.err >&5
  8253. fi
  8254. rm -f conftest.err libconftest.a conftest conftest.c
  8255. rm -rf conftest.dSYM
  8256. fi
  8257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8258. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8259. case $host_os in
  8260. rhapsody* | darwin1.[012])
  8261. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8262. darwin1.*)
  8263. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8264. darwin*)
  8265. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8266. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8267. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8268. *)
  8269. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8270. esac
  8271. ;;
  8272. esac
  8273. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8274. _lt_dar_single_mod='$single_module'
  8275. fi
  8276. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8277. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8278. else
  8279. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8280. fi
  8281. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8282. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8283. else
  8284. _lt_dsymutil=
  8285. fi
  8286. ;;
  8287. esac
  8288. # func_munge_path_list VARIABLE PATH
  8289. # -----------------------------------
  8290. # VARIABLE is name of variable containing _space_ separated list of
  8291. # directories to be munged by the contents of PATH, which is string
  8292. # having a format:
  8293. # "DIR[:DIR]:"
  8294. # string "DIR[ DIR]" will be prepended to VARIABLE
  8295. # ":DIR[:DIR]"
  8296. # string "DIR[ DIR]" will be appended to VARIABLE
  8297. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8298. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8299. # "DIRA[ DIRA]" will be appended to VARIABLE
  8300. # "DIR[:DIR]"
  8301. # VARIABLE will be replaced by "DIR[ DIR]"
  8302. func_munge_path_list ()
  8303. {
  8304. case x$2 in
  8305. x)
  8306. ;;
  8307. *:)
  8308. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8309. ;;
  8310. x:*)
  8311. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8312. ;;
  8313. *::*)
  8314. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8315. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8316. ;;
  8317. *)
  8318. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8319. ;;
  8320. esac
  8321. }
  8322. ac_header= ac_cache=
  8323. for ac_item in $ac_header_c_list
  8324. do
  8325. if test $ac_cache; then
  8326. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8327. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8328. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8329. fi
  8330. ac_header= ac_cache=
  8331. elif test $ac_header; then
  8332. ac_cache=$ac_item
  8333. else
  8334. ac_header=$ac_item
  8335. fi
  8336. done
  8337. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8338. then :
  8339. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8340. fi
  8341. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8342. "
  8343. if test "x$ac_cv_header_dlfcn_h" = xyes
  8344. then :
  8345. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8346. fi
  8347. func_stripname_cnf ()
  8348. {
  8349. case $2 in
  8350. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8351. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8352. esac
  8353. } # func_stripname_cnf
  8354. # Set options
  8355. enable_dlopen=no
  8356. enable_win32_dll=no
  8357. # Check whether --enable-shared was given.
  8358. if test ${enable_shared+y}
  8359. then :
  8360. enableval=$enable_shared; p=${PACKAGE-default}
  8361. case $enableval in
  8362. yes) enable_shared=yes ;;
  8363. no) enable_shared=no ;;
  8364. *)
  8365. enable_shared=no
  8366. # Look at the argument we got. We use all the common list separators.
  8367. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8368. for pkg in $enableval; do
  8369. IFS=$lt_save_ifs
  8370. if test "X$pkg" = "X$p"; then
  8371. enable_shared=yes
  8372. fi
  8373. done
  8374. IFS=$lt_save_ifs
  8375. ;;
  8376. esac
  8377. else $as_nop
  8378. enable_shared=yes
  8379. fi
  8380. # Check whether --enable-static was given.
  8381. if test ${enable_static+y}
  8382. then :
  8383. enableval=$enable_static; p=${PACKAGE-default}
  8384. case $enableval in
  8385. yes) enable_static=yes ;;
  8386. no) enable_static=no ;;
  8387. *)
  8388. enable_static=no
  8389. # Look at the argument we got. We use all the common list separators.
  8390. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8391. for pkg in $enableval; do
  8392. IFS=$lt_save_ifs
  8393. if test "X$pkg" = "X$p"; then
  8394. enable_static=yes
  8395. fi
  8396. done
  8397. IFS=$lt_save_ifs
  8398. ;;
  8399. esac
  8400. else $as_nop
  8401. enable_static=yes
  8402. fi
  8403. # Check whether --with-pic was given.
  8404. if test ${with_pic+y}
  8405. then :
  8406. withval=$with_pic; lt_p=${PACKAGE-default}
  8407. case $withval in
  8408. yes|no) pic_mode=$withval ;;
  8409. *)
  8410. pic_mode=default
  8411. # Look at the argument we got. We use all the common list separators.
  8412. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8413. for lt_pkg in $withval; do
  8414. IFS=$lt_save_ifs
  8415. if test "X$lt_pkg" = "X$lt_p"; then
  8416. pic_mode=yes
  8417. fi
  8418. done
  8419. IFS=$lt_save_ifs
  8420. ;;
  8421. esac
  8422. else $as_nop
  8423. pic_mode=default
  8424. fi
  8425. # Check whether --enable-fast-install was given.
  8426. if test ${enable_fast_install+y}
  8427. then :
  8428. enableval=$enable_fast_install; p=${PACKAGE-default}
  8429. case $enableval in
  8430. yes) enable_fast_install=yes ;;
  8431. no) enable_fast_install=no ;;
  8432. *)
  8433. enable_fast_install=no
  8434. # Look at the argument we got. We use all the common list separators.
  8435. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8436. for pkg in $enableval; do
  8437. IFS=$lt_save_ifs
  8438. if test "X$pkg" = "X$p"; then
  8439. enable_fast_install=yes
  8440. fi
  8441. done
  8442. IFS=$lt_save_ifs
  8443. ;;
  8444. esac
  8445. else $as_nop
  8446. enable_fast_install=yes
  8447. fi
  8448. shared_archive_member_spec=
  8449. case $host,$enable_shared in
  8450. power*-*-aix[5-9]*,yes)
  8451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8452. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8453. # Check whether --with-aix-soname was given.
  8454. if test ${with_aix_soname+y}
  8455. then :
  8456. withval=$with_aix_soname; case $withval in
  8457. aix|svr4|both)
  8458. ;;
  8459. *)
  8460. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8461. ;;
  8462. esac
  8463. lt_cv_with_aix_soname=$with_aix_soname
  8464. else $as_nop
  8465. if test ${lt_cv_with_aix_soname+y}
  8466. then :
  8467. printf %s "(cached) " >&6
  8468. else $as_nop
  8469. lt_cv_with_aix_soname=aix
  8470. fi
  8471. with_aix_soname=$lt_cv_with_aix_soname
  8472. fi
  8473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8474. printf "%s\n" "$with_aix_soname" >&6; }
  8475. if test aix != "$with_aix_soname"; then
  8476. # For the AIX way of multilib, we name the shared archive member
  8477. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8478. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8479. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8480. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8481. if test 64 = "${OBJECT_MODE-32}"; then
  8482. shared_archive_member_spec=shr_64
  8483. else
  8484. shared_archive_member_spec=shr
  8485. fi
  8486. fi
  8487. ;;
  8488. *)
  8489. with_aix_soname=aix
  8490. ;;
  8491. esac
  8492. # This can be used to rebuild libtool when needed
  8493. LIBTOOL_DEPS=$ltmain
  8494. # Always use our own libtool.
  8495. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8496. test -z "$LN_S" && LN_S="ln -s"
  8497. if test -n "${ZSH_VERSION+set}"; then
  8498. setopt NO_GLOB_SUBST
  8499. fi
  8500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8501. printf %s "checking for objdir... " >&6; }
  8502. if test ${lt_cv_objdir+y}
  8503. then :
  8504. printf %s "(cached) " >&6
  8505. else $as_nop
  8506. rm -f .libs 2>/dev/null
  8507. mkdir .libs 2>/dev/null
  8508. if test -d .libs; then
  8509. lt_cv_objdir=.libs
  8510. else
  8511. # MS-DOS does not allow filenames that begin with a dot.
  8512. lt_cv_objdir=_libs
  8513. fi
  8514. rmdir .libs 2>/dev/null
  8515. fi
  8516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8517. printf "%s\n" "$lt_cv_objdir" >&6; }
  8518. objdir=$lt_cv_objdir
  8519. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8520. case $host_os in
  8521. aix3*)
  8522. # AIX sometimes has problems with the GCC collect2 program. For some
  8523. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8524. # vanish in a puff of smoke.
  8525. if test set != "${COLLECT_NAMES+set}"; then
  8526. COLLECT_NAMES=
  8527. export COLLECT_NAMES
  8528. fi
  8529. ;;
  8530. esac
  8531. # Global variables:
  8532. ofile=libtool
  8533. can_build_shared=yes
  8534. # All known linkers require a '.a' archive for static linking (except MSVC and
  8535. # ICC, which need '.lib').
  8536. libext=a
  8537. with_gnu_ld=$lt_cv_prog_gnu_ld
  8538. old_CC=$CC
  8539. old_CFLAGS=$CFLAGS
  8540. # Set sane defaults for various variables
  8541. test -z "$CC" && CC=cc
  8542. test -z "$LTCC" && LTCC=$CC
  8543. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8544. test -z "$LD" && LD=ld
  8545. test -z "$ac_objext" && ac_objext=o
  8546. func_cc_basename $compiler
  8547. cc_basename=$func_cc_basename_result
  8548. # Only perform the check for file, if the check method requires it
  8549. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8550. case $deplibs_check_method in
  8551. file_magic*)
  8552. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8554. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8555. if test ${lt_cv_path_MAGIC_CMD+y}
  8556. then :
  8557. printf %s "(cached) " >&6
  8558. else $as_nop
  8559. case $MAGIC_CMD in
  8560. [\\/*] | ?:[\\/]*)
  8561. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8562. ;;
  8563. *)
  8564. lt_save_MAGIC_CMD=$MAGIC_CMD
  8565. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8566. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8567. for ac_dir in $ac_dummy; do
  8568. IFS=$lt_save_ifs
  8569. test -z "$ac_dir" && ac_dir=.
  8570. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8571. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8572. if test -n "$file_magic_test_file"; then
  8573. case $deplibs_check_method in
  8574. "file_magic "*)
  8575. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8576. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8577. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8578. $EGREP "$file_magic_regex" > /dev/null; then
  8579. :
  8580. else
  8581. cat <<_LT_EOF 1>&2
  8582. *** Warning: the command libtool uses to detect shared libraries,
  8583. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8584. *** The result is that libtool may fail to recognize shared libraries
  8585. *** as such. This will affect the creation of libtool libraries that
  8586. *** depend on shared libraries, but programs linked with such libtool
  8587. *** libraries will work regardless of this problem. Nevertheless, you
  8588. *** may want to report the problem to your system manager and/or to
  8589. *** bug-libtool@gnu.org
  8590. _LT_EOF
  8591. fi ;;
  8592. esac
  8593. fi
  8594. break
  8595. fi
  8596. done
  8597. IFS=$lt_save_ifs
  8598. MAGIC_CMD=$lt_save_MAGIC_CMD
  8599. ;;
  8600. esac
  8601. fi
  8602. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8603. if test -n "$MAGIC_CMD"; then
  8604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8605. printf "%s\n" "$MAGIC_CMD" >&6; }
  8606. else
  8607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8608. printf "%s\n" "no" >&6; }
  8609. fi
  8610. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8611. if test -n "$ac_tool_prefix"; then
  8612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8613. printf %s "checking for file... " >&6; }
  8614. if test ${lt_cv_path_MAGIC_CMD+y}
  8615. then :
  8616. printf %s "(cached) " >&6
  8617. else $as_nop
  8618. case $MAGIC_CMD in
  8619. [\\/*] | ?:[\\/]*)
  8620. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8621. ;;
  8622. *)
  8623. lt_save_MAGIC_CMD=$MAGIC_CMD
  8624. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8625. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8626. for ac_dir in $ac_dummy; do
  8627. IFS=$lt_save_ifs
  8628. test -z "$ac_dir" && ac_dir=.
  8629. if test -f "$ac_dir/file"; then
  8630. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8631. if test -n "$file_magic_test_file"; then
  8632. case $deplibs_check_method in
  8633. "file_magic "*)
  8634. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8635. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8636. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8637. $EGREP "$file_magic_regex" > /dev/null; then
  8638. :
  8639. else
  8640. cat <<_LT_EOF 1>&2
  8641. *** Warning: the command libtool uses to detect shared libraries,
  8642. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8643. *** The result is that libtool may fail to recognize shared libraries
  8644. *** as such. This will affect the creation of libtool libraries that
  8645. *** depend on shared libraries, but programs linked with such libtool
  8646. *** libraries will work regardless of this problem. Nevertheless, you
  8647. *** may want to report the problem to your system manager and/or to
  8648. *** bug-libtool@gnu.org
  8649. _LT_EOF
  8650. fi ;;
  8651. esac
  8652. fi
  8653. break
  8654. fi
  8655. done
  8656. IFS=$lt_save_ifs
  8657. MAGIC_CMD=$lt_save_MAGIC_CMD
  8658. ;;
  8659. esac
  8660. fi
  8661. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8662. if test -n "$MAGIC_CMD"; then
  8663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8664. printf "%s\n" "$MAGIC_CMD" >&6; }
  8665. else
  8666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8667. printf "%s\n" "no" >&6; }
  8668. fi
  8669. else
  8670. MAGIC_CMD=:
  8671. fi
  8672. fi
  8673. fi
  8674. ;;
  8675. esac
  8676. # Use C for the default configuration in the libtool script
  8677. lt_save_CC=$CC
  8678. ac_ext=c
  8679. ac_cpp='$CPP $CPPFLAGS'
  8680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8683. # Source file extension for C test sources.
  8684. ac_ext=c
  8685. # Object file extension for compiled C test sources.
  8686. objext=o
  8687. objext=$objext
  8688. # Code to be used in simple compile tests
  8689. lt_simple_compile_test_code="int some_variable = 0;"
  8690. # Code to be used in simple link tests
  8691. lt_simple_link_test_code='int main(){return(0);}'
  8692. # If no C compiler was specified, use CC.
  8693. LTCC=${LTCC-"$CC"}
  8694. # If no C compiler flags were specified, use CFLAGS.
  8695. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8696. # Allow CC to be a program name with arguments.
  8697. compiler=$CC
  8698. # Save the default compiler, since it gets overwritten when the other
  8699. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8700. compiler_DEFAULT=$CC
  8701. # save warnings/boilerplate of simple test code
  8702. ac_outfile=conftest.$ac_objext
  8703. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8704. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8705. _lt_compiler_boilerplate=`cat conftest.err`
  8706. $RM conftest*
  8707. ac_outfile=conftest.$ac_objext
  8708. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8709. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8710. _lt_linker_boilerplate=`cat conftest.err`
  8711. $RM -r conftest*
  8712. ## CAVEAT EMPTOR:
  8713. ## There is no encapsulation within the following macros, do not change
  8714. ## the running order or otherwise move them around unless you know exactly
  8715. ## what you are doing...
  8716. if test -n "$compiler"; then
  8717. lt_prog_compiler_no_builtin_flag=
  8718. if test yes = "$GCC"; then
  8719. case $cc_basename in
  8720. nvcc*)
  8721. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8722. *)
  8723. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8724. esac
  8725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8726. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8727. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8728. then :
  8729. printf %s "(cached) " >&6
  8730. else $as_nop
  8731. lt_cv_prog_compiler_rtti_exceptions=no
  8732. ac_outfile=conftest.$ac_objext
  8733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8734. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8735. # Insert the option either (1) after the last *FLAGS variable, or
  8736. # (2) before a word containing "conftest.", or (3) at the end.
  8737. # Note that $ac_compile itself does not contain backslashes and begins
  8738. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8739. # The option is referenced via a variable to avoid confusing sed.
  8740. lt_compile=`echo "$ac_compile" | $SED \
  8741. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8742. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8743. -e 's:$: $lt_compiler_flag:'`
  8744. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8745. (eval "$lt_compile" 2>conftest.err)
  8746. ac_status=$?
  8747. cat conftest.err >&5
  8748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8749. if (exit $ac_status) && test -s "$ac_outfile"; then
  8750. # The compiler can only warn and ignore the option if not recognized
  8751. # So say no if there are warnings other than the usual output.
  8752. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8753. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8754. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8755. lt_cv_prog_compiler_rtti_exceptions=yes
  8756. fi
  8757. fi
  8758. $RM conftest*
  8759. fi
  8760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8761. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8762. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8763. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8764. else
  8765. :
  8766. fi
  8767. fi
  8768. lt_prog_compiler_wl=
  8769. lt_prog_compiler_pic=
  8770. lt_prog_compiler_static=
  8771. if test yes = "$GCC"; then
  8772. lt_prog_compiler_wl='-Wl,'
  8773. lt_prog_compiler_static='-static'
  8774. case $host_os in
  8775. aix*)
  8776. # All AIX code is PIC.
  8777. if test ia64 = "$host_cpu"; then
  8778. # AIX 5 now supports IA64 processor
  8779. lt_prog_compiler_static='-Bstatic'
  8780. fi
  8781. lt_prog_compiler_pic='-fPIC'
  8782. ;;
  8783. amigaos*)
  8784. case $host_cpu in
  8785. powerpc)
  8786. # see comment about AmigaOS4 .so support
  8787. lt_prog_compiler_pic='-fPIC'
  8788. ;;
  8789. m68k)
  8790. # FIXME: we need at least 68020 code to build shared libraries, but
  8791. # adding the '-m68020' flag to GCC prevents building anything better,
  8792. # like '-m68040'.
  8793. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8794. ;;
  8795. esac
  8796. ;;
  8797. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8798. # PIC is the default for these OSes.
  8799. ;;
  8800. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8801. # This hack is so that the source file can tell whether it is being
  8802. # built for inclusion in a dll (and should export symbols for example).
  8803. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8804. # (--disable-auto-import) libraries
  8805. lt_prog_compiler_pic='-DDLL_EXPORT'
  8806. case $host_os in
  8807. os2*)
  8808. lt_prog_compiler_static='$wl-static'
  8809. ;;
  8810. esac
  8811. ;;
  8812. darwin* | rhapsody*)
  8813. # PIC is the default on this platform
  8814. # Common symbols not allowed in MH_DYLIB files
  8815. lt_prog_compiler_pic='-fno-common'
  8816. ;;
  8817. haiku*)
  8818. # PIC is the default for Haiku.
  8819. # The "-static" flag exists, but is broken.
  8820. lt_prog_compiler_static=
  8821. ;;
  8822. hpux*)
  8823. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8824. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8825. # sets the default TLS model and affects inlining.
  8826. case $host_cpu in
  8827. hppa*64*)
  8828. # +Z the default
  8829. ;;
  8830. *)
  8831. lt_prog_compiler_pic='-fPIC'
  8832. ;;
  8833. esac
  8834. ;;
  8835. interix[3-9]*)
  8836. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8837. # Instead, we relocate shared libraries at runtime.
  8838. ;;
  8839. msdosdjgpp*)
  8840. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8841. # on systems that don't support them.
  8842. lt_prog_compiler_can_build_shared=no
  8843. enable_shared=no
  8844. ;;
  8845. *nto* | *qnx*)
  8846. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8847. # it will coredump.
  8848. lt_prog_compiler_pic='-fPIC -shared'
  8849. ;;
  8850. sysv4*MP*)
  8851. if test -d /usr/nec; then
  8852. lt_prog_compiler_pic=-Kconform_pic
  8853. fi
  8854. ;;
  8855. *)
  8856. lt_prog_compiler_pic='-fPIC'
  8857. ;;
  8858. esac
  8859. case $cc_basename in
  8860. nvcc*) # Cuda Compiler Driver 2.2
  8861. lt_prog_compiler_wl='-Xlinker '
  8862. if test -n "$lt_prog_compiler_pic"; then
  8863. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8864. fi
  8865. ;;
  8866. esac
  8867. else
  8868. # PORTME Check for flag to pass linker flags through the system compiler.
  8869. case $host_os in
  8870. aix*)
  8871. lt_prog_compiler_wl='-Wl,'
  8872. if test ia64 = "$host_cpu"; then
  8873. # AIX 5 now supports IA64 processor
  8874. lt_prog_compiler_static='-Bstatic'
  8875. else
  8876. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8877. fi
  8878. ;;
  8879. darwin* | rhapsody*)
  8880. # PIC is the default on this platform
  8881. # Common symbols not allowed in MH_DYLIB files
  8882. lt_prog_compiler_pic='-fno-common'
  8883. case $cc_basename in
  8884. nagfor*)
  8885. # NAG Fortran compiler
  8886. lt_prog_compiler_wl='-Wl,-Wl,,'
  8887. lt_prog_compiler_pic='-PIC'
  8888. lt_prog_compiler_static='-Bstatic'
  8889. ;;
  8890. esac
  8891. ;;
  8892. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8893. # This hack is so that the source file can tell whether it is being
  8894. # built for inclusion in a dll (and should export symbols for example).
  8895. lt_prog_compiler_pic='-DDLL_EXPORT'
  8896. case $host_os in
  8897. os2*)
  8898. lt_prog_compiler_static='$wl-static'
  8899. ;;
  8900. esac
  8901. ;;
  8902. hpux9* | hpux10* | hpux11*)
  8903. lt_prog_compiler_wl='-Wl,'
  8904. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8905. # not for PA HP-UX.
  8906. case $host_cpu in
  8907. hppa*64*|ia64*)
  8908. # +Z the default
  8909. ;;
  8910. *)
  8911. lt_prog_compiler_pic='+Z'
  8912. ;;
  8913. esac
  8914. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8915. lt_prog_compiler_static='$wl-a ${wl}archive'
  8916. ;;
  8917. irix5* | irix6* | nonstopux*)
  8918. lt_prog_compiler_wl='-Wl,'
  8919. # PIC (with -KPIC) is the default.
  8920. lt_prog_compiler_static='-non_shared'
  8921. ;;
  8922. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8923. case $cc_basename in
  8924. # old Intel for x86_64, which still supported -KPIC.
  8925. ecc*)
  8926. lt_prog_compiler_wl='-Wl,'
  8927. lt_prog_compiler_pic='-KPIC'
  8928. lt_prog_compiler_static='-static'
  8929. ;;
  8930. # flang / f18. f95 an alias for gfortran or flang on Debian
  8931. flang* | f18* | f95*)
  8932. lt_prog_compiler_wl='-Wl,'
  8933. lt_prog_compiler_pic='-fPIC'
  8934. lt_prog_compiler_static='-static'
  8935. ;;
  8936. # icc used to be incompatible with GCC.
  8937. # ICC 10 doesn't accept -KPIC any more.
  8938. icc* | ifort*)
  8939. lt_prog_compiler_wl='-Wl,'
  8940. lt_prog_compiler_pic='-fPIC'
  8941. lt_prog_compiler_static='-static'
  8942. ;;
  8943. # Lahey Fortran 8.1.
  8944. lf95*)
  8945. lt_prog_compiler_wl='-Wl,'
  8946. lt_prog_compiler_pic='--shared'
  8947. lt_prog_compiler_static='--static'
  8948. ;;
  8949. nagfor*)
  8950. # NAG Fortran compiler
  8951. lt_prog_compiler_wl='-Wl,-Wl,,'
  8952. lt_prog_compiler_pic='-PIC'
  8953. lt_prog_compiler_static='-Bstatic'
  8954. ;;
  8955. tcc*)
  8956. # Fabrice Bellard et al's Tiny C Compiler
  8957. lt_prog_compiler_wl='-Wl,'
  8958. lt_prog_compiler_pic='-fPIC'
  8959. lt_prog_compiler_static='-static'
  8960. ;;
  8961. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8962. # Portland Group compilers (*not* the Pentium gcc compiler,
  8963. # which looks to be a dead project)
  8964. lt_prog_compiler_wl='-Wl,'
  8965. lt_prog_compiler_pic='-fpic'
  8966. lt_prog_compiler_static='-Bstatic'
  8967. ;;
  8968. ccc*)
  8969. lt_prog_compiler_wl='-Wl,'
  8970. # All Alpha code is PIC.
  8971. lt_prog_compiler_static='-non_shared'
  8972. ;;
  8973. xl* | bgxl* | bgf* | mpixl*)
  8974. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8975. lt_prog_compiler_wl='-Wl,'
  8976. lt_prog_compiler_pic='-qpic'
  8977. lt_prog_compiler_static='-qstaticlink'
  8978. ;;
  8979. *)
  8980. case `$CC -V 2>&1 | $SED 5q` in
  8981. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8982. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8983. lt_prog_compiler_pic='-KPIC'
  8984. lt_prog_compiler_static='-Bstatic'
  8985. lt_prog_compiler_wl=''
  8986. ;;
  8987. *Sun\ F* | *Sun*Fortran*)
  8988. lt_prog_compiler_pic='-KPIC'
  8989. lt_prog_compiler_static='-Bstatic'
  8990. lt_prog_compiler_wl='-Qoption ld '
  8991. ;;
  8992. *Sun\ C*)
  8993. # Sun C 5.9
  8994. lt_prog_compiler_pic='-KPIC'
  8995. lt_prog_compiler_static='-Bstatic'
  8996. lt_prog_compiler_wl='-Wl,'
  8997. ;;
  8998. *Intel*\ [CF]*Compiler*)
  8999. lt_prog_compiler_wl='-Wl,'
  9000. lt_prog_compiler_pic='-fPIC'
  9001. lt_prog_compiler_static='-static'
  9002. ;;
  9003. *Portland\ Group*)
  9004. lt_prog_compiler_wl='-Wl,'
  9005. lt_prog_compiler_pic='-fpic'
  9006. lt_prog_compiler_static='-Bstatic'
  9007. ;;
  9008. esac
  9009. ;;
  9010. esac
  9011. ;;
  9012. newsos6)
  9013. lt_prog_compiler_pic='-KPIC'
  9014. lt_prog_compiler_static='-Bstatic'
  9015. ;;
  9016. *nto* | *qnx*)
  9017. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9018. # it will coredump.
  9019. lt_prog_compiler_pic='-fPIC -shared'
  9020. ;;
  9021. osf3* | osf4* | osf5*)
  9022. lt_prog_compiler_wl='-Wl,'
  9023. # All OSF/1 code is PIC.
  9024. lt_prog_compiler_static='-non_shared'
  9025. ;;
  9026. rdos*)
  9027. lt_prog_compiler_static='-non_shared'
  9028. ;;
  9029. solaris*)
  9030. lt_prog_compiler_pic='-KPIC'
  9031. lt_prog_compiler_static='-Bstatic'
  9032. case $cc_basename in
  9033. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9034. lt_prog_compiler_wl='-Qoption ld ';;
  9035. *)
  9036. lt_prog_compiler_wl='-Wl,';;
  9037. esac
  9038. ;;
  9039. sunos4*)
  9040. lt_prog_compiler_wl='-Qoption ld '
  9041. lt_prog_compiler_pic='-PIC'
  9042. lt_prog_compiler_static='-Bstatic'
  9043. ;;
  9044. sysv4 | sysv4.2uw2* | sysv4.3*)
  9045. lt_prog_compiler_wl='-Wl,'
  9046. lt_prog_compiler_pic='-KPIC'
  9047. lt_prog_compiler_static='-Bstatic'
  9048. ;;
  9049. sysv4*MP*)
  9050. if test -d /usr/nec; then
  9051. lt_prog_compiler_pic='-Kconform_pic'
  9052. lt_prog_compiler_static='-Bstatic'
  9053. fi
  9054. ;;
  9055. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9056. lt_prog_compiler_wl='-Wl,'
  9057. lt_prog_compiler_pic='-KPIC'
  9058. lt_prog_compiler_static='-Bstatic'
  9059. ;;
  9060. unicos*)
  9061. lt_prog_compiler_wl='-Wl,'
  9062. lt_prog_compiler_can_build_shared=no
  9063. ;;
  9064. uts4*)
  9065. lt_prog_compiler_pic='-pic'
  9066. lt_prog_compiler_static='-Bstatic'
  9067. ;;
  9068. *)
  9069. lt_prog_compiler_can_build_shared=no
  9070. ;;
  9071. esac
  9072. fi
  9073. case $host_os in
  9074. # For platforms that do not support PIC, -DPIC is meaningless:
  9075. *djgpp*)
  9076. lt_prog_compiler_pic=
  9077. ;;
  9078. *)
  9079. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9080. ;;
  9081. esac
  9082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9083. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9084. if test ${lt_cv_prog_compiler_pic+y}
  9085. then :
  9086. printf %s "(cached) " >&6
  9087. else $as_nop
  9088. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9089. fi
  9090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9091. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9092. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9093. #
  9094. # Check to make sure the PIC flag actually works.
  9095. #
  9096. if test -n "$lt_prog_compiler_pic"; then
  9097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9098. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9099. if test ${lt_cv_prog_compiler_pic_works+y}
  9100. then :
  9101. printf %s "(cached) " >&6
  9102. else $as_nop
  9103. lt_cv_prog_compiler_pic_works=no
  9104. ac_outfile=conftest.$ac_objext
  9105. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9106. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9107. # Insert the option either (1) after the last *FLAGS variable, or
  9108. # (2) before a word containing "conftest.", or (3) at the end.
  9109. # Note that $ac_compile itself does not contain backslashes and begins
  9110. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9111. # The option is referenced via a variable to avoid confusing sed.
  9112. lt_compile=`echo "$ac_compile" | $SED \
  9113. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9114. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9115. -e 's:$: $lt_compiler_flag:'`
  9116. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9117. (eval "$lt_compile" 2>conftest.err)
  9118. ac_status=$?
  9119. cat conftest.err >&5
  9120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9121. if (exit $ac_status) && test -s "$ac_outfile"; then
  9122. # The compiler can only warn and ignore the option if not recognized
  9123. # So say no if there are warnings other than the usual output.
  9124. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9125. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9126. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9127. lt_cv_prog_compiler_pic_works=yes
  9128. fi
  9129. fi
  9130. $RM conftest*
  9131. fi
  9132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9133. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9134. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9135. case $lt_prog_compiler_pic in
  9136. "" | " "*) ;;
  9137. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9138. esac
  9139. else
  9140. lt_prog_compiler_pic=
  9141. lt_prog_compiler_can_build_shared=no
  9142. fi
  9143. fi
  9144. #
  9145. # Check to make sure the static flag actually works.
  9146. #
  9147. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9149. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9150. if test ${lt_cv_prog_compiler_static_works+y}
  9151. then :
  9152. printf %s "(cached) " >&6
  9153. else $as_nop
  9154. lt_cv_prog_compiler_static_works=no
  9155. save_LDFLAGS=$LDFLAGS
  9156. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9157. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9158. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9159. # The linker can only warn and ignore the option if not recognized
  9160. # So say no if there are warnings
  9161. if test -s conftest.err; then
  9162. # Append any errors to the config.log.
  9163. cat conftest.err 1>&5
  9164. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9165. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9166. if diff conftest.exp conftest.er2 >/dev/null; then
  9167. lt_cv_prog_compiler_static_works=yes
  9168. fi
  9169. else
  9170. lt_cv_prog_compiler_static_works=yes
  9171. fi
  9172. fi
  9173. $RM -r conftest*
  9174. LDFLAGS=$save_LDFLAGS
  9175. fi
  9176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9177. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9178. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9179. :
  9180. else
  9181. lt_prog_compiler_static=
  9182. fi
  9183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9184. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9185. if test ${lt_cv_prog_compiler_c_o+y}
  9186. then :
  9187. printf %s "(cached) " >&6
  9188. else $as_nop
  9189. lt_cv_prog_compiler_c_o=no
  9190. $RM -r conftest 2>/dev/null
  9191. mkdir conftest
  9192. cd conftest
  9193. mkdir out
  9194. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9195. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9196. # Insert the option either (1) after the last *FLAGS variable, or
  9197. # (2) before a word containing "conftest.", or (3) at the end.
  9198. # Note that $ac_compile itself does not contain backslashes and begins
  9199. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9200. lt_compile=`echo "$ac_compile" | $SED \
  9201. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9202. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9203. -e 's:$: $lt_compiler_flag:'`
  9204. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9205. (eval "$lt_compile" 2>out/conftest.err)
  9206. ac_status=$?
  9207. cat out/conftest.err >&5
  9208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9209. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9210. then
  9211. # The compiler can only warn and ignore the option if not recognized
  9212. # So say no if there are warnings
  9213. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9214. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9215. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9216. lt_cv_prog_compiler_c_o=yes
  9217. fi
  9218. fi
  9219. chmod u+w . 2>&5
  9220. $RM conftest*
  9221. # SGI C++ compiler will create directory out/ii_files/ for
  9222. # template instantiation
  9223. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9224. $RM out/* && rmdir out
  9225. cd ..
  9226. $RM -r conftest
  9227. $RM conftest*
  9228. fi
  9229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9230. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9232. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9233. if test ${lt_cv_prog_compiler_c_o+y}
  9234. then :
  9235. printf %s "(cached) " >&6
  9236. else $as_nop
  9237. lt_cv_prog_compiler_c_o=no
  9238. $RM -r conftest 2>/dev/null
  9239. mkdir conftest
  9240. cd conftest
  9241. mkdir out
  9242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9243. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9244. # Insert the option either (1) after the last *FLAGS variable, or
  9245. # (2) before a word containing "conftest.", or (3) at the end.
  9246. # Note that $ac_compile itself does not contain backslashes and begins
  9247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9248. lt_compile=`echo "$ac_compile" | $SED \
  9249. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9250. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9251. -e 's:$: $lt_compiler_flag:'`
  9252. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9253. (eval "$lt_compile" 2>out/conftest.err)
  9254. ac_status=$?
  9255. cat out/conftest.err >&5
  9256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9257. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9258. then
  9259. # The compiler can only warn and ignore the option if not recognized
  9260. # So say no if there are warnings
  9261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9262. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9263. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9264. lt_cv_prog_compiler_c_o=yes
  9265. fi
  9266. fi
  9267. chmod u+w . 2>&5
  9268. $RM conftest*
  9269. # SGI C++ compiler will create directory out/ii_files/ for
  9270. # template instantiation
  9271. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9272. $RM out/* && rmdir out
  9273. cd ..
  9274. $RM -r conftest
  9275. $RM conftest*
  9276. fi
  9277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9278. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9279. hard_links=nottested
  9280. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9281. # do not overwrite the value of need_locks provided by the user
  9282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9283. printf %s "checking if we can lock with hard links... " >&6; }
  9284. hard_links=yes
  9285. $RM conftest*
  9286. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9287. touch conftest.a
  9288. ln conftest.a conftest.b 2>&5 || hard_links=no
  9289. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9291. printf "%s\n" "$hard_links" >&6; }
  9292. if test no = "$hard_links"; then
  9293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9294. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9295. need_locks=warn
  9296. fi
  9297. else
  9298. need_locks=no
  9299. fi
  9300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9301. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9302. runpath_var=
  9303. allow_undefined_flag=
  9304. always_export_symbols=no
  9305. archive_cmds=
  9306. archive_expsym_cmds=
  9307. compiler_needs_object=no
  9308. enable_shared_with_static_runtimes=no
  9309. export_dynamic_flag_spec=
  9310. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9311. hardcode_automatic=no
  9312. hardcode_direct=no
  9313. hardcode_direct_absolute=no
  9314. hardcode_libdir_flag_spec=
  9315. hardcode_libdir_separator=
  9316. hardcode_minus_L=no
  9317. hardcode_shlibpath_var=unsupported
  9318. inherit_rpath=no
  9319. link_all_deplibs=unknown
  9320. module_cmds=
  9321. module_expsym_cmds=
  9322. old_archive_from_new_cmds=
  9323. old_archive_from_expsyms_cmds=
  9324. thread_safe_flag_spec=
  9325. whole_archive_flag_spec=
  9326. # include_expsyms should be a list of space-separated symbols to be *always*
  9327. # included in the symbol list
  9328. include_expsyms=
  9329. # exclude_expsyms can be an extended regexp of symbols to exclude
  9330. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9331. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9332. # as well as any symbol that contains 'd'.
  9333. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9334. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9335. # platforms (ab)use it in PIC code, but their linkers get confused if
  9336. # the symbol is explicitly referenced. Since portable code cannot
  9337. # rely on this symbol name, it's probably fine to never include it in
  9338. # preloaded symbol tables.
  9339. # Exclude shared library initialization/finalization symbols.
  9340. extract_expsyms_cmds=
  9341. case $host_os in
  9342. cygwin* | mingw* | pw32* | cegcc*)
  9343. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9344. # When not using gcc, we currently assume that we are using
  9345. # Microsoft Visual C++ or Intel C++ Compiler.
  9346. if test yes != "$GCC"; then
  9347. with_gnu_ld=no
  9348. fi
  9349. ;;
  9350. interix*)
  9351. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9352. with_gnu_ld=yes
  9353. ;;
  9354. openbsd* | bitrig*)
  9355. with_gnu_ld=no
  9356. ;;
  9357. linux* | k*bsd*-gnu | gnu*)
  9358. link_all_deplibs=no
  9359. ;;
  9360. esac
  9361. ld_shlibs=yes
  9362. # On some targets, GNU ld is compatible enough with the native linker
  9363. # that we're better off using the native interface for both.
  9364. lt_use_gnu_ld_interface=no
  9365. if test yes = "$with_gnu_ld"; then
  9366. case $host_os in
  9367. aix*)
  9368. # The AIX port of GNU ld has always aspired to compatibility
  9369. # with the native linker. However, as the warning in the GNU ld
  9370. # block says, versions before 2.19.5* couldn't really create working
  9371. # shared libraries, regardless of the interface used.
  9372. case `$LD -v 2>&1` in
  9373. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9374. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9375. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9376. *)
  9377. lt_use_gnu_ld_interface=yes
  9378. ;;
  9379. esac
  9380. ;;
  9381. *)
  9382. lt_use_gnu_ld_interface=yes
  9383. ;;
  9384. esac
  9385. fi
  9386. if test yes = "$lt_use_gnu_ld_interface"; then
  9387. # If archive_cmds runs LD, not CC, wlarc should be empty
  9388. wlarc='$wl'
  9389. # Set some defaults for GNU ld with shared library support. These
  9390. # are reset later if shared libraries are not supported. Putting them
  9391. # here allows them to be overridden if necessary.
  9392. runpath_var=LD_RUN_PATH
  9393. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9394. export_dynamic_flag_spec='$wl--export-dynamic'
  9395. # ancient GNU ld didn't support --whole-archive et. al.
  9396. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9397. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9398. else
  9399. whole_archive_flag_spec=
  9400. fi
  9401. supports_anon_versioning=no
  9402. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9403. *GNU\ gold*) supports_anon_versioning=yes ;;
  9404. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9405. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9406. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9407. *\ 2.11.*) ;; # other 2.11 versions
  9408. *) supports_anon_versioning=yes ;;
  9409. esac
  9410. # See if GNU ld supports shared libraries.
  9411. case $host_os in
  9412. aix[3-9]*)
  9413. # On AIX/PPC, the GNU linker is very broken
  9414. if test ia64 != "$host_cpu"; then
  9415. ld_shlibs=no
  9416. cat <<_LT_EOF 1>&2
  9417. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9418. *** to be unable to reliably create shared libraries on AIX.
  9419. *** Therefore, libtool is disabling shared libraries support. If you
  9420. *** really care for shared libraries, you may want to install binutils
  9421. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9422. *** You will then need to restart the configuration process.
  9423. _LT_EOF
  9424. fi
  9425. ;;
  9426. amigaos*)
  9427. case $host_cpu in
  9428. powerpc)
  9429. # see comment about AmigaOS4 .so support
  9430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9431. archive_expsym_cmds=''
  9432. ;;
  9433. m68k)
  9434. 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)'
  9435. hardcode_libdir_flag_spec='-L$libdir'
  9436. hardcode_minus_L=yes
  9437. ;;
  9438. esac
  9439. ;;
  9440. beos*)
  9441. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9442. allow_undefined_flag=unsupported
  9443. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9444. # support --undefined. This deserves some investigation. FIXME
  9445. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9446. else
  9447. ld_shlibs=no
  9448. fi
  9449. ;;
  9450. cygwin* | mingw* | pw32* | cegcc*)
  9451. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9452. # as there is no search path for DLLs.
  9453. hardcode_libdir_flag_spec='-L$libdir'
  9454. export_dynamic_flag_spec='$wl--export-all-symbols'
  9455. allow_undefined_flag=unsupported
  9456. always_export_symbols=no
  9457. enable_shared_with_static_runtimes=yes
  9458. 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'
  9459. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9460. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9461. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9462. # If the export-symbols file already is a .def file, use it as
  9463. # is; otherwise, prepend EXPORTS...
  9464. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9465. cp $export_symbols $output_objdir/$soname.def;
  9466. else
  9467. echo EXPORTS > $output_objdir/$soname.def;
  9468. cat $export_symbols >> $output_objdir/$soname.def;
  9469. fi~
  9470. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9471. else
  9472. ld_shlibs=no
  9473. fi
  9474. ;;
  9475. haiku*)
  9476. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9477. link_all_deplibs=yes
  9478. ;;
  9479. os2*)
  9480. hardcode_libdir_flag_spec='-L$libdir'
  9481. hardcode_minus_L=yes
  9482. allow_undefined_flag=unsupported
  9483. shrext_cmds=.dll
  9484. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9485. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9486. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9487. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9488. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9489. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9490. emximp -o $lib $output_objdir/$libname.def'
  9491. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9492. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9493. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9494. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9495. prefix_cmds="$SED"~
  9496. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9497. prefix_cmds="$prefix_cmds -e 1d";
  9498. fi~
  9499. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9500. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9501. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9502. emximp -o $lib $output_objdir/$libname.def'
  9503. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9504. enable_shared_with_static_runtimes=yes
  9505. file_list_spec='@'
  9506. ;;
  9507. interix[3-9]*)
  9508. hardcode_direct=no
  9509. hardcode_shlibpath_var=no
  9510. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9511. export_dynamic_flag_spec='$wl-E'
  9512. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9513. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9514. # default) and relocated if they conflict, which is a slow very memory
  9515. # consuming and fragmenting process. To avoid this, we pick a random,
  9516. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9517. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9518. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9519. 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'
  9520. ;;
  9521. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9522. tmp_diet=no
  9523. if test linux-dietlibc = "$host_os"; then
  9524. case $cc_basename in
  9525. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9526. esac
  9527. fi
  9528. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9529. && test no = "$tmp_diet"
  9530. then
  9531. tmp_addflag=' $pic_flag'
  9532. tmp_sharedflag='-shared'
  9533. case $cc_basename,$host_cpu in
  9534. pgcc*) # Portland Group C compiler
  9535. 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'
  9536. tmp_addflag=' $pic_flag'
  9537. ;;
  9538. pgf77* | pgf90* | pgf95* | pgfortran*)
  9539. # Portland Group f77 and f90 compilers
  9540. 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'
  9541. tmp_addflag=' $pic_flag -Mnomain' ;;
  9542. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9543. tmp_addflag=' -i_dynamic' ;;
  9544. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9545. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9546. ifc* | ifort*) # Intel Fortran compiler
  9547. tmp_addflag=' -nofor_main' ;;
  9548. lf95*) # Lahey Fortran 8.1
  9549. whole_archive_flag_spec=
  9550. tmp_sharedflag='--shared' ;;
  9551. nagfor*) # NAGFOR 5.3
  9552. tmp_sharedflag='-Wl,-shared' ;;
  9553. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9554. tmp_sharedflag='-qmkshrobj'
  9555. tmp_addflag= ;;
  9556. nvcc*) # Cuda Compiler Driver 2.2
  9557. 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'
  9558. compiler_needs_object=yes
  9559. ;;
  9560. esac
  9561. case `$CC -V 2>&1 | $SED 5q` in
  9562. *Sun\ C*) # Sun C 5.9
  9563. 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'
  9564. compiler_needs_object=yes
  9565. tmp_sharedflag='-G' ;;
  9566. *Sun\ F*) # Sun Fortran 8.3
  9567. tmp_sharedflag='-G' ;;
  9568. esac
  9569. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9570. if test yes = "$supports_anon_versioning"; then
  9571. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9572. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9573. echo "local: *; };" >> $output_objdir/$libname.ver~
  9574. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9575. fi
  9576. case $cc_basename in
  9577. tcc*)
  9578. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9579. export_dynamic_flag_spec='-rdynamic'
  9580. ;;
  9581. xlf* | bgf* | bgxlf* | mpixlf*)
  9582. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9583. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9584. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9585. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9586. if test yes = "$supports_anon_versioning"; then
  9587. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9588. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9589. echo "local: *; };" >> $output_objdir/$libname.ver~
  9590. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9591. fi
  9592. ;;
  9593. esac
  9594. else
  9595. ld_shlibs=no
  9596. fi
  9597. ;;
  9598. netbsd* | netbsdelf*-gnu)
  9599. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9600. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9601. wlarc=
  9602. else
  9603. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9604. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9605. fi
  9606. ;;
  9607. solaris*)
  9608. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9609. ld_shlibs=no
  9610. cat <<_LT_EOF 1>&2
  9611. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9612. *** create shared libraries on Solaris systems. Therefore, libtool
  9613. *** is disabling shared libraries support. We urge you to upgrade GNU
  9614. *** binutils to release 2.9.1 or newer. Another option is to modify
  9615. *** your PATH or compiler configuration so that the native linker is
  9616. *** used, and then restart.
  9617. _LT_EOF
  9618. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9619. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9620. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9621. else
  9622. ld_shlibs=no
  9623. fi
  9624. ;;
  9625. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9626. case `$LD -v 2>&1` in
  9627. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9628. ld_shlibs=no
  9629. cat <<_LT_EOF 1>&2
  9630. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9631. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9632. *** is disabling shared libraries support. We urge you to upgrade GNU
  9633. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9634. *** your PATH or compiler configuration so that the native linker is
  9635. *** used, and then restart.
  9636. _LT_EOF
  9637. ;;
  9638. *)
  9639. # For security reasons, it is highly recommended that you always
  9640. # use absolute paths for naming shared libraries, and exclude the
  9641. # DT_RUNPATH tag from executables and libraries. But doing so
  9642. # requires that you compile everything twice, which is a pain.
  9643. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9644. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9645. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9646. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9647. else
  9648. ld_shlibs=no
  9649. fi
  9650. ;;
  9651. esac
  9652. ;;
  9653. sunos4*)
  9654. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9655. wlarc=
  9656. hardcode_direct=yes
  9657. hardcode_shlibpath_var=no
  9658. ;;
  9659. *)
  9660. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9661. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9662. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9663. else
  9664. ld_shlibs=no
  9665. fi
  9666. ;;
  9667. esac
  9668. if test no = "$ld_shlibs"; then
  9669. runpath_var=
  9670. hardcode_libdir_flag_spec=
  9671. export_dynamic_flag_spec=
  9672. whole_archive_flag_spec=
  9673. fi
  9674. else
  9675. # PORTME fill in a description of your system's linker (not GNU ld)
  9676. case $host_os in
  9677. aix3*)
  9678. allow_undefined_flag=unsupported
  9679. always_export_symbols=yes
  9680. 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'
  9681. # Note: this linker hardcodes the directories in LIBPATH if there
  9682. # are no directories specified by -L.
  9683. hardcode_minus_L=yes
  9684. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9685. # Neither direct hardcoding nor static linking is supported with a
  9686. # broken collect2.
  9687. hardcode_direct=unsupported
  9688. fi
  9689. ;;
  9690. aix[4-9]*)
  9691. if test ia64 = "$host_cpu"; then
  9692. # On IA64, the linker does run time linking by default, so we don't
  9693. # have to do anything special.
  9694. aix_use_runtimelinking=no
  9695. exp_sym_flag='-Bexport'
  9696. no_entry_flag=
  9697. else
  9698. # If we're using GNU nm, then we don't want the "-C" option.
  9699. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9700. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9701. # weak defined symbols like other global defined symbols, whereas
  9702. # GNU nm marks them as "W".
  9703. # While the 'weak' keyword is ignored in the Export File, we need
  9704. # it in the Import File for the 'aix-soname' feature, so we have
  9705. # to replace the "-B" option with "-P" for AIX nm.
  9706. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9707. 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'
  9708. else
  9709. 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 == "L") || (\$ 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'
  9710. fi
  9711. aix_use_runtimelinking=no
  9712. # Test if we are trying to use run time linking or normal
  9713. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9714. # have runtime linking enabled, and use it for executables.
  9715. # For shared libraries, we enable/disable runtime linking
  9716. # depending on the kind of the shared library created -
  9717. # when "with_aix_soname,aix_use_runtimelinking" is:
  9718. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9719. # "aix,yes" lib.so shared, rtl:yes, for executables
  9720. # lib.a static archive
  9721. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9722. # lib.a(lib.so.V) shared, rtl:no, for executables
  9723. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9724. # lib.a(lib.so.V) shared, rtl:no
  9725. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9726. # lib.a static archive
  9727. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9728. for ld_flag in $LDFLAGS; do
  9729. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9730. aix_use_runtimelinking=yes
  9731. break
  9732. fi
  9733. done
  9734. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9735. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9736. # so we don't have lib.a shared libs to link our executables.
  9737. # We have to force runtime linking in this case.
  9738. aix_use_runtimelinking=yes
  9739. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9740. fi
  9741. ;;
  9742. esac
  9743. exp_sym_flag='-bexport'
  9744. no_entry_flag='-bnoentry'
  9745. fi
  9746. # When large executables or shared objects are built, AIX ld can
  9747. # have problems creating the table of contents. If linking a library
  9748. # or program results in "error TOC overflow" add -mminimal-toc to
  9749. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9750. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9751. archive_cmds=''
  9752. hardcode_direct=yes
  9753. hardcode_direct_absolute=yes
  9754. hardcode_libdir_separator=':'
  9755. link_all_deplibs=yes
  9756. file_list_spec='$wl-f,'
  9757. case $with_aix_soname,$aix_use_runtimelinking in
  9758. aix,*) ;; # traditional, no import file
  9759. svr4,* | *,yes) # use import file
  9760. # The Import File defines what to hardcode.
  9761. hardcode_direct=no
  9762. hardcode_direct_absolute=no
  9763. ;;
  9764. esac
  9765. if test yes = "$GCC"; then
  9766. case $host_os in aix4.[012]|aix4.[012].*)
  9767. # We only want to do this on AIX 4.2 and lower, the check
  9768. # below for broken collect2 doesn't work under 4.3+
  9769. collect2name=`$CC -print-prog-name=collect2`
  9770. if test -f "$collect2name" &&
  9771. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9772. then
  9773. # We have reworked collect2
  9774. :
  9775. else
  9776. # We have old collect2
  9777. hardcode_direct=unsupported
  9778. # It fails to find uninstalled libraries when the uninstalled
  9779. # path is not listed in the libpath. Setting hardcode_minus_L
  9780. # to unsupported forces relinking
  9781. hardcode_minus_L=yes
  9782. hardcode_libdir_flag_spec='-L$libdir'
  9783. hardcode_libdir_separator=
  9784. fi
  9785. ;;
  9786. esac
  9787. shared_flag='-shared'
  9788. if test yes = "$aix_use_runtimelinking"; then
  9789. shared_flag="$shared_flag "'$wl-G'
  9790. fi
  9791. # Need to ensure runtime linking is disabled for the traditional
  9792. # shared library, or the linker may eventually find shared libraries
  9793. # /with/ Import File - we do not want to mix them.
  9794. shared_flag_aix='-shared'
  9795. shared_flag_svr4='-shared $wl-G'
  9796. else
  9797. # not using gcc
  9798. if test ia64 = "$host_cpu"; then
  9799. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9800. # chokes on -Wl,-G. The following line is correct:
  9801. shared_flag='-G'
  9802. else
  9803. if test yes = "$aix_use_runtimelinking"; then
  9804. shared_flag='$wl-G'
  9805. else
  9806. shared_flag='$wl-bM:SRE'
  9807. fi
  9808. shared_flag_aix='$wl-bM:SRE'
  9809. shared_flag_svr4='$wl-G'
  9810. fi
  9811. fi
  9812. export_dynamic_flag_spec='$wl-bexpall'
  9813. # It seems that -bexpall does not export symbols beginning with
  9814. # underscore (_), so it is better to generate a list of symbols to export.
  9815. always_export_symbols=yes
  9816. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9817. # Warning - without using the other runtime loading flags (-brtl),
  9818. # -berok will link without error, but may produce a broken library.
  9819. allow_undefined_flag='-berok'
  9820. # Determine the default libpath from the value encoded in an
  9821. # empty executable.
  9822. if test set = "${lt_cv_aix_libpath+set}"; then
  9823. aix_libpath=$lt_cv_aix_libpath
  9824. else
  9825. if test ${lt_cv_aix_libpath_+y}
  9826. then :
  9827. printf %s "(cached) " >&6
  9828. else $as_nop
  9829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9830. /* end confdefs.h. */
  9831. int
  9832. main (void)
  9833. {
  9834. ;
  9835. return 0;
  9836. }
  9837. _ACEOF
  9838. if ac_fn_c_try_link "$LINENO"
  9839. then :
  9840. lt_aix_libpath_sed='
  9841. /Import File Strings/,/^$/ {
  9842. /^0/ {
  9843. s/^0 *\([^ ]*\) *$/\1/
  9844. p
  9845. }
  9846. }'
  9847. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9848. # Check for a 64-bit object if we didn't find anything.
  9849. if test -z "$lt_cv_aix_libpath_"; then
  9850. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9851. fi
  9852. fi
  9853. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9854. conftest$ac_exeext conftest.$ac_ext
  9855. if test -z "$lt_cv_aix_libpath_"; then
  9856. lt_cv_aix_libpath_=/usr/lib:/lib
  9857. fi
  9858. fi
  9859. aix_libpath=$lt_cv_aix_libpath_
  9860. fi
  9861. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9862. 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
  9863. else
  9864. if test ia64 = "$host_cpu"; then
  9865. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9866. allow_undefined_flag="-z nodefs"
  9867. 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"
  9868. else
  9869. # Determine the default libpath from the value encoded in an
  9870. # empty executable.
  9871. if test set = "${lt_cv_aix_libpath+set}"; then
  9872. aix_libpath=$lt_cv_aix_libpath
  9873. else
  9874. if test ${lt_cv_aix_libpath_+y}
  9875. then :
  9876. printf %s "(cached) " >&6
  9877. else $as_nop
  9878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9879. /* end confdefs.h. */
  9880. int
  9881. main (void)
  9882. {
  9883. ;
  9884. return 0;
  9885. }
  9886. _ACEOF
  9887. if ac_fn_c_try_link "$LINENO"
  9888. then :
  9889. lt_aix_libpath_sed='
  9890. /Import File Strings/,/^$/ {
  9891. /^0/ {
  9892. s/^0 *\([^ ]*\) *$/\1/
  9893. p
  9894. }
  9895. }'
  9896. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9897. # Check for a 64-bit object if we didn't find anything.
  9898. if test -z "$lt_cv_aix_libpath_"; then
  9899. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9900. fi
  9901. fi
  9902. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9903. conftest$ac_exeext conftest.$ac_ext
  9904. if test -z "$lt_cv_aix_libpath_"; then
  9905. lt_cv_aix_libpath_=/usr/lib:/lib
  9906. fi
  9907. fi
  9908. aix_libpath=$lt_cv_aix_libpath_
  9909. fi
  9910. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9911. # Warning - without using the other run time loading flags,
  9912. # -berok will link without error, but may produce a broken library.
  9913. no_undefined_flag=' $wl-bernotok'
  9914. allow_undefined_flag=' $wl-berok'
  9915. if test yes = "$with_gnu_ld"; then
  9916. # We only use this code for GNU lds that support --whole-archive.
  9917. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9918. else
  9919. # Exported symbols can be pulled into shared objects from archives
  9920. whole_archive_flag_spec='$convenience'
  9921. fi
  9922. archive_cmds_need_lc=yes
  9923. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9924. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9925. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9926. if test svr4 != "$with_aix_soname"; then
  9927. # This is similar to how AIX traditionally builds its shared libraries.
  9928. 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'
  9929. fi
  9930. if test aix != "$with_aix_soname"; then
  9931. 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'
  9932. else
  9933. # used by -dlpreopen to get the symbols
  9934. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9935. fi
  9936. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9937. fi
  9938. fi
  9939. ;;
  9940. amigaos*)
  9941. case $host_cpu in
  9942. powerpc)
  9943. # see comment about AmigaOS4 .so support
  9944. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9945. archive_expsym_cmds=''
  9946. ;;
  9947. m68k)
  9948. 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)'
  9949. hardcode_libdir_flag_spec='-L$libdir'
  9950. hardcode_minus_L=yes
  9951. ;;
  9952. esac
  9953. ;;
  9954. bsdi[45]*)
  9955. export_dynamic_flag_spec=-rdynamic
  9956. ;;
  9957. cygwin* | mingw* | pw32* | cegcc*)
  9958. # When not using gcc, we currently assume that we are using
  9959. # Microsoft Visual C++ or Intel C++ Compiler.
  9960. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9961. # no search path for DLLs.
  9962. case $cc_basename in
  9963. cl* | icl*)
  9964. # Native MSVC or ICC
  9965. hardcode_libdir_flag_spec=' '
  9966. allow_undefined_flag=unsupported
  9967. always_export_symbols=yes
  9968. file_list_spec='@'
  9969. # Tell ltmain to make .lib files, not .a files.
  9970. libext=lib
  9971. # Tell ltmain to make .dll files, not .so files.
  9972. shrext_cmds=.dll
  9973. # FIXME: Setting linknames here is a bad hack.
  9974. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9975. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9976. cp "$export_symbols" "$output_objdir/$soname.def";
  9977. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9978. else
  9979. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9980. fi~
  9981. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9982. linknames='
  9983. # The linker will not automatically build a static lib if we build a DLL.
  9984. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9985. enable_shared_with_static_runtimes=yes
  9986. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9987. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9988. # Don't use ranlib
  9989. old_postinstall_cmds='chmod 644 $oldlib'
  9990. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9991. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9992. case $lt_outputfile in
  9993. *.exe|*.EXE) ;;
  9994. *)
  9995. lt_outputfile=$lt_outputfile.exe
  9996. lt_tool_outputfile=$lt_tool_outputfile.exe
  9997. ;;
  9998. esac~
  9999. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10000. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10001. $RM "$lt_outputfile.manifest";
  10002. fi'
  10003. ;;
  10004. *)
  10005. # Assume MSVC and ICC wrapper
  10006. hardcode_libdir_flag_spec=' '
  10007. allow_undefined_flag=unsupported
  10008. # Tell ltmain to make .lib files, not .a files.
  10009. libext=lib
  10010. # Tell ltmain to make .dll files, not .so files.
  10011. shrext_cmds=.dll
  10012. # FIXME: Setting linknames here is a bad hack.
  10013. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10014. # The linker will automatically build a .lib file if we build a DLL.
  10015. old_archive_from_new_cmds='true'
  10016. # FIXME: Should let the user specify the lib program.
  10017. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10018. enable_shared_with_static_runtimes=yes
  10019. ;;
  10020. esac
  10021. ;;
  10022. darwin* | rhapsody*)
  10023. archive_cmds_need_lc=no
  10024. hardcode_direct=no
  10025. hardcode_automatic=yes
  10026. hardcode_shlibpath_var=unsupported
  10027. if test yes = "$lt_cv_ld_force_load"; then
  10028. 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\"`'
  10029. else
  10030. whole_archive_flag_spec=''
  10031. fi
  10032. link_all_deplibs=yes
  10033. allow_undefined_flag=$_lt_dar_allow_undefined
  10034. case $cc_basename in
  10035. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10036. *) _lt_dar_can_shared=$GCC ;;
  10037. esac
  10038. if test yes = "$_lt_dar_can_shared"; then
  10039. output_verbose_link_cmd=func_echo_all
  10040. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10041. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10042. 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"
  10043. 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"
  10044. else
  10045. ld_shlibs=no
  10046. fi
  10047. ;;
  10048. dgux*)
  10049. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10050. hardcode_libdir_flag_spec='-L$libdir'
  10051. hardcode_shlibpath_var=no
  10052. ;;
  10053. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10054. # support. Future versions do this automatically, but an explicit c++rt0.o
  10055. # does not break anything, and helps significantly (at the cost of a little
  10056. # extra space).
  10057. freebsd2.2*)
  10058. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10059. hardcode_libdir_flag_spec='-R$libdir'
  10060. hardcode_direct=yes
  10061. hardcode_shlibpath_var=no
  10062. ;;
  10063. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10064. freebsd2.*)
  10065. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10066. hardcode_direct=yes
  10067. hardcode_minus_L=yes
  10068. hardcode_shlibpath_var=no
  10069. ;;
  10070. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10071. freebsd* | dragonfly* | midnightbsd*)
  10072. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10073. hardcode_libdir_flag_spec='-R$libdir'
  10074. hardcode_direct=yes
  10075. hardcode_shlibpath_var=no
  10076. ;;
  10077. hpux9*)
  10078. if test yes = "$GCC"; then
  10079. 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'
  10080. else
  10081. 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'
  10082. fi
  10083. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10084. hardcode_libdir_separator=:
  10085. hardcode_direct=yes
  10086. # hardcode_minus_L: Not really in the search PATH,
  10087. # but as the default location of the library.
  10088. hardcode_minus_L=yes
  10089. export_dynamic_flag_spec='$wl-E'
  10090. ;;
  10091. hpux10*)
  10092. if test yes,no = "$GCC,$with_gnu_ld"; then
  10093. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10094. else
  10095. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10096. fi
  10097. if test no = "$with_gnu_ld"; then
  10098. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10099. hardcode_libdir_separator=:
  10100. hardcode_direct=yes
  10101. hardcode_direct_absolute=yes
  10102. export_dynamic_flag_spec='$wl-E'
  10103. # hardcode_minus_L: Not really in the search PATH,
  10104. # but as the default location of the library.
  10105. hardcode_minus_L=yes
  10106. fi
  10107. ;;
  10108. hpux11*)
  10109. if test yes,no = "$GCC,$with_gnu_ld"; then
  10110. case $host_cpu in
  10111. hppa*64*)
  10112. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10113. ;;
  10114. ia64*)
  10115. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10116. ;;
  10117. *)
  10118. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10119. ;;
  10120. esac
  10121. else
  10122. case $host_cpu in
  10123. hppa*64*)
  10124. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10125. ;;
  10126. ia64*)
  10127. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10128. ;;
  10129. *)
  10130. # Older versions of the 11.00 compiler do not understand -b yet
  10131. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10133. printf %s "checking if $CC understands -b... " >&6; }
  10134. if test ${lt_cv_prog_compiler__b+y}
  10135. then :
  10136. printf %s "(cached) " >&6
  10137. else $as_nop
  10138. lt_cv_prog_compiler__b=no
  10139. save_LDFLAGS=$LDFLAGS
  10140. LDFLAGS="$LDFLAGS -b"
  10141. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10142. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10143. # The linker can only warn and ignore the option if not recognized
  10144. # So say no if there are warnings
  10145. if test -s conftest.err; then
  10146. # Append any errors to the config.log.
  10147. cat conftest.err 1>&5
  10148. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10149. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10150. if diff conftest.exp conftest.er2 >/dev/null; then
  10151. lt_cv_prog_compiler__b=yes
  10152. fi
  10153. else
  10154. lt_cv_prog_compiler__b=yes
  10155. fi
  10156. fi
  10157. $RM -r conftest*
  10158. LDFLAGS=$save_LDFLAGS
  10159. fi
  10160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10161. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10162. if test yes = "$lt_cv_prog_compiler__b"; then
  10163. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10164. else
  10165. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10166. fi
  10167. ;;
  10168. esac
  10169. fi
  10170. if test no = "$with_gnu_ld"; then
  10171. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10172. hardcode_libdir_separator=:
  10173. case $host_cpu in
  10174. hppa*64*|ia64*)
  10175. hardcode_direct=no
  10176. hardcode_shlibpath_var=no
  10177. ;;
  10178. *)
  10179. hardcode_direct=yes
  10180. hardcode_direct_absolute=yes
  10181. export_dynamic_flag_spec='$wl-E'
  10182. # hardcode_minus_L: Not really in the search PATH,
  10183. # but as the default location of the library.
  10184. hardcode_minus_L=yes
  10185. ;;
  10186. esac
  10187. fi
  10188. ;;
  10189. irix5* | irix6* | nonstopux*)
  10190. if test yes = "$GCC"; then
  10191. 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'
  10192. # Try to use the -exported_symbol ld option, if it does not
  10193. # work, assume that -exports_file does not work either and
  10194. # implicitly export all symbols.
  10195. # This should be the same for all languages, so no per-tag cache variable.
  10196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10197. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10198. if test ${lt_cv_irix_exported_symbol+y}
  10199. then :
  10200. printf %s "(cached) " >&6
  10201. else $as_nop
  10202. save_LDFLAGS=$LDFLAGS
  10203. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10205. /* end confdefs.h. */
  10206. int foo (void) { return 0; }
  10207. _ACEOF
  10208. if ac_fn_c_try_link "$LINENO"
  10209. then :
  10210. lt_cv_irix_exported_symbol=yes
  10211. else $as_nop
  10212. lt_cv_irix_exported_symbol=no
  10213. fi
  10214. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10215. conftest$ac_exeext conftest.$ac_ext
  10216. LDFLAGS=$save_LDFLAGS
  10217. fi
  10218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10219. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10220. if test yes = "$lt_cv_irix_exported_symbol"; then
  10221. 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'
  10222. fi
  10223. link_all_deplibs=no
  10224. else
  10225. 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'
  10226. 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'
  10227. fi
  10228. archive_cmds_need_lc='no'
  10229. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10230. hardcode_libdir_separator=:
  10231. inherit_rpath=yes
  10232. link_all_deplibs=yes
  10233. ;;
  10234. linux*)
  10235. case $cc_basename in
  10236. tcc*)
  10237. # Fabrice Bellard et al's Tiny C Compiler
  10238. ld_shlibs=yes
  10239. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10240. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10241. ;;
  10242. esac
  10243. ;;
  10244. netbsd* | netbsdelf*-gnu)
  10245. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10246. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10247. else
  10248. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10249. fi
  10250. hardcode_libdir_flag_spec='-R$libdir'
  10251. hardcode_direct=yes
  10252. hardcode_shlibpath_var=no
  10253. ;;
  10254. newsos6)
  10255. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10256. hardcode_direct=yes
  10257. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10258. hardcode_libdir_separator=:
  10259. hardcode_shlibpath_var=no
  10260. ;;
  10261. *nto* | *qnx*)
  10262. ;;
  10263. openbsd* | bitrig*)
  10264. if test -f /usr/libexec/ld.so; then
  10265. hardcode_direct=yes
  10266. hardcode_shlibpath_var=no
  10267. hardcode_direct_absolute=yes
  10268. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10269. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10270. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10271. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10272. export_dynamic_flag_spec='$wl-E'
  10273. else
  10274. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10275. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10276. fi
  10277. else
  10278. ld_shlibs=no
  10279. fi
  10280. ;;
  10281. os2*)
  10282. hardcode_libdir_flag_spec='-L$libdir'
  10283. hardcode_minus_L=yes
  10284. allow_undefined_flag=unsupported
  10285. shrext_cmds=.dll
  10286. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10287. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10288. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10289. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10290. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10291. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10292. emximp -o $lib $output_objdir/$libname.def'
  10293. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10294. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10295. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10296. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10297. prefix_cmds="$SED"~
  10298. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10299. prefix_cmds="$prefix_cmds -e 1d";
  10300. fi~
  10301. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10302. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10303. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10304. emximp -o $lib $output_objdir/$libname.def'
  10305. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10306. enable_shared_with_static_runtimes=yes
  10307. file_list_spec='@'
  10308. ;;
  10309. osf3*)
  10310. if test yes = "$GCC"; then
  10311. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10312. 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'
  10313. else
  10314. allow_undefined_flag=' -expect_unresolved \*'
  10315. 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'
  10316. fi
  10317. archive_cmds_need_lc='no'
  10318. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10319. hardcode_libdir_separator=:
  10320. ;;
  10321. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10322. if test yes = "$GCC"; then
  10323. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10324. 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'
  10325. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10326. else
  10327. allow_undefined_flag=' -expect_unresolved \*'
  10328. 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'
  10329. 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~
  10330. $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'
  10331. # Both c and cxx compiler support -rpath directly
  10332. hardcode_libdir_flag_spec='-rpath $libdir'
  10333. fi
  10334. archive_cmds_need_lc='no'
  10335. hardcode_libdir_separator=:
  10336. ;;
  10337. solaris*)
  10338. no_undefined_flag=' -z defs'
  10339. if test yes = "$GCC"; then
  10340. wlarc='$wl'
  10341. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10342. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10343. $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'
  10344. else
  10345. case `$CC -V 2>&1` in
  10346. *"Compilers 5.0"*)
  10347. wlarc=''
  10348. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10349. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10350. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10351. ;;
  10352. *)
  10353. wlarc='$wl'
  10354. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10355. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10356. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10357. ;;
  10358. esac
  10359. fi
  10360. hardcode_libdir_flag_spec='-R$libdir'
  10361. hardcode_shlibpath_var=no
  10362. case $host_os in
  10363. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10364. *)
  10365. # The compiler driver will combine and reorder linker options,
  10366. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10367. # but is careful enough not to reorder.
  10368. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10369. if test yes = "$GCC"; then
  10370. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10371. else
  10372. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10373. fi
  10374. ;;
  10375. esac
  10376. link_all_deplibs=yes
  10377. ;;
  10378. sunos4*)
  10379. if test sequent = "$host_vendor"; then
  10380. # Use $CC to link under sequent, because it throws in some extra .o
  10381. # files that make .init and .fini sections work.
  10382. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10383. else
  10384. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10385. fi
  10386. hardcode_libdir_flag_spec='-L$libdir'
  10387. hardcode_direct=yes
  10388. hardcode_minus_L=yes
  10389. hardcode_shlibpath_var=no
  10390. ;;
  10391. sysv4)
  10392. case $host_vendor in
  10393. sni)
  10394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10395. hardcode_direct=yes # is this really true???
  10396. ;;
  10397. siemens)
  10398. ## LD is ld it makes a PLAMLIB
  10399. ## CC just makes a GrossModule.
  10400. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10401. reload_cmds='$CC -r -o $output$reload_objs'
  10402. hardcode_direct=no
  10403. ;;
  10404. motorola)
  10405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10406. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10407. ;;
  10408. esac
  10409. runpath_var='LD_RUN_PATH'
  10410. hardcode_shlibpath_var=no
  10411. ;;
  10412. sysv4.3*)
  10413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10414. hardcode_shlibpath_var=no
  10415. export_dynamic_flag_spec='-Bexport'
  10416. ;;
  10417. sysv4*MP*)
  10418. if test -d /usr/nec; then
  10419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10420. hardcode_shlibpath_var=no
  10421. runpath_var=LD_RUN_PATH
  10422. hardcode_runpath_var=yes
  10423. ld_shlibs=yes
  10424. fi
  10425. ;;
  10426. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10427. no_undefined_flag='$wl-z,text'
  10428. archive_cmds_need_lc=no
  10429. hardcode_shlibpath_var=no
  10430. runpath_var='LD_RUN_PATH'
  10431. if test yes = "$GCC"; then
  10432. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10433. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10434. else
  10435. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10436. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10437. fi
  10438. ;;
  10439. sysv5* | sco3.2v5* | sco5v6*)
  10440. # Note: We CANNOT use -z defs as we might desire, because we do not
  10441. # link with -lc, and that would cause any symbols used from libc to
  10442. # always be unresolved, which means just about no library would
  10443. # ever link correctly. If we're not using GNU ld we use -z text
  10444. # though, which does catch some bad symbols but isn't as heavy-handed
  10445. # as -z defs.
  10446. no_undefined_flag='$wl-z,text'
  10447. allow_undefined_flag='$wl-z,nodefs'
  10448. archive_cmds_need_lc=no
  10449. hardcode_shlibpath_var=no
  10450. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10451. hardcode_libdir_separator=':'
  10452. link_all_deplibs=yes
  10453. export_dynamic_flag_spec='$wl-Bexport'
  10454. runpath_var='LD_RUN_PATH'
  10455. if test yes = "$GCC"; then
  10456. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10457. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10458. else
  10459. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10460. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10461. fi
  10462. ;;
  10463. uts4*)
  10464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10465. hardcode_libdir_flag_spec='-L$libdir'
  10466. hardcode_shlibpath_var=no
  10467. ;;
  10468. *)
  10469. ld_shlibs=no
  10470. ;;
  10471. esac
  10472. if test sni = "$host_vendor"; then
  10473. case $host in
  10474. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10475. export_dynamic_flag_spec='$wl-Blargedynsym'
  10476. ;;
  10477. esac
  10478. fi
  10479. fi
  10480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10481. printf "%s\n" "$ld_shlibs" >&6; }
  10482. test no = "$ld_shlibs" && can_build_shared=no
  10483. with_gnu_ld=$with_gnu_ld
  10484. #
  10485. # Do we need to explicitly link libc?
  10486. #
  10487. case "x$archive_cmds_need_lc" in
  10488. x|xyes)
  10489. # Assume -lc should be added
  10490. archive_cmds_need_lc=yes
  10491. if test yes,yes = "$GCC,$enable_shared"; then
  10492. case $archive_cmds in
  10493. *'~'*)
  10494. # FIXME: we may have to deal with multi-command sequences.
  10495. ;;
  10496. '$CC '*)
  10497. # Test whether the compiler implicitly links with -lc since on some
  10498. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10499. # to ld, don't add -lc before -lgcc.
  10500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10501. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10502. if test ${lt_cv_archive_cmds_need_lc+y}
  10503. then :
  10504. printf %s "(cached) " >&6
  10505. else $as_nop
  10506. $RM conftest*
  10507. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10508. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10509. (eval $ac_compile) 2>&5
  10510. ac_status=$?
  10511. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10512. test $ac_status = 0; } 2>conftest.err; then
  10513. soname=conftest
  10514. lib=conftest
  10515. libobjs=conftest.$ac_objext
  10516. deplibs=
  10517. wl=$lt_prog_compiler_wl
  10518. pic_flag=$lt_prog_compiler_pic
  10519. compiler_flags=-v
  10520. linker_flags=-v
  10521. verstring=
  10522. output_objdir=.
  10523. libname=conftest
  10524. lt_save_allow_undefined_flag=$allow_undefined_flag
  10525. allow_undefined_flag=
  10526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10527. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10528. ac_status=$?
  10529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10530. test $ac_status = 0; }
  10531. then
  10532. lt_cv_archive_cmds_need_lc=no
  10533. else
  10534. lt_cv_archive_cmds_need_lc=yes
  10535. fi
  10536. allow_undefined_flag=$lt_save_allow_undefined_flag
  10537. else
  10538. cat conftest.err 1>&5
  10539. fi
  10540. $RM conftest*
  10541. fi
  10542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10543. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10544. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10545. ;;
  10546. esac
  10547. fi
  10548. ;;
  10549. esac
  10550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10551. printf %s "checking dynamic linker characteristics... " >&6; }
  10552. if test yes = "$GCC"; then
  10553. case $host_os in
  10554. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10555. *) lt_awk_arg='/^libraries:/' ;;
  10556. esac
  10557. case $host_os in
  10558. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10559. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10560. esac
  10561. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10562. case $lt_search_path_spec in
  10563. *\;*)
  10564. # if the path contains ";" then we assume it to be the separator
  10565. # otherwise default to the standard path separator (i.e. ":") - it is
  10566. # assumed that no part of a normal pathname contains ";" but that should
  10567. # okay in the real world where ";" in dirpaths is itself problematic.
  10568. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10569. ;;
  10570. *)
  10571. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10572. ;;
  10573. esac
  10574. # Ok, now we have the path, separated by spaces, we can step through it
  10575. # and add multilib dir if necessary...
  10576. lt_tmp_lt_search_path_spec=
  10577. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10578. # ...but if some path component already ends with the multilib dir we assume
  10579. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10580. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10581. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10582. lt_multi_os_dir=
  10583. ;;
  10584. esac
  10585. for lt_sys_path in $lt_search_path_spec; do
  10586. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10587. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10588. elif test -n "$lt_multi_os_dir"; then
  10589. test -d "$lt_sys_path" && \
  10590. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10591. fi
  10592. done
  10593. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10594. BEGIN {RS = " "; FS = "/|\n";} {
  10595. lt_foo = "";
  10596. lt_count = 0;
  10597. for (lt_i = NF; lt_i > 0; lt_i--) {
  10598. if ($lt_i != "" && $lt_i != ".") {
  10599. if ($lt_i == "..") {
  10600. lt_count++;
  10601. } else {
  10602. if (lt_count == 0) {
  10603. lt_foo = "/" $lt_i lt_foo;
  10604. } else {
  10605. lt_count--;
  10606. }
  10607. }
  10608. }
  10609. }
  10610. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10611. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10612. }'`
  10613. # AWK program above erroneously prepends '/' to C:/dos/paths
  10614. # for these hosts.
  10615. case $host_os in
  10616. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10617. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10618. esac
  10619. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10620. else
  10621. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10622. fi
  10623. library_names_spec=
  10624. libname_spec='lib$name'
  10625. soname_spec=
  10626. shrext_cmds=.so
  10627. postinstall_cmds=
  10628. postuninstall_cmds=
  10629. finish_cmds=
  10630. finish_eval=
  10631. shlibpath_var=
  10632. shlibpath_overrides_runpath=unknown
  10633. version_type=none
  10634. dynamic_linker="$host_os ld.so"
  10635. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10636. need_lib_prefix=unknown
  10637. hardcode_into_libs=no
  10638. # when you set need_version to no, make sure it does not cause -set_version
  10639. # flags to be left without arguments
  10640. need_version=unknown
  10641. case $host_os in
  10642. aix3*)
  10643. version_type=linux # correct to gnu/linux during the next big refactor
  10644. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10645. shlibpath_var=LIBPATH
  10646. # AIX 3 has no versioning support, so we append a major version to the name.
  10647. soname_spec='$libname$release$shared_ext$major'
  10648. ;;
  10649. aix[4-9]*)
  10650. version_type=linux # correct to gnu/linux during the next big refactor
  10651. need_lib_prefix=no
  10652. need_version=no
  10653. hardcode_into_libs=yes
  10654. if test ia64 = "$host_cpu"; then
  10655. # AIX 5 supports IA64
  10656. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10657. shlibpath_var=LD_LIBRARY_PATH
  10658. else
  10659. # With GCC up to 2.95.x, collect2 would create an import file
  10660. # for dependence libraries. The import file would start with
  10661. # the line '#! .'. This would cause the generated library to
  10662. # depend on '.', always an invalid library. This was fixed in
  10663. # development snapshots of GCC prior to 3.0.
  10664. case $host_os in
  10665. aix4 | aix4.[01] | aix4.[01].*)
  10666. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10667. echo ' yes '
  10668. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10669. :
  10670. else
  10671. can_build_shared=no
  10672. fi
  10673. ;;
  10674. esac
  10675. # Using Import Files as archive members, it is possible to support
  10676. # filename-based versioning of shared library archives on AIX. While
  10677. # this would work for both with and without runtime linking, it will
  10678. # prevent static linking of such archives. So we do filename-based
  10679. # shared library versioning with .so extension only, which is used
  10680. # when both runtime linking and shared linking is enabled.
  10681. # Unfortunately, runtime linking may impact performance, so we do
  10682. # not want this to be the default eventually. Also, we use the
  10683. # versioned .so libs for executables only if there is the -brtl
  10684. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10685. # To allow for filename-based versioning support, we need to create
  10686. # libNAME.so.V as an archive file, containing:
  10687. # *) an Import File, referring to the versioned filename of the
  10688. # archive as well as the shared archive member, telling the
  10689. # bitwidth (32 or 64) of that shared object, and providing the
  10690. # list of exported symbols of that shared object, eventually
  10691. # decorated with the 'weak' keyword
  10692. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10693. # it being seen by the linker.
  10694. # At run time we better use the real file rather than another symlink,
  10695. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10696. case $with_aix_soname,$aix_use_runtimelinking in
  10697. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10698. # soname into executable. Probably we can add versioning support to
  10699. # collect2, so additional links can be useful in future.
  10700. aix,yes) # traditional libtool
  10701. dynamic_linker='AIX unversionable lib.so'
  10702. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10703. # instead of lib<name>.a to let people know that these are not
  10704. # typical AIX shared libraries.
  10705. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10706. ;;
  10707. aix,no) # traditional AIX only
  10708. dynamic_linker='AIX lib.a(lib.so.V)'
  10709. # We preserve .a as extension for shared libraries through AIX4.2
  10710. # and later when we are not doing run time linking.
  10711. library_names_spec='$libname$release.a $libname.a'
  10712. soname_spec='$libname$release$shared_ext$major'
  10713. ;;
  10714. svr4,*) # full svr4 only
  10715. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10716. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10717. # We do not specify a path in Import Files, so LIBPATH fires.
  10718. shlibpath_overrides_runpath=yes
  10719. ;;
  10720. *,yes) # both, prefer svr4
  10721. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10722. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10723. # unpreferred sharedlib libNAME.a needs extra handling
  10724. 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"'
  10725. 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"'
  10726. # We do not specify a path in Import Files, so LIBPATH fires.
  10727. shlibpath_overrides_runpath=yes
  10728. ;;
  10729. *,no) # both, prefer aix
  10730. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10731. library_names_spec='$libname$release.a $libname.a'
  10732. soname_spec='$libname$release$shared_ext$major'
  10733. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10734. 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)'
  10735. 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"'
  10736. ;;
  10737. esac
  10738. shlibpath_var=LIBPATH
  10739. fi
  10740. ;;
  10741. amigaos*)
  10742. case $host_cpu in
  10743. powerpc)
  10744. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10745. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10746. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10747. ;;
  10748. m68k)
  10749. library_names_spec='$libname.ixlibrary $libname.a'
  10750. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10751. 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'
  10752. ;;
  10753. esac
  10754. ;;
  10755. beos*)
  10756. library_names_spec='$libname$shared_ext'
  10757. dynamic_linker="$host_os ld.so"
  10758. shlibpath_var=LIBRARY_PATH
  10759. ;;
  10760. bsdi[45]*)
  10761. version_type=linux # correct to gnu/linux during the next big refactor
  10762. need_version=no
  10763. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10764. soname_spec='$libname$release$shared_ext$major'
  10765. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10766. shlibpath_var=LD_LIBRARY_PATH
  10767. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10768. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10769. # the default ld.so.conf also contains /usr/contrib/lib and
  10770. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10771. # libtool to hard-code these into programs
  10772. ;;
  10773. cygwin* | mingw* | pw32* | cegcc*)
  10774. version_type=windows
  10775. shrext_cmds=.dll
  10776. need_version=no
  10777. need_lib_prefix=no
  10778. case $GCC,$cc_basename in
  10779. yes,*)
  10780. # gcc
  10781. library_names_spec='$libname.dll.a'
  10782. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10783. postinstall_cmds='base_file=`basename \$file`~
  10784. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10785. dldir=$destdir/`dirname \$dlpath`~
  10786. test -d \$dldir || mkdir -p \$dldir~
  10787. $install_prog $dir/$dlname \$dldir/$dlname~
  10788. chmod a+x \$dldir/$dlname~
  10789. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10790. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10791. fi'
  10792. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10793. dlpath=$dir/\$dldll~
  10794. $RM \$dlpath'
  10795. shlibpath_overrides_runpath=yes
  10796. case $host_os in
  10797. cygwin*)
  10798. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10799. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10800. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10801. ;;
  10802. mingw* | cegcc*)
  10803. # MinGW DLLs use traditional 'lib' prefix
  10804. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10805. ;;
  10806. pw32*)
  10807. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10808. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10809. ;;
  10810. esac
  10811. dynamic_linker='Win32 ld.exe'
  10812. ;;
  10813. *,cl* | *,icl*)
  10814. # Native MSVC or ICC
  10815. libname_spec='$name'
  10816. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10817. library_names_spec='$libname.dll.lib'
  10818. case $build_os in
  10819. mingw*)
  10820. sys_lib_search_path_spec=
  10821. lt_save_ifs=$IFS
  10822. IFS=';'
  10823. for lt_path in $LIB
  10824. do
  10825. IFS=$lt_save_ifs
  10826. # Let DOS variable expansion print the short 8.3 style file name.
  10827. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10828. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10829. done
  10830. IFS=$lt_save_ifs
  10831. # Convert to MSYS style.
  10832. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10833. ;;
  10834. cygwin*)
  10835. # Convert to unix form, then to dos form, then back to unix form
  10836. # but this time dos style (no spaces!) so that the unix form looks
  10837. # like /cygdrive/c/PROGRA~1:/cygdr...
  10838. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10839. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10840. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10841. ;;
  10842. *)
  10843. sys_lib_search_path_spec=$LIB
  10844. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10845. # It is most probably a Windows format PATH.
  10846. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10847. else
  10848. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10849. fi
  10850. # FIXME: find the short name or the path components, as spaces are
  10851. # common. (e.g. "Program Files" -> "PROGRA~1")
  10852. ;;
  10853. esac
  10854. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10855. postinstall_cmds='base_file=`basename \$file`~
  10856. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10857. dldir=$destdir/`dirname \$dlpath`~
  10858. test -d \$dldir || mkdir -p \$dldir~
  10859. $install_prog $dir/$dlname \$dldir/$dlname'
  10860. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10861. dlpath=$dir/\$dldll~
  10862. $RM \$dlpath'
  10863. shlibpath_overrides_runpath=yes
  10864. dynamic_linker='Win32 link.exe'
  10865. ;;
  10866. *)
  10867. # Assume MSVC and ICC wrapper
  10868. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10869. dynamic_linker='Win32 ld.exe'
  10870. ;;
  10871. esac
  10872. # FIXME: first we should search . and the directory the executable is in
  10873. shlibpath_var=PATH
  10874. ;;
  10875. darwin* | rhapsody*)
  10876. dynamic_linker="$host_os dyld"
  10877. version_type=darwin
  10878. need_lib_prefix=no
  10879. need_version=no
  10880. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10881. soname_spec='$libname$release$major$shared_ext'
  10882. shlibpath_overrides_runpath=yes
  10883. shlibpath_var=DYLD_LIBRARY_PATH
  10884. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10885. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10886. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10887. ;;
  10888. dgux*)
  10889. version_type=linux # correct to gnu/linux during the next big refactor
  10890. need_lib_prefix=no
  10891. need_version=no
  10892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10893. soname_spec='$libname$release$shared_ext$major'
  10894. shlibpath_var=LD_LIBRARY_PATH
  10895. ;;
  10896. freebsd* | dragonfly* | midnightbsd*)
  10897. # DragonFly does not have aout. When/if they implement a new
  10898. # versioning mechanism, adjust this.
  10899. if test -x /usr/bin/objformat; then
  10900. objformat=`/usr/bin/objformat`
  10901. else
  10902. case $host_os in
  10903. freebsd[23].*) objformat=aout ;;
  10904. *) objformat=elf ;;
  10905. esac
  10906. fi
  10907. version_type=freebsd-$objformat
  10908. case $version_type in
  10909. freebsd-elf*)
  10910. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10911. soname_spec='$libname$release$shared_ext$major'
  10912. need_version=no
  10913. need_lib_prefix=no
  10914. ;;
  10915. freebsd-*)
  10916. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10917. need_version=yes
  10918. ;;
  10919. esac
  10920. shlibpath_var=LD_LIBRARY_PATH
  10921. case $host_os in
  10922. freebsd2.*)
  10923. shlibpath_overrides_runpath=yes
  10924. ;;
  10925. freebsd3.[01]* | freebsdelf3.[01]*)
  10926. shlibpath_overrides_runpath=yes
  10927. hardcode_into_libs=yes
  10928. ;;
  10929. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10930. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10931. shlibpath_overrides_runpath=no
  10932. hardcode_into_libs=yes
  10933. ;;
  10934. *) # from 4.6 on, and DragonFly
  10935. shlibpath_overrides_runpath=yes
  10936. hardcode_into_libs=yes
  10937. ;;
  10938. esac
  10939. ;;
  10940. haiku*)
  10941. version_type=linux # correct to gnu/linux during the next big refactor
  10942. need_lib_prefix=no
  10943. need_version=no
  10944. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  10948. shlibpath_overrides_runpath=no
  10949. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10950. hardcode_into_libs=yes
  10951. ;;
  10952. hpux9* | hpux10* | hpux11*)
  10953. # Give a soname corresponding to the major version so that dld.sl refuses to
  10954. # link against other versions.
  10955. version_type=sunos
  10956. need_lib_prefix=no
  10957. need_version=no
  10958. case $host_cpu in
  10959. ia64*)
  10960. shrext_cmds='.so'
  10961. hardcode_into_libs=yes
  10962. dynamic_linker="$host_os dld.so"
  10963. shlibpath_var=LD_LIBRARY_PATH
  10964. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10965. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10966. soname_spec='$libname$release$shared_ext$major'
  10967. if test 32 = "$HPUX_IA64_MODE"; then
  10968. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10969. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10970. else
  10971. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10972. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10973. fi
  10974. ;;
  10975. hppa*64*)
  10976. shrext_cmds='.sl'
  10977. hardcode_into_libs=yes
  10978. dynamic_linker="$host_os dld.sl"
  10979. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10980. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10981. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10982. soname_spec='$libname$release$shared_ext$major'
  10983. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10984. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10985. ;;
  10986. *)
  10987. shrext_cmds='.sl'
  10988. dynamic_linker="$host_os dld.sl"
  10989. shlibpath_var=SHLIB_PATH
  10990. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10991. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10992. soname_spec='$libname$release$shared_ext$major'
  10993. ;;
  10994. esac
  10995. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10996. postinstall_cmds='chmod 555 $lib'
  10997. # or fails outright, so override atomically:
  10998. install_override_mode=555
  10999. ;;
  11000. interix[3-9]*)
  11001. version_type=linux # correct to gnu/linux during the next big refactor
  11002. need_lib_prefix=no
  11003. need_version=no
  11004. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11005. soname_spec='$libname$release$shared_ext$major'
  11006. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11007. shlibpath_var=LD_LIBRARY_PATH
  11008. shlibpath_overrides_runpath=no
  11009. hardcode_into_libs=yes
  11010. ;;
  11011. irix5* | irix6* | nonstopux*)
  11012. case $host_os in
  11013. nonstopux*) version_type=nonstopux ;;
  11014. *)
  11015. if test yes = "$lt_cv_prog_gnu_ld"; then
  11016. version_type=linux # correct to gnu/linux during the next big refactor
  11017. else
  11018. version_type=irix
  11019. fi ;;
  11020. esac
  11021. need_lib_prefix=no
  11022. need_version=no
  11023. soname_spec='$libname$release$shared_ext$major'
  11024. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11025. case $host_os in
  11026. irix5* | nonstopux*)
  11027. libsuff= shlibsuff=
  11028. ;;
  11029. *)
  11030. case $LD in # libtool.m4 will add one of these switches to LD
  11031. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11032. libsuff= shlibsuff= libmagic=32-bit;;
  11033. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11034. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11035. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11036. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11037. *) libsuff= shlibsuff= libmagic=never-match;;
  11038. esac
  11039. ;;
  11040. esac
  11041. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11042. shlibpath_overrides_runpath=no
  11043. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11044. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11045. hardcode_into_libs=yes
  11046. ;;
  11047. # No shared lib support for Linux oldld, aout, or coff.
  11048. linux*oldld* | linux*aout* | linux*coff*)
  11049. dynamic_linker=no
  11050. ;;
  11051. linux*android*)
  11052. version_type=none # Android doesn't support versioned libraries.
  11053. need_lib_prefix=no
  11054. need_version=no
  11055. library_names_spec='$libname$release$shared_ext'
  11056. soname_spec='$libname$release$shared_ext'
  11057. finish_cmds=
  11058. shlibpath_var=LD_LIBRARY_PATH
  11059. shlibpath_overrides_runpath=yes
  11060. # This implies no fast_install, which is unacceptable.
  11061. # Some rework will be needed to allow for fast_install
  11062. # before this can be enabled.
  11063. hardcode_into_libs=yes
  11064. dynamic_linker='Android linker'
  11065. # Don't embed -rpath directories since the linker doesn't support them.
  11066. hardcode_libdir_flag_spec='-L$libdir'
  11067. ;;
  11068. # This must be glibc/ELF.
  11069. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11070. version_type=linux # correct to gnu/linux during the next big refactor
  11071. need_lib_prefix=no
  11072. need_version=no
  11073. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11074. soname_spec='$libname$release$shared_ext$major'
  11075. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11076. shlibpath_var=LD_LIBRARY_PATH
  11077. shlibpath_overrides_runpath=no
  11078. # Some binutils ld are patched to set DT_RUNPATH
  11079. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11080. then :
  11081. printf %s "(cached) " >&6
  11082. else $as_nop
  11083. lt_cv_shlibpath_overrides_runpath=no
  11084. save_LDFLAGS=$LDFLAGS
  11085. save_libdir=$libdir
  11086. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11087. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11089. /* end confdefs.h. */
  11090. int
  11091. main (void)
  11092. {
  11093. ;
  11094. return 0;
  11095. }
  11096. _ACEOF
  11097. if ac_fn_c_try_link "$LINENO"
  11098. then :
  11099. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11100. then :
  11101. lt_cv_shlibpath_overrides_runpath=yes
  11102. fi
  11103. fi
  11104. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11105. conftest$ac_exeext conftest.$ac_ext
  11106. LDFLAGS=$save_LDFLAGS
  11107. libdir=$save_libdir
  11108. fi
  11109. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11110. # This implies no fast_install, which is unacceptable.
  11111. # Some rework will be needed to allow for fast_install
  11112. # before this can be enabled.
  11113. hardcode_into_libs=yes
  11114. # Ideally, we could use ldconfig to report *all* directores which are
  11115. # searched for libraries, however this is still not possible. Aside from not
  11116. # being certain /sbin/ldconfig is available, command
  11117. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11118. # even though it is searched at run-time. Try to do the best guess by
  11119. # appending ld.so.conf contents (and includes) to the search path.
  11120. if test -f /etc/ld.so.conf; then
  11121. 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' ' '`
  11122. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11123. fi
  11124. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11125. # powerpc, because MkLinux only supported shared libraries with the
  11126. # GNU dynamic linker. Since this was broken with cross compilers,
  11127. # most powerpc-linux boxes support dynamic linking these days and
  11128. # people can always --disable-shared, the test was removed, and we
  11129. # assume the GNU/Linux dynamic linker is in use.
  11130. dynamic_linker='GNU/Linux ld.so'
  11131. ;;
  11132. netbsdelf*-gnu)
  11133. version_type=linux
  11134. need_lib_prefix=no
  11135. need_version=no
  11136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11137. soname_spec='${libname}${release}${shared_ext}$major'
  11138. shlibpath_var=LD_LIBRARY_PATH
  11139. shlibpath_overrides_runpath=no
  11140. hardcode_into_libs=yes
  11141. dynamic_linker='NetBSD ld.elf_so'
  11142. ;;
  11143. netbsd*)
  11144. version_type=sunos
  11145. need_lib_prefix=no
  11146. need_version=no
  11147. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11148. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11149. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11150. dynamic_linker='NetBSD (a.out) ld.so'
  11151. else
  11152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11153. soname_spec='$libname$release$shared_ext$major'
  11154. dynamic_linker='NetBSD ld.elf_so'
  11155. fi
  11156. shlibpath_var=LD_LIBRARY_PATH
  11157. shlibpath_overrides_runpath=yes
  11158. hardcode_into_libs=yes
  11159. ;;
  11160. newsos6)
  11161. version_type=linux # correct to gnu/linux during the next big refactor
  11162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11163. shlibpath_var=LD_LIBRARY_PATH
  11164. shlibpath_overrides_runpath=yes
  11165. ;;
  11166. *nto* | *qnx*)
  11167. version_type=qnx
  11168. need_lib_prefix=no
  11169. need_version=no
  11170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11171. soname_spec='$libname$release$shared_ext$major'
  11172. shlibpath_var=LD_LIBRARY_PATH
  11173. shlibpath_overrides_runpath=no
  11174. hardcode_into_libs=yes
  11175. dynamic_linker='ldqnx.so'
  11176. ;;
  11177. openbsd* | bitrig*)
  11178. version_type=sunos
  11179. sys_lib_dlsearch_path_spec=/usr/lib
  11180. need_lib_prefix=no
  11181. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11182. need_version=no
  11183. else
  11184. need_version=yes
  11185. fi
  11186. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11187. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11188. shlibpath_var=LD_LIBRARY_PATH
  11189. shlibpath_overrides_runpath=yes
  11190. ;;
  11191. os2*)
  11192. libname_spec='$name'
  11193. version_type=windows
  11194. shrext_cmds=.dll
  11195. need_version=no
  11196. need_lib_prefix=no
  11197. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11198. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11199. v=$($ECHO $release$versuffix | tr -d .-);
  11200. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11201. $ECHO $n$v`$shared_ext'
  11202. library_names_spec='${libname}_dll.$libext'
  11203. dynamic_linker='OS/2 ld.exe'
  11204. shlibpath_var=BEGINLIBPATH
  11205. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11206. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11207. postinstall_cmds='base_file=`basename \$file`~
  11208. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11209. dldir=$destdir/`dirname \$dlpath`~
  11210. test -d \$dldir || mkdir -p \$dldir~
  11211. $install_prog $dir/$dlname \$dldir/$dlname~
  11212. chmod a+x \$dldir/$dlname~
  11213. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11214. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11215. fi'
  11216. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11217. dlpath=$dir/\$dldll~
  11218. $RM \$dlpath'
  11219. ;;
  11220. osf3* | osf4* | osf5*)
  11221. version_type=osf
  11222. need_lib_prefix=no
  11223. need_version=no
  11224. soname_spec='$libname$release$shared_ext$major'
  11225. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11226. shlibpath_var=LD_LIBRARY_PATH
  11227. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11228. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11229. ;;
  11230. rdos*)
  11231. dynamic_linker=no
  11232. ;;
  11233. solaris*)
  11234. version_type=linux # correct to gnu/linux during the next big refactor
  11235. need_lib_prefix=no
  11236. need_version=no
  11237. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11238. soname_spec='$libname$release$shared_ext$major'
  11239. shlibpath_var=LD_LIBRARY_PATH
  11240. shlibpath_overrides_runpath=yes
  11241. hardcode_into_libs=yes
  11242. # ldd complains unless libraries are executable
  11243. postinstall_cmds='chmod +x $lib'
  11244. ;;
  11245. sunos4*)
  11246. version_type=sunos
  11247. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11248. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11249. shlibpath_var=LD_LIBRARY_PATH
  11250. shlibpath_overrides_runpath=yes
  11251. if test yes = "$with_gnu_ld"; then
  11252. need_lib_prefix=no
  11253. fi
  11254. need_version=yes
  11255. ;;
  11256. sysv4 | sysv4.3*)
  11257. version_type=linux # correct to gnu/linux during the next big refactor
  11258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11259. soname_spec='$libname$release$shared_ext$major'
  11260. shlibpath_var=LD_LIBRARY_PATH
  11261. case $host_vendor in
  11262. sni)
  11263. shlibpath_overrides_runpath=no
  11264. need_lib_prefix=no
  11265. runpath_var=LD_RUN_PATH
  11266. ;;
  11267. siemens)
  11268. need_lib_prefix=no
  11269. ;;
  11270. motorola)
  11271. need_lib_prefix=no
  11272. need_version=no
  11273. shlibpath_overrides_runpath=no
  11274. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11275. ;;
  11276. esac
  11277. ;;
  11278. sysv4*MP*)
  11279. if test -d /usr/nec; then
  11280. version_type=linux # correct to gnu/linux during the next big refactor
  11281. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11282. soname_spec='$libname$shared_ext.$major'
  11283. shlibpath_var=LD_LIBRARY_PATH
  11284. fi
  11285. ;;
  11286. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11287. version_type=sco
  11288. need_lib_prefix=no
  11289. need_version=no
  11290. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11291. soname_spec='$libname$release$shared_ext$major'
  11292. shlibpath_var=LD_LIBRARY_PATH
  11293. shlibpath_overrides_runpath=yes
  11294. hardcode_into_libs=yes
  11295. if test yes = "$with_gnu_ld"; then
  11296. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11297. else
  11298. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11299. case $host_os in
  11300. sco3.2v5*)
  11301. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11302. ;;
  11303. esac
  11304. fi
  11305. sys_lib_dlsearch_path_spec='/usr/lib'
  11306. ;;
  11307. tpf*)
  11308. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11309. version_type=linux # correct to gnu/linux during the next big refactor
  11310. need_lib_prefix=no
  11311. need_version=no
  11312. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11313. shlibpath_var=LD_LIBRARY_PATH
  11314. shlibpath_overrides_runpath=no
  11315. hardcode_into_libs=yes
  11316. ;;
  11317. uts4*)
  11318. version_type=linux # correct to gnu/linux during the next big refactor
  11319. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11320. soname_spec='$libname$release$shared_ext$major'
  11321. shlibpath_var=LD_LIBRARY_PATH
  11322. ;;
  11323. *)
  11324. dynamic_linker=no
  11325. ;;
  11326. esac
  11327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11328. printf "%s\n" "$dynamic_linker" >&6; }
  11329. test no = "$dynamic_linker" && can_build_shared=no
  11330. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11331. if test yes = "$GCC"; then
  11332. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11333. fi
  11334. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11335. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11336. fi
  11337. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11338. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11339. fi
  11340. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11341. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11342. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11343. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11344. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11345. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11347. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11348. hardcode_action=
  11349. if test -n "$hardcode_libdir_flag_spec" ||
  11350. test -n "$runpath_var" ||
  11351. test yes = "$hardcode_automatic"; then
  11352. # We can hardcode non-existent directories.
  11353. if test no != "$hardcode_direct" &&
  11354. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11355. # have to relink, otherwise we might link with an installed library
  11356. # when we should be linking with a yet-to-be-installed one
  11357. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11358. test no != "$hardcode_minus_L"; then
  11359. # Linking always hardcodes the temporary library directory.
  11360. hardcode_action=relink
  11361. else
  11362. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11363. hardcode_action=immediate
  11364. fi
  11365. else
  11366. # We cannot hardcode anything, or else we can only hardcode existing
  11367. # directories.
  11368. hardcode_action=unsupported
  11369. fi
  11370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11371. printf "%s\n" "$hardcode_action" >&6; }
  11372. if test relink = "$hardcode_action" ||
  11373. test yes = "$inherit_rpath"; then
  11374. # Fast installation is not supported
  11375. enable_fast_install=no
  11376. elif test yes = "$shlibpath_overrides_runpath" ||
  11377. test no = "$enable_shared"; then
  11378. # Fast installation is not necessary
  11379. enable_fast_install=needless
  11380. fi
  11381. if test yes != "$enable_dlopen"; then
  11382. enable_dlopen=unknown
  11383. enable_dlopen_self=unknown
  11384. enable_dlopen_self_static=unknown
  11385. else
  11386. lt_cv_dlopen=no
  11387. lt_cv_dlopen_libs=
  11388. case $host_os in
  11389. beos*)
  11390. lt_cv_dlopen=load_add_on
  11391. lt_cv_dlopen_libs=
  11392. lt_cv_dlopen_self=yes
  11393. ;;
  11394. mingw* | pw32* | cegcc*)
  11395. lt_cv_dlopen=LoadLibrary
  11396. lt_cv_dlopen_libs=
  11397. ;;
  11398. cygwin*)
  11399. lt_cv_dlopen=dlopen
  11400. lt_cv_dlopen_libs=
  11401. ;;
  11402. darwin*)
  11403. # if libdl is installed we need to link against it
  11404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11405. printf %s "checking for dlopen in -ldl... " >&6; }
  11406. if test ${ac_cv_lib_dl_dlopen+y}
  11407. then :
  11408. printf %s "(cached) " >&6
  11409. else $as_nop
  11410. ac_check_lib_save_LIBS=$LIBS
  11411. LIBS="-ldl $LIBS"
  11412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11413. /* end confdefs.h. */
  11414. /* Override any GCC internal prototype to avoid an error.
  11415. Use char because int might match the return type of a GCC
  11416. builtin and then its argument prototype would still apply. */
  11417. char dlopen ();
  11418. int
  11419. main (void)
  11420. {
  11421. return dlopen ();
  11422. ;
  11423. return 0;
  11424. }
  11425. _ACEOF
  11426. if ac_fn_c_try_link "$LINENO"
  11427. then :
  11428. ac_cv_lib_dl_dlopen=yes
  11429. else $as_nop
  11430. ac_cv_lib_dl_dlopen=no
  11431. fi
  11432. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11433. conftest$ac_exeext conftest.$ac_ext
  11434. LIBS=$ac_check_lib_save_LIBS
  11435. fi
  11436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11437. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11438. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11439. then :
  11440. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11441. else $as_nop
  11442. lt_cv_dlopen=dyld
  11443. lt_cv_dlopen_libs=
  11444. lt_cv_dlopen_self=yes
  11445. fi
  11446. ;;
  11447. tpf*)
  11448. # Don't try to run any link tests for TPF. We know it's impossible
  11449. # because TPF is a cross-compiler, and we know how we open DSOs.
  11450. lt_cv_dlopen=dlopen
  11451. lt_cv_dlopen_libs=
  11452. lt_cv_dlopen_self=no
  11453. ;;
  11454. *)
  11455. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11456. if test "x$ac_cv_func_shl_load" = xyes
  11457. then :
  11458. lt_cv_dlopen=shl_load
  11459. else $as_nop
  11460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11461. printf %s "checking for shl_load in -ldld... " >&6; }
  11462. if test ${ac_cv_lib_dld_shl_load+y}
  11463. then :
  11464. printf %s "(cached) " >&6
  11465. else $as_nop
  11466. ac_check_lib_save_LIBS=$LIBS
  11467. LIBS="-ldld $LIBS"
  11468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11469. /* end confdefs.h. */
  11470. /* Override any GCC internal prototype to avoid an error.
  11471. Use char because int might match the return type of a GCC
  11472. builtin and then its argument prototype would still apply. */
  11473. char shl_load ();
  11474. int
  11475. main (void)
  11476. {
  11477. return shl_load ();
  11478. ;
  11479. return 0;
  11480. }
  11481. _ACEOF
  11482. if ac_fn_c_try_link "$LINENO"
  11483. then :
  11484. ac_cv_lib_dld_shl_load=yes
  11485. else $as_nop
  11486. ac_cv_lib_dld_shl_load=no
  11487. fi
  11488. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11489. conftest$ac_exeext conftest.$ac_ext
  11490. LIBS=$ac_check_lib_save_LIBS
  11491. fi
  11492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11493. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11494. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11495. then :
  11496. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11497. else $as_nop
  11498. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11499. if test "x$ac_cv_func_dlopen" = xyes
  11500. then :
  11501. lt_cv_dlopen=dlopen
  11502. else $as_nop
  11503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11504. printf %s "checking for dlopen in -ldl... " >&6; }
  11505. if test ${ac_cv_lib_dl_dlopen+y}
  11506. then :
  11507. printf %s "(cached) " >&6
  11508. else $as_nop
  11509. ac_check_lib_save_LIBS=$LIBS
  11510. LIBS="-ldl $LIBS"
  11511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11512. /* end confdefs.h. */
  11513. /* Override any GCC internal prototype to avoid an error.
  11514. Use char because int might match the return type of a GCC
  11515. builtin and then its argument prototype would still apply. */
  11516. char dlopen ();
  11517. int
  11518. main (void)
  11519. {
  11520. return dlopen ();
  11521. ;
  11522. return 0;
  11523. }
  11524. _ACEOF
  11525. if ac_fn_c_try_link "$LINENO"
  11526. then :
  11527. ac_cv_lib_dl_dlopen=yes
  11528. else $as_nop
  11529. ac_cv_lib_dl_dlopen=no
  11530. fi
  11531. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11532. conftest$ac_exeext conftest.$ac_ext
  11533. LIBS=$ac_check_lib_save_LIBS
  11534. fi
  11535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11536. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11537. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11538. then :
  11539. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11540. else $as_nop
  11541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11542. printf %s "checking for dlopen in -lsvld... " >&6; }
  11543. if test ${ac_cv_lib_svld_dlopen+y}
  11544. then :
  11545. printf %s "(cached) " >&6
  11546. else $as_nop
  11547. ac_check_lib_save_LIBS=$LIBS
  11548. LIBS="-lsvld $LIBS"
  11549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11550. /* end confdefs.h. */
  11551. /* Override any GCC internal prototype to avoid an error.
  11552. Use char because int might match the return type of a GCC
  11553. builtin and then its argument prototype would still apply. */
  11554. char dlopen ();
  11555. int
  11556. main (void)
  11557. {
  11558. return dlopen ();
  11559. ;
  11560. return 0;
  11561. }
  11562. _ACEOF
  11563. if ac_fn_c_try_link "$LINENO"
  11564. then :
  11565. ac_cv_lib_svld_dlopen=yes
  11566. else $as_nop
  11567. ac_cv_lib_svld_dlopen=no
  11568. fi
  11569. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11570. conftest$ac_exeext conftest.$ac_ext
  11571. LIBS=$ac_check_lib_save_LIBS
  11572. fi
  11573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11574. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11575. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11576. then :
  11577. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11578. else $as_nop
  11579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11580. printf %s "checking for dld_link in -ldld... " >&6; }
  11581. if test ${ac_cv_lib_dld_dld_link+y}
  11582. then :
  11583. printf %s "(cached) " >&6
  11584. else $as_nop
  11585. ac_check_lib_save_LIBS=$LIBS
  11586. LIBS="-ldld $LIBS"
  11587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11588. /* end confdefs.h. */
  11589. /* Override any GCC internal prototype to avoid an error.
  11590. Use char because int might match the return type of a GCC
  11591. builtin and then its argument prototype would still apply. */
  11592. char dld_link ();
  11593. int
  11594. main (void)
  11595. {
  11596. return dld_link ();
  11597. ;
  11598. return 0;
  11599. }
  11600. _ACEOF
  11601. if ac_fn_c_try_link "$LINENO"
  11602. then :
  11603. ac_cv_lib_dld_dld_link=yes
  11604. else $as_nop
  11605. ac_cv_lib_dld_dld_link=no
  11606. fi
  11607. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11608. conftest$ac_exeext conftest.$ac_ext
  11609. LIBS=$ac_check_lib_save_LIBS
  11610. fi
  11611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11612. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11613. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11614. then :
  11615. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11616. fi
  11617. fi
  11618. fi
  11619. fi
  11620. fi
  11621. fi
  11622. ;;
  11623. esac
  11624. if test no = "$lt_cv_dlopen"; then
  11625. enable_dlopen=no
  11626. else
  11627. enable_dlopen=yes
  11628. fi
  11629. case $lt_cv_dlopen in
  11630. dlopen)
  11631. save_CPPFLAGS=$CPPFLAGS
  11632. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11633. save_LDFLAGS=$LDFLAGS
  11634. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11635. save_LIBS=$LIBS
  11636. LIBS="$lt_cv_dlopen_libs $LIBS"
  11637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11638. printf %s "checking whether a program can dlopen itself... " >&6; }
  11639. if test ${lt_cv_dlopen_self+y}
  11640. then :
  11641. printf %s "(cached) " >&6
  11642. else $as_nop
  11643. if test yes = "$cross_compiling"; then :
  11644. lt_cv_dlopen_self=cross
  11645. else
  11646. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11647. lt_status=$lt_dlunknown
  11648. cat > conftest.$ac_ext <<_LT_EOF
  11649. #line $LINENO "configure"
  11650. #include "confdefs.h"
  11651. #if HAVE_DLFCN_H
  11652. #include <dlfcn.h>
  11653. #endif
  11654. #include <stdio.h>
  11655. #ifdef RTLD_GLOBAL
  11656. # define LT_DLGLOBAL RTLD_GLOBAL
  11657. #else
  11658. # ifdef DL_GLOBAL
  11659. # define LT_DLGLOBAL DL_GLOBAL
  11660. # else
  11661. # define LT_DLGLOBAL 0
  11662. # endif
  11663. #endif
  11664. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11665. find out it does not work in some platform. */
  11666. #ifndef LT_DLLAZY_OR_NOW
  11667. # ifdef RTLD_LAZY
  11668. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11669. # else
  11670. # ifdef DL_LAZY
  11671. # define LT_DLLAZY_OR_NOW DL_LAZY
  11672. # else
  11673. # ifdef RTLD_NOW
  11674. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11675. # else
  11676. # ifdef DL_NOW
  11677. # define LT_DLLAZY_OR_NOW DL_NOW
  11678. # else
  11679. # define LT_DLLAZY_OR_NOW 0
  11680. # endif
  11681. # endif
  11682. # endif
  11683. # endif
  11684. #endif
  11685. /* When -fvisibility=hidden is used, assume the code has been annotated
  11686. correspondingly for the symbols needed. */
  11687. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11688. int fnord () __attribute__((visibility("default")));
  11689. #endif
  11690. int fnord () { return 42; }
  11691. int main ()
  11692. {
  11693. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11694. int status = $lt_dlunknown;
  11695. if (self)
  11696. {
  11697. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11698. else
  11699. {
  11700. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11701. else puts (dlerror ());
  11702. }
  11703. /* dlclose (self); */
  11704. }
  11705. else
  11706. puts (dlerror ());
  11707. return status;
  11708. }
  11709. _LT_EOF
  11710. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11711. (eval $ac_link) 2>&5
  11712. ac_status=$?
  11713. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11714. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11715. (./conftest; exit; ) >&5 2>/dev/null
  11716. lt_status=$?
  11717. case x$lt_status in
  11718. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11719. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11720. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11721. esac
  11722. else :
  11723. # compilation failed
  11724. lt_cv_dlopen_self=no
  11725. fi
  11726. fi
  11727. rm -fr conftest*
  11728. fi
  11729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11730. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11731. if test yes = "$lt_cv_dlopen_self"; then
  11732. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11734. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11735. if test ${lt_cv_dlopen_self_static+y}
  11736. then :
  11737. printf %s "(cached) " >&6
  11738. else $as_nop
  11739. if test yes = "$cross_compiling"; then :
  11740. lt_cv_dlopen_self_static=cross
  11741. else
  11742. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11743. lt_status=$lt_dlunknown
  11744. cat > conftest.$ac_ext <<_LT_EOF
  11745. #line $LINENO "configure"
  11746. #include "confdefs.h"
  11747. #if HAVE_DLFCN_H
  11748. #include <dlfcn.h>
  11749. #endif
  11750. #include <stdio.h>
  11751. #ifdef RTLD_GLOBAL
  11752. # define LT_DLGLOBAL RTLD_GLOBAL
  11753. #else
  11754. # ifdef DL_GLOBAL
  11755. # define LT_DLGLOBAL DL_GLOBAL
  11756. # else
  11757. # define LT_DLGLOBAL 0
  11758. # endif
  11759. #endif
  11760. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11761. find out it does not work in some platform. */
  11762. #ifndef LT_DLLAZY_OR_NOW
  11763. # ifdef RTLD_LAZY
  11764. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11765. # else
  11766. # ifdef DL_LAZY
  11767. # define LT_DLLAZY_OR_NOW DL_LAZY
  11768. # else
  11769. # ifdef RTLD_NOW
  11770. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11771. # else
  11772. # ifdef DL_NOW
  11773. # define LT_DLLAZY_OR_NOW DL_NOW
  11774. # else
  11775. # define LT_DLLAZY_OR_NOW 0
  11776. # endif
  11777. # endif
  11778. # endif
  11779. # endif
  11780. #endif
  11781. /* When -fvisibility=hidden is used, assume the code has been annotated
  11782. correspondingly for the symbols needed. */
  11783. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11784. int fnord () __attribute__((visibility("default")));
  11785. #endif
  11786. int fnord () { return 42; }
  11787. int main ()
  11788. {
  11789. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11790. int status = $lt_dlunknown;
  11791. if (self)
  11792. {
  11793. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11794. else
  11795. {
  11796. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11797. else puts (dlerror ());
  11798. }
  11799. /* dlclose (self); */
  11800. }
  11801. else
  11802. puts (dlerror ());
  11803. return status;
  11804. }
  11805. _LT_EOF
  11806. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11807. (eval $ac_link) 2>&5
  11808. ac_status=$?
  11809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11810. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11811. (./conftest; exit; ) >&5 2>/dev/null
  11812. lt_status=$?
  11813. case x$lt_status in
  11814. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11815. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11816. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11817. esac
  11818. else :
  11819. # compilation failed
  11820. lt_cv_dlopen_self_static=no
  11821. fi
  11822. fi
  11823. rm -fr conftest*
  11824. fi
  11825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11826. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11827. fi
  11828. CPPFLAGS=$save_CPPFLAGS
  11829. LDFLAGS=$save_LDFLAGS
  11830. LIBS=$save_LIBS
  11831. ;;
  11832. esac
  11833. case $lt_cv_dlopen_self in
  11834. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11835. *) enable_dlopen_self=unknown ;;
  11836. esac
  11837. case $lt_cv_dlopen_self_static in
  11838. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11839. *) enable_dlopen_self_static=unknown ;;
  11840. esac
  11841. fi
  11842. striplib=
  11843. old_striplib=
  11844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11845. printf %s "checking whether stripping libraries is possible... " >&6; }
  11846. if test -z "$STRIP"; then
  11847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11848. printf "%s\n" "no" >&6; }
  11849. else
  11850. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11851. old_striplib="$STRIP --strip-debug"
  11852. striplib="$STRIP --strip-unneeded"
  11853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11854. printf "%s\n" "yes" >&6; }
  11855. else
  11856. case $host_os in
  11857. darwin*)
  11858. # FIXME - insert some real tests, host_os isn't really good enough
  11859. striplib="$STRIP -x"
  11860. old_striplib="$STRIP -S"
  11861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11862. printf "%s\n" "yes" >&6; }
  11863. ;;
  11864. freebsd*)
  11865. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11866. old_striplib="$STRIP --strip-debug"
  11867. striplib="$STRIP --strip-unneeded"
  11868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11869. printf "%s\n" "yes" >&6; }
  11870. else
  11871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11872. printf "%s\n" "no" >&6; }
  11873. fi
  11874. ;;
  11875. *)
  11876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11877. printf "%s\n" "no" >&6; }
  11878. ;;
  11879. esac
  11880. fi
  11881. fi
  11882. # Report what library types will actually be built
  11883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11884. printf %s "checking if libtool supports shared libraries... " >&6; }
  11885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11886. printf "%s\n" "$can_build_shared" >&6; }
  11887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11888. printf %s "checking whether to build shared libraries... " >&6; }
  11889. test no = "$can_build_shared" && enable_shared=no
  11890. # On AIX, shared libraries and static libraries use the same namespace, and
  11891. # are all built from PIC.
  11892. case $host_os in
  11893. aix3*)
  11894. test yes = "$enable_shared" && enable_static=no
  11895. if test -n "$RANLIB"; then
  11896. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11897. postinstall_cmds='$RANLIB $lib'
  11898. fi
  11899. ;;
  11900. aix[4-9]*)
  11901. if test ia64 != "$host_cpu"; then
  11902. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11903. yes,aix,yes) ;; # shared object as lib.so file only
  11904. yes,svr4,*) ;; # shared object as lib.so archive member only
  11905. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11906. esac
  11907. fi
  11908. ;;
  11909. esac
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11911. printf "%s\n" "$enable_shared" >&6; }
  11912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11913. printf %s "checking whether to build static libraries... " >&6; }
  11914. # Make sure either enable_shared or enable_static is yes.
  11915. test yes = "$enable_shared" || enable_static=yes
  11916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11917. printf "%s\n" "$enable_static" >&6; }
  11918. fi
  11919. ac_ext=c
  11920. ac_cpp='$CPP $CPPFLAGS'
  11921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11924. CC=$lt_save_CC
  11925. if test -n "$CXX" && ( test no != "$CXX" &&
  11926. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11927. (test g++ != "$CXX"))); then
  11928. ac_ext=cpp
  11929. ac_cpp='$CXXCPP $CPPFLAGS'
  11930. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11931. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11932. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11934. printf %s "checking how to run the C++ preprocessor... " >&6; }
  11935. if test -z "$CXXCPP"; then
  11936. if test ${ac_cv_prog_CXXCPP+y}
  11937. then :
  11938. printf %s "(cached) " >&6
  11939. else $as_nop
  11940. # Double quotes because $CXX needs to be expanded
  11941. for CXXCPP in "$CXX -E" cpp /lib/cpp
  11942. do
  11943. ac_preproc_ok=false
  11944. for ac_cxx_preproc_warn_flag in '' yes
  11945. do
  11946. # Use a header file that comes with gcc, so configuring glibc
  11947. # with a fresh cross-compiler works.
  11948. # On the NeXT, cc -E runs the code through the compiler's parser,
  11949. # not just through cpp. "Syntax error" is here to catch this case.
  11950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11951. /* end confdefs.h. */
  11952. #include <limits.h>
  11953. Syntax error
  11954. _ACEOF
  11955. if ac_fn_cxx_try_cpp "$LINENO"
  11956. then :
  11957. else $as_nop
  11958. # Broken: fails on valid input.
  11959. continue
  11960. fi
  11961. rm -f conftest.err conftest.i conftest.$ac_ext
  11962. # OK, works on sane cases. Now check whether nonexistent headers
  11963. # can be detected and how.
  11964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11965. /* end confdefs.h. */
  11966. #include <ac_nonexistent.h>
  11967. _ACEOF
  11968. if ac_fn_cxx_try_cpp "$LINENO"
  11969. then :
  11970. # Broken: success on invalid input.
  11971. continue
  11972. else $as_nop
  11973. # Passes both tests.
  11974. ac_preproc_ok=:
  11975. break
  11976. fi
  11977. rm -f conftest.err conftest.i conftest.$ac_ext
  11978. done
  11979. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11980. rm -f conftest.i conftest.err conftest.$ac_ext
  11981. if $ac_preproc_ok
  11982. then :
  11983. break
  11984. fi
  11985. done
  11986. ac_cv_prog_CXXCPP=$CXXCPP
  11987. fi
  11988. CXXCPP=$ac_cv_prog_CXXCPP
  11989. else
  11990. ac_cv_prog_CXXCPP=$CXXCPP
  11991. fi
  11992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11993. printf "%s\n" "$CXXCPP" >&6; }
  11994. ac_preproc_ok=false
  11995. for ac_cxx_preproc_warn_flag in '' yes
  11996. do
  11997. # Use a header file that comes with gcc, so configuring glibc
  11998. # with a fresh cross-compiler works.
  11999. # On the NeXT, cc -E runs the code through the compiler's parser,
  12000. # not just through cpp. "Syntax error" is here to catch this case.
  12001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12002. /* end confdefs.h. */
  12003. #include <limits.h>
  12004. Syntax error
  12005. _ACEOF
  12006. if ac_fn_cxx_try_cpp "$LINENO"
  12007. then :
  12008. else $as_nop
  12009. # Broken: fails on valid input.
  12010. continue
  12011. fi
  12012. rm -f conftest.err conftest.i conftest.$ac_ext
  12013. # OK, works on sane cases. Now check whether nonexistent headers
  12014. # can be detected and how.
  12015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12016. /* end confdefs.h. */
  12017. #include <ac_nonexistent.h>
  12018. _ACEOF
  12019. if ac_fn_cxx_try_cpp "$LINENO"
  12020. then :
  12021. # Broken: success on invalid input.
  12022. continue
  12023. else $as_nop
  12024. # Passes both tests.
  12025. ac_preproc_ok=:
  12026. break
  12027. fi
  12028. rm -f conftest.err conftest.i conftest.$ac_ext
  12029. done
  12030. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12031. rm -f conftest.i conftest.err conftest.$ac_ext
  12032. if $ac_preproc_ok
  12033. then :
  12034. else $as_nop
  12035. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12036. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12037. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12038. See \`config.log' for more details" "$LINENO" 5; }
  12039. fi
  12040. ac_ext=c
  12041. ac_cpp='$CPP $CPPFLAGS'
  12042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12045. else
  12046. _lt_caught_CXX_error=yes
  12047. fi
  12048. ac_ext=cpp
  12049. ac_cpp='$CXXCPP $CPPFLAGS'
  12050. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12051. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12052. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12053. archive_cmds_need_lc_CXX=no
  12054. allow_undefined_flag_CXX=
  12055. always_export_symbols_CXX=no
  12056. archive_expsym_cmds_CXX=
  12057. compiler_needs_object_CXX=no
  12058. export_dynamic_flag_spec_CXX=
  12059. hardcode_direct_CXX=no
  12060. hardcode_direct_absolute_CXX=no
  12061. hardcode_libdir_flag_spec_CXX=
  12062. hardcode_libdir_separator_CXX=
  12063. hardcode_minus_L_CXX=no
  12064. hardcode_shlibpath_var_CXX=unsupported
  12065. hardcode_automatic_CXX=no
  12066. inherit_rpath_CXX=no
  12067. module_cmds_CXX=
  12068. module_expsym_cmds_CXX=
  12069. link_all_deplibs_CXX=unknown
  12070. old_archive_cmds_CXX=$old_archive_cmds
  12071. reload_flag_CXX=$reload_flag
  12072. reload_cmds_CXX=$reload_cmds
  12073. no_undefined_flag_CXX=
  12074. whole_archive_flag_spec_CXX=
  12075. enable_shared_with_static_runtimes_CXX=no
  12076. # Source file extension for C++ test sources.
  12077. ac_ext=cpp
  12078. # Object file extension for compiled C++ test sources.
  12079. objext=o
  12080. objext_CXX=$objext
  12081. # No sense in running all these tests if we already determined that
  12082. # the CXX compiler isn't working. Some variables (like enable_shared)
  12083. # are currently assumed to apply to all compilers on this platform,
  12084. # and will be corrupted by setting them based on a non-working compiler.
  12085. if test yes != "$_lt_caught_CXX_error"; then
  12086. # Code to be used in simple compile tests
  12087. lt_simple_compile_test_code="int some_variable = 0;"
  12088. # Code to be used in simple link tests
  12089. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12090. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12091. # If no C compiler was specified, use CC.
  12092. LTCC=${LTCC-"$CC"}
  12093. # If no C compiler flags were specified, use CFLAGS.
  12094. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12095. # Allow CC to be a program name with arguments.
  12096. compiler=$CC
  12097. # save warnings/boilerplate of simple test code
  12098. ac_outfile=conftest.$ac_objext
  12099. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12100. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12101. _lt_compiler_boilerplate=`cat conftest.err`
  12102. $RM conftest*
  12103. ac_outfile=conftest.$ac_objext
  12104. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12105. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12106. _lt_linker_boilerplate=`cat conftest.err`
  12107. $RM -r conftest*
  12108. # Allow CC to be a program name with arguments.
  12109. lt_save_CC=$CC
  12110. lt_save_CFLAGS=$CFLAGS
  12111. lt_save_LD=$LD
  12112. lt_save_GCC=$GCC
  12113. GCC=$GXX
  12114. lt_save_with_gnu_ld=$with_gnu_ld
  12115. lt_save_path_LD=$lt_cv_path_LD
  12116. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12117. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12118. else
  12119. $as_unset lt_cv_prog_gnu_ld
  12120. fi
  12121. if test -n "${lt_cv_path_LDCXX+set}"; then
  12122. lt_cv_path_LD=$lt_cv_path_LDCXX
  12123. else
  12124. $as_unset lt_cv_path_LD
  12125. fi
  12126. test -z "${LDCXX+set}" || LD=$LDCXX
  12127. CC=${CXX-"c++"}
  12128. CFLAGS=$CXXFLAGS
  12129. compiler=$CC
  12130. compiler_CXX=$CC
  12131. func_cc_basename $compiler
  12132. cc_basename=$func_cc_basename_result
  12133. if test -n "$compiler"; then
  12134. # We don't want -fno-exception when compiling C++ code, so set the
  12135. # no_builtin_flag separately
  12136. if test yes = "$GXX"; then
  12137. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12138. else
  12139. lt_prog_compiler_no_builtin_flag_CXX=
  12140. fi
  12141. if test yes = "$GXX"; then
  12142. # Set up default GNU C++ configuration
  12143. # Check whether --with-gnu-ld was given.
  12144. if test ${with_gnu_ld+y}
  12145. then :
  12146. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12147. else $as_nop
  12148. with_gnu_ld=no
  12149. fi
  12150. ac_prog=ld
  12151. if test yes = "$GCC"; then
  12152. # Check if gcc -print-prog-name=ld gives a path.
  12153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12154. printf %s "checking for ld used by $CC... " >&6; }
  12155. case $host in
  12156. *-*-mingw*)
  12157. # gcc leaves a trailing carriage return, which upsets mingw
  12158. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12159. *)
  12160. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12161. esac
  12162. case $ac_prog in
  12163. # Accept absolute paths.
  12164. [\\/]* | ?:[\\/]*)
  12165. re_direlt='/[^/][^/]*/\.\./'
  12166. # Canonicalize the pathname of ld
  12167. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12168. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12169. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12170. done
  12171. test -z "$LD" && LD=$ac_prog
  12172. ;;
  12173. "")
  12174. # If it fails, then pretend we aren't using GCC.
  12175. ac_prog=ld
  12176. ;;
  12177. *)
  12178. # If it is relative, then search for the first ld in PATH.
  12179. with_gnu_ld=unknown
  12180. ;;
  12181. esac
  12182. elif test yes = "$with_gnu_ld"; then
  12183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12184. printf %s "checking for GNU ld... " >&6; }
  12185. else
  12186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12187. printf %s "checking for non-GNU ld... " >&6; }
  12188. fi
  12189. if test ${lt_cv_path_LD+y}
  12190. then :
  12191. printf %s "(cached) " >&6
  12192. else $as_nop
  12193. if test -z "$LD"; then
  12194. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12195. for ac_dir in $PATH; do
  12196. IFS=$lt_save_ifs
  12197. test -z "$ac_dir" && ac_dir=.
  12198. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12199. lt_cv_path_LD=$ac_dir/$ac_prog
  12200. # Check to see if the program is GNU ld. I'd rather use --version,
  12201. # but apparently some variants of GNU ld only accept -v.
  12202. # Break only if it was the GNU/non-GNU ld that we prefer.
  12203. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12204. *GNU* | *'with BFD'*)
  12205. test no != "$with_gnu_ld" && break
  12206. ;;
  12207. *)
  12208. test yes != "$with_gnu_ld" && break
  12209. ;;
  12210. esac
  12211. fi
  12212. done
  12213. IFS=$lt_save_ifs
  12214. else
  12215. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12216. fi
  12217. fi
  12218. LD=$lt_cv_path_LD
  12219. if test -n "$LD"; then
  12220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12221. printf "%s\n" "$LD" >&6; }
  12222. else
  12223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12224. printf "%s\n" "no" >&6; }
  12225. fi
  12226. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12228. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12229. if test ${lt_cv_prog_gnu_ld+y}
  12230. then :
  12231. printf %s "(cached) " >&6
  12232. else $as_nop
  12233. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12234. case `$LD -v 2>&1 </dev/null` in
  12235. *GNU* | *'with BFD'*)
  12236. lt_cv_prog_gnu_ld=yes
  12237. ;;
  12238. *)
  12239. lt_cv_prog_gnu_ld=no
  12240. ;;
  12241. esac
  12242. fi
  12243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12244. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12245. with_gnu_ld=$lt_cv_prog_gnu_ld
  12246. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12247. # archiving commands below assume that GNU ld is being used.
  12248. if test yes = "$with_gnu_ld"; then
  12249. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12250. 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'
  12251. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12252. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12253. # If archive_cmds runs LD, not CC, wlarc should be empty
  12254. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12255. # investigate it a little bit more. (MM)
  12256. wlarc='$wl'
  12257. # ancient GNU ld didn't support --whole-archive et. al.
  12258. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12259. $GREP 'no-whole-archive' > /dev/null; then
  12260. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12261. else
  12262. whole_archive_flag_spec_CXX=
  12263. fi
  12264. else
  12265. with_gnu_ld=no
  12266. wlarc=
  12267. # A generic and very simple default shared library creation
  12268. # command for GNU C++ for the case where it uses the native
  12269. # linker, instead of GNU ld. If possible, this setting should
  12270. # overridden to take advantage of the native linker features on
  12271. # the platform it is being used on.
  12272. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12273. fi
  12274. # Commands to make compiler produce verbose output that lists
  12275. # what "hidden" libraries, object files and flags are used when
  12276. # linking a shared library.
  12277. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12278. else
  12279. GXX=no
  12280. with_gnu_ld=no
  12281. wlarc=
  12282. fi
  12283. # PORTME: fill in a description of your system's C++ link characteristics
  12284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12285. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12286. ld_shlibs_CXX=yes
  12287. case $host_os in
  12288. aix3*)
  12289. # FIXME: insert proper C++ library support
  12290. ld_shlibs_CXX=no
  12291. ;;
  12292. aix[4-9]*)
  12293. if test ia64 = "$host_cpu"; then
  12294. # On IA64, the linker does run time linking by default, so we don't
  12295. # have to do anything special.
  12296. aix_use_runtimelinking=no
  12297. exp_sym_flag='-Bexport'
  12298. no_entry_flag=
  12299. else
  12300. aix_use_runtimelinking=no
  12301. # Test if we are trying to use run time linking or normal
  12302. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12303. # have runtime linking enabled, and use it for executables.
  12304. # For shared libraries, we enable/disable runtime linking
  12305. # depending on the kind of the shared library created -
  12306. # when "with_aix_soname,aix_use_runtimelinking" is:
  12307. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12308. # "aix,yes" lib.so shared, rtl:yes, for executables
  12309. # lib.a static archive
  12310. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12311. # lib.a(lib.so.V) shared, rtl:no, for executables
  12312. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12313. # lib.a(lib.so.V) shared, rtl:no
  12314. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12315. # lib.a static archive
  12316. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12317. for ld_flag in $LDFLAGS; do
  12318. case $ld_flag in
  12319. *-brtl*)
  12320. aix_use_runtimelinking=yes
  12321. break
  12322. ;;
  12323. esac
  12324. done
  12325. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12326. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12327. # so we don't have lib.a shared libs to link our executables.
  12328. # We have to force runtime linking in this case.
  12329. aix_use_runtimelinking=yes
  12330. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12331. fi
  12332. ;;
  12333. esac
  12334. exp_sym_flag='-bexport'
  12335. no_entry_flag='-bnoentry'
  12336. fi
  12337. # When large executables or shared objects are built, AIX ld can
  12338. # have problems creating the table of contents. If linking a library
  12339. # or program results in "error TOC overflow" add -mminimal-toc to
  12340. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12341. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12342. archive_cmds_CXX=''
  12343. hardcode_direct_CXX=yes
  12344. hardcode_direct_absolute_CXX=yes
  12345. hardcode_libdir_separator_CXX=':'
  12346. link_all_deplibs_CXX=yes
  12347. file_list_spec_CXX='$wl-f,'
  12348. case $with_aix_soname,$aix_use_runtimelinking in
  12349. aix,*) ;; # no import file
  12350. svr4,* | *,yes) # use import file
  12351. # The Import File defines what to hardcode.
  12352. hardcode_direct_CXX=no
  12353. hardcode_direct_absolute_CXX=no
  12354. ;;
  12355. esac
  12356. if test yes = "$GXX"; then
  12357. case $host_os in aix4.[012]|aix4.[012].*)
  12358. # We only want to do this on AIX 4.2 and lower, the check
  12359. # below for broken collect2 doesn't work under 4.3+
  12360. collect2name=`$CC -print-prog-name=collect2`
  12361. if test -f "$collect2name" &&
  12362. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12363. then
  12364. # We have reworked collect2
  12365. :
  12366. else
  12367. # We have old collect2
  12368. hardcode_direct_CXX=unsupported
  12369. # It fails to find uninstalled libraries when the uninstalled
  12370. # path is not listed in the libpath. Setting hardcode_minus_L
  12371. # to unsupported forces relinking
  12372. hardcode_minus_L_CXX=yes
  12373. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12374. hardcode_libdir_separator_CXX=
  12375. fi
  12376. esac
  12377. shared_flag='-shared'
  12378. if test yes = "$aix_use_runtimelinking"; then
  12379. shared_flag=$shared_flag' $wl-G'
  12380. fi
  12381. # Need to ensure runtime linking is disabled for the traditional
  12382. # shared library, or the linker may eventually find shared libraries
  12383. # /with/ Import File - we do not want to mix them.
  12384. shared_flag_aix='-shared'
  12385. shared_flag_svr4='-shared $wl-G'
  12386. else
  12387. # not using gcc
  12388. if test ia64 = "$host_cpu"; then
  12389. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12390. # chokes on -Wl,-G. The following line is correct:
  12391. shared_flag='-G'
  12392. else
  12393. if test yes = "$aix_use_runtimelinking"; then
  12394. shared_flag='$wl-G'
  12395. else
  12396. shared_flag='$wl-bM:SRE'
  12397. fi
  12398. shared_flag_aix='$wl-bM:SRE'
  12399. shared_flag_svr4='$wl-G'
  12400. fi
  12401. fi
  12402. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12403. # It seems that -bexpall does not export symbols beginning with
  12404. # underscore (_), so it is better to generate a list of symbols to
  12405. # export.
  12406. always_export_symbols_CXX=yes
  12407. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12408. # Warning - without using the other runtime loading flags (-brtl),
  12409. # -berok will link without error, but may produce a broken library.
  12410. # The "-G" linker flag allows undefined symbols.
  12411. no_undefined_flag_CXX='-bernotok'
  12412. # Determine the default libpath from the value encoded in an empty
  12413. # executable.
  12414. if test set = "${lt_cv_aix_libpath+set}"; then
  12415. aix_libpath=$lt_cv_aix_libpath
  12416. else
  12417. if test ${lt_cv_aix_libpath__CXX+y}
  12418. then :
  12419. printf %s "(cached) " >&6
  12420. else $as_nop
  12421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12422. /* end confdefs.h. */
  12423. int
  12424. main (void)
  12425. {
  12426. ;
  12427. return 0;
  12428. }
  12429. _ACEOF
  12430. if ac_fn_cxx_try_link "$LINENO"
  12431. then :
  12432. lt_aix_libpath_sed='
  12433. /Import File Strings/,/^$/ {
  12434. /^0/ {
  12435. s/^0 *\([^ ]*\) *$/\1/
  12436. p
  12437. }
  12438. }'
  12439. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12440. # Check for a 64-bit object if we didn't find anything.
  12441. if test -z "$lt_cv_aix_libpath__CXX"; then
  12442. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12443. fi
  12444. fi
  12445. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12446. conftest$ac_exeext conftest.$ac_ext
  12447. if test -z "$lt_cv_aix_libpath__CXX"; then
  12448. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12449. fi
  12450. fi
  12451. aix_libpath=$lt_cv_aix_libpath__CXX
  12452. fi
  12453. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12454. 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
  12455. else
  12456. if test ia64 = "$host_cpu"; then
  12457. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12458. allow_undefined_flag_CXX="-z nodefs"
  12459. 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"
  12460. else
  12461. # Determine the default libpath from the value encoded in an
  12462. # empty executable.
  12463. if test set = "${lt_cv_aix_libpath+set}"; then
  12464. aix_libpath=$lt_cv_aix_libpath
  12465. else
  12466. if test ${lt_cv_aix_libpath__CXX+y}
  12467. then :
  12468. printf %s "(cached) " >&6
  12469. else $as_nop
  12470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12471. /* end confdefs.h. */
  12472. int
  12473. main (void)
  12474. {
  12475. ;
  12476. return 0;
  12477. }
  12478. _ACEOF
  12479. if ac_fn_cxx_try_link "$LINENO"
  12480. then :
  12481. lt_aix_libpath_sed='
  12482. /Import File Strings/,/^$/ {
  12483. /^0/ {
  12484. s/^0 *\([^ ]*\) *$/\1/
  12485. p
  12486. }
  12487. }'
  12488. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12489. # Check for a 64-bit object if we didn't find anything.
  12490. if test -z "$lt_cv_aix_libpath__CXX"; then
  12491. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12492. fi
  12493. fi
  12494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12495. conftest$ac_exeext conftest.$ac_ext
  12496. if test -z "$lt_cv_aix_libpath__CXX"; then
  12497. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12498. fi
  12499. fi
  12500. aix_libpath=$lt_cv_aix_libpath__CXX
  12501. fi
  12502. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12503. # Warning - without using the other run time loading flags,
  12504. # -berok will link without error, but may produce a broken library.
  12505. no_undefined_flag_CXX=' $wl-bernotok'
  12506. allow_undefined_flag_CXX=' $wl-berok'
  12507. if test yes = "$with_gnu_ld"; then
  12508. # We only use this code for GNU lds that support --whole-archive.
  12509. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12510. else
  12511. # Exported symbols can be pulled into shared objects from archives
  12512. whole_archive_flag_spec_CXX='$convenience'
  12513. fi
  12514. archive_cmds_need_lc_CXX=yes
  12515. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12516. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12517. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12518. if test svr4 != "$with_aix_soname"; then
  12519. # This is similar to how AIX traditionally builds its shared
  12520. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12521. 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'
  12522. fi
  12523. if test aix != "$with_aix_soname"; then
  12524. 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'
  12525. else
  12526. # used by -dlpreopen to get the symbols
  12527. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12528. fi
  12529. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12530. fi
  12531. fi
  12532. ;;
  12533. beos*)
  12534. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12535. allow_undefined_flag_CXX=unsupported
  12536. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12537. # support --undefined. This deserves some investigation. FIXME
  12538. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12539. else
  12540. ld_shlibs_CXX=no
  12541. fi
  12542. ;;
  12543. chorus*)
  12544. case $cc_basename in
  12545. *)
  12546. # FIXME: insert proper C++ library support
  12547. ld_shlibs_CXX=no
  12548. ;;
  12549. esac
  12550. ;;
  12551. cygwin* | mingw* | pw32* | cegcc*)
  12552. case $GXX,$cc_basename in
  12553. ,cl* | no,cl* | ,icl* | no,icl*)
  12554. # Native MSVC or ICC
  12555. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12556. # no search path for DLLs.
  12557. hardcode_libdir_flag_spec_CXX=' '
  12558. allow_undefined_flag_CXX=unsupported
  12559. always_export_symbols_CXX=yes
  12560. file_list_spec_CXX='@'
  12561. # Tell ltmain to make .lib files, not .a files.
  12562. libext=lib
  12563. # Tell ltmain to make .dll files, not .so files.
  12564. shrext_cmds=.dll
  12565. # FIXME: Setting linknames here is a bad hack.
  12566. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12567. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12568. cp "$export_symbols" "$output_objdir/$soname.def";
  12569. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12570. else
  12571. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12572. fi~
  12573. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12574. linknames='
  12575. # The linker will not automatically build a static lib if we build a DLL.
  12576. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12577. enable_shared_with_static_runtimes_CXX=yes
  12578. # Don't use ranlib
  12579. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12580. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12581. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12582. case $lt_outputfile in
  12583. *.exe|*.EXE) ;;
  12584. *)
  12585. lt_outputfile=$lt_outputfile.exe
  12586. lt_tool_outputfile=$lt_tool_outputfile.exe
  12587. ;;
  12588. esac~
  12589. func_to_tool_file "$lt_outputfile"~
  12590. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12591. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12592. $RM "$lt_outputfile.manifest";
  12593. fi'
  12594. ;;
  12595. *)
  12596. # g++
  12597. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12598. # as there is no search path for DLLs.
  12599. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12600. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12601. allow_undefined_flag_CXX=unsupported
  12602. always_export_symbols_CXX=no
  12603. enable_shared_with_static_runtimes_CXX=yes
  12604. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12605. 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'
  12606. # If the export-symbols file already is a .def file, use it as
  12607. # is; otherwise, prepend EXPORTS...
  12608. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12609. cp $export_symbols $output_objdir/$soname.def;
  12610. else
  12611. echo EXPORTS > $output_objdir/$soname.def;
  12612. cat $export_symbols >> $output_objdir/$soname.def;
  12613. fi~
  12614. $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'
  12615. else
  12616. ld_shlibs_CXX=no
  12617. fi
  12618. ;;
  12619. esac
  12620. ;;
  12621. darwin* | rhapsody*)
  12622. archive_cmds_need_lc_CXX=no
  12623. hardcode_direct_CXX=no
  12624. hardcode_automatic_CXX=yes
  12625. hardcode_shlibpath_var_CXX=unsupported
  12626. if test yes = "$lt_cv_ld_force_load"; then
  12627. 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\"`'
  12628. else
  12629. whole_archive_flag_spec_CXX=''
  12630. fi
  12631. link_all_deplibs_CXX=yes
  12632. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12633. case $cc_basename in
  12634. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12635. *) _lt_dar_can_shared=$GCC ;;
  12636. esac
  12637. if test yes = "$_lt_dar_can_shared"; then
  12638. output_verbose_link_cmd=func_echo_all
  12639. 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"
  12640. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12641. 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"
  12642. 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"
  12643. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12644. 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"
  12645. 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"
  12646. fi
  12647. else
  12648. ld_shlibs_CXX=no
  12649. fi
  12650. ;;
  12651. os2*)
  12652. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12653. hardcode_minus_L_CXX=yes
  12654. allow_undefined_flag_CXX=unsupported
  12655. shrext_cmds=.dll
  12656. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12657. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12658. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12659. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12660. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12661. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12662. emximp -o $lib $output_objdir/$libname.def'
  12663. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12664. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12665. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12666. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12667. prefix_cmds="$SED"~
  12668. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12669. prefix_cmds="$prefix_cmds -e 1d";
  12670. fi~
  12671. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12672. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12673. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12674. emximp -o $lib $output_objdir/$libname.def'
  12675. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12676. enable_shared_with_static_runtimes_CXX=yes
  12677. file_list_spec_CXX='@'
  12678. ;;
  12679. dgux*)
  12680. case $cc_basename in
  12681. ec++*)
  12682. # FIXME: insert proper C++ library support
  12683. ld_shlibs_CXX=no
  12684. ;;
  12685. ghcx*)
  12686. # Green Hills C++ Compiler
  12687. # FIXME: insert proper C++ library support
  12688. ld_shlibs_CXX=no
  12689. ;;
  12690. *)
  12691. # FIXME: insert proper C++ library support
  12692. ld_shlibs_CXX=no
  12693. ;;
  12694. esac
  12695. ;;
  12696. freebsd2.*)
  12697. # C++ shared libraries reported to be fairly broken before
  12698. # switch to ELF
  12699. ld_shlibs_CXX=no
  12700. ;;
  12701. freebsd-elf*)
  12702. archive_cmds_need_lc_CXX=no
  12703. ;;
  12704. freebsd* | dragonfly* | midnightbsd*)
  12705. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12706. # conventions
  12707. ld_shlibs_CXX=yes
  12708. ;;
  12709. haiku*)
  12710. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12711. link_all_deplibs_CXX=yes
  12712. ;;
  12713. hpux9*)
  12714. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12715. hardcode_libdir_separator_CXX=:
  12716. export_dynamic_flag_spec_CXX='$wl-E'
  12717. hardcode_direct_CXX=yes
  12718. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12719. # but as the default
  12720. # location of the library.
  12721. case $cc_basename in
  12722. CC*)
  12723. # FIXME: insert proper C++ library support
  12724. ld_shlibs_CXX=no
  12725. ;;
  12726. aCC*)
  12727. 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'
  12728. # Commands to make compiler produce verbose output that lists
  12729. # what "hidden" libraries, object files and flags are used when
  12730. # linking a shared library.
  12731. #
  12732. # There doesn't appear to be a way to prevent this compiler from
  12733. # explicitly linking system object files so we need to strip them
  12734. # from the output so that they don't get included in the library
  12735. # dependencies.
  12736. 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"'
  12737. ;;
  12738. *)
  12739. if test yes = "$GXX"; then
  12740. 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'
  12741. else
  12742. # FIXME: insert proper C++ library support
  12743. ld_shlibs_CXX=no
  12744. fi
  12745. ;;
  12746. esac
  12747. ;;
  12748. hpux10*|hpux11*)
  12749. if test no = "$with_gnu_ld"; then
  12750. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12751. hardcode_libdir_separator_CXX=:
  12752. case $host_cpu in
  12753. hppa*64*|ia64*)
  12754. ;;
  12755. *)
  12756. export_dynamic_flag_spec_CXX='$wl-E'
  12757. ;;
  12758. esac
  12759. fi
  12760. case $host_cpu in
  12761. hppa*64*|ia64*)
  12762. hardcode_direct_CXX=no
  12763. hardcode_shlibpath_var_CXX=no
  12764. ;;
  12765. *)
  12766. hardcode_direct_CXX=yes
  12767. hardcode_direct_absolute_CXX=yes
  12768. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12769. # but as the default
  12770. # location of the library.
  12771. ;;
  12772. esac
  12773. case $cc_basename in
  12774. CC*)
  12775. # FIXME: insert proper C++ library support
  12776. ld_shlibs_CXX=no
  12777. ;;
  12778. aCC*)
  12779. case $host_cpu in
  12780. hppa*64*)
  12781. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12782. ;;
  12783. ia64*)
  12784. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12785. ;;
  12786. *)
  12787. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12788. ;;
  12789. esac
  12790. # Commands to make compiler produce verbose output that lists
  12791. # what "hidden" libraries, object files and flags are used when
  12792. # linking a shared library.
  12793. #
  12794. # There doesn't appear to be a way to prevent this compiler from
  12795. # explicitly linking system object files so we need to strip them
  12796. # from the output so that they don't get included in the library
  12797. # dependencies.
  12798. 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"'
  12799. ;;
  12800. *)
  12801. if test yes = "$GXX"; then
  12802. if test no = "$with_gnu_ld"; then
  12803. case $host_cpu in
  12804. hppa*64*)
  12805. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12806. ;;
  12807. ia64*)
  12808. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12809. ;;
  12810. *)
  12811. 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'
  12812. ;;
  12813. esac
  12814. fi
  12815. else
  12816. # FIXME: insert proper C++ library support
  12817. ld_shlibs_CXX=no
  12818. fi
  12819. ;;
  12820. esac
  12821. ;;
  12822. interix[3-9]*)
  12823. hardcode_direct_CXX=no
  12824. hardcode_shlibpath_var_CXX=no
  12825. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12826. export_dynamic_flag_spec_CXX='$wl-E'
  12827. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12828. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12829. # default) and relocated if they conflict, which is a slow very memory
  12830. # consuming and fragmenting process. To avoid this, we pick a random,
  12831. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12832. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12833. 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'
  12834. 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'
  12835. ;;
  12836. irix5* | irix6*)
  12837. case $cc_basename in
  12838. CC*)
  12839. # SGI C++
  12840. 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'
  12841. # Archives containing C++ object files must be created using
  12842. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12843. # necessary to make sure instantiated templates are included
  12844. # in the archive.
  12845. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12846. ;;
  12847. *)
  12848. if test yes = "$GXX"; then
  12849. if test no = "$with_gnu_ld"; then
  12850. 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'
  12851. else
  12852. 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'
  12853. fi
  12854. fi
  12855. link_all_deplibs_CXX=yes
  12856. ;;
  12857. esac
  12858. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12859. hardcode_libdir_separator_CXX=:
  12860. inherit_rpath_CXX=yes
  12861. ;;
  12862. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12863. case $cc_basename in
  12864. KCC*)
  12865. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12866. # KCC will only create a shared library if the output file
  12867. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12868. # to its proper name (with version) after linking.
  12869. 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'
  12870. 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'
  12871. # Commands to make compiler produce verbose output that lists
  12872. # what "hidden" libraries, object files and flags are used when
  12873. # linking a shared library.
  12874. #
  12875. # There doesn't appear to be a way to prevent this compiler from
  12876. # explicitly linking system object files so we need to strip them
  12877. # from the output so that they don't get included in the library
  12878. # dependencies.
  12879. 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"'
  12880. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12881. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12882. # Archives containing C++ object files must be created using
  12883. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12884. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12885. ;;
  12886. icpc* | ecpc* )
  12887. # Intel C++
  12888. with_gnu_ld=yes
  12889. # version 8.0 and above of icpc choke on multiply defined symbols
  12890. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12891. # earlier do not add the objects themselves.
  12892. case `$CC -V 2>&1` in
  12893. *"Version 7."*)
  12894. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12895. 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'
  12896. ;;
  12897. *) # Version 8.0 or newer
  12898. tmp_idyn=
  12899. case $host_cpu in
  12900. ia64*) tmp_idyn=' -i_dynamic';;
  12901. esac
  12902. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12903. 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'
  12904. ;;
  12905. esac
  12906. archive_cmds_need_lc_CXX=no
  12907. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12908. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12909. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12910. ;;
  12911. pgCC* | pgcpp*)
  12912. # Portland Group C++ compiler
  12913. case `$CC -V` in
  12914. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12915. prelink_cmds_CXX='tpldir=Template.dir~
  12916. rm -rf $tpldir~
  12917. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12918. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12919. old_archive_cmds_CXX='tpldir=Template.dir~
  12920. rm -rf $tpldir~
  12921. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12922. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12923. $RANLIB $oldlib'
  12924. archive_cmds_CXX='tpldir=Template.dir~
  12925. rm -rf $tpldir~
  12926. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12927. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12928. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12929. rm -rf $tpldir~
  12930. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12931. $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'
  12932. ;;
  12933. *) # Version 6 and above use weak symbols
  12934. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12935. 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'
  12936. ;;
  12937. esac
  12938. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12939. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12940. 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'
  12941. ;;
  12942. cxx*)
  12943. # Compaq C++
  12944. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12945. 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'
  12946. runpath_var=LD_RUN_PATH
  12947. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12948. hardcode_libdir_separator_CXX=:
  12949. # Commands to make compiler produce verbose output that lists
  12950. # what "hidden" libraries, object files and flags are used when
  12951. # linking a shared library.
  12952. #
  12953. # There doesn't appear to be a way to prevent this compiler from
  12954. # explicitly linking system object files so we need to strip them
  12955. # from the output so that they don't get included in the library
  12956. # dependencies.
  12957. 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'
  12958. ;;
  12959. xl* | mpixl* | bgxl*)
  12960. # IBM XL 8.0 on PPC, with GNU ld
  12961. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12962. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12963. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12964. if test yes = "$supports_anon_versioning"; then
  12965. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12966. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12967. echo "local: *; };" >> $output_objdir/$libname.ver~
  12968. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12969. fi
  12970. ;;
  12971. *)
  12972. case `$CC -V 2>&1 | $SED 5q` in
  12973. *Sun\ C*)
  12974. # Sun C++ 5.9
  12975. no_undefined_flag_CXX=' -zdefs'
  12976. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12977. 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'
  12978. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12979. 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'
  12980. compiler_needs_object_CXX=yes
  12981. # Not sure whether something based on
  12982. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12983. # would be better.
  12984. output_verbose_link_cmd='func_echo_all'
  12985. # Archives containing C++ object files must be created using
  12986. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12987. # necessary to make sure instantiated templates are included
  12988. # in the archive.
  12989. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12990. ;;
  12991. esac
  12992. ;;
  12993. esac
  12994. ;;
  12995. lynxos*)
  12996. # FIXME: insert proper C++ library support
  12997. ld_shlibs_CXX=no
  12998. ;;
  12999. m88k*)
  13000. # FIXME: insert proper C++ library support
  13001. ld_shlibs_CXX=no
  13002. ;;
  13003. mvs*)
  13004. case $cc_basename in
  13005. cxx*)
  13006. # FIXME: insert proper C++ library support
  13007. ld_shlibs_CXX=no
  13008. ;;
  13009. *)
  13010. # FIXME: insert proper C++ library support
  13011. ld_shlibs_CXX=no
  13012. ;;
  13013. esac
  13014. ;;
  13015. netbsd*)
  13016. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13017. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13018. wlarc=
  13019. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13020. hardcode_direct_CXX=yes
  13021. hardcode_shlibpath_var_CXX=no
  13022. fi
  13023. # Workaround some broken pre-1.5 toolchains
  13024. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13025. ;;
  13026. *nto* | *qnx*)
  13027. ld_shlibs_CXX=yes
  13028. ;;
  13029. openbsd* | bitrig*)
  13030. if test -f /usr/libexec/ld.so; then
  13031. hardcode_direct_CXX=yes
  13032. hardcode_shlibpath_var_CXX=no
  13033. hardcode_direct_absolute_CXX=yes
  13034. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13035. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13036. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13037. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13038. export_dynamic_flag_spec_CXX='$wl-E'
  13039. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13040. fi
  13041. output_verbose_link_cmd=func_echo_all
  13042. else
  13043. ld_shlibs_CXX=no
  13044. fi
  13045. ;;
  13046. osf3* | osf4* | osf5*)
  13047. case $cc_basename in
  13048. KCC*)
  13049. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13050. # KCC will only create a shared library if the output file
  13051. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13052. # to its proper name (with version) after linking.
  13053. 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'
  13054. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13055. hardcode_libdir_separator_CXX=:
  13056. # Archives containing C++ object files must be created using
  13057. # the KAI C++ compiler.
  13058. case $host in
  13059. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13060. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13061. esac
  13062. ;;
  13063. RCC*)
  13064. # Rational C++ 2.4.1
  13065. # FIXME: insert proper C++ library support
  13066. ld_shlibs_CXX=no
  13067. ;;
  13068. cxx*)
  13069. case $host in
  13070. osf3*)
  13071. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13072. 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'
  13073. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13074. ;;
  13075. *)
  13076. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13077. 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'
  13078. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13079. echo "-hidden">> $lib.exp~
  13080. $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~
  13081. $RM $lib.exp'
  13082. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13083. ;;
  13084. esac
  13085. hardcode_libdir_separator_CXX=:
  13086. # Commands to make compiler produce verbose output that lists
  13087. # what "hidden" libraries, object files and flags are used when
  13088. # linking a shared library.
  13089. #
  13090. # There doesn't appear to be a way to prevent this compiler from
  13091. # explicitly linking system object files so we need to strip them
  13092. # from the output so that they don't get included in the library
  13093. # dependencies.
  13094. 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"'
  13095. ;;
  13096. *)
  13097. if test yes,no = "$GXX,$with_gnu_ld"; then
  13098. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13099. case $host in
  13100. osf3*)
  13101. 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'
  13102. ;;
  13103. *)
  13104. 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'
  13105. ;;
  13106. esac
  13107. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13108. hardcode_libdir_separator_CXX=:
  13109. # Commands to make compiler produce verbose output that lists
  13110. # what "hidden" libraries, object files and flags are used when
  13111. # linking a shared library.
  13112. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13113. else
  13114. # FIXME: insert proper C++ library support
  13115. ld_shlibs_CXX=no
  13116. fi
  13117. ;;
  13118. esac
  13119. ;;
  13120. psos*)
  13121. # FIXME: insert proper C++ library support
  13122. ld_shlibs_CXX=no
  13123. ;;
  13124. sunos4*)
  13125. case $cc_basename in
  13126. CC*)
  13127. # Sun C++ 4.x
  13128. # FIXME: insert proper C++ library support
  13129. ld_shlibs_CXX=no
  13130. ;;
  13131. lcc*)
  13132. # Lucid
  13133. # FIXME: insert proper C++ library support
  13134. ld_shlibs_CXX=no
  13135. ;;
  13136. *)
  13137. # FIXME: insert proper C++ library support
  13138. ld_shlibs_CXX=no
  13139. ;;
  13140. esac
  13141. ;;
  13142. solaris*)
  13143. case $cc_basename in
  13144. CC* | sunCC*)
  13145. # Sun C++ 4.2, 5.x and Centerline C++
  13146. archive_cmds_need_lc_CXX=yes
  13147. no_undefined_flag_CXX=' -zdefs'
  13148. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13149. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13150. $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'
  13151. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13152. hardcode_shlibpath_var_CXX=no
  13153. case $host_os in
  13154. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13155. *)
  13156. # The compiler driver will combine and reorder linker options,
  13157. # but understands '-z linker_flag'.
  13158. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13159. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13160. ;;
  13161. esac
  13162. link_all_deplibs_CXX=yes
  13163. output_verbose_link_cmd='func_echo_all'
  13164. # Archives containing C++ object files must be created using
  13165. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13166. # necessary to make sure instantiated templates are included
  13167. # in the archive.
  13168. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13169. ;;
  13170. gcx*)
  13171. # Green Hills C++ Compiler
  13172. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13173. # The C++ compiler must be used to create the archive.
  13174. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13175. ;;
  13176. *)
  13177. # GNU C++ compiler with Solaris linker
  13178. if test yes,no = "$GXX,$with_gnu_ld"; then
  13179. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13180. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13181. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13182. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13183. $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'
  13184. # Commands to make compiler produce verbose output that lists
  13185. # what "hidden" libraries, object files and flags are used when
  13186. # linking a shared library.
  13187. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13188. else
  13189. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13190. # platform.
  13191. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13192. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13193. $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'
  13194. # Commands to make compiler produce verbose output that lists
  13195. # what "hidden" libraries, object files and flags are used when
  13196. # linking a shared library.
  13197. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13198. fi
  13199. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13200. case $host_os in
  13201. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13202. *)
  13203. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13204. ;;
  13205. esac
  13206. fi
  13207. ;;
  13208. esac
  13209. ;;
  13210. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13211. no_undefined_flag_CXX='$wl-z,text'
  13212. archive_cmds_need_lc_CXX=no
  13213. hardcode_shlibpath_var_CXX=no
  13214. runpath_var='LD_RUN_PATH'
  13215. case $cc_basename in
  13216. CC*)
  13217. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13218. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13219. ;;
  13220. *)
  13221. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13222. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13223. ;;
  13224. esac
  13225. ;;
  13226. sysv5* | sco3.2v5* | sco5v6*)
  13227. # Note: We CANNOT use -z defs as we might desire, because we do not
  13228. # link with -lc, and that would cause any symbols used from libc to
  13229. # always be unresolved, which means just about no library would
  13230. # ever link correctly. If we're not using GNU ld we use -z text
  13231. # though, which does catch some bad symbols but isn't as heavy-handed
  13232. # as -z defs.
  13233. no_undefined_flag_CXX='$wl-z,text'
  13234. allow_undefined_flag_CXX='$wl-z,nodefs'
  13235. archive_cmds_need_lc_CXX=no
  13236. hardcode_shlibpath_var_CXX=no
  13237. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13238. hardcode_libdir_separator_CXX=':'
  13239. link_all_deplibs_CXX=yes
  13240. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13241. runpath_var='LD_RUN_PATH'
  13242. case $cc_basename in
  13243. CC*)
  13244. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13245. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13246. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13247. '"$old_archive_cmds_CXX"
  13248. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13249. '"$reload_cmds_CXX"
  13250. ;;
  13251. *)
  13252. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13253. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13254. ;;
  13255. esac
  13256. ;;
  13257. tandem*)
  13258. case $cc_basename in
  13259. NCC*)
  13260. # NonStop-UX NCC 3.20
  13261. # FIXME: insert proper C++ library support
  13262. ld_shlibs_CXX=no
  13263. ;;
  13264. *)
  13265. # FIXME: insert proper C++ library support
  13266. ld_shlibs_CXX=no
  13267. ;;
  13268. esac
  13269. ;;
  13270. vxworks*)
  13271. # FIXME: insert proper C++ library support
  13272. ld_shlibs_CXX=no
  13273. ;;
  13274. *)
  13275. # FIXME: insert proper C++ library support
  13276. ld_shlibs_CXX=no
  13277. ;;
  13278. esac
  13279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13280. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13281. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13282. GCC_CXX=$GXX
  13283. LD_CXX=$LD
  13284. ## CAVEAT EMPTOR:
  13285. ## There is no encapsulation within the following macros, do not change
  13286. ## the running order or otherwise move them around unless you know exactly
  13287. ## what you are doing...
  13288. # Dependencies to place before and after the object being linked:
  13289. predep_objects_CXX=
  13290. postdep_objects_CXX=
  13291. predeps_CXX=
  13292. postdeps_CXX=
  13293. compiler_lib_search_path_CXX=
  13294. cat > conftest.$ac_ext <<_LT_EOF
  13295. class Foo
  13296. {
  13297. public:
  13298. Foo (void) { a = 0; }
  13299. private:
  13300. int a;
  13301. };
  13302. _LT_EOF
  13303. _lt_libdeps_save_CFLAGS=$CFLAGS
  13304. case "$CC $CFLAGS " in #(
  13305. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13306. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13307. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13308. esac
  13309. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13310. (eval $ac_compile) 2>&5
  13311. ac_status=$?
  13312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13313. test $ac_status = 0; }; then
  13314. # Parse the compiler output and extract the necessary
  13315. # objects, libraries and library flags.
  13316. # Sentinel used to keep track of whether or not we are before
  13317. # the conftest object file.
  13318. pre_test_object_deps_done=no
  13319. for p in `eval "$output_verbose_link_cmd"`; do
  13320. case $prev$p in
  13321. -L* | -R* | -l*)
  13322. # Some compilers place space between "-{L,R}" and the path.
  13323. # Remove the space.
  13324. if test x-L = "$p" ||
  13325. test x-R = "$p"; then
  13326. prev=$p
  13327. continue
  13328. fi
  13329. # Expand the sysroot to ease extracting the directories later.
  13330. if test -z "$prev"; then
  13331. case $p in
  13332. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13333. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13334. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13335. esac
  13336. fi
  13337. case $p in
  13338. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13339. esac
  13340. if test no = "$pre_test_object_deps_done"; then
  13341. case $prev in
  13342. -L | -R)
  13343. # Internal compiler library paths should come after those
  13344. # provided the user. The postdeps already come after the
  13345. # user supplied libs so there is no need to process them.
  13346. if test -z "$compiler_lib_search_path_CXX"; then
  13347. compiler_lib_search_path_CXX=$prev$p
  13348. else
  13349. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13350. fi
  13351. ;;
  13352. # The "-l" case would never come before the object being
  13353. # linked, so don't bother handling this case.
  13354. esac
  13355. else
  13356. if test -z "$postdeps_CXX"; then
  13357. postdeps_CXX=$prev$p
  13358. else
  13359. postdeps_CXX="${postdeps_CXX} $prev$p"
  13360. fi
  13361. fi
  13362. prev=
  13363. ;;
  13364. *.lto.$objext) ;; # Ignore GCC LTO objects
  13365. *.$objext)
  13366. # This assumes that the test object file only shows up
  13367. # once in the compiler output.
  13368. if test "$p" = "conftest.$objext"; then
  13369. pre_test_object_deps_done=yes
  13370. continue
  13371. fi
  13372. if test no = "$pre_test_object_deps_done"; then
  13373. if test -z "$predep_objects_CXX"; then
  13374. predep_objects_CXX=$p
  13375. else
  13376. predep_objects_CXX="$predep_objects_CXX $p"
  13377. fi
  13378. else
  13379. if test -z "$postdep_objects_CXX"; then
  13380. postdep_objects_CXX=$p
  13381. else
  13382. postdep_objects_CXX="$postdep_objects_CXX $p"
  13383. fi
  13384. fi
  13385. ;;
  13386. *) ;; # Ignore the rest.
  13387. esac
  13388. done
  13389. # Clean up.
  13390. rm -f a.out a.exe
  13391. else
  13392. echo "libtool.m4: error: problem compiling CXX test program"
  13393. fi
  13394. $RM -f confest.$objext
  13395. CFLAGS=$_lt_libdeps_save_CFLAGS
  13396. # PORTME: override above test on systems where it is broken
  13397. case $host_os in
  13398. interix[3-9]*)
  13399. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13400. # hack all around it, let's just trust "g++" to DTRT.
  13401. predep_objects_CXX=
  13402. postdep_objects_CXX=
  13403. postdeps_CXX=
  13404. ;;
  13405. esac
  13406. case " $postdeps_CXX " in
  13407. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13408. esac
  13409. compiler_lib_search_dirs_CXX=
  13410. if test -n "${compiler_lib_search_path_CXX}"; then
  13411. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13412. fi
  13413. lt_prog_compiler_wl_CXX=
  13414. lt_prog_compiler_pic_CXX=
  13415. lt_prog_compiler_static_CXX=
  13416. # C++ specific cases for pic, static, wl, etc.
  13417. if test yes = "$GXX"; then
  13418. lt_prog_compiler_wl_CXX='-Wl,'
  13419. lt_prog_compiler_static_CXX='-static'
  13420. case $host_os in
  13421. aix*)
  13422. # All AIX code is PIC.
  13423. if test ia64 = "$host_cpu"; then
  13424. # AIX 5 now supports IA64 processor
  13425. lt_prog_compiler_static_CXX='-Bstatic'
  13426. fi
  13427. lt_prog_compiler_pic_CXX='-fPIC'
  13428. ;;
  13429. amigaos*)
  13430. case $host_cpu in
  13431. powerpc)
  13432. # see comment about AmigaOS4 .so support
  13433. lt_prog_compiler_pic_CXX='-fPIC'
  13434. ;;
  13435. m68k)
  13436. # FIXME: we need at least 68020 code to build shared libraries, but
  13437. # adding the '-m68020' flag to GCC prevents building anything better,
  13438. # like '-m68040'.
  13439. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13440. ;;
  13441. esac
  13442. ;;
  13443. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13444. # PIC is the default for these OSes.
  13445. ;;
  13446. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13447. # This hack is so that the source file can tell whether it is being
  13448. # built for inclusion in a dll (and should export symbols for example).
  13449. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13450. # (--disable-auto-import) libraries
  13451. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13452. case $host_os in
  13453. os2*)
  13454. lt_prog_compiler_static_CXX='$wl-static'
  13455. ;;
  13456. esac
  13457. ;;
  13458. darwin* | rhapsody*)
  13459. # PIC is the default on this platform
  13460. # Common symbols not allowed in MH_DYLIB files
  13461. lt_prog_compiler_pic_CXX='-fno-common'
  13462. ;;
  13463. *djgpp*)
  13464. # DJGPP does not support shared libraries at all
  13465. lt_prog_compiler_pic_CXX=
  13466. ;;
  13467. haiku*)
  13468. # PIC is the default for Haiku.
  13469. # The "-static" flag exists, but is broken.
  13470. lt_prog_compiler_static_CXX=
  13471. ;;
  13472. interix[3-9]*)
  13473. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13474. # Instead, we relocate shared libraries at runtime.
  13475. ;;
  13476. sysv4*MP*)
  13477. if test -d /usr/nec; then
  13478. lt_prog_compiler_pic_CXX=-Kconform_pic
  13479. fi
  13480. ;;
  13481. hpux*)
  13482. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13483. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13484. # sets the default TLS model and affects inlining.
  13485. case $host_cpu in
  13486. hppa*64*)
  13487. ;;
  13488. *)
  13489. lt_prog_compiler_pic_CXX='-fPIC'
  13490. ;;
  13491. esac
  13492. ;;
  13493. *qnx* | *nto*)
  13494. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13495. # it will coredump.
  13496. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13497. ;;
  13498. *)
  13499. lt_prog_compiler_pic_CXX='-fPIC'
  13500. ;;
  13501. esac
  13502. else
  13503. case $host_os in
  13504. aix[4-9]*)
  13505. # All AIX code is PIC.
  13506. if test ia64 = "$host_cpu"; then
  13507. # AIX 5 now supports IA64 processor
  13508. lt_prog_compiler_static_CXX='-Bstatic'
  13509. else
  13510. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13511. fi
  13512. ;;
  13513. chorus*)
  13514. case $cc_basename in
  13515. cxch68*)
  13516. # Green Hills C++ Compiler
  13517. # _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"
  13518. ;;
  13519. esac
  13520. ;;
  13521. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13522. # This hack is so that the source file can tell whether it is being
  13523. # built for inclusion in a dll (and should export symbols for example).
  13524. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13525. ;;
  13526. dgux*)
  13527. case $cc_basename in
  13528. ec++*)
  13529. lt_prog_compiler_pic_CXX='-KPIC'
  13530. ;;
  13531. ghcx*)
  13532. # Green Hills C++ Compiler
  13533. lt_prog_compiler_pic_CXX='-pic'
  13534. ;;
  13535. *)
  13536. ;;
  13537. esac
  13538. ;;
  13539. freebsd* | dragonfly* | midnightbsd*)
  13540. # FreeBSD uses GNU C++
  13541. ;;
  13542. hpux9* | hpux10* | hpux11*)
  13543. case $cc_basename in
  13544. CC*)
  13545. lt_prog_compiler_wl_CXX='-Wl,'
  13546. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13547. if test ia64 != "$host_cpu"; then
  13548. lt_prog_compiler_pic_CXX='+Z'
  13549. fi
  13550. ;;
  13551. aCC*)
  13552. lt_prog_compiler_wl_CXX='-Wl,'
  13553. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13554. case $host_cpu in
  13555. hppa*64*|ia64*)
  13556. # +Z the default
  13557. ;;
  13558. *)
  13559. lt_prog_compiler_pic_CXX='+Z'
  13560. ;;
  13561. esac
  13562. ;;
  13563. *)
  13564. ;;
  13565. esac
  13566. ;;
  13567. interix*)
  13568. # This is c89, which is MS Visual C++ (no shared libs)
  13569. # Anyone wants to do a port?
  13570. ;;
  13571. irix5* | irix6* | nonstopux*)
  13572. case $cc_basename in
  13573. CC*)
  13574. lt_prog_compiler_wl_CXX='-Wl,'
  13575. lt_prog_compiler_static_CXX='-non_shared'
  13576. # CC pic flag -KPIC is the default.
  13577. ;;
  13578. *)
  13579. ;;
  13580. esac
  13581. ;;
  13582. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13583. case $cc_basename in
  13584. KCC*)
  13585. # KAI C++ Compiler
  13586. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13587. lt_prog_compiler_pic_CXX='-fPIC'
  13588. ;;
  13589. ecpc* )
  13590. # old Intel C++ for x86_64, which still supported -KPIC.
  13591. lt_prog_compiler_wl_CXX='-Wl,'
  13592. lt_prog_compiler_pic_CXX='-KPIC'
  13593. lt_prog_compiler_static_CXX='-static'
  13594. ;;
  13595. icpc* )
  13596. # Intel C++, used to be incompatible with GCC.
  13597. # ICC 10 doesn't accept -KPIC any more.
  13598. lt_prog_compiler_wl_CXX='-Wl,'
  13599. lt_prog_compiler_pic_CXX='-fPIC'
  13600. lt_prog_compiler_static_CXX='-static'
  13601. ;;
  13602. pgCC* | pgcpp*)
  13603. # Portland Group C++ compiler
  13604. lt_prog_compiler_wl_CXX='-Wl,'
  13605. lt_prog_compiler_pic_CXX='-fpic'
  13606. lt_prog_compiler_static_CXX='-Bstatic'
  13607. ;;
  13608. cxx*)
  13609. # Compaq C++
  13610. # Make sure the PIC flag is empty. It appears that all Alpha
  13611. # Linux and Compaq Tru64 Unix objects are PIC.
  13612. lt_prog_compiler_pic_CXX=
  13613. lt_prog_compiler_static_CXX='-non_shared'
  13614. ;;
  13615. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13616. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13617. lt_prog_compiler_wl_CXX='-Wl,'
  13618. lt_prog_compiler_pic_CXX='-qpic'
  13619. lt_prog_compiler_static_CXX='-qstaticlink'
  13620. ;;
  13621. *)
  13622. case `$CC -V 2>&1 | $SED 5q` in
  13623. *Sun\ C*)
  13624. # Sun C++ 5.9
  13625. lt_prog_compiler_pic_CXX='-KPIC'
  13626. lt_prog_compiler_static_CXX='-Bstatic'
  13627. lt_prog_compiler_wl_CXX='-Qoption ld '
  13628. ;;
  13629. esac
  13630. ;;
  13631. esac
  13632. ;;
  13633. lynxos*)
  13634. ;;
  13635. m88k*)
  13636. ;;
  13637. mvs*)
  13638. case $cc_basename in
  13639. cxx*)
  13640. lt_prog_compiler_pic_CXX='-W c,exportall'
  13641. ;;
  13642. *)
  13643. ;;
  13644. esac
  13645. ;;
  13646. netbsd* | netbsdelf*-gnu)
  13647. ;;
  13648. *qnx* | *nto*)
  13649. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13650. # it will coredump.
  13651. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13652. ;;
  13653. osf3* | osf4* | osf5*)
  13654. case $cc_basename in
  13655. KCC*)
  13656. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13657. ;;
  13658. RCC*)
  13659. # Rational C++ 2.4.1
  13660. lt_prog_compiler_pic_CXX='-pic'
  13661. ;;
  13662. cxx*)
  13663. # Digital/Compaq C++
  13664. lt_prog_compiler_wl_CXX='-Wl,'
  13665. # Make sure the PIC flag is empty. It appears that all Alpha
  13666. # Linux and Compaq Tru64 Unix objects are PIC.
  13667. lt_prog_compiler_pic_CXX=
  13668. lt_prog_compiler_static_CXX='-non_shared'
  13669. ;;
  13670. *)
  13671. ;;
  13672. esac
  13673. ;;
  13674. psos*)
  13675. ;;
  13676. solaris*)
  13677. case $cc_basename in
  13678. CC* | sunCC*)
  13679. # Sun C++ 4.2, 5.x and Centerline C++
  13680. lt_prog_compiler_pic_CXX='-KPIC'
  13681. lt_prog_compiler_static_CXX='-Bstatic'
  13682. lt_prog_compiler_wl_CXX='-Qoption ld '
  13683. ;;
  13684. gcx*)
  13685. # Green Hills C++ Compiler
  13686. lt_prog_compiler_pic_CXX='-PIC'
  13687. ;;
  13688. *)
  13689. ;;
  13690. esac
  13691. ;;
  13692. sunos4*)
  13693. case $cc_basename in
  13694. CC*)
  13695. # Sun C++ 4.x
  13696. lt_prog_compiler_pic_CXX='-pic'
  13697. lt_prog_compiler_static_CXX='-Bstatic'
  13698. ;;
  13699. lcc*)
  13700. # Lucid
  13701. lt_prog_compiler_pic_CXX='-pic'
  13702. ;;
  13703. *)
  13704. ;;
  13705. esac
  13706. ;;
  13707. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13708. case $cc_basename in
  13709. CC*)
  13710. lt_prog_compiler_wl_CXX='-Wl,'
  13711. lt_prog_compiler_pic_CXX='-KPIC'
  13712. lt_prog_compiler_static_CXX='-Bstatic'
  13713. ;;
  13714. esac
  13715. ;;
  13716. tandem*)
  13717. case $cc_basename in
  13718. NCC*)
  13719. # NonStop-UX NCC 3.20
  13720. lt_prog_compiler_pic_CXX='-KPIC'
  13721. ;;
  13722. *)
  13723. ;;
  13724. esac
  13725. ;;
  13726. vxworks*)
  13727. ;;
  13728. *)
  13729. lt_prog_compiler_can_build_shared_CXX=no
  13730. ;;
  13731. esac
  13732. fi
  13733. case $host_os in
  13734. # For platforms that do not support PIC, -DPIC is meaningless:
  13735. *djgpp*)
  13736. lt_prog_compiler_pic_CXX=
  13737. ;;
  13738. *)
  13739. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13740. ;;
  13741. esac
  13742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13743. printf %s "checking for $compiler option to produce PIC... " >&6; }
  13744. if test ${lt_cv_prog_compiler_pic_CXX+y}
  13745. then :
  13746. printf %s "(cached) " >&6
  13747. else $as_nop
  13748. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13749. fi
  13750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13751. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13752. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13753. #
  13754. # Check to make sure the PIC flag actually works.
  13755. #
  13756. if test -n "$lt_prog_compiler_pic_CXX"; then
  13757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13758. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13759. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  13760. then :
  13761. printf %s "(cached) " >&6
  13762. else $as_nop
  13763. lt_cv_prog_compiler_pic_works_CXX=no
  13764. ac_outfile=conftest.$ac_objext
  13765. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13766. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13767. # Insert the option either (1) after the last *FLAGS variable, or
  13768. # (2) before a word containing "conftest.", or (3) at the end.
  13769. # Note that $ac_compile itself does not contain backslashes and begins
  13770. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13771. # The option is referenced via a variable to avoid confusing sed.
  13772. lt_compile=`echo "$ac_compile" | $SED \
  13773. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13774. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13775. -e 's:$: $lt_compiler_flag:'`
  13776. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13777. (eval "$lt_compile" 2>conftest.err)
  13778. ac_status=$?
  13779. cat conftest.err >&5
  13780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13781. if (exit $ac_status) && test -s "$ac_outfile"; then
  13782. # The compiler can only warn and ignore the option if not recognized
  13783. # So say no if there are warnings other than the usual output.
  13784. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13785. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13786. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13787. lt_cv_prog_compiler_pic_works_CXX=yes
  13788. fi
  13789. fi
  13790. $RM conftest*
  13791. fi
  13792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13793. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13794. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13795. case $lt_prog_compiler_pic_CXX in
  13796. "" | " "*) ;;
  13797. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13798. esac
  13799. else
  13800. lt_prog_compiler_pic_CXX=
  13801. lt_prog_compiler_can_build_shared_CXX=no
  13802. fi
  13803. fi
  13804. #
  13805. # Check to make sure the static flag actually works.
  13806. #
  13807. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13809. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13810. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  13811. then :
  13812. printf %s "(cached) " >&6
  13813. else $as_nop
  13814. lt_cv_prog_compiler_static_works_CXX=no
  13815. save_LDFLAGS=$LDFLAGS
  13816. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13817. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13818. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13819. # The linker can only warn and ignore the option if not recognized
  13820. # So say no if there are warnings
  13821. if test -s conftest.err; then
  13822. # Append any errors to the config.log.
  13823. cat conftest.err 1>&5
  13824. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13825. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13826. if diff conftest.exp conftest.er2 >/dev/null; then
  13827. lt_cv_prog_compiler_static_works_CXX=yes
  13828. fi
  13829. else
  13830. lt_cv_prog_compiler_static_works_CXX=yes
  13831. fi
  13832. fi
  13833. $RM -r conftest*
  13834. LDFLAGS=$save_LDFLAGS
  13835. fi
  13836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13837. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13838. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13839. :
  13840. else
  13841. lt_prog_compiler_static_CXX=
  13842. fi
  13843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13844. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13845. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  13846. then :
  13847. printf %s "(cached) " >&6
  13848. else $as_nop
  13849. lt_cv_prog_compiler_c_o_CXX=no
  13850. $RM -r conftest 2>/dev/null
  13851. mkdir conftest
  13852. cd conftest
  13853. mkdir out
  13854. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13855. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13856. # Insert the option either (1) after the last *FLAGS variable, or
  13857. # (2) before a word containing "conftest.", or (3) at the end.
  13858. # Note that $ac_compile itself does not contain backslashes and begins
  13859. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13860. lt_compile=`echo "$ac_compile" | $SED \
  13861. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13862. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13863. -e 's:$: $lt_compiler_flag:'`
  13864. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13865. (eval "$lt_compile" 2>out/conftest.err)
  13866. ac_status=$?
  13867. cat out/conftest.err >&5
  13868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13869. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13870. then
  13871. # The compiler can only warn and ignore the option if not recognized
  13872. # So say no if there are warnings
  13873. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13874. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13875. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13876. lt_cv_prog_compiler_c_o_CXX=yes
  13877. fi
  13878. fi
  13879. chmod u+w . 2>&5
  13880. $RM conftest*
  13881. # SGI C++ compiler will create directory out/ii_files/ for
  13882. # template instantiation
  13883. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13884. $RM out/* && rmdir out
  13885. cd ..
  13886. $RM -r conftest
  13887. $RM conftest*
  13888. fi
  13889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13890. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13892. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13893. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  13894. then :
  13895. printf %s "(cached) " >&6
  13896. else $as_nop
  13897. lt_cv_prog_compiler_c_o_CXX=no
  13898. $RM -r conftest 2>/dev/null
  13899. mkdir conftest
  13900. cd conftest
  13901. mkdir out
  13902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13903. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13904. # Insert the option either (1) after the last *FLAGS variable, or
  13905. # (2) before a word containing "conftest.", or (3) at the end.
  13906. # Note that $ac_compile itself does not contain backslashes and begins
  13907. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13908. lt_compile=`echo "$ac_compile" | $SED \
  13909. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13910. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13911. -e 's:$: $lt_compiler_flag:'`
  13912. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13913. (eval "$lt_compile" 2>out/conftest.err)
  13914. ac_status=$?
  13915. cat out/conftest.err >&5
  13916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13917. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13918. then
  13919. # The compiler can only warn and ignore the option if not recognized
  13920. # So say no if there are warnings
  13921. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13922. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13923. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13924. lt_cv_prog_compiler_c_o_CXX=yes
  13925. fi
  13926. fi
  13927. chmod u+w . 2>&5
  13928. $RM conftest*
  13929. # SGI C++ compiler will create directory out/ii_files/ for
  13930. # template instantiation
  13931. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13932. $RM out/* && rmdir out
  13933. cd ..
  13934. $RM -r conftest
  13935. $RM conftest*
  13936. fi
  13937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13938. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13939. hard_links=nottested
  13940. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13941. # do not overwrite the value of need_locks provided by the user
  13942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13943. printf %s "checking if we can lock with hard links... " >&6; }
  13944. hard_links=yes
  13945. $RM conftest*
  13946. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13947. touch conftest.a
  13948. ln conftest.a conftest.b 2>&5 || hard_links=no
  13949. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13951. printf "%s\n" "$hard_links" >&6; }
  13952. if test no = "$hard_links"; then
  13953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13954. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13955. need_locks=warn
  13956. fi
  13957. else
  13958. need_locks=no
  13959. fi
  13960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13961. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13962. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13963. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13964. case $host_os in
  13965. aix[4-9]*)
  13966. # If we're using GNU nm, then we don't want the "-C" option.
  13967. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13968. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13969. # weak defined symbols like other global defined symbols, whereas
  13970. # GNU nm marks them as "W".
  13971. # While the 'weak' keyword is ignored in the Export File, we need
  13972. # it in the Import File for the 'aix-soname' feature, so we have
  13973. # to replace the "-B" option with "-P" for AIX nm.
  13974. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13975. 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'
  13976. else
  13977. 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 == "L") || (\$ 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'
  13978. fi
  13979. ;;
  13980. pw32*)
  13981. export_symbols_cmds_CXX=$ltdll_cmds
  13982. ;;
  13983. cygwin* | mingw* | cegcc*)
  13984. case $cc_basename in
  13985. cl* | icl*)
  13986. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13987. ;;
  13988. *)
  13989. 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'
  13990. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13991. ;;
  13992. esac
  13993. ;;
  13994. linux* | k*bsd*-gnu | gnu*)
  13995. link_all_deplibs_CXX=no
  13996. ;;
  13997. *)
  13998. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13999. ;;
  14000. esac
  14001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14002. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14003. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14004. with_gnu_ld_CXX=$with_gnu_ld
  14005. #
  14006. # Do we need to explicitly link libc?
  14007. #
  14008. case "x$archive_cmds_need_lc_CXX" in
  14009. x|xyes)
  14010. # Assume -lc should be added
  14011. archive_cmds_need_lc_CXX=yes
  14012. if test yes,yes = "$GCC,$enable_shared"; then
  14013. case $archive_cmds_CXX in
  14014. *'~'*)
  14015. # FIXME: we may have to deal with multi-command sequences.
  14016. ;;
  14017. '$CC '*)
  14018. # Test whether the compiler implicitly links with -lc since on some
  14019. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14020. # to ld, don't add -lc before -lgcc.
  14021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14022. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14023. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14024. then :
  14025. printf %s "(cached) " >&6
  14026. else $as_nop
  14027. $RM conftest*
  14028. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14029. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14030. (eval $ac_compile) 2>&5
  14031. ac_status=$?
  14032. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14033. test $ac_status = 0; } 2>conftest.err; then
  14034. soname=conftest
  14035. lib=conftest
  14036. libobjs=conftest.$ac_objext
  14037. deplibs=
  14038. wl=$lt_prog_compiler_wl_CXX
  14039. pic_flag=$lt_prog_compiler_pic_CXX
  14040. compiler_flags=-v
  14041. linker_flags=-v
  14042. verstring=
  14043. output_objdir=.
  14044. libname=conftest
  14045. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14046. allow_undefined_flag_CXX=
  14047. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14048. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14049. ac_status=$?
  14050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14051. test $ac_status = 0; }
  14052. then
  14053. lt_cv_archive_cmds_need_lc_CXX=no
  14054. else
  14055. lt_cv_archive_cmds_need_lc_CXX=yes
  14056. fi
  14057. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14058. else
  14059. cat conftest.err 1>&5
  14060. fi
  14061. $RM conftest*
  14062. fi
  14063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14064. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14065. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14066. ;;
  14067. esac
  14068. fi
  14069. ;;
  14070. esac
  14071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14072. printf %s "checking dynamic linker characteristics... " >&6; }
  14073. library_names_spec=
  14074. libname_spec='lib$name'
  14075. soname_spec=
  14076. shrext_cmds=.so
  14077. postinstall_cmds=
  14078. postuninstall_cmds=
  14079. finish_cmds=
  14080. finish_eval=
  14081. shlibpath_var=
  14082. shlibpath_overrides_runpath=unknown
  14083. version_type=none
  14084. dynamic_linker="$host_os ld.so"
  14085. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14086. need_lib_prefix=unknown
  14087. hardcode_into_libs=no
  14088. # when you set need_version to no, make sure it does not cause -set_version
  14089. # flags to be left without arguments
  14090. need_version=unknown
  14091. case $host_os in
  14092. aix3*)
  14093. version_type=linux # correct to gnu/linux during the next big refactor
  14094. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14095. shlibpath_var=LIBPATH
  14096. # AIX 3 has no versioning support, so we append a major version to the name.
  14097. soname_spec='$libname$release$shared_ext$major'
  14098. ;;
  14099. aix[4-9]*)
  14100. version_type=linux # correct to gnu/linux during the next big refactor
  14101. need_lib_prefix=no
  14102. need_version=no
  14103. hardcode_into_libs=yes
  14104. if test ia64 = "$host_cpu"; then
  14105. # AIX 5 supports IA64
  14106. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14107. shlibpath_var=LD_LIBRARY_PATH
  14108. else
  14109. # With GCC up to 2.95.x, collect2 would create an import file
  14110. # for dependence libraries. The import file would start with
  14111. # the line '#! .'. This would cause the generated library to
  14112. # depend on '.', always an invalid library. This was fixed in
  14113. # development snapshots of GCC prior to 3.0.
  14114. case $host_os in
  14115. aix4 | aix4.[01] | aix4.[01].*)
  14116. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14117. echo ' yes '
  14118. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14119. :
  14120. else
  14121. can_build_shared=no
  14122. fi
  14123. ;;
  14124. esac
  14125. # Using Import Files as archive members, it is possible to support
  14126. # filename-based versioning of shared library archives on AIX. While
  14127. # this would work for both with and without runtime linking, it will
  14128. # prevent static linking of such archives. So we do filename-based
  14129. # shared library versioning with .so extension only, which is used
  14130. # when both runtime linking and shared linking is enabled.
  14131. # Unfortunately, runtime linking may impact performance, so we do
  14132. # not want this to be the default eventually. Also, we use the
  14133. # versioned .so libs for executables only if there is the -brtl
  14134. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14135. # To allow for filename-based versioning support, we need to create
  14136. # libNAME.so.V as an archive file, containing:
  14137. # *) an Import File, referring to the versioned filename of the
  14138. # archive as well as the shared archive member, telling the
  14139. # bitwidth (32 or 64) of that shared object, and providing the
  14140. # list of exported symbols of that shared object, eventually
  14141. # decorated with the 'weak' keyword
  14142. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14143. # it being seen by the linker.
  14144. # At run time we better use the real file rather than another symlink,
  14145. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14146. case $with_aix_soname,$aix_use_runtimelinking in
  14147. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14148. # soname into executable. Probably we can add versioning support to
  14149. # collect2, so additional links can be useful in future.
  14150. aix,yes) # traditional libtool
  14151. dynamic_linker='AIX unversionable lib.so'
  14152. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14153. # instead of lib<name>.a to let people know that these are not
  14154. # typical AIX shared libraries.
  14155. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14156. ;;
  14157. aix,no) # traditional AIX only
  14158. dynamic_linker='AIX lib.a(lib.so.V)'
  14159. # We preserve .a as extension for shared libraries through AIX4.2
  14160. # and later when we are not doing run time linking.
  14161. library_names_spec='$libname$release.a $libname.a'
  14162. soname_spec='$libname$release$shared_ext$major'
  14163. ;;
  14164. svr4,*) # full svr4 only
  14165. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14166. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14167. # We do not specify a path in Import Files, so LIBPATH fires.
  14168. shlibpath_overrides_runpath=yes
  14169. ;;
  14170. *,yes) # both, prefer svr4
  14171. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14172. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14173. # unpreferred sharedlib libNAME.a needs extra handling
  14174. 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"'
  14175. 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"'
  14176. # We do not specify a path in Import Files, so LIBPATH fires.
  14177. shlibpath_overrides_runpath=yes
  14178. ;;
  14179. *,no) # both, prefer aix
  14180. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14181. library_names_spec='$libname$release.a $libname.a'
  14182. soname_spec='$libname$release$shared_ext$major'
  14183. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14184. 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)'
  14185. 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"'
  14186. ;;
  14187. esac
  14188. shlibpath_var=LIBPATH
  14189. fi
  14190. ;;
  14191. amigaos*)
  14192. case $host_cpu in
  14193. powerpc)
  14194. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14195. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14197. ;;
  14198. m68k)
  14199. library_names_spec='$libname.ixlibrary $libname.a'
  14200. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14201. 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'
  14202. ;;
  14203. esac
  14204. ;;
  14205. beos*)
  14206. library_names_spec='$libname$shared_ext'
  14207. dynamic_linker="$host_os ld.so"
  14208. shlibpath_var=LIBRARY_PATH
  14209. ;;
  14210. bsdi[45]*)
  14211. version_type=linux # correct to gnu/linux during the next big refactor
  14212. need_version=no
  14213. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14214. soname_spec='$libname$release$shared_ext$major'
  14215. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14216. shlibpath_var=LD_LIBRARY_PATH
  14217. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14218. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14219. # the default ld.so.conf also contains /usr/contrib/lib and
  14220. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14221. # libtool to hard-code these into programs
  14222. ;;
  14223. cygwin* | mingw* | pw32* | cegcc*)
  14224. version_type=windows
  14225. shrext_cmds=.dll
  14226. need_version=no
  14227. need_lib_prefix=no
  14228. case $GCC,$cc_basename in
  14229. yes,*)
  14230. # gcc
  14231. library_names_spec='$libname.dll.a'
  14232. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14233. postinstall_cmds='base_file=`basename \$file`~
  14234. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14235. dldir=$destdir/`dirname \$dlpath`~
  14236. test -d \$dldir || mkdir -p \$dldir~
  14237. $install_prog $dir/$dlname \$dldir/$dlname~
  14238. chmod a+x \$dldir/$dlname~
  14239. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14240. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14241. fi'
  14242. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14243. dlpath=$dir/\$dldll~
  14244. $RM \$dlpath'
  14245. shlibpath_overrides_runpath=yes
  14246. case $host_os in
  14247. cygwin*)
  14248. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14249. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14250. ;;
  14251. mingw* | cegcc*)
  14252. # MinGW DLLs use traditional 'lib' prefix
  14253. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14254. ;;
  14255. pw32*)
  14256. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14257. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14258. ;;
  14259. esac
  14260. dynamic_linker='Win32 ld.exe'
  14261. ;;
  14262. *,cl* | *,icl*)
  14263. # Native MSVC or ICC
  14264. libname_spec='$name'
  14265. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14266. library_names_spec='$libname.dll.lib'
  14267. case $build_os in
  14268. mingw*)
  14269. sys_lib_search_path_spec=
  14270. lt_save_ifs=$IFS
  14271. IFS=';'
  14272. for lt_path in $LIB
  14273. do
  14274. IFS=$lt_save_ifs
  14275. # Let DOS variable expansion print the short 8.3 style file name.
  14276. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14277. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14278. done
  14279. IFS=$lt_save_ifs
  14280. # Convert to MSYS style.
  14281. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14282. ;;
  14283. cygwin*)
  14284. # Convert to unix form, then to dos form, then back to unix form
  14285. # but this time dos style (no spaces!) so that the unix form looks
  14286. # like /cygdrive/c/PROGRA~1:/cygdr...
  14287. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14288. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14289. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14290. ;;
  14291. *)
  14292. sys_lib_search_path_spec=$LIB
  14293. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14294. # It is most probably a Windows format PATH.
  14295. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14296. else
  14297. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14298. fi
  14299. # FIXME: find the short name or the path components, as spaces are
  14300. # common. (e.g. "Program Files" -> "PROGRA~1")
  14301. ;;
  14302. esac
  14303. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14304. postinstall_cmds='base_file=`basename \$file`~
  14305. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14306. dldir=$destdir/`dirname \$dlpath`~
  14307. test -d \$dldir || mkdir -p \$dldir~
  14308. $install_prog $dir/$dlname \$dldir/$dlname'
  14309. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14310. dlpath=$dir/\$dldll~
  14311. $RM \$dlpath'
  14312. shlibpath_overrides_runpath=yes
  14313. dynamic_linker='Win32 link.exe'
  14314. ;;
  14315. *)
  14316. # Assume MSVC and ICC wrapper
  14317. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14318. dynamic_linker='Win32 ld.exe'
  14319. ;;
  14320. esac
  14321. # FIXME: first we should search . and the directory the executable is in
  14322. shlibpath_var=PATH
  14323. ;;
  14324. darwin* | rhapsody*)
  14325. dynamic_linker="$host_os dyld"
  14326. version_type=darwin
  14327. need_lib_prefix=no
  14328. need_version=no
  14329. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14330. soname_spec='$libname$release$major$shared_ext'
  14331. shlibpath_overrides_runpath=yes
  14332. shlibpath_var=DYLD_LIBRARY_PATH
  14333. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14334. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14335. ;;
  14336. dgux*)
  14337. version_type=linux # correct to gnu/linux during the next big refactor
  14338. need_lib_prefix=no
  14339. need_version=no
  14340. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14341. soname_spec='$libname$release$shared_ext$major'
  14342. shlibpath_var=LD_LIBRARY_PATH
  14343. ;;
  14344. freebsd* | dragonfly* | midnightbsd*)
  14345. # DragonFly does not have aout. When/if they implement a new
  14346. # versioning mechanism, adjust this.
  14347. if test -x /usr/bin/objformat; then
  14348. objformat=`/usr/bin/objformat`
  14349. else
  14350. case $host_os in
  14351. freebsd[23].*) objformat=aout ;;
  14352. *) objformat=elf ;;
  14353. esac
  14354. fi
  14355. version_type=freebsd-$objformat
  14356. case $version_type in
  14357. freebsd-elf*)
  14358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14359. soname_spec='$libname$release$shared_ext$major'
  14360. need_version=no
  14361. need_lib_prefix=no
  14362. ;;
  14363. freebsd-*)
  14364. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14365. need_version=yes
  14366. ;;
  14367. esac
  14368. shlibpath_var=LD_LIBRARY_PATH
  14369. case $host_os in
  14370. freebsd2.*)
  14371. shlibpath_overrides_runpath=yes
  14372. ;;
  14373. freebsd3.[01]* | freebsdelf3.[01]*)
  14374. shlibpath_overrides_runpath=yes
  14375. hardcode_into_libs=yes
  14376. ;;
  14377. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14378. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14379. shlibpath_overrides_runpath=no
  14380. hardcode_into_libs=yes
  14381. ;;
  14382. *) # from 4.6 on, and DragonFly
  14383. shlibpath_overrides_runpath=yes
  14384. hardcode_into_libs=yes
  14385. ;;
  14386. esac
  14387. ;;
  14388. haiku*)
  14389. version_type=linux # correct to gnu/linux during the next big refactor
  14390. need_lib_prefix=no
  14391. need_version=no
  14392. dynamic_linker="$host_os runtime_loader"
  14393. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14394. soname_spec='$libname$release$shared_ext$major'
  14395. shlibpath_var=LIBRARY_PATH
  14396. shlibpath_overrides_runpath=no
  14397. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14398. hardcode_into_libs=yes
  14399. ;;
  14400. hpux9* | hpux10* | hpux11*)
  14401. # Give a soname corresponding to the major version so that dld.sl refuses to
  14402. # link against other versions.
  14403. version_type=sunos
  14404. need_lib_prefix=no
  14405. need_version=no
  14406. case $host_cpu in
  14407. ia64*)
  14408. shrext_cmds='.so'
  14409. hardcode_into_libs=yes
  14410. dynamic_linker="$host_os dld.so"
  14411. shlibpath_var=LD_LIBRARY_PATH
  14412. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14413. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14414. soname_spec='$libname$release$shared_ext$major'
  14415. if test 32 = "$HPUX_IA64_MODE"; then
  14416. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14417. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14418. else
  14419. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14420. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14421. fi
  14422. ;;
  14423. hppa*64*)
  14424. shrext_cmds='.sl'
  14425. hardcode_into_libs=yes
  14426. dynamic_linker="$host_os dld.sl"
  14427. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14428. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14430. soname_spec='$libname$release$shared_ext$major'
  14431. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14432. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14433. ;;
  14434. *)
  14435. shrext_cmds='.sl'
  14436. dynamic_linker="$host_os dld.sl"
  14437. shlibpath_var=SHLIB_PATH
  14438. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14440. soname_spec='$libname$release$shared_ext$major'
  14441. ;;
  14442. esac
  14443. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14444. postinstall_cmds='chmod 555 $lib'
  14445. # or fails outright, so override atomically:
  14446. install_override_mode=555
  14447. ;;
  14448. interix[3-9]*)
  14449. version_type=linux # correct to gnu/linux during the next big refactor
  14450. need_lib_prefix=no
  14451. need_version=no
  14452. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14453. soname_spec='$libname$release$shared_ext$major'
  14454. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14455. shlibpath_var=LD_LIBRARY_PATH
  14456. shlibpath_overrides_runpath=no
  14457. hardcode_into_libs=yes
  14458. ;;
  14459. irix5* | irix6* | nonstopux*)
  14460. case $host_os in
  14461. nonstopux*) version_type=nonstopux ;;
  14462. *)
  14463. if test yes = "$lt_cv_prog_gnu_ld"; then
  14464. version_type=linux # correct to gnu/linux during the next big refactor
  14465. else
  14466. version_type=irix
  14467. fi ;;
  14468. esac
  14469. need_lib_prefix=no
  14470. need_version=no
  14471. soname_spec='$libname$release$shared_ext$major'
  14472. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14473. case $host_os in
  14474. irix5* | nonstopux*)
  14475. libsuff= shlibsuff=
  14476. ;;
  14477. *)
  14478. case $LD in # libtool.m4 will add one of these switches to LD
  14479. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14480. libsuff= shlibsuff= libmagic=32-bit;;
  14481. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14482. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14483. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14484. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14485. *) libsuff= shlibsuff= libmagic=never-match;;
  14486. esac
  14487. ;;
  14488. esac
  14489. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14490. shlibpath_overrides_runpath=no
  14491. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14492. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14493. hardcode_into_libs=yes
  14494. ;;
  14495. # No shared lib support for Linux oldld, aout, or coff.
  14496. linux*oldld* | linux*aout* | linux*coff*)
  14497. dynamic_linker=no
  14498. ;;
  14499. linux*android*)
  14500. version_type=none # Android doesn't support versioned libraries.
  14501. need_lib_prefix=no
  14502. need_version=no
  14503. library_names_spec='$libname$release$shared_ext'
  14504. soname_spec='$libname$release$shared_ext'
  14505. finish_cmds=
  14506. shlibpath_var=LD_LIBRARY_PATH
  14507. shlibpath_overrides_runpath=yes
  14508. # This implies no fast_install, which is unacceptable.
  14509. # Some rework will be needed to allow for fast_install
  14510. # before this can be enabled.
  14511. hardcode_into_libs=yes
  14512. dynamic_linker='Android linker'
  14513. # Don't embed -rpath directories since the linker doesn't support them.
  14514. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14515. ;;
  14516. # This must be glibc/ELF.
  14517. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14518. version_type=linux # correct to gnu/linux during the next big refactor
  14519. need_lib_prefix=no
  14520. need_version=no
  14521. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14522. soname_spec='$libname$release$shared_ext$major'
  14523. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14524. shlibpath_var=LD_LIBRARY_PATH
  14525. shlibpath_overrides_runpath=no
  14526. # Some binutils ld are patched to set DT_RUNPATH
  14527. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14528. then :
  14529. printf %s "(cached) " >&6
  14530. else $as_nop
  14531. lt_cv_shlibpath_overrides_runpath=no
  14532. save_LDFLAGS=$LDFLAGS
  14533. save_libdir=$libdir
  14534. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14535. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14537. /* end confdefs.h. */
  14538. int
  14539. main (void)
  14540. {
  14541. ;
  14542. return 0;
  14543. }
  14544. _ACEOF
  14545. if ac_fn_cxx_try_link "$LINENO"
  14546. then :
  14547. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14548. then :
  14549. lt_cv_shlibpath_overrides_runpath=yes
  14550. fi
  14551. fi
  14552. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14553. conftest$ac_exeext conftest.$ac_ext
  14554. LDFLAGS=$save_LDFLAGS
  14555. libdir=$save_libdir
  14556. fi
  14557. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14558. # This implies no fast_install, which is unacceptable.
  14559. # Some rework will be needed to allow for fast_install
  14560. # before this can be enabled.
  14561. hardcode_into_libs=yes
  14562. # Ideally, we could use ldconfig to report *all* directores which are
  14563. # searched for libraries, however this is still not possible. Aside from not
  14564. # being certain /sbin/ldconfig is available, command
  14565. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14566. # even though it is searched at run-time. Try to do the best guess by
  14567. # appending ld.so.conf contents (and includes) to the search path.
  14568. if test -f /etc/ld.so.conf; then
  14569. 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' ' '`
  14570. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14571. fi
  14572. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14573. # powerpc, because MkLinux only supported shared libraries with the
  14574. # GNU dynamic linker. Since this was broken with cross compilers,
  14575. # most powerpc-linux boxes support dynamic linking these days and
  14576. # people can always --disable-shared, the test was removed, and we
  14577. # assume the GNU/Linux dynamic linker is in use.
  14578. dynamic_linker='GNU/Linux ld.so'
  14579. ;;
  14580. netbsdelf*-gnu)
  14581. version_type=linux
  14582. need_lib_prefix=no
  14583. need_version=no
  14584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14585. soname_spec='${libname}${release}${shared_ext}$major'
  14586. shlibpath_var=LD_LIBRARY_PATH
  14587. shlibpath_overrides_runpath=no
  14588. hardcode_into_libs=yes
  14589. dynamic_linker='NetBSD ld.elf_so'
  14590. ;;
  14591. netbsd*)
  14592. version_type=sunos
  14593. need_lib_prefix=no
  14594. need_version=no
  14595. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14596. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14597. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14598. dynamic_linker='NetBSD (a.out) ld.so'
  14599. else
  14600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14601. soname_spec='$libname$release$shared_ext$major'
  14602. dynamic_linker='NetBSD ld.elf_so'
  14603. fi
  14604. shlibpath_var=LD_LIBRARY_PATH
  14605. shlibpath_overrides_runpath=yes
  14606. hardcode_into_libs=yes
  14607. ;;
  14608. newsos6)
  14609. version_type=linux # correct to gnu/linux during the next big refactor
  14610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14611. shlibpath_var=LD_LIBRARY_PATH
  14612. shlibpath_overrides_runpath=yes
  14613. ;;
  14614. *nto* | *qnx*)
  14615. version_type=qnx
  14616. need_lib_prefix=no
  14617. need_version=no
  14618. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14619. soname_spec='$libname$release$shared_ext$major'
  14620. shlibpath_var=LD_LIBRARY_PATH
  14621. shlibpath_overrides_runpath=no
  14622. hardcode_into_libs=yes
  14623. dynamic_linker='ldqnx.so'
  14624. ;;
  14625. openbsd* | bitrig*)
  14626. version_type=sunos
  14627. sys_lib_dlsearch_path_spec=/usr/lib
  14628. need_lib_prefix=no
  14629. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14630. need_version=no
  14631. else
  14632. need_version=yes
  14633. fi
  14634. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14635. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14636. shlibpath_var=LD_LIBRARY_PATH
  14637. shlibpath_overrides_runpath=yes
  14638. ;;
  14639. os2*)
  14640. libname_spec='$name'
  14641. version_type=windows
  14642. shrext_cmds=.dll
  14643. need_version=no
  14644. need_lib_prefix=no
  14645. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14646. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14647. v=$($ECHO $release$versuffix | tr -d .-);
  14648. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14649. $ECHO $n$v`$shared_ext'
  14650. library_names_spec='${libname}_dll.$libext'
  14651. dynamic_linker='OS/2 ld.exe'
  14652. shlibpath_var=BEGINLIBPATH
  14653. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14654. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14655. postinstall_cmds='base_file=`basename \$file`~
  14656. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14657. dldir=$destdir/`dirname \$dlpath`~
  14658. test -d \$dldir || mkdir -p \$dldir~
  14659. $install_prog $dir/$dlname \$dldir/$dlname~
  14660. chmod a+x \$dldir/$dlname~
  14661. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14662. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14663. fi'
  14664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14665. dlpath=$dir/\$dldll~
  14666. $RM \$dlpath'
  14667. ;;
  14668. osf3* | osf4* | osf5*)
  14669. version_type=osf
  14670. need_lib_prefix=no
  14671. need_version=no
  14672. soname_spec='$libname$release$shared_ext$major'
  14673. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14674. shlibpath_var=LD_LIBRARY_PATH
  14675. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14676. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14677. ;;
  14678. rdos*)
  14679. dynamic_linker=no
  14680. ;;
  14681. solaris*)
  14682. version_type=linux # correct to gnu/linux during the next big refactor
  14683. need_lib_prefix=no
  14684. need_version=no
  14685. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14686. soname_spec='$libname$release$shared_ext$major'
  14687. shlibpath_var=LD_LIBRARY_PATH
  14688. shlibpath_overrides_runpath=yes
  14689. hardcode_into_libs=yes
  14690. # ldd complains unless libraries are executable
  14691. postinstall_cmds='chmod +x $lib'
  14692. ;;
  14693. sunos4*)
  14694. version_type=sunos
  14695. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14696. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14697. shlibpath_var=LD_LIBRARY_PATH
  14698. shlibpath_overrides_runpath=yes
  14699. if test yes = "$with_gnu_ld"; then
  14700. need_lib_prefix=no
  14701. fi
  14702. need_version=yes
  14703. ;;
  14704. sysv4 | sysv4.3*)
  14705. version_type=linux # correct to gnu/linux during the next big refactor
  14706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14707. soname_spec='$libname$release$shared_ext$major'
  14708. shlibpath_var=LD_LIBRARY_PATH
  14709. case $host_vendor in
  14710. sni)
  14711. shlibpath_overrides_runpath=no
  14712. need_lib_prefix=no
  14713. runpath_var=LD_RUN_PATH
  14714. ;;
  14715. siemens)
  14716. need_lib_prefix=no
  14717. ;;
  14718. motorola)
  14719. need_lib_prefix=no
  14720. need_version=no
  14721. shlibpath_overrides_runpath=no
  14722. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14723. ;;
  14724. esac
  14725. ;;
  14726. sysv4*MP*)
  14727. if test -d /usr/nec; then
  14728. version_type=linux # correct to gnu/linux during the next big refactor
  14729. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14730. soname_spec='$libname$shared_ext.$major'
  14731. shlibpath_var=LD_LIBRARY_PATH
  14732. fi
  14733. ;;
  14734. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14735. version_type=sco
  14736. need_lib_prefix=no
  14737. need_version=no
  14738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14739. soname_spec='$libname$release$shared_ext$major'
  14740. shlibpath_var=LD_LIBRARY_PATH
  14741. shlibpath_overrides_runpath=yes
  14742. hardcode_into_libs=yes
  14743. if test yes = "$with_gnu_ld"; then
  14744. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14745. else
  14746. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14747. case $host_os in
  14748. sco3.2v5*)
  14749. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14750. ;;
  14751. esac
  14752. fi
  14753. sys_lib_dlsearch_path_spec='/usr/lib'
  14754. ;;
  14755. tpf*)
  14756. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14757. version_type=linux # correct to gnu/linux during the next big refactor
  14758. need_lib_prefix=no
  14759. need_version=no
  14760. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14761. shlibpath_var=LD_LIBRARY_PATH
  14762. shlibpath_overrides_runpath=no
  14763. hardcode_into_libs=yes
  14764. ;;
  14765. uts4*)
  14766. version_type=linux # correct to gnu/linux during the next big refactor
  14767. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14768. soname_spec='$libname$release$shared_ext$major'
  14769. shlibpath_var=LD_LIBRARY_PATH
  14770. ;;
  14771. *)
  14772. dynamic_linker=no
  14773. ;;
  14774. esac
  14775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14776. printf "%s\n" "$dynamic_linker" >&6; }
  14777. test no = "$dynamic_linker" && can_build_shared=no
  14778. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14779. if test yes = "$GCC"; then
  14780. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14781. fi
  14782. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14783. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14784. fi
  14785. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14786. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14787. fi
  14788. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14789. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14790. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14791. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14792. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14793. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14795. printf %s "checking how to hardcode library paths into programs... " >&6; }
  14796. hardcode_action_CXX=
  14797. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14798. test -n "$runpath_var_CXX" ||
  14799. test yes = "$hardcode_automatic_CXX"; then
  14800. # We can hardcode non-existent directories.
  14801. if test no != "$hardcode_direct_CXX" &&
  14802. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14803. # have to relink, otherwise we might link with an installed library
  14804. # when we should be linking with a yet-to-be-installed one
  14805. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14806. test no != "$hardcode_minus_L_CXX"; then
  14807. # Linking always hardcodes the temporary library directory.
  14808. hardcode_action_CXX=relink
  14809. else
  14810. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14811. hardcode_action_CXX=immediate
  14812. fi
  14813. else
  14814. # We cannot hardcode anything, or else we can only hardcode existing
  14815. # directories.
  14816. hardcode_action_CXX=unsupported
  14817. fi
  14818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14819. printf "%s\n" "$hardcode_action_CXX" >&6; }
  14820. if test relink = "$hardcode_action_CXX" ||
  14821. test yes = "$inherit_rpath_CXX"; then
  14822. # Fast installation is not supported
  14823. enable_fast_install=no
  14824. elif test yes = "$shlibpath_overrides_runpath" ||
  14825. test no = "$enable_shared"; then
  14826. # Fast installation is not necessary
  14827. enable_fast_install=needless
  14828. fi
  14829. fi # test -n "$compiler"
  14830. CC=$lt_save_CC
  14831. CFLAGS=$lt_save_CFLAGS
  14832. LDCXX=$LD
  14833. LD=$lt_save_LD
  14834. GCC=$lt_save_GCC
  14835. with_gnu_ld=$lt_save_with_gnu_ld
  14836. lt_cv_path_LDCXX=$lt_cv_path_LD
  14837. lt_cv_path_LD=$lt_save_path_LD
  14838. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14839. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14840. fi # test yes != "$_lt_caught_CXX_error"
  14841. ac_ext=c
  14842. ac_cpp='$CPP $CPPFLAGS'
  14843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14846. ac_config_commands="$ac_config_commands libtool"
  14847. # Only expand once:
  14848. #AM_PROG_LD
  14849. #AC_SUBST(LD)
  14850. #AC_PROG_INSTALL
  14851. #AC_PROG_MAKE_SET
  14852. #AC_PROG_LN_S
  14853. #
  14854. # Tests for Windows
  14855. #
  14856. # Configure libtool
  14857. # Check whether --enable-shared was given.
  14858. if test ${enable_shared+y}
  14859. then :
  14860. enableval=$enable_shared; p=${PACKAGE-default}
  14861. case $enableval in
  14862. yes) enable_shared=yes ;;
  14863. no) enable_shared=no ;;
  14864. *)
  14865. enable_shared=no
  14866. # Look at the argument we got. We use all the common list separators.
  14867. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  14868. for pkg in $enableval; do
  14869. IFS=$lt_save_ifs
  14870. if test "X$pkg" = "X$p"; then
  14871. enable_shared=yes
  14872. fi
  14873. done
  14874. IFS=$lt_save_ifs
  14875. ;;
  14876. esac
  14877. else $as_nop
  14878. enable_shared=yes
  14879. fi
  14880. # Check whether --enable-static was given.
  14881. if test ${enable_static+y}
  14882. then :
  14883. enableval=$enable_static; p=${PACKAGE-default}
  14884. case $enableval in
  14885. yes) enable_static=yes ;;
  14886. no) enable_static=no ;;
  14887. *)
  14888. enable_static=no
  14889. # Look at the argument we got. We use all the common list separators.
  14890. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  14891. for pkg in $enableval; do
  14892. IFS=$lt_save_ifs
  14893. if test "X$pkg" = "X$p"; then
  14894. enable_static=yes
  14895. fi
  14896. done
  14897. IFS=$lt_save_ifs
  14898. ;;
  14899. esac
  14900. else $as_nop
  14901. enable_static=yes
  14902. fi
  14903. enable_win32_dll=yes
  14904. case $host in
  14905. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  14906. if test -n "$ac_tool_prefix"; then
  14907. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  14908. set dummy ${ac_tool_prefix}as; ac_word=$2
  14909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14910. printf %s "checking for $ac_word... " >&6; }
  14911. if test ${ac_cv_prog_AS+y}
  14912. then :
  14913. printf %s "(cached) " >&6
  14914. else $as_nop
  14915. if test -n "$AS"; then
  14916. ac_cv_prog_AS="$AS" # Let the user override the test.
  14917. else
  14918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14919. for as_dir in $PATH
  14920. do
  14921. IFS=$as_save_IFS
  14922. case $as_dir in #(((
  14923. '') as_dir=./ ;;
  14924. */) ;;
  14925. *) as_dir=$as_dir/ ;;
  14926. esac
  14927. for ac_exec_ext in '' $ac_executable_extensions; do
  14928. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14929. ac_cv_prog_AS="${ac_tool_prefix}as"
  14930. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14931. break 2
  14932. fi
  14933. done
  14934. done
  14935. IFS=$as_save_IFS
  14936. fi
  14937. fi
  14938. AS=$ac_cv_prog_AS
  14939. if test -n "$AS"; then
  14940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  14941. printf "%s\n" "$AS" >&6; }
  14942. else
  14943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14944. printf "%s\n" "no" >&6; }
  14945. fi
  14946. fi
  14947. if test -z "$ac_cv_prog_AS"; then
  14948. ac_ct_AS=$AS
  14949. # Extract the first word of "as", so it can be a program name with args.
  14950. set dummy as; ac_word=$2
  14951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14952. printf %s "checking for $ac_word... " >&6; }
  14953. if test ${ac_cv_prog_ac_ct_AS+y}
  14954. then :
  14955. printf %s "(cached) " >&6
  14956. else $as_nop
  14957. if test -n "$ac_ct_AS"; then
  14958. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  14959. else
  14960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14961. for as_dir in $PATH
  14962. do
  14963. IFS=$as_save_IFS
  14964. case $as_dir in #(((
  14965. '') as_dir=./ ;;
  14966. */) ;;
  14967. *) as_dir=$as_dir/ ;;
  14968. esac
  14969. for ac_exec_ext in '' $ac_executable_extensions; do
  14970. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14971. ac_cv_prog_ac_ct_AS="as"
  14972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14973. break 2
  14974. fi
  14975. done
  14976. done
  14977. IFS=$as_save_IFS
  14978. fi
  14979. fi
  14980. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  14981. if test -n "$ac_ct_AS"; then
  14982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  14983. printf "%s\n" "$ac_ct_AS" >&6; }
  14984. else
  14985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14986. printf "%s\n" "no" >&6; }
  14987. fi
  14988. if test "x$ac_ct_AS" = x; then
  14989. AS="false"
  14990. else
  14991. case $cross_compiling:$ac_tool_warned in
  14992. yes:)
  14993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14994. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14995. ac_tool_warned=yes ;;
  14996. esac
  14997. AS=$ac_ct_AS
  14998. fi
  14999. else
  15000. AS="$ac_cv_prog_AS"
  15001. fi
  15002. if test -n "$ac_tool_prefix"; then
  15003. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  15004. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  15005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15006. printf %s "checking for $ac_word... " >&6; }
  15007. if test ${ac_cv_prog_DLLTOOL+y}
  15008. then :
  15009. printf %s "(cached) " >&6
  15010. else $as_nop
  15011. if test -n "$DLLTOOL"; then
  15012. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  15013. else
  15014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15015. for as_dir in $PATH
  15016. do
  15017. IFS=$as_save_IFS
  15018. case $as_dir in #(((
  15019. '') as_dir=./ ;;
  15020. */) ;;
  15021. *) as_dir=$as_dir/ ;;
  15022. esac
  15023. for ac_exec_ext in '' $ac_executable_extensions; do
  15024. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15025. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  15026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15027. break 2
  15028. fi
  15029. done
  15030. done
  15031. IFS=$as_save_IFS
  15032. fi
  15033. fi
  15034. DLLTOOL=$ac_cv_prog_DLLTOOL
  15035. if test -n "$DLLTOOL"; then
  15036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  15037. printf "%s\n" "$DLLTOOL" >&6; }
  15038. else
  15039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15040. printf "%s\n" "no" >&6; }
  15041. fi
  15042. fi
  15043. if test -z "$ac_cv_prog_DLLTOOL"; then
  15044. ac_ct_DLLTOOL=$DLLTOOL
  15045. # Extract the first word of "dlltool", so it can be a program name with args.
  15046. set dummy dlltool; ac_word=$2
  15047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15048. printf %s "checking for $ac_word... " >&6; }
  15049. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  15050. then :
  15051. printf %s "(cached) " >&6
  15052. else $as_nop
  15053. if test -n "$ac_ct_DLLTOOL"; then
  15054. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  15055. else
  15056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15057. for as_dir in $PATH
  15058. do
  15059. IFS=$as_save_IFS
  15060. case $as_dir in #(((
  15061. '') as_dir=./ ;;
  15062. */) ;;
  15063. *) as_dir=$as_dir/ ;;
  15064. esac
  15065. for ac_exec_ext in '' $ac_executable_extensions; do
  15066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15067. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  15068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15069. break 2
  15070. fi
  15071. done
  15072. done
  15073. IFS=$as_save_IFS
  15074. fi
  15075. fi
  15076. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  15077. if test -n "$ac_ct_DLLTOOL"; then
  15078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  15079. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  15080. else
  15081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15082. printf "%s\n" "no" >&6; }
  15083. fi
  15084. if test "x$ac_ct_DLLTOOL" = x; then
  15085. DLLTOOL="false"
  15086. else
  15087. case $cross_compiling:$ac_tool_warned in
  15088. yes:)
  15089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15090. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15091. ac_tool_warned=yes ;;
  15092. esac
  15093. DLLTOOL=$ac_ct_DLLTOOL
  15094. fi
  15095. else
  15096. DLLTOOL="$ac_cv_prog_DLLTOOL"
  15097. fi
  15098. if test -n "$ac_tool_prefix"; then
  15099. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  15100. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  15101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15102. printf %s "checking for $ac_word... " >&6; }
  15103. if test ${ac_cv_prog_OBJDUMP+y}
  15104. then :
  15105. printf %s "(cached) " >&6
  15106. else $as_nop
  15107. if test -n "$OBJDUMP"; then
  15108. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  15109. else
  15110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15111. for as_dir in $PATH
  15112. do
  15113. IFS=$as_save_IFS
  15114. case $as_dir in #(((
  15115. '') as_dir=./ ;;
  15116. */) ;;
  15117. *) as_dir=$as_dir/ ;;
  15118. esac
  15119. for ac_exec_ext in '' $ac_executable_extensions; do
  15120. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15121. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  15122. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15123. break 2
  15124. fi
  15125. done
  15126. done
  15127. IFS=$as_save_IFS
  15128. fi
  15129. fi
  15130. OBJDUMP=$ac_cv_prog_OBJDUMP
  15131. if test -n "$OBJDUMP"; then
  15132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  15133. printf "%s\n" "$OBJDUMP" >&6; }
  15134. else
  15135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15136. printf "%s\n" "no" >&6; }
  15137. fi
  15138. fi
  15139. if test -z "$ac_cv_prog_OBJDUMP"; then
  15140. ac_ct_OBJDUMP=$OBJDUMP
  15141. # Extract the first word of "objdump", so it can be a program name with args.
  15142. set dummy objdump; ac_word=$2
  15143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15144. printf %s "checking for $ac_word... " >&6; }
  15145. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  15146. then :
  15147. printf %s "(cached) " >&6
  15148. else $as_nop
  15149. if test -n "$ac_ct_OBJDUMP"; then
  15150. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  15151. else
  15152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15153. for as_dir in $PATH
  15154. do
  15155. IFS=$as_save_IFS
  15156. case $as_dir in #(((
  15157. '') as_dir=./ ;;
  15158. */) ;;
  15159. *) as_dir=$as_dir/ ;;
  15160. esac
  15161. for ac_exec_ext in '' $ac_executable_extensions; do
  15162. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15163. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  15164. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15165. break 2
  15166. fi
  15167. done
  15168. done
  15169. IFS=$as_save_IFS
  15170. fi
  15171. fi
  15172. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  15173. if test -n "$ac_ct_OBJDUMP"; then
  15174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  15175. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  15176. else
  15177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15178. printf "%s\n" "no" >&6; }
  15179. fi
  15180. if test "x$ac_ct_OBJDUMP" = x; then
  15181. OBJDUMP="false"
  15182. else
  15183. case $cross_compiling:$ac_tool_warned in
  15184. yes:)
  15185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15186. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15187. ac_tool_warned=yes ;;
  15188. esac
  15189. OBJDUMP=$ac_ct_OBJDUMP
  15190. fi
  15191. else
  15192. OBJDUMP="$ac_cv_prog_OBJDUMP"
  15193. fi
  15194. ;;
  15195. esac
  15196. test -z "$AS" && AS=as
  15197. test -z "$DLLTOOL" && DLLTOOL=dlltool
  15198. test -z "$OBJDUMP" && OBJDUMP=objdump
  15199. LIB_PLUGINS=''
  15200. # Add configure option --enable-maintainer-mode which enables dependency
  15201. # checking and generation useful to package maintainers. This is made an
  15202. # option to avoid confusing end users.
  15203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  15204. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  15205. # Check whether --enable-maintainer-mode was given.
  15206. if test ${enable_maintainer_mode+y}
  15207. then :
  15208. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  15209. else $as_nop
  15210. USE_MAINTAINER_MODE=no
  15211. fi
  15212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  15213. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  15214. if test $USE_MAINTAINER_MODE = yes; then
  15215. MAINTAINER_MODE_TRUE=
  15216. MAINTAINER_MODE_FALSE='#'
  15217. else
  15218. MAINTAINER_MODE_TRUE='#'
  15219. MAINTAINER_MODE_FALSE=
  15220. fi
  15221. MAINT=$MAINTAINER_MODE_TRUE
  15222. # If the C compiler supports the keyword inline, do nothing. Otherwise
  15223. # define inline to __inline__ or __inline if it accepts one of those,
  15224. # otherwise define inline to be empty.
  15225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15226. printf %s "checking for inline... " >&6; }
  15227. if test ${ac_cv_c_inline+y}
  15228. then :
  15229. printf %s "(cached) " >&6
  15230. else $as_nop
  15231. ac_cv_c_inline=no
  15232. for ac_kw in inline __inline__ __inline; do
  15233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15234. /* end confdefs.h. */
  15235. #ifndef __cplusplus
  15236. typedef int foo_t;
  15237. static $ac_kw foo_t static_foo (void) {return 0; }
  15238. $ac_kw foo_t foo (void) {return 0; }
  15239. #endif
  15240. _ACEOF
  15241. if ac_fn_c_try_compile "$LINENO"
  15242. then :
  15243. ac_cv_c_inline=$ac_kw
  15244. fi
  15245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15246. test "$ac_cv_c_inline" != no && break
  15247. done
  15248. fi
  15249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15250. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15251. case $ac_cv_c_inline in
  15252. inline | yes) ;;
  15253. *)
  15254. case $ac_cv_c_inline in
  15255. no) ac_val=;;
  15256. *) ac_val=$ac_cv_c_inline;;
  15257. esac
  15258. cat >>confdefs.h <<_ACEOF
  15259. #ifndef __cplusplus
  15260. #define inline $ac_val
  15261. #endif
  15262. _ACEOF
  15263. ;;
  15264. esac
  15265. # Check if the C compiler supports the "visibility" function attribute
  15266. # If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY
  15267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
  15268. printf %s "checking for __attribute__((visibility))... " >&6; }
  15269. if test ${ax_cv_have_func_attribute_visibility+y}
  15270. then :
  15271. printf %s "(cached) " >&6
  15272. else $as_nop
  15273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15274. /* end confdefs.h. */
  15275. int foo_def( void ) __attribute__((visibility("default")));
  15276. int foo_hid( void ) __attribute__((visibility("hidden")));
  15277. int foo_int( void ) __attribute__((visibility("internal")));
  15278. int foo_pro( void ) __attribute__((visibility("protected")));
  15279. int
  15280. main (void)
  15281. {
  15282. ;
  15283. return 0;
  15284. }
  15285. _ACEOF
  15286. if ac_fn_c_try_link "$LINENO"
  15287. then :
  15288. if grep -- -Wattributes conftest.err
  15289. then :
  15290. ax_cv_have_func_attribute_visibility=no
  15291. else $as_nop
  15292. ax_cv_have_func_attribute_visibility=yes
  15293. fi
  15294. else $as_nop
  15295. ax_cv_have_func_attribute_visibility=no
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15298. conftest$ac_exeext conftest.$ac_ext
  15299. fi
  15300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
  15301. printf "%s\n" "$ax_cv_have_func_attribute_visibility" >&6; }
  15302. if test yes = $ax_cv_have_func_attribute_visibility
  15303. then :
  15304. printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  15305. fi
  15306. # Check if the compiler supports "-fvisibility=hidden" and if yes, add it to CFLAGS
  15307. # This means that symbols that are not marked explicitly for export (CMSAPI)
  15308. # will not be reachable in the shared library.
  15309. for flag in "-fvisibility=hidden"; do
  15310. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  15311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  15312. printf %s "checking whether C compiler accepts $flag... " >&6; }
  15313. if eval test \${$as_CACHEVAR+y}
  15314. then :
  15315. printf %s "(cached) " >&6
  15316. else $as_nop
  15317. ax_check_save_flags=$CFLAGS
  15318. CFLAGS="$CFLAGS $flag"
  15319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15320. /* end confdefs.h. */
  15321. int
  15322. main (void)
  15323. {
  15324. ;
  15325. return 0;
  15326. }
  15327. _ACEOF
  15328. if ac_fn_c_try_compile "$LINENO"
  15329. then :
  15330. eval "$as_CACHEVAR=yes"
  15331. else $as_nop
  15332. eval "$as_CACHEVAR=no"
  15333. fi
  15334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15335. CFLAGS=$ax_check_save_flags
  15336. fi
  15337. eval ac_res=\$$as_CACHEVAR
  15338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15339. printf "%s\n" "$ac_res" >&6; }
  15340. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15341. then :
  15342. if test ${CFLAGS+y}
  15343. then :
  15344. case " $CFLAGS " in #(
  15345. *" $flag "*) :
  15346. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  15347. (: CFLAGS already contains $flag) 2>&5
  15348. ac_status=$?
  15349. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15350. test $ac_status = 0; } ;; #(
  15351. *) :
  15352. as_fn_append CFLAGS " $flag"
  15353. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15354. (: CFLAGS="$CFLAGS") 2>&5
  15355. ac_status=$?
  15356. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15357. test $ac_status = 0; }
  15358. ;;
  15359. esac
  15360. else $as_nop
  15361. CFLAGS=$flag
  15362. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15363. (: CFLAGS="$CFLAGS") 2>&5
  15364. ac_status=$?
  15365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15366. test $ac_status = 0; }
  15367. fi
  15368. else $as_nop
  15369. :
  15370. fi
  15371. done
  15372. # If words are stored with the most significant byte first (like
  15373. # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
  15374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  15375. printf %s "checking whether byte ordering is bigendian... " >&6; }
  15376. if test ${ac_cv_c_bigendian+y}
  15377. then :
  15378. printf %s "(cached) " >&6
  15379. else $as_nop
  15380. ac_cv_c_bigendian=unknown
  15381. # See if we're dealing with a universal compiler.
  15382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15383. /* end confdefs.h. */
  15384. #ifndef __APPLE_CC__
  15385. not a universal capable compiler
  15386. #endif
  15387. typedef int dummy;
  15388. _ACEOF
  15389. if ac_fn_c_try_compile "$LINENO"
  15390. then :
  15391. # Check for potential -arch flags. It is not universal unless
  15392. # there are at least two -arch flags with different values.
  15393. ac_arch=
  15394. ac_prev=
  15395. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  15396. if test -n "$ac_prev"; then
  15397. case $ac_word in
  15398. i?86 | x86_64 | ppc | ppc64)
  15399. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  15400. ac_arch=$ac_word
  15401. else
  15402. ac_cv_c_bigendian=universal
  15403. break
  15404. fi
  15405. ;;
  15406. esac
  15407. ac_prev=
  15408. elif test "x$ac_word" = "x-arch"; then
  15409. ac_prev=arch
  15410. fi
  15411. done
  15412. fi
  15413. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15414. if test $ac_cv_c_bigendian = unknown; then
  15415. # See if sys/param.h defines the BYTE_ORDER macro.
  15416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15417. /* end confdefs.h. */
  15418. #include <sys/types.h>
  15419. #include <sys/param.h>
  15420. int
  15421. main (void)
  15422. {
  15423. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  15424. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  15425. && LITTLE_ENDIAN)
  15426. bogus endian macros
  15427. #endif
  15428. ;
  15429. return 0;
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_compile "$LINENO"
  15433. then :
  15434. # It does; now see whether it defined to BIG_ENDIAN or not.
  15435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15436. /* end confdefs.h. */
  15437. #include <sys/types.h>
  15438. #include <sys/param.h>
  15439. int
  15440. main (void)
  15441. {
  15442. #if BYTE_ORDER != BIG_ENDIAN
  15443. not big endian
  15444. #endif
  15445. ;
  15446. return 0;
  15447. }
  15448. _ACEOF
  15449. if ac_fn_c_try_compile "$LINENO"
  15450. then :
  15451. ac_cv_c_bigendian=yes
  15452. else $as_nop
  15453. ac_cv_c_bigendian=no
  15454. fi
  15455. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15456. fi
  15457. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15458. fi
  15459. if test $ac_cv_c_bigendian = unknown; then
  15460. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  15461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15462. /* end confdefs.h. */
  15463. #include <limits.h>
  15464. int
  15465. main (void)
  15466. {
  15467. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  15468. bogus endian macros
  15469. #endif
  15470. ;
  15471. return 0;
  15472. }
  15473. _ACEOF
  15474. if ac_fn_c_try_compile "$LINENO"
  15475. then :
  15476. # It does; now see whether it defined to _BIG_ENDIAN or not.
  15477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15478. /* end confdefs.h. */
  15479. #include <limits.h>
  15480. int
  15481. main (void)
  15482. {
  15483. #ifndef _BIG_ENDIAN
  15484. not big endian
  15485. #endif
  15486. ;
  15487. return 0;
  15488. }
  15489. _ACEOF
  15490. if ac_fn_c_try_compile "$LINENO"
  15491. then :
  15492. ac_cv_c_bigendian=yes
  15493. else $as_nop
  15494. ac_cv_c_bigendian=no
  15495. fi
  15496. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15497. fi
  15498. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15499. fi
  15500. if test $ac_cv_c_bigendian = unknown; then
  15501. # Compile a test program.
  15502. if test "$cross_compiling" = yes
  15503. then :
  15504. # Try to guess by grepping values from an object file.
  15505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15506. /* end confdefs.h. */
  15507. unsigned short int ascii_mm[] =
  15508. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15509. unsigned short int ascii_ii[] =
  15510. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15511. int use_ascii (int i) {
  15512. return ascii_mm[i] + ascii_ii[i];
  15513. }
  15514. unsigned short int ebcdic_ii[] =
  15515. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15516. unsigned short int ebcdic_mm[] =
  15517. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15518. int use_ebcdic (int i) {
  15519. return ebcdic_mm[i] + ebcdic_ii[i];
  15520. }
  15521. extern int foo;
  15522. int
  15523. main (void)
  15524. {
  15525. return use_ascii (foo) == use_ebcdic (foo);
  15526. ;
  15527. return 0;
  15528. }
  15529. _ACEOF
  15530. if ac_fn_c_try_compile "$LINENO"
  15531. then :
  15532. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15533. ac_cv_c_bigendian=yes
  15534. fi
  15535. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15536. if test "$ac_cv_c_bigendian" = unknown; then
  15537. ac_cv_c_bigendian=no
  15538. else
  15539. # finding both strings is unlikely to happen, but who knows?
  15540. ac_cv_c_bigendian=unknown
  15541. fi
  15542. fi
  15543. fi
  15544. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15545. else $as_nop
  15546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15547. /* end confdefs.h. */
  15548. $ac_includes_default
  15549. int
  15550. main (void)
  15551. {
  15552. /* Are we little or big endian? From Harbison&Steele. */
  15553. union
  15554. {
  15555. long int l;
  15556. char c[sizeof (long int)];
  15557. } u;
  15558. u.l = 1;
  15559. return u.c[sizeof (long int) - 1] == 1;
  15560. ;
  15561. return 0;
  15562. }
  15563. _ACEOF
  15564. if ac_fn_c_try_run "$LINENO"
  15565. then :
  15566. ac_cv_c_bigendian=no
  15567. else $as_nop
  15568. ac_cv_c_bigendian=yes
  15569. fi
  15570. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15571. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15572. fi
  15573. fi
  15574. fi
  15575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15576. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  15577. case $ac_cv_c_bigendian in #(
  15578. yes)
  15579. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  15580. ;; #(
  15581. no)
  15582. ;; #(
  15583. universal)
  15584. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  15585. ;; #(
  15586. *)
  15587. as_fn_error $? "unknown endianness
  15588. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  15589. esac
  15590. # Check for threadsafe variants of gmtime
  15591. # Note: check for gmtime_s is a bit more complex as it is implemented as a macro
  15592. for ac_func in gmtime_r
  15593. do :
  15594. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  15595. if test "x$ac_cv_func_gmtime_r" = xyes
  15596. then :
  15597. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  15598. else $as_nop
  15599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
  15600. printf %s "checking for gmtime_s... " >&6; }
  15601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15602. /* end confdefs.h. */
  15603. #include <time.h>
  15604. int
  15605. main (void)
  15606. {
  15607. time_t t;
  15608. struct tm m;
  15609. gmtime_s(&m, &t);
  15610. return 0;
  15611. ;
  15612. return 0;
  15613. }
  15614. _ACEOF
  15615. if ac_fn_c_try_link "$LINENO"
  15616. then :
  15617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15618. printf "%s\n" "yes" >&6; }
  15619. printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h
  15620. else $as_nop
  15621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15622. printf "%s\n" "no" >&6; }
  15623. fi
  15624. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15625. conftest$ac_exeext conftest.$ac_ext
  15626. fi
  15627. done
  15628. # Point to JPEG installed in DIR or disable JPEG with --without-jpeg.
  15629. # Check whether --with-jpeg was given.
  15630. if test ${with_jpeg+y}
  15631. then :
  15632. withval=$with_jpeg;
  15633. if test "x$withval" = "xno" ; then
  15634. with_jpeg='no'
  15635. else
  15636. if test "x$withval" != "xyes" ; then
  15637. with_jpeg=$withval
  15638. JPEG_DIR=$withval
  15639. CPPFLAGS="$CPPFLAGS -I$JPEG_DIR/include"
  15640. LDFLAGS="$LDFLAGS -L$JPEG_DIR/lib"
  15641. fi
  15642. with_jpeg='yes'
  15643. fi
  15644. else $as_nop
  15645. with_jpeg='yes'
  15646. fi
  15647. # Point to TIFF installed in DIR or disable TIFF with --without-tiff.
  15648. # Check whether --with-tiff was given.
  15649. if test ${with_tiff+y}
  15650. then :
  15651. withval=$with_tiff;
  15652. if test "x$withval" = "xno" ; then
  15653. with_tiff='no'
  15654. else
  15655. if test "x$withval" != "xyes" ; then
  15656. with_tiff=$withval
  15657. TIFF_DIR=$withval
  15658. CPPFLAGS="$CPPFLAGS -I$TIFF_DIR/include"
  15659. LDFLAGS="$LDFLAGS -L$TIFF_DIR/lib"
  15660. fi
  15661. with_tiff='yes'
  15662. fi
  15663. else $as_nop
  15664. with_tiff='yes'
  15665. fi
  15666. # Disable ZLIB
  15667. # Check whether --with-zlib was given.
  15668. if test ${with_zlib+y}
  15669. then :
  15670. withval=$with_zlib; with_zlib=$withval
  15671. else $as_nop
  15672. with_zlib='yes'
  15673. fi
  15674. #fast_float plugin:
  15675. # Check whether --with-fastfloat was given.
  15676. if test ${with_fastfloat+y}
  15677. then :
  15678. withval=$with_fastfloat;
  15679. with_fastfloat=$withval
  15680. else $as_nop
  15681. with_fastfloat='no'
  15682. fi
  15683. if test "x$with_fastfloat" = "xyes"
  15684. then
  15685. LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float"
  15686. fi
  15687. #multi threaded plugin:
  15688. # Check whether --with-threaded was given.
  15689. if test ${with_threaded+y}
  15690. then :
  15691. withval=$with_threaded;
  15692. with_threaded=$withval
  15693. else $as_nop
  15694. with_threaded='no'
  15695. fi
  15696. if test "x$with_threaded" = "xyes"
  15697. then
  15698. LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded"
  15699. fi
  15700. #
  15701. # Determine POSIX threads settings
  15702. #
  15703. # Enable support for POSIX thread APIs
  15704. # Check whether --with-threads was given.
  15705. if test ${with_threads+y}
  15706. then :
  15707. withval=$with_threads; with_threads=$withval
  15708. else $as_nop
  15709. with_threads='yes'
  15710. fi
  15711. have_threads=no
  15712. if test "$with_threads" != 'no'
  15713. then
  15714. ac_ext=c
  15715. ac_cpp='$CPP $CPPFLAGS'
  15716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15719. ax_pthread_ok=no
  15720. # We used to check for pthread.h first, but this fails if pthread.h
  15721. # requires special compiler flags (e.g. on Tru64 or Sequent).
  15722. # It gets checked for in the link test anyway.
  15723. # First of all, check if the user has set any of the PTHREAD_LIBS,
  15724. # etcetera environment variables, and if threads linking works using
  15725. # them:
  15726. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  15727. ax_pthread_save_CC="$CC"
  15728. ax_pthread_save_CFLAGS="$CFLAGS"
  15729. ax_pthread_save_LIBS="$LIBS"
  15730. if test "x$PTHREAD_CC" != "x"
  15731. then :
  15732. CC="$PTHREAD_CC"
  15733. fi
  15734. if test "x$PTHREAD_CXX" != "x"
  15735. then :
  15736. CXX="$PTHREAD_CXX"
  15737. fi
  15738. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15739. LIBS="$PTHREAD_LIBS $LIBS"
  15740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  15741. printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  15742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15743. /* end confdefs.h. */
  15744. /* Override any GCC internal prototype to avoid an error.
  15745. Use char because int might match the return type of a GCC
  15746. builtin and then its argument prototype would still apply. */
  15747. char pthread_join ();
  15748. int
  15749. main (void)
  15750. {
  15751. return pthread_join ();
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. if ac_fn_c_try_link "$LINENO"
  15757. then :
  15758. ax_pthread_ok=yes
  15759. fi
  15760. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15761. conftest$ac_exeext conftest.$ac_ext
  15762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  15763. printf "%s\n" "$ax_pthread_ok" >&6; }
  15764. if test "x$ax_pthread_ok" = "xno"; then
  15765. PTHREAD_LIBS=""
  15766. PTHREAD_CFLAGS=""
  15767. fi
  15768. CC="$ax_pthread_save_CC"
  15769. CFLAGS="$ax_pthread_save_CFLAGS"
  15770. LIBS="$ax_pthread_save_LIBS"
  15771. fi
  15772. # We must check for the threads library under a number of different
  15773. # names; the ordering is very important because some systems
  15774. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  15775. # libraries is broken (non-POSIX).
  15776. # Create a list of thread flags to try. Items with a "," contain both
  15777. # C compiler flags (before ",") and linker flags (after ","). Other items
  15778. # starting with a "-" are C compiler flags, and remaining items are
  15779. # library names, except for "none" which indicates that we try without
  15780. # any flags at all, and "pthread-config" which is a program returning
  15781. # the flags for the Pth emulation library.
  15782. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  15783. # The ordering *is* (sometimes) important. Some notes on the
  15784. # individual items follow:
  15785. # pthreads: AIX (must check this before -lpthread)
  15786. # none: in case threads are in libc; should be tried before -Kthread and
  15787. # other compiler flags to prevent continual compiler warnings
  15788. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  15789. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  15790. # (Note: HP C rejects this with "bad form for `-t' option")
  15791. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  15792. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  15793. # doesn't hurt to check since this sometimes defines pthreads and
  15794. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  15795. # is present but should not be used directly; and before -mthreads,
  15796. # because the compiler interprets this as "-mt" + "-hreads")
  15797. # -mthreads: Mingw32/gcc, Lynx/gcc
  15798. # pthread: Linux, etcetera
  15799. # --thread-safe: KAI C++
  15800. # pthread-config: use pthread-config program (for GNU Pth library)
  15801. case $host_os in
  15802. freebsd*)
  15803. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  15804. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  15805. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  15806. ;;
  15807. hpux*)
  15808. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  15809. # multi-threading and also sets -lpthread."
  15810. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  15811. ;;
  15812. openedition*)
  15813. # IBM z/OS requires a feature-test macro to be defined in order to
  15814. # enable POSIX threads at all, so give the user a hint if this is
  15815. # not set. (We don't define these ourselves, as they can affect
  15816. # other portions of the system API in unpredictable ways.)
  15817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15818. /* end confdefs.h. */
  15819. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  15820. AX_PTHREAD_ZOS_MISSING
  15821. # endif
  15822. _ACEOF
  15823. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15824. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
  15825. then :
  15826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  15827. printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  15828. fi
  15829. rm -rf conftest*
  15830. ;;
  15831. solaris*)
  15832. # On Solaris (at least, for some versions), libc contains stubbed
  15833. # (non-functional) versions of the pthreads routines, so link-based
  15834. # tests will erroneously succeed. (N.B.: The stubs are missing
  15835. # pthread_cleanup_push, or rather a function called by this macro,
  15836. # so we could check for that, but who knows whether they'll stub
  15837. # that too in a future libc.) So we'll check first for the
  15838. # standard Solaris way of linking pthreads (-mt -lpthread).
  15839. ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
  15840. ;;
  15841. esac
  15842. # Are we compiling with Clang?
  15843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  15844. printf %s "checking whether $CC is Clang... " >&6; }
  15845. if test ${ax_cv_PTHREAD_CLANG+y}
  15846. then :
  15847. printf %s "(cached) " >&6
  15848. else $as_nop
  15849. ax_cv_PTHREAD_CLANG=no
  15850. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  15851. if test "x$GCC" = "xyes"; then
  15852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15853. /* end confdefs.h. */
  15854. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  15855. # if defined(__clang__) && defined(__llvm__)
  15856. AX_PTHREAD_CC_IS_CLANG
  15857. # endif
  15858. _ACEOF
  15859. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15860. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
  15861. then :
  15862. ax_cv_PTHREAD_CLANG=yes
  15863. fi
  15864. rm -rf conftest*
  15865. fi
  15866. fi
  15867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  15868. printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
  15869. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  15870. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  15871. # Note that for GCC and Clang -pthread generally implies -lpthread,
  15872. # except when -nostdlib is passed.
  15873. # This is problematic using libtool to build C++ shared libraries with pthread:
  15874. # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
  15875. # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
  15876. # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
  15877. # To solve this, first try -pthread together with -lpthread for GCC
  15878. if test "x$GCC" = "xyes"
  15879. then :
  15880. ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
  15881. fi
  15882. # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
  15883. if test "x$ax_pthread_clang" = "xyes"
  15884. then :
  15885. ax_pthread_flags="-pthread,-lpthread -pthread"
  15886. fi
  15887. # The presence of a feature test macro requesting re-entrant function
  15888. # definitions is, on some systems, a strong hint that pthreads support is
  15889. # correctly enabled
  15890. case $host_os in
  15891. darwin* | hpux* | linux* | osf* | solaris*)
  15892. ax_pthread_check_macro="_REENTRANT"
  15893. ;;
  15894. aix*)
  15895. ax_pthread_check_macro="_THREAD_SAFE"
  15896. ;;
  15897. *)
  15898. ax_pthread_check_macro="--"
  15899. ;;
  15900. esac
  15901. if test "x$ax_pthread_check_macro" = "x--"
  15902. then :
  15903. ax_pthread_check_cond=0
  15904. else $as_nop
  15905. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  15906. fi
  15907. if test "x$ax_pthread_ok" = "xno"; then
  15908. for ax_pthread_try_flag in $ax_pthread_flags; do
  15909. case $ax_pthread_try_flag in
  15910. none)
  15911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  15912. printf %s "checking whether pthreads work without any flags... " >&6; }
  15913. ;;
  15914. *,*)
  15915. PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
  15916. PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
  15917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
  15918. printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
  15919. ;;
  15920. -*)
  15921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  15922. printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  15923. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  15924. ;;
  15925. pthread-config)
  15926. # Extract the first word of "pthread-config", so it can be a program name with args.
  15927. set dummy pthread-config; ac_word=$2
  15928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15929. printf %s "checking for $ac_word... " >&6; }
  15930. if test ${ac_cv_prog_ax_pthread_config+y}
  15931. then :
  15932. printf %s "(cached) " >&6
  15933. else $as_nop
  15934. if test -n "$ax_pthread_config"; then
  15935. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  15936. else
  15937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15938. for as_dir in $PATH
  15939. do
  15940. IFS=$as_save_IFS
  15941. case $as_dir in #(((
  15942. '') as_dir=./ ;;
  15943. */) ;;
  15944. *) as_dir=$as_dir/ ;;
  15945. esac
  15946. for ac_exec_ext in '' $ac_executable_extensions; do
  15947. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15948. ac_cv_prog_ax_pthread_config="yes"
  15949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15950. break 2
  15951. fi
  15952. done
  15953. done
  15954. IFS=$as_save_IFS
  15955. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  15956. fi
  15957. fi
  15958. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  15959. if test -n "$ax_pthread_config"; then
  15960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  15961. printf "%s\n" "$ax_pthread_config" >&6; }
  15962. else
  15963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15964. printf "%s\n" "no" >&6; }
  15965. fi
  15966. if test "x$ax_pthread_config" = "xno"
  15967. then :
  15968. continue
  15969. fi
  15970. PTHREAD_CFLAGS="`pthread-config --cflags`"
  15971. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  15972. ;;
  15973. *)
  15974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  15975. printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  15976. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  15977. ;;
  15978. esac
  15979. ax_pthread_save_CFLAGS="$CFLAGS"
  15980. ax_pthread_save_LIBS="$LIBS"
  15981. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15982. LIBS="$PTHREAD_LIBS $LIBS"
  15983. # Check for various functions. We must include pthread.h,
  15984. # since some functions may be macros. (On the Sequent, we
  15985. # need a special flag -Kthread to make this header compile.)
  15986. # We check for pthread_join because it is in -lpthread on IRIX
  15987. # while pthread_create is in libc. We check for pthread_attr_init
  15988. # due to DEC craziness with -lpthreads. We check for
  15989. # pthread_cleanup_push because it is one of the few pthread
  15990. # functions on Solaris that doesn't have a non-functional libc stub.
  15991. # We try pthread_create on general principles.
  15992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15993. /* end confdefs.h. */
  15994. #include <pthread.h>
  15995. # if $ax_pthread_check_cond
  15996. # error "$ax_pthread_check_macro must be defined"
  15997. # endif
  15998. static void *some_global = NULL;
  15999. static void routine(void *a)
  16000. {
  16001. /* To avoid any unused-parameter or
  16002. unused-but-set-parameter warning. */
  16003. some_global = a;
  16004. }
  16005. static void *start_routine(void *a) { return a; }
  16006. int
  16007. main (void)
  16008. {
  16009. pthread_t th; pthread_attr_t attr;
  16010. pthread_create(&th, 0, start_routine, 0);
  16011. pthread_join(th, 0);
  16012. pthread_attr_init(&attr);
  16013. pthread_cleanup_push(routine, 0);
  16014. pthread_cleanup_pop(0) /* ; */
  16015. ;
  16016. return 0;
  16017. }
  16018. _ACEOF
  16019. if ac_fn_c_try_link "$LINENO"
  16020. then :
  16021. ax_pthread_ok=yes
  16022. fi
  16023. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16024. conftest$ac_exeext conftest.$ac_ext
  16025. CFLAGS="$ax_pthread_save_CFLAGS"
  16026. LIBS="$ax_pthread_save_LIBS"
  16027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  16028. printf "%s\n" "$ax_pthread_ok" >&6; }
  16029. if test "x$ax_pthread_ok" = "xyes"
  16030. then :
  16031. break
  16032. fi
  16033. PTHREAD_LIBS=""
  16034. PTHREAD_CFLAGS=""
  16035. done
  16036. fi
  16037. # Clang needs special handling, because older versions handle the -pthread
  16038. # option in a rather... idiosyncratic way
  16039. if test "x$ax_pthread_clang" = "xyes"; then
  16040. # Clang takes -pthread; it has never supported any other flag
  16041. # (Note 1: This will need to be revisited if a system that Clang
  16042. # supports has POSIX threads in a separate library. This tends not
  16043. # to be the way of modern systems, but it's conceivable.)
  16044. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  16045. # to get POSIX threads support; the API is always present and
  16046. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  16047. # -pthread does define _REENTRANT, and while the Darwin headers
  16048. # ignore this macro, third-party headers might not.)
  16049. # However, older versions of Clang make a point of warning the user
  16050. # that, in an invocation where only linking and no compilation is
  16051. # taking place, the -pthread option has no effect ("argument unused
  16052. # during compilation"). They expect -pthread to be passed in only
  16053. # when source code is being compiled.
  16054. #
  16055. # Problem is, this is at odds with the way Automake and most other
  16056. # C build frameworks function, which is that the same flags used in
  16057. # compilation (CFLAGS) are also used in linking. Many systems
  16058. # supported by AX_PTHREAD require exactly this for POSIX threads
  16059. # support, and in fact it is often not straightforward to specify a
  16060. # flag that is used only in the compilation phase and not in
  16061. # linking. Such a scenario is extremely rare in practice.
  16062. #
  16063. # Even though use of the -pthread flag in linking would only print
  16064. # a warning, this can be a nuisance for well-run software projects
  16065. # that build with -Werror. So if the active version of Clang has
  16066. # this misfeature, we search for an option to squash it.
  16067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  16068. printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  16069. if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
  16070. then :
  16071. printf %s "(cached) " >&6
  16072. else $as_nop
  16073. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  16074. # Create an alternate version of $ac_link that compiles and
  16075. # links in two steps (.c -> .o, .o -> exe) instead of one
  16076. # (.c -> exe), because the warning occurs only in the second
  16077. # step
  16078. ax_pthread_save_ac_link="$ac_link"
  16079. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  16080. ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
  16081. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  16082. ax_pthread_save_CFLAGS="$CFLAGS"
  16083. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  16084. if test "x$ax_pthread_try" = "xunknown"
  16085. then :
  16086. break
  16087. fi
  16088. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  16089. ac_link="$ax_pthread_save_ac_link"
  16090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16091. /* end confdefs.h. */
  16092. int main(void){return 0;}
  16093. _ACEOF
  16094. if ac_fn_c_try_link "$LINENO"
  16095. then :
  16096. ac_link="$ax_pthread_2step_ac_link"
  16097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16098. /* end confdefs.h. */
  16099. int main(void){return 0;}
  16100. _ACEOF
  16101. if ac_fn_c_try_link "$LINENO"
  16102. then :
  16103. break
  16104. fi
  16105. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16106. conftest$ac_exeext conftest.$ac_ext
  16107. fi
  16108. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16109. conftest$ac_exeext conftest.$ac_ext
  16110. done
  16111. ac_link="$ax_pthread_save_ac_link"
  16112. CFLAGS="$ax_pthread_save_CFLAGS"
  16113. if test "x$ax_pthread_try" = "x"
  16114. then :
  16115. ax_pthread_try=no
  16116. fi
  16117. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  16118. fi
  16119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  16120. printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  16121. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  16122. no | unknown) ;;
  16123. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  16124. esac
  16125. fi # $ax_pthread_clang = yes
  16126. # Various other checks:
  16127. if test "x$ax_pthread_ok" = "xyes"; then
  16128. ax_pthread_save_CFLAGS="$CFLAGS"
  16129. ax_pthread_save_LIBS="$LIBS"
  16130. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16131. LIBS="$PTHREAD_LIBS $LIBS"
  16132. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  16133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  16134. printf %s "checking for joinable pthread attribute... " >&6; }
  16135. if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
  16136. then :
  16137. printf %s "(cached) " >&6
  16138. else $as_nop
  16139. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  16140. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  16141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16142. /* end confdefs.h. */
  16143. #include <pthread.h>
  16144. int
  16145. main (void)
  16146. {
  16147. int attr = $ax_pthread_attr; return attr /* ; */
  16148. ;
  16149. return 0;
  16150. }
  16151. _ACEOF
  16152. if ac_fn_c_try_link "$LINENO"
  16153. then :
  16154. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  16155. fi
  16156. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16157. conftest$ac_exeext conftest.$ac_ext
  16158. done
  16159. fi
  16160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  16161. printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  16162. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  16163. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  16164. test "x$ax_pthread_joinable_attr_defined" != "xyes"
  16165. then :
  16166. printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
  16167. ax_pthread_joinable_attr_defined=yes
  16168. fi
  16169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  16170. printf %s "checking whether more special flags are required for pthreads... " >&6; }
  16171. if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
  16172. then :
  16173. printf %s "(cached) " >&6
  16174. else $as_nop
  16175. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  16176. case $host_os in
  16177. solaris*)
  16178. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  16179. ;;
  16180. esac
  16181. fi
  16182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  16183. printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  16184. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  16185. test "x$ax_pthread_special_flags_added" != "xyes"
  16186. then :
  16187. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  16188. ax_pthread_special_flags_added=yes
  16189. fi
  16190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  16191. printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  16192. if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
  16193. then :
  16194. printf %s "(cached) " >&6
  16195. else $as_nop
  16196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16197. /* end confdefs.h. */
  16198. #include <pthread.h>
  16199. int
  16200. main (void)
  16201. {
  16202. int i = PTHREAD_PRIO_INHERIT;
  16203. return i;
  16204. ;
  16205. return 0;
  16206. }
  16207. _ACEOF
  16208. if ac_fn_c_try_link "$LINENO"
  16209. then :
  16210. ax_cv_PTHREAD_PRIO_INHERIT=yes
  16211. else $as_nop
  16212. ax_cv_PTHREAD_PRIO_INHERIT=no
  16213. fi
  16214. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16215. conftest$ac_exeext conftest.$ac_ext
  16216. fi
  16217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  16218. printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  16219. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  16220. test "x$ax_pthread_prio_inherit_defined" != "xyes"
  16221. then :
  16222. printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  16223. ax_pthread_prio_inherit_defined=yes
  16224. fi
  16225. CFLAGS="$ax_pthread_save_CFLAGS"
  16226. LIBS="$ax_pthread_save_LIBS"
  16227. # More AIX lossage: compile with *_r variant
  16228. if test "x$GCC" != "xyes"; then
  16229. case $host_os in
  16230. aix*)
  16231. case "x/$CC" in #(
  16232. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  16233. #handle absolute path differently from PATH based program lookup
  16234. case "x$CC" in #(
  16235. x/*) :
  16236. if as_fn_executable_p ${CC}_r
  16237. then :
  16238. PTHREAD_CC="${CC}_r"
  16239. fi
  16240. if test "x${CXX}" != "x"
  16241. then :
  16242. if as_fn_executable_p ${CXX}_r
  16243. then :
  16244. PTHREAD_CXX="${CXX}_r"
  16245. fi
  16246. fi
  16247. ;; #(
  16248. *) :
  16249. for ac_prog in ${CC}_r
  16250. do
  16251. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16252. set dummy $ac_prog; ac_word=$2
  16253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16254. printf %s "checking for $ac_word... " >&6; }
  16255. if test ${ac_cv_prog_PTHREAD_CC+y}
  16256. then :
  16257. printf %s "(cached) " >&6
  16258. else $as_nop
  16259. if test -n "$PTHREAD_CC"; then
  16260. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  16261. else
  16262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16263. for as_dir in $PATH
  16264. do
  16265. IFS=$as_save_IFS
  16266. case $as_dir in #(((
  16267. '') as_dir=./ ;;
  16268. */) ;;
  16269. *) as_dir=$as_dir/ ;;
  16270. esac
  16271. for ac_exec_ext in '' $ac_executable_extensions; do
  16272. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16273. ac_cv_prog_PTHREAD_CC="$ac_prog"
  16274. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16275. break 2
  16276. fi
  16277. done
  16278. done
  16279. IFS=$as_save_IFS
  16280. fi
  16281. fi
  16282. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  16283. if test -n "$PTHREAD_CC"; then
  16284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  16285. printf "%s\n" "$PTHREAD_CC" >&6; }
  16286. else
  16287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16288. printf "%s\n" "no" >&6; }
  16289. fi
  16290. test -n "$PTHREAD_CC" && break
  16291. done
  16292. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  16293. if test "x${CXX}" != "x"
  16294. then :
  16295. for ac_prog in ${CXX}_r
  16296. do
  16297. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16298. set dummy $ac_prog; ac_word=$2
  16299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16300. printf %s "checking for $ac_word... " >&6; }
  16301. if test ${ac_cv_prog_PTHREAD_CXX+y}
  16302. then :
  16303. printf %s "(cached) " >&6
  16304. else $as_nop
  16305. if test -n "$PTHREAD_CXX"; then
  16306. ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
  16307. else
  16308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16309. for as_dir in $PATH
  16310. do
  16311. IFS=$as_save_IFS
  16312. case $as_dir in #(((
  16313. '') as_dir=./ ;;
  16314. */) ;;
  16315. *) as_dir=$as_dir/ ;;
  16316. esac
  16317. for ac_exec_ext in '' $ac_executable_extensions; do
  16318. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16319. ac_cv_prog_PTHREAD_CXX="$ac_prog"
  16320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16321. break 2
  16322. fi
  16323. done
  16324. done
  16325. IFS=$as_save_IFS
  16326. fi
  16327. fi
  16328. PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
  16329. if test -n "$PTHREAD_CXX"; then
  16330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
  16331. printf "%s\n" "$PTHREAD_CXX" >&6; }
  16332. else
  16333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16334. printf "%s\n" "no" >&6; }
  16335. fi
  16336. test -n "$PTHREAD_CXX" && break
  16337. done
  16338. test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
  16339. fi
  16340. ;;
  16341. esac
  16342. ;; #(
  16343. *) :
  16344. ;;
  16345. esac
  16346. ;;
  16347. esac
  16348. fi
  16349. fi
  16350. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  16351. test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
  16352. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  16353. if test "x$ax_pthread_ok" = "xyes"; then
  16354. printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
  16355. :
  16356. else
  16357. ax_pthread_ok=no
  16358. fi
  16359. ac_ext=c
  16360. ac_cpp='$CPP $CPPFLAGS'
  16361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16364. if test "$ax_pthread_ok" = yes
  16365. then
  16366. have_threads=yes
  16367. DEF_THREAD="$PTHREAD_CFLAGS"
  16368. CFLAGS="$CFLAGS $DEF_THREAD"
  16369. CXXFLAGS="$CXXFLAGS $DEF_THREAD"
  16370. if test "$CC" != "$PTHREAD_CC"
  16371. then
  16372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
  16373. printf "%s\n" "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
  16374. CC="$PTHREAD_CC"
  16375. fi
  16376. if test "$CXX" != "$PTHREAD_CXX"
  16377. then
  16378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
  16379. printf "%s\n" "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
  16380. CXX="$PTHREAD_CXX"
  16381. fi
  16382. fi
  16383. fi
  16384. # check if compiler supports SSE2 intrinsics
  16385. ac_ext=c
  16386. ac_cpp='$CPP $CPPFLAGS'
  16387. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16388. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16389. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports SSE2" >&5
  16391. printf %s "checking whether compiler supports SSE2... " >&6; }
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. #include <emmintrin.h>
  16395. int main() { __m128i n = _mm_set1_epi8(42); }
  16396. _ACEOF
  16397. if ac_fn_c_try_compile "$LINENO"
  16398. then :
  16399. ac_compiler_supports_sse2=yes
  16400. else $as_nop
  16401. ac_compiler_supports_sse2=no
  16402. fi
  16403. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_compiler_supports_sse2" >&5
  16405. printf "%s\n" "$ac_compiler_supports_sse2" >&6; }
  16406. if test "x$ac_compiler_supports_sse2" != "xyes"
  16407. then :
  16408. printf "%s\n" "#define CMS_DONT_USE_SSE2 1" >>confdefs.h
  16409. fi
  16410. ac_ext=c
  16411. ac_cpp='$CPP $CPPFLAGS'
  16412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16415. #
  16416. # Find math library
  16417. #
  16418. LIB_MATH=''
  16419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  16420. printf %s "checking for sqrt in -lm... " >&6; }
  16421. if test ${ac_cv_lib_m_sqrt+y}
  16422. then :
  16423. printf %s "(cached) " >&6
  16424. else $as_nop
  16425. ac_check_lib_save_LIBS=$LIBS
  16426. LIBS="-lm $LIBS"
  16427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16428. /* end confdefs.h. */
  16429. /* Override any GCC internal prototype to avoid an error.
  16430. Use char because int might match the return type of a GCC
  16431. builtin and then its argument prototype would still apply. */
  16432. char sqrt ();
  16433. int
  16434. main (void)
  16435. {
  16436. return sqrt ();
  16437. ;
  16438. return 0;
  16439. }
  16440. _ACEOF
  16441. if ac_fn_c_try_link "$LINENO"
  16442. then :
  16443. ac_cv_lib_m_sqrt=yes
  16444. else $as_nop
  16445. ac_cv_lib_m_sqrt=no
  16446. fi
  16447. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16448. conftest$ac_exeext conftest.$ac_ext
  16449. LIBS=$ac_check_lib_save_LIBS
  16450. fi
  16451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  16452. printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
  16453. if test "x$ac_cv_lib_m_sqrt" = xyes
  16454. then :
  16455. LIB_MATH="-lm"
  16456. fi
  16457. LIBS="$LIB_MATH $LIBS"
  16458. #
  16459. # Find Posix threads library
  16460. #
  16461. LIB_THREAD=''
  16462. if test "$with_threads" != 'no' && test "$have_threads" = 'yes'
  16463. then
  16464. for lib in pthread pthreads
  16465. do
  16466. if test "x$PTHREAD_LIBS" = "x" ; then
  16467. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_pthread_mutex_lock" | $as_tr_sh`
  16468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -l$lib" >&5
  16469. printf %s "checking for pthread_mutex_lock in -l$lib... " >&6; }
  16470. if eval test \${$as_ac_Lib+y}
  16471. then :
  16472. printf %s "(cached) " >&6
  16473. else $as_nop
  16474. ac_check_lib_save_LIBS=$LIBS
  16475. LIBS="-l$lib $LIBS"
  16476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16477. /* end confdefs.h. */
  16478. /* Override any GCC internal prototype to avoid an error.
  16479. Use char because int might match the return type of a GCC
  16480. builtin and then its argument prototype would still apply. */
  16481. char pthread_mutex_lock ();
  16482. int
  16483. main (void)
  16484. {
  16485. return pthread_mutex_lock ();
  16486. ;
  16487. return 0;
  16488. }
  16489. _ACEOF
  16490. if ac_fn_c_try_link "$LINENO"
  16491. then :
  16492. eval "$as_ac_Lib=yes"
  16493. else $as_nop
  16494. eval "$as_ac_Lib=no"
  16495. fi
  16496. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16497. conftest$ac_exeext conftest.$ac_ext
  16498. LIBS=$ac_check_lib_save_LIBS
  16499. fi
  16500. eval ac_res=\$$as_ac_Lib
  16501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16502. printf "%s\n" "$ac_res" >&6; }
  16503. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  16504. then :
  16505. PTHREAD_LIBS=-l$lib
  16506. fi
  16507. fi
  16508. done
  16509. LIB_THREAD="$PTHREAD_LIBS"
  16510. LIBS="$LIBS $LIB_THREAD"
  16511. printf "%s\n" "#define HasTHREADS 1" >>confdefs.h
  16512. else
  16513. printf "%s\n" "#define HasTHREADS 0" >>confdefs.h
  16514. fi
  16515. #
  16516. # Check for JPEG
  16517. #
  16518. have_jpeg='no'
  16519. LIB_JPEG=''
  16520. if test ! "$with_jpeg" = 'no'
  16521. then
  16522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG support" >&5
  16523. printf %s "checking for JPEG support... " >&6; }
  16524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  16525. printf "%s\n" "" >&6; }
  16526. failed=0;
  16527. passed=0;
  16528. ac_fn_c_check_header_compile "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
  16529. if test "x$ac_cv_header_jconfig_h" = xyes
  16530. then :
  16531. passed=`expr $passed + 1`
  16532. else $as_nop
  16533. failed=`expr $failed + 1`
  16534. fi
  16535. ac_fn_c_check_header_compile "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
  16536. if test "x$ac_cv_header_jerror_h" = xyes
  16537. then :
  16538. passed=`expr $passed + 1`
  16539. else $as_nop
  16540. failed=`expr $failed + 1`
  16541. fi
  16542. ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "#include <jconfig.h>
  16543. "
  16544. if test "x$ac_cv_header_jmorecfg_h" = xyes
  16545. then :
  16546. passed=`expr $passed + 1`
  16547. else $as_nop
  16548. failed=`expr $failed + 1`
  16549. fi
  16550. ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  16551. if test "x$ac_cv_header_jpeglib_h" = xyes
  16552. then :
  16553. passed=`expr $passed + 1`
  16554. else $as_nop
  16555. failed=`expr $failed + 1`
  16556. fi
  16557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
  16558. printf %s "checking for jpeg_read_header in -ljpeg... " >&6; }
  16559. if test ${ac_cv_lib_jpeg_jpeg_read_header+y}
  16560. then :
  16561. printf %s "(cached) " >&6
  16562. else $as_nop
  16563. ac_check_lib_save_LIBS=$LIBS
  16564. LIBS="-ljpeg $LIBS"
  16565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16566. /* end confdefs.h. */
  16567. /* Override any GCC internal prototype to avoid an error.
  16568. Use char because int might match the return type of a GCC
  16569. builtin and then its argument prototype would still apply. */
  16570. char jpeg_read_header ();
  16571. int
  16572. main (void)
  16573. {
  16574. return jpeg_read_header ();
  16575. ;
  16576. return 0;
  16577. }
  16578. _ACEOF
  16579. if ac_fn_c_try_link "$LINENO"
  16580. then :
  16581. ac_cv_lib_jpeg_jpeg_read_header=yes
  16582. else $as_nop
  16583. ac_cv_lib_jpeg_jpeg_read_header=no
  16584. fi
  16585. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16586. conftest$ac_exeext conftest.$ac_ext
  16587. LIBS=$ac_check_lib_save_LIBS
  16588. fi
  16589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
  16590. printf "%s\n" "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
  16591. if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes
  16592. then :
  16593. passed=`expr $passed + 1`
  16594. else $as_nop
  16595. failed=`expr $failed + 1`
  16596. fi
  16597. # Test for compatible JPEG library
  16598. if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
  16599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
  16600. printf %s "checking for JPEG library is version 6b or later... " >&6; }
  16601. if test ${ac_cv_jpeg_version_ok+y}
  16602. then :
  16603. printf %s "(cached) " >&6
  16604. else $as_nop
  16605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16606. /* end confdefs.h. */
  16607. #include <stdio.h>
  16608. #include <stdlib.h>
  16609. #include <jpeglib.h>
  16610. int
  16611. main (void)
  16612. {
  16613. #if JPEG_LIB_VERSION < 62
  16614. #error IJG JPEG library must be version 6b or newer!
  16615. #endif
  16616. return 0;
  16617. ;
  16618. return 0;
  16619. }
  16620. _ACEOF
  16621. if ac_fn_c_try_compile "$LINENO"
  16622. then :
  16623. ac_cv_jpeg_version_ok='yes'
  16624. else $as_nop
  16625. ac_cv_jpeg_version_ok='no'
  16626. fi
  16627. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16628. fi
  16629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
  16630. printf "%s\n" "$ac_cv_jpeg_version_ok" >&6; }
  16631. if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
  16632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16633. printf "%s\n" "yes" >&6; }
  16634. passed=`expr $passed + 1`
  16635. else
  16636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16637. printf "%s\n" "no" >&6; }
  16638. failed=`expr $failed + 1`
  16639. fi
  16640. fi
  16641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
  16642. printf %s "checking if JPEG package is complete... " >&6; }
  16643. if test $passed -gt 0
  16644. then
  16645. if test $failed -gt 0
  16646. then
  16647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  16648. printf "%s\n" "no -- some components failed test" >&6; }
  16649. have_jpeg='no (failed tests)'
  16650. else
  16651. LIB_JPEG='-ljpeg'
  16652. LIBS="$LIB_JPEG $LIBS"
  16653. printf "%s\n" "#define HasJPEG 1" >>confdefs.h
  16654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16655. printf "%s\n" "yes" >&6; }
  16656. have_jpeg='yes'
  16657. fi
  16658. else
  16659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16660. printf "%s\n" "no" >&6; }
  16661. fi
  16662. fi
  16663. if test "$have_jpeg" = 'yes'; then
  16664. HasJPEG_TRUE=
  16665. HasJPEG_FALSE='#'
  16666. else
  16667. HasJPEG_TRUE='#'
  16668. HasJPEG_FALSE=
  16669. fi
  16670. #
  16671. # Check for ZLIB
  16672. #
  16673. have_zlib='no'
  16674. if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no'
  16675. then
  16676. LIB_ZLIB=''
  16677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
  16678. printf %s "checking for ZLIB support ... " >&6; }
  16679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  16680. printf "%s\n" "" >&6; }
  16681. failed=0;
  16682. passed=0;
  16683. ac_fn_c_check_header_compile "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
  16684. if test "x$ac_cv_header_zconf_h" = xyes
  16685. then :
  16686. passed=`expr $passed + 1`
  16687. else $as_nop
  16688. failed=`expr $failed + 1`
  16689. fi
  16690. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  16691. if test "x$ac_cv_header_zlib_h" = xyes
  16692. then :
  16693. passed=`expr $passed + 1`
  16694. else $as_nop
  16695. failed=`expr $failed + 1`
  16696. fi
  16697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  16698. printf %s "checking for compress in -lz... " >&6; }
  16699. if test ${ac_cv_lib_z_compress+y}
  16700. then :
  16701. printf %s "(cached) " >&6
  16702. else $as_nop
  16703. ac_check_lib_save_LIBS=$LIBS
  16704. LIBS="-lz $LIBS"
  16705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16706. /* end confdefs.h. */
  16707. /* Override any GCC internal prototype to avoid an error.
  16708. Use char because int might match the return type of a GCC
  16709. builtin and then its argument prototype would still apply. */
  16710. char compress ();
  16711. int
  16712. main (void)
  16713. {
  16714. return compress ();
  16715. ;
  16716. return 0;
  16717. }
  16718. _ACEOF
  16719. if ac_fn_c_try_link "$LINENO"
  16720. then :
  16721. ac_cv_lib_z_compress=yes
  16722. else $as_nop
  16723. ac_cv_lib_z_compress=no
  16724. fi
  16725. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16726. conftest$ac_exeext conftest.$ac_ext
  16727. LIBS=$ac_check_lib_save_LIBS
  16728. fi
  16729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  16730. printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
  16731. if test "x$ac_cv_lib_z_compress" = xyes
  16732. then :
  16733. passed=`expr $passed + 1`
  16734. else $as_nop
  16735. failed=`expr $failed + 1`
  16736. fi
  16737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
  16738. printf %s "checking for uncompress in -lz... " >&6; }
  16739. if test ${ac_cv_lib_z_uncompress+y}
  16740. then :
  16741. printf %s "(cached) " >&6
  16742. else $as_nop
  16743. ac_check_lib_save_LIBS=$LIBS
  16744. LIBS="-lz $LIBS"
  16745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16746. /* end confdefs.h. */
  16747. /* Override any GCC internal prototype to avoid an error.
  16748. Use char because int might match the return type of a GCC
  16749. builtin and then its argument prototype would still apply. */
  16750. char uncompress ();
  16751. int
  16752. main (void)
  16753. {
  16754. return uncompress ();
  16755. ;
  16756. return 0;
  16757. }
  16758. _ACEOF
  16759. if ac_fn_c_try_link "$LINENO"
  16760. then :
  16761. ac_cv_lib_z_uncompress=yes
  16762. else $as_nop
  16763. ac_cv_lib_z_uncompress=no
  16764. fi
  16765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16766. conftest$ac_exeext conftest.$ac_ext
  16767. LIBS=$ac_check_lib_save_LIBS
  16768. fi
  16769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
  16770. printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; }
  16771. if test "x$ac_cv_lib_z_uncompress" = xyes
  16772. then :
  16773. passed=`expr $passed + 1`
  16774. else $as_nop
  16775. failed=`expr $failed + 1`
  16776. fi
  16777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  16778. printf %s "checking for deflate in -lz... " >&6; }
  16779. if test ${ac_cv_lib_z_deflate+y}
  16780. then :
  16781. printf %s "(cached) " >&6
  16782. else $as_nop
  16783. ac_check_lib_save_LIBS=$LIBS
  16784. LIBS="-lz $LIBS"
  16785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16786. /* end confdefs.h. */
  16787. /* Override any GCC internal prototype to avoid an error.
  16788. Use char because int might match the return type of a GCC
  16789. builtin and then its argument prototype would still apply. */
  16790. char deflate ();
  16791. int
  16792. main (void)
  16793. {
  16794. return deflate ();
  16795. ;
  16796. return 0;
  16797. }
  16798. _ACEOF
  16799. if ac_fn_c_try_link "$LINENO"
  16800. then :
  16801. ac_cv_lib_z_deflate=yes
  16802. else $as_nop
  16803. ac_cv_lib_z_deflate=no
  16804. fi
  16805. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16806. conftest$ac_exeext conftest.$ac_ext
  16807. LIBS=$ac_check_lib_save_LIBS
  16808. fi
  16809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  16810. printf "%s\n" "$ac_cv_lib_z_deflate" >&6; }
  16811. if test "x$ac_cv_lib_z_deflate" = xyes
  16812. then :
  16813. passed=`expr $passed + 1`
  16814. else $as_nop
  16815. failed=`expr $failed + 1`
  16816. fi
  16817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  16818. printf %s "checking for inflate in -lz... " >&6; }
  16819. if test ${ac_cv_lib_z_inflate+y}
  16820. then :
  16821. printf %s "(cached) " >&6
  16822. else $as_nop
  16823. ac_check_lib_save_LIBS=$LIBS
  16824. LIBS="-lz $LIBS"
  16825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16826. /* end confdefs.h. */
  16827. /* Override any GCC internal prototype to avoid an error.
  16828. Use char because int might match the return type of a GCC
  16829. builtin and then its argument prototype would still apply. */
  16830. char inflate ();
  16831. int
  16832. main (void)
  16833. {
  16834. return inflate ();
  16835. ;
  16836. return 0;
  16837. }
  16838. _ACEOF
  16839. if ac_fn_c_try_link "$LINENO"
  16840. then :
  16841. ac_cv_lib_z_inflate=yes
  16842. else $as_nop
  16843. ac_cv_lib_z_inflate=no
  16844. fi
  16845. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16846. conftest$ac_exeext conftest.$ac_ext
  16847. LIBS=$ac_check_lib_save_LIBS
  16848. fi
  16849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  16850. printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
  16851. if test "x$ac_cv_lib_z_inflate" = xyes
  16852. then :
  16853. passed=`expr $passed + 1`
  16854. else $as_nop
  16855. failed=`expr $failed + 1`
  16856. fi
  16857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
  16858. printf %s "checking for gzseek in -lz... " >&6; }
  16859. if test ${ac_cv_lib_z_gzseek+y}
  16860. then :
  16861. printf %s "(cached) " >&6
  16862. else $as_nop
  16863. ac_check_lib_save_LIBS=$LIBS
  16864. LIBS="-lz $LIBS"
  16865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16866. /* end confdefs.h. */
  16867. /* Override any GCC internal prototype to avoid an error.
  16868. Use char because int might match the return type of a GCC
  16869. builtin and then its argument prototype would still apply. */
  16870. char gzseek ();
  16871. int
  16872. main (void)
  16873. {
  16874. return gzseek ();
  16875. ;
  16876. return 0;
  16877. }
  16878. _ACEOF
  16879. if ac_fn_c_try_link "$LINENO"
  16880. then :
  16881. ac_cv_lib_z_gzseek=yes
  16882. else $as_nop
  16883. ac_cv_lib_z_gzseek=no
  16884. fi
  16885. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16886. conftest$ac_exeext conftest.$ac_ext
  16887. LIBS=$ac_check_lib_save_LIBS
  16888. fi
  16889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
  16890. printf "%s\n" "$ac_cv_lib_z_gzseek" >&6; }
  16891. if test "x$ac_cv_lib_z_gzseek" = xyes
  16892. then :
  16893. passed=`expr $passed + 1`
  16894. else $as_nop
  16895. failed=`expr $failed + 1`
  16896. fi
  16897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
  16898. printf %s "checking for gztell in -lz... " >&6; }
  16899. if test ${ac_cv_lib_z_gztell+y}
  16900. then :
  16901. printf %s "(cached) " >&6
  16902. else $as_nop
  16903. ac_check_lib_save_LIBS=$LIBS
  16904. LIBS="-lz $LIBS"
  16905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16906. /* end confdefs.h. */
  16907. /* Override any GCC internal prototype to avoid an error.
  16908. Use char because int might match the return type of a GCC
  16909. builtin and then its argument prototype would still apply. */
  16910. char gztell ();
  16911. int
  16912. main (void)
  16913. {
  16914. return gztell ();
  16915. ;
  16916. return 0;
  16917. }
  16918. _ACEOF
  16919. if ac_fn_c_try_link "$LINENO"
  16920. then :
  16921. ac_cv_lib_z_gztell=yes
  16922. else $as_nop
  16923. ac_cv_lib_z_gztell=no
  16924. fi
  16925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16926. conftest$ac_exeext conftest.$ac_ext
  16927. LIBS=$ac_check_lib_save_LIBS
  16928. fi
  16929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
  16930. printf "%s\n" "$ac_cv_lib_z_gztell" >&6; }
  16931. if test "x$ac_cv_lib_z_gztell" = xyes
  16932. then :
  16933. passed=`expr $passed + 1`
  16934. else $as_nop
  16935. failed=`expr $failed + 1`
  16936. fi
  16937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
  16938. printf %s "checking if ZLIB package is complete... " >&6; }
  16939. if test $passed -gt 0
  16940. then
  16941. if test $failed -gt 0
  16942. then
  16943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  16944. printf "%s\n" "no -- some components failed test" >&6; }
  16945. have_zlib='no (failed tests)'
  16946. else
  16947. LIB_ZLIB='-lz'
  16948. LIBS="$LIB_ZLIB $LIBS"
  16949. printf "%s\n" "#define HasZLIB 1" >>confdefs.h
  16950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16951. printf "%s\n" "yes" >&6; }
  16952. have_zlib='yes'
  16953. fi
  16954. else
  16955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16956. printf "%s\n" "no" >&6; }
  16957. fi
  16958. fi
  16959. if test "$have_zlib" = 'yes'; then
  16960. HasZLIB_TRUE=
  16961. HasZLIB_FALSE='#'
  16962. else
  16963. HasZLIB_TRUE='#'
  16964. HasZLIB_FALSE=
  16965. fi
  16966. #
  16967. # Check for TIFF
  16968. #
  16969. have_tiff='no'
  16970. LIB_TIFF=''
  16971. if test ! "$with_tiff" = 'no'
  16972. then
  16973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFF support" >&5
  16974. printf %s "checking for TIFF support... " >&6; }
  16975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  16976. printf "%s\n" "" >&6; }
  16977. failed=0;
  16978. passed=0;
  16979. ac_fn_c_check_header_compile "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
  16980. if test "x$ac_cv_header_tiff_h" = xyes
  16981. then :
  16982. passed=`expr $passed + 1`
  16983. else $as_nop
  16984. failed=`expr $failed + 1`
  16985. fi
  16986. ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  16987. if test "x$ac_cv_header_tiffio_h" = xyes
  16988. then :
  16989. passed=`expr $passed + 1`
  16990. else $as_nop
  16991. failed=`expr $failed + 1`
  16992. fi
  16993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  16994. printf %s "checking for TIFFOpen in -ltiff... " >&6; }
  16995. if test ${ac_cv_lib_tiff_TIFFOpen+y}
  16996. then :
  16997. printf %s "(cached) " >&6
  16998. else $as_nop
  16999. ac_check_lib_save_LIBS=$LIBS
  17000. LIBS="-ltiff $LIBS"
  17001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17002. /* end confdefs.h. */
  17003. /* Override any GCC internal prototype to avoid an error.
  17004. Use char because int might match the return type of a GCC
  17005. builtin and then its argument prototype would still apply. */
  17006. char TIFFOpen ();
  17007. int
  17008. main (void)
  17009. {
  17010. return TIFFOpen ();
  17011. ;
  17012. return 0;
  17013. }
  17014. _ACEOF
  17015. if ac_fn_c_try_link "$LINENO"
  17016. then :
  17017. ac_cv_lib_tiff_TIFFOpen=yes
  17018. else $as_nop
  17019. ac_cv_lib_tiff_TIFFOpen=no
  17020. fi
  17021. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17022. conftest$ac_exeext conftest.$ac_ext
  17023. LIBS=$ac_check_lib_save_LIBS
  17024. fi
  17025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  17026. printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  17027. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes
  17028. then :
  17029. passed=`expr $passed + 1`
  17030. else $as_nop
  17031. failed=`expr $failed + 1`
  17032. fi
  17033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
  17034. printf %s "checking for TIFFClientOpen in -ltiff... " >&6; }
  17035. if test ${ac_cv_lib_tiff_TIFFClientOpen+y}
  17036. then :
  17037. printf %s "(cached) " >&6
  17038. else $as_nop
  17039. ac_check_lib_save_LIBS=$LIBS
  17040. LIBS="-ltiff $LIBS"
  17041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17042. /* end confdefs.h. */
  17043. /* Override any GCC internal prototype to avoid an error.
  17044. Use char because int might match the return type of a GCC
  17045. builtin and then its argument prototype would still apply. */
  17046. char TIFFClientOpen ();
  17047. int
  17048. main (void)
  17049. {
  17050. return TIFFClientOpen ();
  17051. ;
  17052. return 0;
  17053. }
  17054. _ACEOF
  17055. if ac_fn_c_try_link "$LINENO"
  17056. then :
  17057. ac_cv_lib_tiff_TIFFClientOpen=yes
  17058. else $as_nop
  17059. ac_cv_lib_tiff_TIFFClientOpen=no
  17060. fi
  17061. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17062. conftest$ac_exeext conftest.$ac_ext
  17063. LIBS=$ac_check_lib_save_LIBS
  17064. fi
  17065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
  17066. printf "%s\n" "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
  17067. if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes
  17068. then :
  17069. passed=`expr $passed + 1`
  17070. else $as_nop
  17071. failed=`expr $failed + 1`
  17072. fi
  17073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
  17074. printf %s "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
  17075. if test ${ac_cv_lib_tiff_TIFFIsByteSwapped+y}
  17076. then :
  17077. printf %s "(cached) " >&6
  17078. else $as_nop
  17079. ac_check_lib_save_LIBS=$LIBS
  17080. LIBS="-ltiff $LIBS"
  17081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17082. /* end confdefs.h. */
  17083. /* Override any GCC internal prototype to avoid an error.
  17084. Use char because int might match the return type of a GCC
  17085. builtin and then its argument prototype would still apply. */
  17086. char TIFFIsByteSwapped ();
  17087. int
  17088. main (void)
  17089. {
  17090. return TIFFIsByteSwapped ();
  17091. ;
  17092. return 0;
  17093. }
  17094. _ACEOF
  17095. if ac_fn_c_try_link "$LINENO"
  17096. then :
  17097. ac_cv_lib_tiff_TIFFIsByteSwapped=yes
  17098. else $as_nop
  17099. ac_cv_lib_tiff_TIFFIsByteSwapped=no
  17100. fi
  17101. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17102. conftest$ac_exeext conftest.$ac_ext
  17103. LIBS=$ac_check_lib_save_LIBS
  17104. fi
  17105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
  17106. printf "%s\n" "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
  17107. if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes
  17108. then :
  17109. passed=`expr $passed + 1`
  17110. else $as_nop
  17111. failed=`expr $failed + 1`
  17112. fi
  17113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
  17114. printf %s "checking if TIFF package is complete... " >&6; }
  17115. if test $passed -gt 0
  17116. then
  17117. if test $failed -gt 0
  17118. then
  17119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  17120. printf "%s\n" "no -- some components failed test" >&6; }
  17121. have_tiff='no (failed tests)'
  17122. else
  17123. LIB_TIFF='-ltiff'
  17124. LIBS="$LIB_TIFF $LIBS"
  17125. printf "%s\n" "#define HasTIFF 1" >>confdefs.h
  17126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17127. printf "%s\n" "yes" >&6; }
  17128. have_tiff='yes'
  17129. ac_fn_c_check_header_compile "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
  17130. if test "x$ac_cv_header_tiffconf_h" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_TIFFCONF_H 1" >>confdefs.h
  17133. fi
  17134. fi
  17135. else
  17136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17137. printf "%s\n" "no" >&6; }
  17138. fi
  17139. fi
  17140. if test "$have_tiff" = 'yes'; then
  17141. HasTIFF_TRUE=
  17142. HasTIFF_FALSE='#'
  17143. else
  17144. HasTIFF_TRUE='#'
  17145. HasTIFF_FALSE=
  17146. fi
  17147. # Libraries that the LCMS2MT library depends on
  17148. LCMS_LIB_DEPLIBS="$LIB_MATH $LIB_THREAD"
  17149. LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
  17150. # Libraries that the jpegicc program depends on
  17151. JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH $LIB_THREAD"
  17152. JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
  17153. # Libraries that the tifficc program depends on
  17154. TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH $LIB_THREAD"
  17155. TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
  17156. LIBS=''
  17157. #
  17158. # Perform substitutions
  17159. #
  17160. ac_config_files="$ac_config_files Makefile"
  17161. ac_config_files="$ac_config_files lcms2mt.pc"
  17162. ac_config_files="$ac_config_files include/Makefile"
  17163. ac_config_files="$ac_config_files src/Makefile"
  17164. ac_config_files="$ac_config_files utils/tificc/Makefile"
  17165. ac_config_files="$ac_config_files utils/transicc/Makefile"
  17166. ac_config_files="$ac_config_files utils/linkicc/Makefile"
  17167. ac_config_files="$ac_config_files utils/jpgicc/Makefile"
  17168. ac_config_files="$ac_config_files utils/psicc/Makefile"
  17169. ac_config_files="$ac_config_files testbed/Makefile"
  17170. if test "x$with_fastfloat" = "xyes" ; then
  17171. COND_FASTFLOAT_TRUE=
  17172. COND_FASTFLOAT_FALSE='#'
  17173. else
  17174. COND_FASTFLOAT_TRUE='#'
  17175. COND_FASTFLOAT_FALSE=
  17176. fi
  17177. if test "x$with_threaded" = "xyes" ; then
  17178. COND_THREADED_TRUE=
  17179. COND_THREADED_FALSE='#'
  17180. else
  17181. COND_THREADED_TRUE='#'
  17182. COND_THREADED_FALSE=
  17183. fi
  17184. ac_config_files="$ac_config_files plugins/Makefile"
  17185. ac_config_files="$ac_config_files plugins/fast_float/Makefile"
  17186. ac_config_files="$ac_config_files plugins/fast_float/src/Makefile"
  17187. ac_config_files="$ac_config_files plugins/fast_float/include/Makefile"
  17188. ac_config_files="$ac_config_files plugins/fast_float/testbed/Makefile"
  17189. ac_config_files="$ac_config_files plugins/threaded/Makefile"
  17190. ac_config_files="$ac_config_files plugins/threaded/src/Makefile"
  17191. ac_config_files="$ac_config_files plugins/threaded/include/Makefile"
  17192. ac_config_files="$ac_config_files plugins/threaded/testbed/Makefile"
  17193. cat >confcache <<\_ACEOF
  17194. # This file is a shell script that caches the results of configure
  17195. # tests run on this system so they can be shared between configure
  17196. # scripts and configure runs, see configure's option --config-cache.
  17197. # It is not useful on other systems. If it contains results you don't
  17198. # want to keep, you may remove or edit it.
  17199. #
  17200. # config.status only pays attention to the cache file if you give it
  17201. # the --recheck option to rerun configure.
  17202. #
  17203. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17204. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17205. # following values.
  17206. _ACEOF
  17207. # The following way of writing the cache mishandles newlines in values,
  17208. # but we know of no workaround that is simple, portable, and efficient.
  17209. # So, we kill variables containing newlines.
  17210. # Ultrix sh set writes to stderr and can't be redirected directly,
  17211. # and sets the high bit in the cache file unless we assign to the vars.
  17212. (
  17213. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17214. eval ac_val=\$$ac_var
  17215. case $ac_val in #(
  17216. *${as_nl}*)
  17217. case $ac_var in #(
  17218. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17219. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17220. esac
  17221. case $ac_var in #(
  17222. _ | IFS | as_nl) ;; #(
  17223. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17224. *) { eval $ac_var=; unset $ac_var;} ;;
  17225. esac ;;
  17226. esac
  17227. done
  17228. (set) 2>&1 |
  17229. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17230. *${as_nl}ac_space=\ *)
  17231. # `set' does not quote correctly, so add quotes: double-quote
  17232. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17233. sed -n \
  17234. "s/'/'\\\\''/g;
  17235. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17236. ;; #(
  17237. *)
  17238. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17239. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17240. ;;
  17241. esac |
  17242. sort
  17243. ) |
  17244. sed '
  17245. /^ac_cv_env_/b end
  17246. t clear
  17247. :clear
  17248. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  17249. t end
  17250. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17251. :end' >>confcache
  17252. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17253. if test -w "$cache_file"; then
  17254. if test "x$cache_file" != "x/dev/null"; then
  17255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17256. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  17257. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17258. cat confcache >"$cache_file"
  17259. else
  17260. case $cache_file in #(
  17261. */* | ?:*)
  17262. mv -f confcache "$cache_file"$$ &&
  17263. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17264. *)
  17265. mv -f confcache "$cache_file" ;;
  17266. esac
  17267. fi
  17268. fi
  17269. else
  17270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17271. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  17272. fi
  17273. fi
  17274. rm -f confcache
  17275. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17276. # Let make expand exec_prefix.
  17277. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17278. # Transform confdefs.h into DEFS.
  17279. # Protect against shell expansion while executing Makefile rules.
  17280. # Protect against Makefile macro expansion.
  17281. #
  17282. # If the first sed substitution is executed (which looks for macros that
  17283. # take arguments), then branch to the quote section. Otherwise,
  17284. # look for a macro that doesn't take arguments.
  17285. ac_script='
  17286. :mline
  17287. /\\$/{
  17288. N
  17289. s,\\\n,,
  17290. b mline
  17291. }
  17292. t clear
  17293. :clear
  17294. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  17295. t quote
  17296. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  17297. t quote
  17298. b any
  17299. :quote
  17300. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  17301. s/\[/\\&/g
  17302. s/\]/\\&/g
  17303. s/\$/$$/g
  17304. H
  17305. :any
  17306. ${
  17307. g
  17308. s/^\n//
  17309. s/\n/ /g
  17310. p
  17311. }
  17312. '
  17313. DEFS=`sed -n "$ac_script" confdefs.h`
  17314. ac_libobjs=
  17315. ac_ltlibobjs=
  17316. U=
  17317. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17318. # 1. Remove the extension, and $U if already installed.
  17319. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17320. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  17321. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17322. # will be set to the directory where LIBOBJS objects are built.
  17323. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17324. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17325. done
  17326. LIBOBJS=$ac_libobjs
  17327. LTLIBOBJS=$ac_ltlibobjs
  17328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17329. printf %s "checking that generated files are newer than configure... " >&6; }
  17330. if test -n "$am_sleep_pid"; then
  17331. # Hide warnings about reused PIDs.
  17332. wait $am_sleep_pid 2>/dev/null
  17333. fi
  17334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17335. printf "%s\n" "done" >&6; }
  17336. if test -n "$EXEEXT"; then
  17337. am__EXEEXT_TRUE=
  17338. am__EXEEXT_FALSE='#'
  17339. else
  17340. am__EXEEXT_TRUE='#'
  17341. am__EXEEXT_FALSE=
  17342. fi
  17343. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17344. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17346. fi
  17347. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17348. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17349. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17350. fi
  17351. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17352. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17353. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17354. fi
  17355. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17356. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17358. fi
  17359. if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
  17360. as_fn_error $? "conditional \"HasJPEG\" was never defined.
  17361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17362. fi
  17363. if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
  17364. as_fn_error $? "conditional \"HasZLIB\" was never defined.
  17365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17366. fi
  17367. if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
  17368. as_fn_error $? "conditional \"HasTIFF\" was never defined.
  17369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17370. fi
  17371. if test -z "${COND_FASTFLOAT_TRUE}" && test -z "${COND_FASTFLOAT_FALSE}"; then
  17372. as_fn_error $? "conditional \"COND_FASTFLOAT\" was never defined.
  17373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17374. fi
  17375. if test -z "${COND_THREADED_TRUE}" && test -z "${COND_THREADED_FALSE}"; then
  17376. as_fn_error $? "conditional \"COND_THREADED\" was never defined.
  17377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17378. fi
  17379. : "${CONFIG_STATUS=./config.status}"
  17380. ac_write_fail=0
  17381. ac_clean_files_save=$ac_clean_files
  17382. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17384. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  17385. as_write_fail=0
  17386. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17387. #! $SHELL
  17388. # Generated by $as_me.
  17389. # Run this file to recreate the current configuration.
  17390. # Compiler output produced by configure, useful for debugging
  17391. # configure, is in config.log if it exists.
  17392. debug=false
  17393. ac_cs_recheck=false
  17394. ac_cs_silent=false
  17395. SHELL=\${CONFIG_SHELL-$SHELL}
  17396. export SHELL
  17397. _ASEOF
  17398. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17399. ## -------------------- ##
  17400. ## M4sh Initialization. ##
  17401. ## -------------------- ##
  17402. # Be more Bourne compatible
  17403. DUALCASE=1; export DUALCASE # for MKS sh
  17404. as_nop=:
  17405. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  17406. then :
  17407. emulate sh
  17408. NULLCMD=:
  17409. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17410. # is contrary to our usage. Disable this feature.
  17411. alias -g '${1+"$@"}'='"$@"'
  17412. setopt NO_GLOB_SUBST
  17413. else $as_nop
  17414. case `(set -o) 2>/dev/null` in #(
  17415. *posix*) :
  17416. set -o posix ;; #(
  17417. *) :
  17418. ;;
  17419. esac
  17420. fi
  17421. # Reset variables that may have inherited troublesome values from
  17422. # the environment.
  17423. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  17424. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  17425. # side effect of setting IFS to empty, thus disabling word splitting.)
  17426. # Quoting is to prevent editors from complaining about space-tab.
  17427. as_nl='
  17428. '
  17429. export as_nl
  17430. IFS=" "" $as_nl"
  17431. PS1='$ '
  17432. PS2='> '
  17433. PS4='+ '
  17434. # Ensure predictable behavior from utilities with locale-dependent output.
  17435. LC_ALL=C
  17436. export LC_ALL
  17437. LANGUAGE=C
  17438. export LANGUAGE
  17439. # We cannot yet rely on "unset" to work, but we need these variables
  17440. # to be unset--not just set to an empty or harmless value--now, to
  17441. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  17442. # also avoids known problems related to "unset" and subshell syntax
  17443. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  17444. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  17445. do eval test \${$as_var+y} \
  17446. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17447. done
  17448. # Ensure that fds 0, 1, and 2 are open.
  17449. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  17450. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  17451. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  17452. # The user is always right.
  17453. if ${PATH_SEPARATOR+false} :; then
  17454. PATH_SEPARATOR=:
  17455. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17456. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17457. PATH_SEPARATOR=';'
  17458. }
  17459. fi
  17460. # Find who we are. Look in the path if we contain no directory separator.
  17461. as_myself=
  17462. case $0 in #((
  17463. *[\\/]* ) as_myself=$0 ;;
  17464. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17465. for as_dir in $PATH
  17466. do
  17467. IFS=$as_save_IFS
  17468. case $as_dir in #(((
  17469. '') as_dir=./ ;;
  17470. */) ;;
  17471. *) as_dir=$as_dir/ ;;
  17472. esac
  17473. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  17474. done
  17475. IFS=$as_save_IFS
  17476. ;;
  17477. esac
  17478. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17479. # in which case we are not to be found in the path.
  17480. if test "x$as_myself" = x; then
  17481. as_myself=$0
  17482. fi
  17483. if test ! -f "$as_myself"; then
  17484. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17485. exit 1
  17486. fi
  17487. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17488. # ----------------------------------------
  17489. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17490. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17491. # script with STATUS, using 1 if that was 0.
  17492. as_fn_error ()
  17493. {
  17494. as_status=$1; test $as_status -eq 0 && as_status=1
  17495. if test "$4"; then
  17496. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17497. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17498. fi
  17499. printf "%s\n" "$as_me: error: $2" >&2
  17500. as_fn_exit $as_status
  17501. } # as_fn_error
  17502. # as_fn_set_status STATUS
  17503. # -----------------------
  17504. # Set $? to STATUS, without forking.
  17505. as_fn_set_status ()
  17506. {
  17507. return $1
  17508. } # as_fn_set_status
  17509. # as_fn_exit STATUS
  17510. # -----------------
  17511. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17512. as_fn_exit ()
  17513. {
  17514. set +e
  17515. as_fn_set_status $1
  17516. exit $1
  17517. } # as_fn_exit
  17518. # as_fn_unset VAR
  17519. # ---------------
  17520. # Portably unset VAR.
  17521. as_fn_unset ()
  17522. {
  17523. { eval $1=; unset $1;}
  17524. }
  17525. as_unset=as_fn_unset
  17526. # as_fn_append VAR VALUE
  17527. # ----------------------
  17528. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17529. # advantage of any shell optimizations that allow amortized linear growth over
  17530. # repeated appends, instead of the typical quadratic growth present in naive
  17531. # implementations.
  17532. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  17533. then :
  17534. eval 'as_fn_append ()
  17535. {
  17536. eval $1+=\$2
  17537. }'
  17538. else $as_nop
  17539. as_fn_append ()
  17540. {
  17541. eval $1=\$$1\$2
  17542. }
  17543. fi # as_fn_append
  17544. # as_fn_arith ARG...
  17545. # ------------------
  17546. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17547. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17548. # must be portable across $(()) and expr.
  17549. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  17550. then :
  17551. eval 'as_fn_arith ()
  17552. {
  17553. as_val=$(( $* ))
  17554. }'
  17555. else $as_nop
  17556. as_fn_arith ()
  17557. {
  17558. as_val=`expr "$@" || test $? -eq 1`
  17559. }
  17560. fi # as_fn_arith
  17561. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17562. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17563. as_expr=expr
  17564. else
  17565. as_expr=false
  17566. fi
  17567. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17568. as_basename=basename
  17569. else
  17570. as_basename=false
  17571. fi
  17572. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17573. as_dirname=dirname
  17574. else
  17575. as_dirname=false
  17576. fi
  17577. as_me=`$as_basename -- "$0" ||
  17578. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17579. X"$0" : 'X\(//\)$' \| \
  17580. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17581. printf "%s\n" X/"$0" |
  17582. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17583. s//\1/
  17584. q
  17585. }
  17586. /^X\/\(\/\/\)$/{
  17587. s//\1/
  17588. q
  17589. }
  17590. /^X\/\(\/\).*/{
  17591. s//\1/
  17592. q
  17593. }
  17594. s/.*/./; q'`
  17595. # Avoid depending upon Character Ranges.
  17596. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17597. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17598. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17599. as_cr_digits='0123456789'
  17600. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17601. # Determine whether it's possible to make 'echo' print without a newline.
  17602. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  17603. # for compatibility with existing Makefiles.
  17604. ECHO_C= ECHO_N= ECHO_T=
  17605. case `echo -n x` in #(((((
  17606. -n*)
  17607. case `echo 'xy\c'` in
  17608. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17609. xy) ECHO_C='\c';;
  17610. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17611. ECHO_T=' ';;
  17612. esac;;
  17613. *)
  17614. ECHO_N='-n';;
  17615. esac
  17616. # For backward compatibility with old third-party macros, we provide
  17617. # the shell variables $as_echo and $as_echo_n. New code should use
  17618. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  17619. as_echo='printf %s\n'
  17620. as_echo_n='printf %s'
  17621. rm -f conf$$ conf$$.exe conf$$.file
  17622. if test -d conf$$.dir; then
  17623. rm -f conf$$.dir/conf$$.file
  17624. else
  17625. rm -f conf$$.dir
  17626. mkdir conf$$.dir 2>/dev/null
  17627. fi
  17628. if (echo >conf$$.file) 2>/dev/null; then
  17629. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17630. as_ln_s='ln -s'
  17631. # ... but there are two gotchas:
  17632. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17633. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17634. # In both cases, we have to default to `cp -pR'.
  17635. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17636. as_ln_s='cp -pR'
  17637. elif ln conf$$.file conf$$ 2>/dev/null; then
  17638. as_ln_s=ln
  17639. else
  17640. as_ln_s='cp -pR'
  17641. fi
  17642. else
  17643. as_ln_s='cp -pR'
  17644. fi
  17645. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17646. rmdir conf$$.dir 2>/dev/null
  17647. # as_fn_mkdir_p
  17648. # -------------
  17649. # Create "$as_dir" as a directory, including parents if necessary.
  17650. as_fn_mkdir_p ()
  17651. {
  17652. case $as_dir in #(
  17653. -*) as_dir=./$as_dir;;
  17654. esac
  17655. test -d "$as_dir" || eval $as_mkdir_p || {
  17656. as_dirs=
  17657. while :; do
  17658. case $as_dir in #(
  17659. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17660. *) as_qdir=$as_dir;;
  17661. esac
  17662. as_dirs="'$as_qdir' $as_dirs"
  17663. as_dir=`$as_dirname -- "$as_dir" ||
  17664. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17665. X"$as_dir" : 'X\(//\)[^/]' \| \
  17666. X"$as_dir" : 'X\(//\)$' \| \
  17667. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17668. printf "%s\n" X"$as_dir" |
  17669. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17670. s//\1/
  17671. q
  17672. }
  17673. /^X\(\/\/\)[^/].*/{
  17674. s//\1/
  17675. q
  17676. }
  17677. /^X\(\/\/\)$/{
  17678. s//\1/
  17679. q
  17680. }
  17681. /^X\(\/\).*/{
  17682. s//\1/
  17683. q
  17684. }
  17685. s/.*/./; q'`
  17686. test -d "$as_dir" && break
  17687. done
  17688. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17689. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17690. } # as_fn_mkdir_p
  17691. if mkdir -p . 2>/dev/null; then
  17692. as_mkdir_p='mkdir -p "$as_dir"'
  17693. else
  17694. test -d ./-p && rmdir ./-p
  17695. as_mkdir_p=false
  17696. fi
  17697. # as_fn_executable_p FILE
  17698. # -----------------------
  17699. # Test if FILE is an executable regular file.
  17700. as_fn_executable_p ()
  17701. {
  17702. test -f "$1" && test -x "$1"
  17703. } # as_fn_executable_p
  17704. as_test_x='test -x'
  17705. as_executable_p=as_fn_executable_p
  17706. # Sed expression to map a string onto a valid CPP name.
  17707. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17708. # Sed expression to map a string onto a valid variable name.
  17709. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17710. exec 6>&1
  17711. ## ----------------------------------- ##
  17712. ## Main body of $CONFIG_STATUS script. ##
  17713. ## ----------------------------------- ##
  17714. _ASEOF
  17715. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17717. # Save the log message, to keep $0 and so on meaningful, and to
  17718. # report actual input values of CONFIG_FILES etc. instead of their
  17719. # values after options handling.
  17720. ac_log="
  17721. This file was extended by lcms2mt $as_me 2.16, which was
  17722. generated by GNU Autoconf 2.71. Invocation command line was
  17723. CONFIG_FILES = $CONFIG_FILES
  17724. CONFIG_HEADERS = $CONFIG_HEADERS
  17725. CONFIG_LINKS = $CONFIG_LINKS
  17726. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17727. $ $0 $@
  17728. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17729. "
  17730. _ACEOF
  17731. case $ac_config_files in *"
  17732. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17733. esac
  17734. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17735. # Files that config.status was made for.
  17736. config_files="$ac_config_files"
  17737. config_commands="$ac_config_commands"
  17738. _ACEOF
  17739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17740. ac_cs_usage="\
  17741. \`$as_me' instantiates files and other configuration actions
  17742. from templates according to the current configuration. Unless the files
  17743. and actions are specified as TAGs, all are instantiated by default.
  17744. Usage: $0 [OPTION]... [TAG]...
  17745. -h, --help print this help, then exit
  17746. -V, --version print version number and configuration settings, then exit
  17747. --config print configuration, then exit
  17748. -q, --quiet, --silent
  17749. do not print progress messages
  17750. -d, --debug don't remove temporary files
  17751. --recheck update $as_me by reconfiguring in the same conditions
  17752. --file=FILE[:TEMPLATE]
  17753. instantiate the configuration file FILE
  17754. Configuration files:
  17755. $config_files
  17756. Configuration commands:
  17757. $config_commands
  17758. Report bugs to the package provider."
  17759. _ACEOF
  17760. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  17761. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  17762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17763. ac_cs_config='$ac_cs_config_escaped'
  17764. ac_cs_version="\\
  17765. lcms2mt config.status 2.16
  17766. configured by $0, generated by GNU Autoconf 2.71,
  17767. with options \\"\$ac_cs_config\\"
  17768. Copyright (C) 2021 Free Software Foundation, Inc.
  17769. This config.status script is free software; the Free Software Foundation
  17770. gives unlimited permission to copy, distribute and modify it."
  17771. ac_pwd='$ac_pwd'
  17772. srcdir='$srcdir'
  17773. INSTALL='$INSTALL'
  17774. MKDIR_P='$MKDIR_P'
  17775. AWK='$AWK'
  17776. test -n "\$AWK" || AWK=awk
  17777. _ACEOF
  17778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17779. # The default lists apply if the user does not specify any file.
  17780. ac_need_defaults=:
  17781. while test $# != 0
  17782. do
  17783. case $1 in
  17784. --*=?*)
  17785. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17786. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17787. ac_shift=:
  17788. ;;
  17789. --*=)
  17790. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17791. ac_optarg=
  17792. ac_shift=:
  17793. ;;
  17794. *)
  17795. ac_option=$1
  17796. ac_optarg=$2
  17797. ac_shift=shift
  17798. ;;
  17799. esac
  17800. case $ac_option in
  17801. # Handling of the options.
  17802. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17803. ac_cs_recheck=: ;;
  17804. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17805. printf "%s\n" "$ac_cs_version"; exit ;;
  17806. --config | --confi | --conf | --con | --co | --c )
  17807. printf "%s\n" "$ac_cs_config"; exit ;;
  17808. --debug | --debu | --deb | --de | --d | -d )
  17809. debug=: ;;
  17810. --file | --fil | --fi | --f )
  17811. $ac_shift
  17812. case $ac_optarg in
  17813. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17814. '') as_fn_error $? "missing file argument" ;;
  17815. esac
  17816. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17817. ac_need_defaults=false;;
  17818. --he | --h | --help | --hel | -h )
  17819. printf "%s\n" "$ac_cs_usage"; exit ;;
  17820. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17821. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17822. ac_cs_silent=: ;;
  17823. # This is an error.
  17824. -*) as_fn_error $? "unrecognized option: \`$1'
  17825. Try \`$0 --help' for more information." ;;
  17826. *) as_fn_append ac_config_targets " $1"
  17827. ac_need_defaults=false ;;
  17828. esac
  17829. shift
  17830. done
  17831. ac_configure_extra_args=
  17832. if $ac_cs_silent; then
  17833. exec 6>/dev/null
  17834. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17835. fi
  17836. _ACEOF
  17837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17838. if \$ac_cs_recheck; then
  17839. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17840. shift
  17841. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  17842. CONFIG_SHELL='$SHELL'
  17843. export CONFIG_SHELL
  17844. exec "\$@"
  17845. fi
  17846. _ACEOF
  17847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17848. exec 5>>config.log
  17849. {
  17850. echo
  17851. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17852. ## Running $as_me. ##
  17853. _ASBOX
  17854. printf "%s\n" "$ac_log"
  17855. } >&5
  17856. _ACEOF
  17857. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17858. #
  17859. # INIT-COMMANDS
  17860. #
  17861. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17862. # The HP-UX ksh and POSIX shell print the target directory to stdout
  17863. # if CDPATH is set.
  17864. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17865. sed_quote_subst='$sed_quote_subst'
  17866. double_quote_subst='$double_quote_subst'
  17867. delay_variable_subst='$delay_variable_subst'
  17868. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  17869. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  17870. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  17871. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  17872. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  17873. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  17874. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  17875. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  17876. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  17877. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  17878. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  17879. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  17880. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  17881. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  17882. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  17883. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  17884. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  17885. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  17886. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  17887. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  17888. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  17889. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  17890. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  17891. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  17892. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  17893. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  17894. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  17895. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  17896. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  17897. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  17898. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  17899. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  17900. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  17901. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  17902. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  17903. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  17904. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  17905. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  17906. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  17907. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  17908. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  17909. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  17910. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  17911. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  17912. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  17913. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  17914. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  17915. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  17916. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17917. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17918. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  17919. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  17920. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  17921. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  17922. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  17923. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  17924. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  17925. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  17926. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  17927. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  17928. 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"`'
  17929. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  17930. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  17931. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  17932. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  17933. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  17934. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  17935. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  17936. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  17937. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  17938. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  17939. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  17940. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  17941. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  17942. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  17943. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  17944. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  17945. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  17946. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  17947. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  17948. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  17949. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17950. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  17951. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  17952. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  17953. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  17954. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  17955. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  17956. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17957. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  17958. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17959. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  17960. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17961. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  17962. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17963. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17964. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  17965. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  17966. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  17967. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  17968. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  17969. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17970. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  17971. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  17972. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  17973. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  17974. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  17975. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  17976. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  17977. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  17978. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  17979. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  17980. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  17981. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  17982. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  17983. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  17984. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  17985. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17986. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  17987. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  17988. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  17989. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  17990. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  17991. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17992. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17993. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  17994. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  17995. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  17996. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  17997. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  17998. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  17999. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18000. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18001. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18002. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18003. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18004. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18005. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18006. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18007. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18008. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18009. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18010. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18011. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18012. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18013. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18014. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18015. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18016. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18017. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18018. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18019. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18020. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18021. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18022. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18023. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18024. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18025. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18026. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18027. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18028. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18029. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18030. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18031. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18032. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18033. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18034. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18035. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18036. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18037. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18038. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18039. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18040. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18041. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18042. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18043. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18044. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18045. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18046. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18047. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18048. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18049. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18050. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18051. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18052. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18053. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18054. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18055. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18056. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18057. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18058. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18059. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18060. LTCC='$LTCC'
  18061. LTCFLAGS='$LTCFLAGS'
  18062. compiler='$compiler_DEFAULT'
  18063. # A function that is used when there is no print builtin or printf.
  18064. func_fallback_echo ()
  18065. {
  18066. eval 'cat <<_LTECHO_EOF
  18067. \$1
  18068. _LTECHO_EOF'
  18069. }
  18070. # Quote evaled strings.
  18071. for var in SHELL \
  18072. ECHO \
  18073. PATH_SEPARATOR \
  18074. SED \
  18075. GREP \
  18076. EGREP \
  18077. FGREP \
  18078. LD \
  18079. NM \
  18080. LN_S \
  18081. lt_SP2NL \
  18082. lt_NL2SP \
  18083. reload_flag \
  18084. FILECMD \
  18085. OBJDUMP \
  18086. deplibs_check_method \
  18087. file_magic_cmd \
  18088. file_magic_glob \
  18089. want_nocaseglob \
  18090. DLLTOOL \
  18091. sharedlib_from_linklib_cmd \
  18092. AR \
  18093. archiver_list_spec \
  18094. STRIP \
  18095. RANLIB \
  18096. CC \
  18097. CFLAGS \
  18098. compiler \
  18099. lt_cv_sys_global_symbol_pipe \
  18100. lt_cv_sys_global_symbol_to_cdecl \
  18101. lt_cv_sys_global_symbol_to_import \
  18102. lt_cv_sys_global_symbol_to_c_name_address \
  18103. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18104. lt_cv_nm_interface \
  18105. nm_file_list_spec \
  18106. lt_cv_truncate_bin \
  18107. lt_prog_compiler_no_builtin_flag \
  18108. lt_prog_compiler_pic \
  18109. lt_prog_compiler_wl \
  18110. lt_prog_compiler_static \
  18111. lt_cv_prog_compiler_c_o \
  18112. need_locks \
  18113. MANIFEST_TOOL \
  18114. DSYMUTIL \
  18115. NMEDIT \
  18116. LIPO \
  18117. OTOOL \
  18118. OTOOL64 \
  18119. shrext_cmds \
  18120. export_dynamic_flag_spec \
  18121. whole_archive_flag_spec \
  18122. compiler_needs_object \
  18123. with_gnu_ld \
  18124. allow_undefined_flag \
  18125. no_undefined_flag \
  18126. hardcode_libdir_flag_spec \
  18127. hardcode_libdir_separator \
  18128. exclude_expsyms \
  18129. include_expsyms \
  18130. file_list_spec \
  18131. variables_saved_for_relink \
  18132. libname_spec \
  18133. library_names_spec \
  18134. soname_spec \
  18135. install_override_mode \
  18136. finish_eval \
  18137. old_striplib \
  18138. striplib \
  18139. compiler_lib_search_dirs \
  18140. predep_objects \
  18141. postdep_objects \
  18142. predeps \
  18143. postdeps \
  18144. compiler_lib_search_path \
  18145. AS \
  18146. LD_CXX \
  18147. reload_flag_CXX \
  18148. compiler_CXX \
  18149. lt_prog_compiler_no_builtin_flag_CXX \
  18150. lt_prog_compiler_pic_CXX \
  18151. lt_prog_compiler_wl_CXX \
  18152. lt_prog_compiler_static_CXX \
  18153. lt_cv_prog_compiler_c_o_CXX \
  18154. export_dynamic_flag_spec_CXX \
  18155. whole_archive_flag_spec_CXX \
  18156. compiler_needs_object_CXX \
  18157. with_gnu_ld_CXX \
  18158. allow_undefined_flag_CXX \
  18159. no_undefined_flag_CXX \
  18160. hardcode_libdir_flag_spec_CXX \
  18161. hardcode_libdir_separator_CXX \
  18162. exclude_expsyms_CXX \
  18163. include_expsyms_CXX \
  18164. file_list_spec_CXX \
  18165. compiler_lib_search_dirs_CXX \
  18166. predep_objects_CXX \
  18167. postdep_objects_CXX \
  18168. predeps_CXX \
  18169. postdeps_CXX \
  18170. compiler_lib_search_path_CXX; do
  18171. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18172. *[\\\\\\\`\\"\\\$]*)
  18173. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18174. ;;
  18175. *)
  18176. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18177. ;;
  18178. esac
  18179. done
  18180. # Double-quote double-evaled strings.
  18181. for var in reload_cmds \
  18182. old_postinstall_cmds \
  18183. old_postuninstall_cmds \
  18184. old_archive_cmds \
  18185. extract_expsyms_cmds \
  18186. old_archive_from_new_cmds \
  18187. old_archive_from_expsyms_cmds \
  18188. archive_cmds \
  18189. archive_expsym_cmds \
  18190. module_cmds \
  18191. module_expsym_cmds \
  18192. export_symbols_cmds \
  18193. prelink_cmds \
  18194. postlink_cmds \
  18195. postinstall_cmds \
  18196. postuninstall_cmds \
  18197. finish_cmds \
  18198. sys_lib_search_path_spec \
  18199. configure_time_dlsearch_path \
  18200. configure_time_lt_sys_library_path \
  18201. reload_cmds_CXX \
  18202. old_archive_cmds_CXX \
  18203. old_archive_from_new_cmds_CXX \
  18204. old_archive_from_expsyms_cmds_CXX \
  18205. archive_cmds_CXX \
  18206. archive_expsym_cmds_CXX \
  18207. module_cmds_CXX \
  18208. module_expsym_cmds_CXX \
  18209. export_symbols_cmds_CXX \
  18210. prelink_cmds_CXX \
  18211. postlink_cmds_CXX; do
  18212. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18213. *[\\\\\\\`\\"\\\$]*)
  18214. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18215. ;;
  18216. *)
  18217. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18218. ;;
  18219. esac
  18220. done
  18221. ac_aux_dir='$ac_aux_dir'
  18222. # See if we are running on zsh, and set the options that allow our
  18223. # commands through without removal of \ escapes INIT.
  18224. if test -n "\${ZSH_VERSION+set}"; then
  18225. setopt NO_GLOB_SUBST
  18226. fi
  18227. PACKAGE='$PACKAGE'
  18228. VERSION='$VERSION'
  18229. RM='$RM'
  18230. ofile='$ofile'
  18231. _ACEOF
  18232. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18233. # Handling of arguments.
  18234. for ac_config_target in $ac_config_targets
  18235. do
  18236. case $ac_config_target in
  18237. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18238. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18239. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18240. "lcms2mt.pc") CONFIG_FILES="$CONFIG_FILES lcms2mt.pc" ;;
  18241. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  18242. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18243. "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
  18244. "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
  18245. "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
  18246. "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
  18247. "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
  18248. "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
  18249. "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
  18250. "plugins/fast_float/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/Makefile" ;;
  18251. "plugins/fast_float/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/src/Makefile" ;;
  18252. "plugins/fast_float/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/include/Makefile" ;;
  18253. "plugins/fast_float/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/testbed/Makefile" ;;
  18254. "plugins/threaded/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/Makefile" ;;
  18255. "plugins/threaded/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/src/Makefile" ;;
  18256. "plugins/threaded/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/include/Makefile" ;;
  18257. "plugins/threaded/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/testbed/Makefile" ;;
  18258. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18259. esac
  18260. done
  18261. # If the user did not use the arguments to specify the items to instantiate,
  18262. # then the envvar interface is used. Set only those that are not.
  18263. # We use the long form for the default assignment because of an extremely
  18264. # bizarre bug on SunOS 4.1.3.
  18265. if $ac_need_defaults; then
  18266. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  18267. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  18268. fi
  18269. # Have a temporary directory for convenience. Make it in the build tree
  18270. # simply because there is no reason against having it here, and in addition,
  18271. # creating and moving files from /tmp can sometimes cause problems.
  18272. # Hook for its removal unless debugging.
  18273. # Note that there is a small window in which the directory will not be cleaned:
  18274. # after its creation but before its name has been assigned to `$tmp'.
  18275. $debug ||
  18276. {
  18277. tmp= ac_tmp=
  18278. trap 'exit_status=$?
  18279. : "${ac_tmp:=$tmp}"
  18280. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18281. ' 0
  18282. trap 'as_fn_exit 1' 1 2 13 15
  18283. }
  18284. # Create a (secure) tmp directory for tmp files.
  18285. {
  18286. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18287. test -d "$tmp"
  18288. } ||
  18289. {
  18290. tmp=./conf$$-$RANDOM
  18291. (umask 077 && mkdir "$tmp")
  18292. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18293. ac_tmp=$tmp
  18294. # Set up the scripts for CONFIG_FILES section.
  18295. # No need to generate them if there are no CONFIG_FILES.
  18296. # This happens for instance with `./config.status config.h'.
  18297. if test -n "$CONFIG_FILES"; then
  18298. ac_cr=`echo X | tr X '\015'`
  18299. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18300. # But we know of no other shell where ac_cr would be empty at this
  18301. # point, so we can use a bashism as a fallback.
  18302. if test "x$ac_cr" = x; then
  18303. eval ac_cr=\$\'\\r\'
  18304. fi
  18305. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18306. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18307. ac_cs_awk_cr='\\r'
  18308. else
  18309. ac_cs_awk_cr=$ac_cr
  18310. fi
  18311. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18312. _ACEOF
  18313. {
  18314. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18315. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18316. echo "_ACEOF"
  18317. } >conf$$subs.sh ||
  18318. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18319. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18320. ac_delim='%!_!# '
  18321. for ac_last_try in false false false false false :; do
  18322. . ./conf$$subs.sh ||
  18323. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18324. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18325. if test $ac_delim_n = $ac_delim_num; then
  18326. break
  18327. elif $ac_last_try; then
  18328. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18329. else
  18330. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18331. fi
  18332. done
  18333. rm -f conf$$subs.sh
  18334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18335. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18336. _ACEOF
  18337. sed -n '
  18338. h
  18339. s/^/S["/; s/!.*/"]=/
  18340. p
  18341. g
  18342. s/^[^!]*!//
  18343. :repl
  18344. t repl
  18345. s/'"$ac_delim"'$//
  18346. t delim
  18347. :nl
  18348. h
  18349. s/\(.\{148\}\)..*/\1/
  18350. t more1
  18351. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18352. p
  18353. n
  18354. b repl
  18355. :more1
  18356. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18357. p
  18358. g
  18359. s/.\{148\}//
  18360. t nl
  18361. :delim
  18362. h
  18363. s/\(.\{148\}\)..*/\1/
  18364. t more2
  18365. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18366. p
  18367. b
  18368. :more2
  18369. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18370. p
  18371. g
  18372. s/.\{148\}//
  18373. t delim
  18374. ' <conf$$subs.awk | sed '
  18375. /^[^""]/{
  18376. N
  18377. s/\n//
  18378. }
  18379. ' >>$CONFIG_STATUS || ac_write_fail=1
  18380. rm -f conf$$subs.awk
  18381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18382. _ACAWK
  18383. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18384. for (key in S) S_is_set[key] = 1
  18385. FS = ""
  18386. }
  18387. {
  18388. line = $ 0
  18389. nfields = split(line, field, "@")
  18390. substed = 0
  18391. len = length(field[1])
  18392. for (i = 2; i < nfields; i++) {
  18393. key = field[i]
  18394. keylen = length(key)
  18395. if (S_is_set[key]) {
  18396. value = S[key]
  18397. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18398. len += length(value) + length(field[++i])
  18399. substed = 1
  18400. } else
  18401. len += 1 + keylen
  18402. }
  18403. print line
  18404. }
  18405. _ACAWK
  18406. _ACEOF
  18407. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18408. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18409. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18410. else
  18411. cat
  18412. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18413. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18414. _ACEOF
  18415. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18416. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18417. # trailing colons and then remove the whole line if VPATH becomes empty
  18418. # (actually we leave an empty line to preserve line numbers).
  18419. if test "x$srcdir" = x.; then
  18420. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18421. h
  18422. s///
  18423. s/^/:/
  18424. s/[ ]*$/:/
  18425. s/:\$(srcdir):/:/g
  18426. s/:\${srcdir}:/:/g
  18427. s/:@srcdir@:/:/g
  18428. s/^:*//
  18429. s/:*$//
  18430. x
  18431. s/\(=[ ]*\).*/\1/
  18432. G
  18433. s/\n//
  18434. s/^[^=]*=[ ]*$//
  18435. }'
  18436. fi
  18437. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18438. fi # test -n "$CONFIG_FILES"
  18439. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  18440. shift
  18441. for ac_tag
  18442. do
  18443. case $ac_tag in
  18444. :[FHLC]) ac_mode=$ac_tag; continue;;
  18445. esac
  18446. case $ac_mode$ac_tag in
  18447. :[FHL]*:*);;
  18448. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18449. :[FH]-) ac_tag=-:-;;
  18450. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18451. esac
  18452. ac_save_IFS=$IFS
  18453. IFS=:
  18454. set x $ac_tag
  18455. IFS=$ac_save_IFS
  18456. shift
  18457. ac_file=$1
  18458. shift
  18459. case $ac_mode in
  18460. :L) ac_source=$1;;
  18461. :[FH])
  18462. ac_file_inputs=
  18463. for ac_f
  18464. do
  18465. case $ac_f in
  18466. -) ac_f="$ac_tmp/stdin";;
  18467. *) # Look for the file first in the build tree, then in the source tree
  18468. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18469. # because $ac_f cannot contain `:'.
  18470. test -f "$ac_f" ||
  18471. case $ac_f in
  18472. [\\/$]*) false;;
  18473. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18474. esac ||
  18475. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18476. esac
  18477. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18478. as_fn_append ac_file_inputs " '$ac_f'"
  18479. done
  18480. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18481. # use $as_me), people would be surprised to read:
  18482. # /* config.h. Generated by config.status. */
  18483. configure_input='Generated from '`
  18484. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18485. `' by configure.'
  18486. if test x"$ac_file" != x-; then
  18487. configure_input="$ac_file. $configure_input"
  18488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18489. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  18490. fi
  18491. # Neutralize special characters interpreted by sed in replacement strings.
  18492. case $configure_input in #(
  18493. *\&* | *\|* | *\\* )
  18494. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  18495. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18496. *) ac_sed_conf_input=$configure_input;;
  18497. esac
  18498. case $ac_tag in
  18499. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18500. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18501. esac
  18502. ;;
  18503. esac
  18504. ac_dir=`$as_dirname -- "$ac_file" ||
  18505. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18506. X"$ac_file" : 'X\(//\)[^/]' \| \
  18507. X"$ac_file" : 'X\(//\)$' \| \
  18508. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18509. printf "%s\n" X"$ac_file" |
  18510. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18511. s//\1/
  18512. q
  18513. }
  18514. /^X\(\/\/\)[^/].*/{
  18515. s//\1/
  18516. q
  18517. }
  18518. /^X\(\/\/\)$/{
  18519. s//\1/
  18520. q
  18521. }
  18522. /^X\(\/\).*/{
  18523. s//\1/
  18524. q
  18525. }
  18526. s/.*/./; q'`
  18527. as_dir="$ac_dir"; as_fn_mkdir_p
  18528. ac_builddir=.
  18529. case "$ac_dir" in
  18530. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18531. *)
  18532. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  18533. # A ".." for each directory in $ac_dir_suffix.
  18534. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18535. case $ac_top_builddir_sub in
  18536. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18537. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18538. esac ;;
  18539. esac
  18540. ac_abs_top_builddir=$ac_pwd
  18541. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18542. # for backward compatibility:
  18543. ac_top_builddir=$ac_top_build_prefix
  18544. case $srcdir in
  18545. .) # We are building in place.
  18546. ac_srcdir=.
  18547. ac_top_srcdir=$ac_top_builddir_sub
  18548. ac_abs_top_srcdir=$ac_pwd ;;
  18549. [\\/]* | ?:[\\/]* ) # Absolute name.
  18550. ac_srcdir=$srcdir$ac_dir_suffix;
  18551. ac_top_srcdir=$srcdir
  18552. ac_abs_top_srcdir=$srcdir ;;
  18553. *) # Relative name.
  18554. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18555. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18556. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18557. esac
  18558. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18559. case $ac_mode in
  18560. :F)
  18561. #
  18562. # CONFIG_FILE
  18563. #
  18564. case $INSTALL in
  18565. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18566. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18567. esac
  18568. ac_MKDIR_P=$MKDIR_P
  18569. case $MKDIR_P in
  18570. [\\/$]* | ?:[\\/]* ) ;;
  18571. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18572. esac
  18573. _ACEOF
  18574. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18575. # If the template does not know about datarootdir, expand it.
  18576. # FIXME: This hack should be removed a few years after 2.60.
  18577. ac_datarootdir_hack=; ac_datarootdir_seen=
  18578. ac_sed_dataroot='
  18579. /datarootdir/ {
  18580. p
  18581. q
  18582. }
  18583. /@datadir@/p
  18584. /@docdir@/p
  18585. /@infodir@/p
  18586. /@localedir@/p
  18587. /@mandir@/p'
  18588. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18589. *datarootdir*) ac_datarootdir_seen=yes;;
  18590. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18592. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18593. _ACEOF
  18594. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18595. ac_datarootdir_hack='
  18596. s&@datadir@&$datadir&g
  18597. s&@docdir@&$docdir&g
  18598. s&@infodir@&$infodir&g
  18599. s&@localedir@&$localedir&g
  18600. s&@mandir@&$mandir&g
  18601. s&\\\${datarootdir}&$datarootdir&g' ;;
  18602. esac
  18603. _ACEOF
  18604. # Neutralize VPATH when `$srcdir' = `.'.
  18605. # Shell code in configure.ac might set extrasub.
  18606. # FIXME: do we really want to maintain this feature?
  18607. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18608. ac_sed_extra="$ac_vpsub
  18609. $extrasub
  18610. _ACEOF
  18611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18612. :t
  18613. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18614. s|@configure_input@|$ac_sed_conf_input|;t t
  18615. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18616. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18617. s&@srcdir@&$ac_srcdir&;t t
  18618. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18619. s&@top_srcdir@&$ac_top_srcdir&;t t
  18620. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18621. s&@builddir@&$ac_builddir&;t t
  18622. s&@abs_builddir@&$ac_abs_builddir&;t t
  18623. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18624. s&@INSTALL@&$ac_INSTALL&;t t
  18625. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18626. $ac_datarootdir_hack
  18627. "
  18628. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18629. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18630. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18631. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18632. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18633. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18635. which seems to be undefined. Please make sure it is defined" >&5
  18636. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18637. which seems to be undefined. Please make sure it is defined" >&2;}
  18638. rm -f "$ac_tmp/stdin"
  18639. case $ac_file in
  18640. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18641. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18642. esac \
  18643. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18644. ;;
  18645. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18646. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  18647. ;;
  18648. esac
  18649. case $ac_file$ac_mode in
  18650. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18651. # Older Autoconf quotes --file arguments for eval, but not when files
  18652. # are listed without --file. Let's play safe and only enable the eval
  18653. # if we detect the quoting.
  18654. case $CONFIG_FILES in
  18655. *\'*) eval set x "$CONFIG_FILES" ;;
  18656. *) set x $CONFIG_FILES ;;
  18657. esac
  18658. shift
  18659. for mf
  18660. do
  18661. # Strip MF so we end up with the name of the file.
  18662. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  18663. # Check whether this is an Automake generated Makefile which includes
  18664. # dependency-tracking related rules and includes.
  18665. # Grep'ing the whole file directly is not great: AIX grep has a line
  18666. # limit of 2048, but all sed's we know have understand at least 4000.
  18667. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  18668. || continue
  18669. am_dirpart=`$as_dirname -- "$am_mf" ||
  18670. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18671. X"$am_mf" : 'X\(//\)[^/]' \| \
  18672. X"$am_mf" : 'X\(//\)$' \| \
  18673. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  18674. printf "%s\n" X"$am_mf" |
  18675. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18676. s//\1/
  18677. q
  18678. }
  18679. /^X\(\/\/\)[^/].*/{
  18680. s//\1/
  18681. q
  18682. }
  18683. /^X\(\/\/\)$/{
  18684. s//\1/
  18685. q
  18686. }
  18687. /^X\(\/\).*/{
  18688. s//\1/
  18689. q
  18690. }
  18691. s/.*/./; q'`
  18692. am_filepart=`$as_basename -- "$am_mf" ||
  18693. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  18694. X"$am_mf" : 'X\(//\)$' \| \
  18695. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  18696. printf "%s\n" X/"$am_mf" |
  18697. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18698. s//\1/
  18699. q
  18700. }
  18701. /^X\(\/\/\)[^/].*/{
  18702. s//\1/
  18703. q
  18704. }
  18705. /^X\(\/\/\)$/{
  18706. s//\1/
  18707. q
  18708. }
  18709. /^X\(\/\).*/{
  18710. s//\1/
  18711. q
  18712. }
  18713. s/.*/./; q'`
  18714. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  18715. # echo "creating $dirpart/$file"
  18716. echo '# dummy' > "$dirpart/$file"
  18717. done
  18718. done
  18719. if test $am_rc -ne 0; then
  18720. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18721. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18722. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  18723. for automatic dependency tracking. If GNU make was not used, consider
  18724. re-running the configure script with MAKE=\"gmake\" (or whatever is
  18725. necessary). You can also try re-running configure with the
  18726. '--disable-dependency-tracking' option to at least be able to build
  18727. the package (albeit without support for automatic dependency tracking).
  18728. See \`config.log' for more details" "$LINENO" 5; }
  18729. fi
  18730. { am_dirpart=; unset am_dirpart;}
  18731. { am_filepart=; unset am_filepart;}
  18732. { am_mf=; unset am_mf;}
  18733. { am_rc=; unset am_rc;}
  18734. rm -f conftest-deps.mk
  18735. }
  18736. ;;
  18737. "libtool":C)
  18738. # See if we are running on zsh, and set the options that allow our
  18739. # commands through without removal of \ escapes.
  18740. if test -n "${ZSH_VERSION+set}"; then
  18741. setopt NO_GLOB_SUBST
  18742. fi
  18743. cfgfile=${ofile}T
  18744. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  18745. $RM "$cfgfile"
  18746. cat <<_LT_EOF >> "$cfgfile"
  18747. #! $SHELL
  18748. # Generated automatically by $as_me ($PACKAGE) $VERSION
  18749. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18750. # Provide generalized library-building support services.
  18751. # Written by Gordon Matzigkeit, 1996
  18752. # Copyright (C) 2014 Free Software Foundation, Inc.
  18753. # This is free software; see the source for copying conditions. There is NO
  18754. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18755. # GNU Libtool is free software; you can redistribute it and/or modify
  18756. # it under the terms of the GNU General Public License as published by
  18757. # the Free Software Foundation; either version 2 of of the License, or
  18758. # (at your option) any later version.
  18759. #
  18760. # As a special exception to the GNU General Public License, if you
  18761. # distribute this file as part of a program or library that is built
  18762. # using GNU Libtool, you may include this file under the same
  18763. # distribution terms that you use for the rest of that program.
  18764. #
  18765. # GNU Libtool is distributed in the hope that it will be useful, but
  18766. # WITHOUT ANY WARRANTY; without even the implied warranty of
  18767. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18768. # GNU General Public License for more details.
  18769. #
  18770. # You should have received a copy of the GNU General Public License
  18771. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18772. # The names of the tagged configurations supported by this script.
  18773. available_tags='CXX '
  18774. # Configured defaults for sys_lib_dlsearch_path munging.
  18775. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  18776. # ### BEGIN LIBTOOL CONFIG
  18777. # Which release of libtool.m4 was used?
  18778. macro_version=$macro_version
  18779. macro_revision=$macro_revision
  18780. # Whether or not to build shared libraries.
  18781. build_libtool_libs=$enable_shared
  18782. # Whether or not to build static libraries.
  18783. build_old_libs=$enable_static
  18784. # What type of objects to build.
  18785. pic_mode=$pic_mode
  18786. # Whether or not to optimize for fast installation.
  18787. fast_install=$enable_fast_install
  18788. # Shared archive member basename,for filename based shared library versioning on AIX.
  18789. shared_archive_member_spec=$shared_archive_member_spec
  18790. # Shell to use when invoking shell scripts.
  18791. SHELL=$lt_SHELL
  18792. # An echo program that protects backslashes.
  18793. ECHO=$lt_ECHO
  18794. # The PATH separator for the build system.
  18795. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  18796. # The host system.
  18797. host_alias=$host_alias
  18798. host=$host
  18799. host_os=$host_os
  18800. # The build system.
  18801. build_alias=$build_alias
  18802. build=$build
  18803. build_os=$build_os
  18804. # A sed program that does not truncate output.
  18805. SED=$lt_SED
  18806. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18807. Xsed="\$SED -e 1s/^X//"
  18808. # A grep program that handles long lines.
  18809. GREP=$lt_GREP
  18810. # An ERE matcher.
  18811. EGREP=$lt_EGREP
  18812. # A literal string matcher.
  18813. FGREP=$lt_FGREP
  18814. # A BSD- or MS-compatible name lister.
  18815. NM=$lt_NM
  18816. # Whether we need soft or hard links.
  18817. LN_S=$lt_LN_S
  18818. # What is the maximum length of a command?
  18819. max_cmd_len=$max_cmd_len
  18820. # Object file suffix (normally "o").
  18821. objext=$ac_objext
  18822. # Executable file suffix (normally "").
  18823. exeext=$exeext
  18824. # whether the shell understands "unset".
  18825. lt_unset=$lt_unset
  18826. # turn spaces into newlines.
  18827. SP2NL=$lt_lt_SP2NL
  18828. # turn newlines into spaces.
  18829. NL2SP=$lt_lt_NL2SP
  18830. # convert \$build file names to \$host format.
  18831. to_host_file_cmd=$lt_cv_to_host_file_cmd
  18832. # convert \$build files to toolchain format.
  18833. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  18834. # A file(cmd) program that detects file types.
  18835. FILECMD=$lt_FILECMD
  18836. # An object symbol dumper.
  18837. OBJDUMP=$lt_OBJDUMP
  18838. # Method to check whether dependent libraries are shared objects.
  18839. deplibs_check_method=$lt_deplibs_check_method
  18840. # Command to use when deplibs_check_method = "file_magic".
  18841. file_magic_cmd=$lt_file_magic_cmd
  18842. # How to find potential files when deplibs_check_method = "file_magic".
  18843. file_magic_glob=$lt_file_magic_glob
  18844. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  18845. want_nocaseglob=$lt_want_nocaseglob
  18846. # DLL creation program.
  18847. DLLTOOL=$lt_DLLTOOL
  18848. # Command to associate shared and link libraries.
  18849. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  18850. # The archiver.
  18851. AR=$lt_AR
  18852. # Flags to create an archive (by configure).
  18853. lt_ar_flags=$lt_ar_flags
  18854. # Flags to create an archive.
  18855. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  18856. # How to feed a file listing to the archiver.
  18857. archiver_list_spec=$lt_archiver_list_spec
  18858. # A symbol stripping program.
  18859. STRIP=$lt_STRIP
  18860. # Commands used to install an old-style archive.
  18861. RANLIB=$lt_RANLIB
  18862. old_postinstall_cmds=$lt_old_postinstall_cmds
  18863. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18864. # Whether to use a lock for old archive extraction.
  18865. lock_old_archive_extraction=$lock_old_archive_extraction
  18866. # A C compiler.
  18867. LTCC=$lt_CC
  18868. # LTCC compiler flags.
  18869. LTCFLAGS=$lt_CFLAGS
  18870. # Take the output of nm and produce a listing of raw symbols and C names.
  18871. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18872. # Transform the output of nm in a proper C declaration.
  18873. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18874. # Transform the output of nm into a list of symbols to manually relocate.
  18875. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  18876. # Transform the output of nm in a C name address pair.
  18877. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18878. # Transform the output of nm in a C name address pair when lib prefix is needed.
  18879. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  18880. # The name lister interface.
  18881. nm_interface=$lt_lt_cv_nm_interface
  18882. # Specify filename containing input files for \$NM.
  18883. nm_file_list_spec=$lt_nm_file_list_spec
  18884. # The root where to search for dependent libraries,and where our libraries should be installed.
  18885. lt_sysroot=$lt_sysroot
  18886. # Command to truncate a binary pipe.
  18887. lt_truncate_bin=$lt_lt_cv_truncate_bin
  18888. # The name of the directory that contains temporary libtool files.
  18889. objdir=$objdir
  18890. # Used to examine libraries when file_magic_cmd begins with "file".
  18891. MAGIC_CMD=$MAGIC_CMD
  18892. # Must we lock files when doing compilation?
  18893. need_locks=$lt_need_locks
  18894. # Manifest tool.
  18895. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  18896. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  18897. DSYMUTIL=$lt_DSYMUTIL
  18898. # Tool to change global to local symbols on Mac OS X.
  18899. NMEDIT=$lt_NMEDIT
  18900. # Tool to manipulate fat objects and archives on Mac OS X.
  18901. LIPO=$lt_LIPO
  18902. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  18903. OTOOL=$lt_OTOOL
  18904. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  18905. OTOOL64=$lt_OTOOL64
  18906. # Old archive suffix (normally "a").
  18907. libext=$libext
  18908. # Shared library suffix (normally ".so").
  18909. shrext_cmds=$lt_shrext_cmds
  18910. # The commands to extract the exported symbol list from a shared archive.
  18911. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18912. # Variables whose values should be saved in libtool wrapper scripts and
  18913. # restored at link time.
  18914. variables_saved_for_relink=$lt_variables_saved_for_relink
  18915. # Do we need the "lib" prefix for modules?
  18916. need_lib_prefix=$need_lib_prefix
  18917. # Do we need a version for libraries?
  18918. need_version=$need_version
  18919. # Library versioning type.
  18920. version_type=$version_type
  18921. # Shared library runtime path variable.
  18922. runpath_var=$runpath_var
  18923. # Shared library path variable.
  18924. shlibpath_var=$shlibpath_var
  18925. # Is shlibpath searched before the hard-coded library search path?
  18926. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18927. # Format of library name prefix.
  18928. libname_spec=$lt_libname_spec
  18929. # List of archive names. First name is the real one, the rest are links.
  18930. # The last name is the one that the linker finds with -lNAME
  18931. library_names_spec=$lt_library_names_spec
  18932. # The coded name of the library, if different from the real name.
  18933. soname_spec=$lt_soname_spec
  18934. # Permission mode override for installation of shared libraries.
  18935. install_override_mode=$lt_install_override_mode
  18936. # Command to use after installation of a shared archive.
  18937. postinstall_cmds=$lt_postinstall_cmds
  18938. # Command to use after uninstallation of a shared archive.
  18939. postuninstall_cmds=$lt_postuninstall_cmds
  18940. # Commands used to finish a libtool library installation in a directory.
  18941. finish_cmds=$lt_finish_cmds
  18942. # As "finish_cmds", except a single script fragment to be evaled but
  18943. # not shown.
  18944. finish_eval=$lt_finish_eval
  18945. # Whether we should hardcode library paths into libraries.
  18946. hardcode_into_libs=$hardcode_into_libs
  18947. # Compile-time system search path for libraries.
  18948. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18949. # Detected run-time system search path for libraries.
  18950. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  18951. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  18952. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  18953. # Whether dlopen is supported.
  18954. dlopen_support=$enable_dlopen
  18955. # Whether dlopen of programs is supported.
  18956. dlopen_self=$enable_dlopen_self
  18957. # Whether dlopen of statically linked programs is supported.
  18958. dlopen_self_static=$enable_dlopen_self_static
  18959. # Commands to strip libraries.
  18960. old_striplib=$lt_old_striplib
  18961. striplib=$lt_striplib
  18962. # Assembler program.
  18963. AS=$lt_AS
  18964. # The linker used to build libraries.
  18965. LD=$lt_LD
  18966. # How to create reloadable object files.
  18967. reload_flag=$lt_reload_flag
  18968. reload_cmds=$lt_reload_cmds
  18969. # Commands used to build an old-style archive.
  18970. old_archive_cmds=$lt_old_archive_cmds
  18971. # A language specific compiler.
  18972. CC=$lt_compiler
  18973. # Is the compiler the GNU compiler?
  18974. with_gcc=$GCC
  18975. # Compiler flag to turn off builtin functions.
  18976. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  18977. # Additional compiler flags for building library objects.
  18978. pic_flag=$lt_lt_prog_compiler_pic
  18979. # How to pass a linker flag through the compiler.
  18980. wl=$lt_lt_prog_compiler_wl
  18981. # Compiler flag to prevent dynamic linking.
  18982. link_static_flag=$lt_lt_prog_compiler_static
  18983. # Does compiler simultaneously support -c and -o options?
  18984. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  18985. # Whether or not to add -lc for building shared libraries.
  18986. build_libtool_need_lc=$archive_cmds_need_lc
  18987. # Whether or not to disallow shared libs when runtime libs are static.
  18988. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  18989. # Compiler flag to allow reflexive dlopens.
  18990. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  18991. # Compiler flag to generate shared objects directly from archives.
  18992. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  18993. # Whether the compiler copes with passing no objects directly.
  18994. compiler_needs_object=$lt_compiler_needs_object
  18995. # Create an old-style archive from a shared archive.
  18996. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  18997. # Create a temporary old-style archive to link instead of a shared archive.
  18998. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  18999. # Commands used to build a shared archive.
  19000. archive_cmds=$lt_archive_cmds
  19001. archive_expsym_cmds=$lt_archive_expsym_cmds
  19002. # Commands used to build a loadable module if different from building
  19003. # a shared archive.
  19004. module_cmds=$lt_module_cmds
  19005. module_expsym_cmds=$lt_module_expsym_cmds
  19006. # Whether we are building with GNU ld or not.
  19007. with_gnu_ld=$lt_with_gnu_ld
  19008. # Flag that allows shared libraries with undefined symbols to be built.
  19009. allow_undefined_flag=$lt_allow_undefined_flag
  19010. # Flag that enforces no undefined symbols.
  19011. no_undefined_flag=$lt_no_undefined_flag
  19012. # Flag to hardcode \$libdir into a binary during linking.
  19013. # This must work even if \$libdir does not exist
  19014. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19015. # Whether we need a single "-rpath" flag with a separated argument.
  19016. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19017. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19018. # DIR into the resulting binary.
  19019. hardcode_direct=$hardcode_direct
  19020. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19021. # DIR into the resulting binary and the resulting library dependency is
  19022. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19023. # library is relocated.
  19024. hardcode_direct_absolute=$hardcode_direct_absolute
  19025. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19026. # into the resulting binary.
  19027. hardcode_minus_L=$hardcode_minus_L
  19028. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19029. # into the resulting binary.
  19030. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19031. # Set to "yes" if building a shared library automatically hardcodes DIR
  19032. # into the library and all subsequent libraries and executables linked
  19033. # against it.
  19034. hardcode_automatic=$hardcode_automatic
  19035. # Set to yes if linker adds runtime paths of dependent libraries
  19036. # to runtime path list.
  19037. inherit_rpath=$inherit_rpath
  19038. # Whether libtool must link a program against all its dependency libraries.
  19039. link_all_deplibs=$link_all_deplibs
  19040. # Set to "yes" if exported symbols are required.
  19041. always_export_symbols=$always_export_symbols
  19042. # The commands to list exported symbols.
  19043. export_symbols_cmds=$lt_export_symbols_cmds
  19044. # Symbols that should not be listed in the preloaded symbols.
  19045. exclude_expsyms=$lt_exclude_expsyms
  19046. # Symbols that must always be exported.
  19047. include_expsyms=$lt_include_expsyms
  19048. # Commands necessary for linking programs (against libraries) with templates.
  19049. prelink_cmds=$lt_prelink_cmds
  19050. # Commands necessary for finishing linking programs.
  19051. postlink_cmds=$lt_postlink_cmds
  19052. # Specify filename containing input files.
  19053. file_list_spec=$lt_file_list_spec
  19054. # How to hardcode a shared library path into an executable.
  19055. hardcode_action=$hardcode_action
  19056. # The directories searched by this compiler when creating a shared library.
  19057. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19058. # Dependencies to place before and after the objects being linked to
  19059. # create a shared library.
  19060. predep_objects=$lt_predep_objects
  19061. postdep_objects=$lt_postdep_objects
  19062. predeps=$lt_predeps
  19063. postdeps=$lt_postdeps
  19064. # The library search path used internally by the compiler when linking
  19065. # a shared library.
  19066. compiler_lib_search_path=$lt_compiler_lib_search_path
  19067. # ### END LIBTOOL CONFIG
  19068. _LT_EOF
  19069. cat <<'_LT_EOF' >> "$cfgfile"
  19070. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19071. # func_munge_path_list VARIABLE PATH
  19072. # -----------------------------------
  19073. # VARIABLE is name of variable containing _space_ separated list of
  19074. # directories to be munged by the contents of PATH, which is string
  19075. # having a format:
  19076. # "DIR[:DIR]:"
  19077. # string "DIR[ DIR]" will be prepended to VARIABLE
  19078. # ":DIR[:DIR]"
  19079. # string "DIR[ DIR]" will be appended to VARIABLE
  19080. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19081. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19082. # "DIRA[ DIRA]" will be appended to VARIABLE
  19083. # "DIR[:DIR]"
  19084. # VARIABLE will be replaced by "DIR[ DIR]"
  19085. func_munge_path_list ()
  19086. {
  19087. case x$2 in
  19088. x)
  19089. ;;
  19090. *:)
  19091. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19092. ;;
  19093. x:*)
  19094. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19095. ;;
  19096. *::*)
  19097. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19098. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19099. ;;
  19100. *)
  19101. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19102. ;;
  19103. esac
  19104. }
  19105. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19106. func_cc_basename ()
  19107. {
  19108. for cc_temp in $*""; do
  19109. case $cc_temp in
  19110. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19111. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19112. \-*) ;;
  19113. *) break;;
  19114. esac
  19115. done
  19116. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19117. }
  19118. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19119. _LT_EOF
  19120. case $host_os in
  19121. aix3*)
  19122. cat <<\_LT_EOF >> "$cfgfile"
  19123. # AIX sometimes has problems with the GCC collect2 program. For some
  19124. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19125. # vanish in a puff of smoke.
  19126. if test set != "${COLLECT_NAMES+set}"; then
  19127. COLLECT_NAMES=
  19128. export COLLECT_NAMES
  19129. fi
  19130. _LT_EOF
  19131. ;;
  19132. esac
  19133. ltmain=$ac_aux_dir/ltmain.sh
  19134. # We use sed instead of cat because bash on DJGPP gets confused if
  19135. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19136. # text mode, it properly converts lines to CR/LF. This bash problem
  19137. # is reportedly fixed, but why not run on old versions too?
  19138. $SED '$q' "$ltmain" >> "$cfgfile" \
  19139. || (rm -f "$cfgfile"; exit 1)
  19140. mv -f "$cfgfile" "$ofile" ||
  19141. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19142. chmod +x "$ofile"
  19143. cat <<_LT_EOF >> "$ofile"
  19144. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19145. # The linker used to build libraries.
  19146. LD=$lt_LD_CXX
  19147. # How to create reloadable object files.
  19148. reload_flag=$lt_reload_flag_CXX
  19149. reload_cmds=$lt_reload_cmds_CXX
  19150. # Commands used to build an old-style archive.
  19151. old_archive_cmds=$lt_old_archive_cmds_CXX
  19152. # A language specific compiler.
  19153. CC=$lt_compiler_CXX
  19154. # Is the compiler the GNU compiler?
  19155. with_gcc=$GCC_CXX
  19156. # Compiler flag to turn off builtin functions.
  19157. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19158. # Additional compiler flags for building library objects.
  19159. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19160. # How to pass a linker flag through the compiler.
  19161. wl=$lt_lt_prog_compiler_wl_CXX
  19162. # Compiler flag to prevent dynamic linking.
  19163. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19164. # Does compiler simultaneously support -c and -o options?
  19165. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19166. # Whether or not to add -lc for building shared libraries.
  19167. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19168. # Whether or not to disallow shared libs when runtime libs are static.
  19169. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19170. # Compiler flag to allow reflexive dlopens.
  19171. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19172. # Compiler flag to generate shared objects directly from archives.
  19173. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19174. # Whether the compiler copes with passing no objects directly.
  19175. compiler_needs_object=$lt_compiler_needs_object_CXX
  19176. # Create an old-style archive from a shared archive.
  19177. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19178. # Create a temporary old-style archive to link instead of a shared archive.
  19179. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19180. # Commands used to build a shared archive.
  19181. archive_cmds=$lt_archive_cmds_CXX
  19182. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19183. # Commands used to build a loadable module if different from building
  19184. # a shared archive.
  19185. module_cmds=$lt_module_cmds_CXX
  19186. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19187. # Whether we are building with GNU ld or not.
  19188. with_gnu_ld=$lt_with_gnu_ld_CXX
  19189. # Flag that allows shared libraries with undefined symbols to be built.
  19190. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19191. # Flag that enforces no undefined symbols.
  19192. no_undefined_flag=$lt_no_undefined_flag_CXX
  19193. # Flag to hardcode \$libdir into a binary during linking.
  19194. # This must work even if \$libdir does not exist
  19195. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19196. # Whether we need a single "-rpath" flag with a separated argument.
  19197. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19198. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19199. # DIR into the resulting binary.
  19200. hardcode_direct=$hardcode_direct_CXX
  19201. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19202. # DIR into the resulting binary and the resulting library dependency is
  19203. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19204. # library is relocated.
  19205. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19206. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19207. # into the resulting binary.
  19208. hardcode_minus_L=$hardcode_minus_L_CXX
  19209. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19210. # into the resulting binary.
  19211. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19212. # Set to "yes" if building a shared library automatically hardcodes DIR
  19213. # into the library and all subsequent libraries and executables linked
  19214. # against it.
  19215. hardcode_automatic=$hardcode_automatic_CXX
  19216. # Set to yes if linker adds runtime paths of dependent libraries
  19217. # to runtime path list.
  19218. inherit_rpath=$inherit_rpath_CXX
  19219. # Whether libtool must link a program against all its dependency libraries.
  19220. link_all_deplibs=$link_all_deplibs_CXX
  19221. # Set to "yes" if exported symbols are required.
  19222. always_export_symbols=$always_export_symbols_CXX
  19223. # The commands to list exported symbols.
  19224. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19225. # Symbols that should not be listed in the preloaded symbols.
  19226. exclude_expsyms=$lt_exclude_expsyms_CXX
  19227. # Symbols that must always be exported.
  19228. include_expsyms=$lt_include_expsyms_CXX
  19229. # Commands necessary for linking programs (against libraries) with templates.
  19230. prelink_cmds=$lt_prelink_cmds_CXX
  19231. # Commands necessary for finishing linking programs.
  19232. postlink_cmds=$lt_postlink_cmds_CXX
  19233. # Specify filename containing input files.
  19234. file_list_spec=$lt_file_list_spec_CXX
  19235. # How to hardcode a shared library path into an executable.
  19236. hardcode_action=$hardcode_action_CXX
  19237. # The directories searched by this compiler when creating a shared library.
  19238. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19239. # Dependencies to place before and after the objects being linked to
  19240. # create a shared library.
  19241. predep_objects=$lt_predep_objects_CXX
  19242. postdep_objects=$lt_postdep_objects_CXX
  19243. predeps=$lt_predeps_CXX
  19244. postdeps=$lt_postdeps_CXX
  19245. # The library search path used internally by the compiler when linking
  19246. # a shared library.
  19247. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19248. # ### END LIBTOOL TAG CONFIG: CXX
  19249. _LT_EOF
  19250. ;;
  19251. esac
  19252. done # for ac_tag
  19253. as_fn_exit 0
  19254. _ACEOF
  19255. ac_clean_files=$ac_clean_files_save
  19256. test $ac_write_fail = 0 ||
  19257. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19258. # configure is writing to config.log, and then calls config.status.
  19259. # config.status does its own redirection, appending to config.log.
  19260. # Unfortunately, on DOS this fails, as config.log is still kept open
  19261. # by configure, so config.status won't be able to write to it; its
  19262. # output is simply discarded. So we exec the FD to /dev/null,
  19263. # effectively closing config.log, so it can be properly (re)opened and
  19264. # appended to by config.status. When coming back to configure, we
  19265. # need to make the FD available again.
  19266. if test "$no_create" != yes; then
  19267. ac_cs_success=:
  19268. ac_config_status_args=
  19269. test "$silent" = yes &&
  19270. ac_config_status_args="$ac_config_status_args --quiet"
  19271. exec 5>/dev/null
  19272. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19273. exec 5>>config.log
  19274. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19275. # would make configure fail if this is the last instruction.
  19276. $ac_cs_success || as_fn_exit 1
  19277. fi
  19278. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19280. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19281. fi