configure 635 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for lcms2 2.13.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell [email protected] about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='lcms2'
  539. PACKAGE_TARNAME='lcms2'
  540. PACKAGE_VERSION='2.13'
  541. PACKAGE_STRING='lcms2 2.13'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. COND_THREADED_FALSE
  584. COND_THREADED_TRUE
  585. COND_FASTFLOAT_FALSE
  586. COND_FASTFLOAT_TRUE
  587. TIFFICC_DEPLIBS
  588. JPEGICC_DEPLIBS
  589. LIB_PLUGINS
  590. LCMS_LIB_DEPLIBS
  591. LIB_TIFF
  592. HasTIFF_FALSE
  593. HasTIFF_TRUE
  594. LIB_ZLIB
  595. HasZLIB_FALSE
  596. HasZLIB_TRUE
  597. LIB_JPEG
  598. HasJPEG_FALSE
  599. HasJPEG_TRUE
  600. LIB_THREAD
  601. LIB_MATH
  602. PTHREAD_CFLAGS
  603. PTHREAD_LIBS
  604. PTHREAD_CXX
  605. PTHREAD_CC
  606. acx_pthread_config
  607. inline
  608. MAINT
  609. MAINTAINER_MODE_FALSE
  610. MAINTAINER_MODE_TRUE
  611. LIBTOOL_DEPS
  612. AS
  613. CXXCPP
  614. LT_SYS_LIBRARY_PATH
  615. OTOOL64
  616. OTOOL
  617. LIPO
  618. NMEDIT
  619. DSYMUTIL
  620. MANIFEST_TOOL
  621. RANLIB
  622. ac_ct_AR
  623. AR
  624. DLLTOOL
  625. OBJDUMP
  626. LN_S
  627. NM
  628. ac_ct_DUMPBIN
  629. DUMPBIN
  630. LD
  631. FGREP
  632. EGREP
  633. GREP
  634. SED
  635. LIBTOOL
  636. am__fastdepCXX_FALSE
  637. am__fastdepCXX_TRUE
  638. CXXDEPMODE
  639. ac_ct_CXX
  640. CXXFLAGS
  641. CXX
  642. CPP
  643. am__fastdepCC_FALSE
  644. am__fastdepCC_TRUE
  645. CCDEPMODE
  646. am__nodep
  647. AMDEPBACKSLASH
  648. AMDEP_FALSE
  649. AMDEP_TRUE
  650. am__include
  651. DEPDIR
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. AM_BACKSLASH
  660. AM_DEFAULT_VERBOSITY
  661. AM_DEFAULT_V
  662. AM_V
  663. am__untar
  664. am__tar
  665. AMTAR
  666. am__leading_dot
  667. SET_MAKE
  668. AWK
  669. mkdir_p
  670. MKDIR_P
  671. INSTALL_STRIP_PROGRAM
  672. STRIP
  673. install_sh
  674. MAKEINFO
  675. AUTOHEADER
  676. AUTOMAKE
  677. AUTOCONF
  678. ACLOCAL
  679. VERSION
  680. PACKAGE
  681. CYGPATH_W
  682. am__isrc
  683. INSTALL_DATA
  684. INSTALL_SCRIPT
  685. INSTALL_PROGRAM
  686. host_os
  687. host_vendor
  688. host_cpu
  689. host
  690. build_os
  691. build_vendor
  692. build_cpu
  693. build
  694. LIBRARY_AGE
  695. LIBRARY_REVISION
  696. LIBRARY_CURRENT
  697. target_alias
  698. host_alias
  699. build_alias
  700. LIBS
  701. ECHO_T
  702. ECHO_N
  703. ECHO_C
  704. DEFS
  705. mandir
  706. localedir
  707. libdir
  708. psdir
  709. pdfdir
  710. dvidir
  711. htmldir
  712. infodir
  713. docdir
  714. oldincludedir
  715. includedir
  716. runstatedir
  717. localstatedir
  718. sharedstatedir
  719. sysconfdir
  720. datadir
  721. datarootdir
  722. libexecdir
  723. sbindir
  724. bindir
  725. program_transform_name
  726. prefix
  727. exec_prefix
  728. PACKAGE_URL
  729. PACKAGE_BUGREPORT
  730. PACKAGE_STRING
  731. PACKAGE_VERSION
  732. PACKAGE_TARNAME
  733. PACKAGE_NAME
  734. PATH_SEPARATOR
  735. SHELL
  736. am__quote'
  737. ac_subst_files=''
  738. ac_user_opts='
  739. enable_option_checking
  740. enable_silent_rules
  741. enable_dependency_tracking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_aix_soname
  747. with_gnu_ld
  748. with_sysroot
  749. enable_libtool_lock
  750. enable_maintainer_mode
  751. with_jpeg
  752. with_tiff
  753. with_zlib
  754. with_fastfloat
  755. with_threaded
  756. with_threads
  757. '
  758. ac_precious_vars='build_alias
  759. host_alias
  760. target_alias
  761. CC
  762. CFLAGS
  763. LDFLAGS
  764. LIBS
  765. CPPFLAGS
  766. CPP
  767. CXX
  768. CXXFLAGS
  769. CCC
  770. LT_SYS_LIBRARY_PATH
  771. CXXCPP'
  772. # Initialize some variables set by options.
  773. ac_init_help=
  774. ac_init_version=false
  775. ac_unrecognized_opts=
  776. ac_unrecognized_sep=
  777. # The variables have the same names as the options, with
  778. # dashes changed to underlines.
  779. cache_file=/dev/null
  780. exec_prefix=NONE
  781. no_create=
  782. no_recursion=
  783. prefix=NONE
  784. program_prefix=NONE
  785. program_suffix=NONE
  786. program_transform_name=s,x,x,
  787. silent=
  788. site=
  789. srcdir=
  790. verbose=
  791. x_includes=NONE
  792. x_libraries=NONE
  793. # Installation directory options.
  794. # These are left unexpanded so users can "make install exec_prefix=/foo"
  795. # and all the variables that are supposed to be based on exec_prefix
  796. # by default will actually change.
  797. # Use braces instead of parens because sh, perl, etc. also accept them.
  798. # (The list follows the same order as the GNU Coding Standards.)
  799. bindir='${exec_prefix}/bin'
  800. sbindir='${exec_prefix}/sbin'
  801. libexecdir='${exec_prefix}/libexec'
  802. datarootdir='${prefix}/share'
  803. datadir='${datarootdir}'
  804. sysconfdir='${prefix}/etc'
  805. sharedstatedir='${prefix}/com'
  806. localstatedir='${prefix}/var'
  807. runstatedir='${localstatedir}/run'
  808. includedir='${prefix}/include'
  809. oldincludedir='/usr/include'
  810. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  811. infodir='${datarootdir}/info'
  812. htmldir='${docdir}'
  813. dvidir='${docdir}'
  814. pdfdir='${docdir}'
  815. psdir='${docdir}'
  816. libdir='${exec_prefix}/lib'
  817. localedir='${datarootdir}/locale'
  818. mandir='${datarootdir}/man'
  819. ac_prev=
  820. ac_dashdash=
  821. for ac_option
  822. do
  823. # If the previous option needs an argument, assign it.
  824. if test -n "$ac_prev"; then
  825. eval $ac_prev=\$ac_option
  826. ac_prev=
  827. continue
  828. fi
  829. case $ac_option in
  830. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  831. *=) ac_optarg= ;;
  832. *) ac_optarg=yes ;;
  833. esac
  834. # Accept the important Cygnus configure options, so we can diagnose typos.
  835. case $ac_dashdash$ac_option in
  836. --)
  837. ac_dashdash=yes ;;
  838. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  839. ac_prev=bindir ;;
  840. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  841. bindir=$ac_optarg ;;
  842. -build | --build | --buil | --bui | --bu)
  843. ac_prev=build_alias ;;
  844. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  845. build_alias=$ac_optarg ;;
  846. -cache-file | --cache-file | --cache-fil | --cache-fi \
  847. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  848. ac_prev=cache_file ;;
  849. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  850. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  851. cache_file=$ac_optarg ;;
  852. --config-cache | -C)
  853. cache_file=config.cache ;;
  854. -datadir | --datadir | --datadi | --datad)
  855. ac_prev=datadir ;;
  856. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  857. datadir=$ac_optarg ;;
  858. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  859. | --dataroo | --dataro | --datar)
  860. ac_prev=datarootdir ;;
  861. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  862. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  863. datarootdir=$ac_optarg ;;
  864. -disable-* | --disable-*)
  865. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  866. # Reject names that are not valid shell variable names.
  867. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  868. as_fn_error $? "invalid feature name: $ac_useropt"
  869. ac_useropt_orig=$ac_useropt
  870. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  871. case $ac_user_opts in
  872. *"
  873. "enable_$ac_useropt"
  874. "*) ;;
  875. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  876. ac_unrecognized_sep=', ';;
  877. esac
  878. eval enable_$ac_useropt=no ;;
  879. -docdir | --docdir | --docdi | --doc | --do)
  880. ac_prev=docdir ;;
  881. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  882. docdir=$ac_optarg ;;
  883. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  884. ac_prev=dvidir ;;
  885. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  886. dvidir=$ac_optarg ;;
  887. -enable-* | --enable-*)
  888. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  891. as_fn_error $? "invalid feature name: $ac_useropt"
  892. ac_useropt_orig=$ac_useropt
  893. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  894. case $ac_user_opts in
  895. *"
  896. "enable_$ac_useropt"
  897. "*) ;;
  898. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  899. ac_unrecognized_sep=', ';;
  900. esac
  901. eval enable_$ac_useropt=\$ac_optarg ;;
  902. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  903. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  904. | --exec | --exe | --ex)
  905. ac_prev=exec_prefix ;;
  906. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  907. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  908. | --exec=* | --exe=* | --ex=*)
  909. exec_prefix=$ac_optarg ;;
  910. -gas | --gas | --ga | --g)
  911. # Obsolete; use --with-gas.
  912. with_gas=yes ;;
  913. -help | --help | --hel | --he | -h)
  914. ac_init_help=long ;;
  915. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  916. ac_init_help=recursive ;;
  917. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  918. ac_init_help=short ;;
  919. -host | --host | --hos | --ho)
  920. ac_prev=host_alias ;;
  921. -host=* | --host=* | --hos=* | --ho=*)
  922. host_alias=$ac_optarg ;;
  923. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  924. ac_prev=htmldir ;;
  925. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  926. | --ht=*)
  927. htmldir=$ac_optarg ;;
  928. -includedir | --includedir | --includedi | --included | --include \
  929. | --includ | --inclu | --incl | --inc)
  930. ac_prev=includedir ;;
  931. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  932. | --includ=* | --inclu=* | --incl=* | --inc=*)
  933. includedir=$ac_optarg ;;
  934. -infodir | --infodir | --infodi | --infod | --info | --inf)
  935. ac_prev=infodir ;;
  936. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  937. infodir=$ac_optarg ;;
  938. -libdir | --libdir | --libdi | --libd)
  939. ac_prev=libdir ;;
  940. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  941. libdir=$ac_optarg ;;
  942. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  943. | --libexe | --libex | --libe)
  944. ac_prev=libexecdir ;;
  945. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  946. | --libexe=* | --libex=* | --libe=*)
  947. libexecdir=$ac_optarg ;;
  948. -localedir | --localedir | --localedi | --localed | --locale)
  949. ac_prev=localedir ;;
  950. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  951. localedir=$ac_optarg ;;
  952. -localstatedir | --localstatedir | --localstatedi | --localstated \
  953. | --localstate | --localstat | --localsta | --localst | --locals)
  954. ac_prev=localstatedir ;;
  955. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  956. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  957. localstatedir=$ac_optarg ;;
  958. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  959. ac_prev=mandir ;;
  960. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  961. mandir=$ac_optarg ;;
  962. -nfp | --nfp | --nf)
  963. # Obsolete; use --without-fp.
  964. with_fp=no ;;
  965. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  966. | --no-cr | --no-c | -n)
  967. no_create=yes ;;
  968. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  969. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  970. no_recursion=yes ;;
  971. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  972. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  973. | --oldin | --oldi | --old | --ol | --o)
  974. ac_prev=oldincludedir ;;
  975. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  976. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  977. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  978. oldincludedir=$ac_optarg ;;
  979. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  980. ac_prev=prefix ;;
  981. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  982. prefix=$ac_optarg ;;
  983. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  984. | --program-pre | --program-pr | --program-p)
  985. ac_prev=program_prefix ;;
  986. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  987. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  988. program_prefix=$ac_optarg ;;
  989. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  990. | --program-suf | --program-su | --program-s)
  991. ac_prev=program_suffix ;;
  992. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  993. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  994. program_suffix=$ac_optarg ;;
  995. -program-transform-name | --program-transform-name \
  996. | --program-transform-nam | --program-transform-na \
  997. | --program-transform-n | --program-transform- \
  998. | --program-transform | --program-transfor \
  999. | --program-transfo | --program-transf \
  1000. | --program-trans | --program-tran \
  1001. | --progr-tra | --program-tr | --program-t)
  1002. ac_prev=program_transform_name ;;
  1003. -program-transform-name=* | --program-transform-name=* \
  1004. | --program-transform-nam=* | --program-transform-na=* \
  1005. | --program-transform-n=* | --program-transform-=* \
  1006. | --program-transform=* | --program-transfor=* \
  1007. | --program-transfo=* | --program-transf=* \
  1008. | --program-trans=* | --program-tran=* \
  1009. | --progr-tra=* | --program-tr=* | --program-t=*)
  1010. program_transform_name=$ac_optarg ;;
  1011. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1012. ac_prev=pdfdir ;;
  1013. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1014. pdfdir=$ac_optarg ;;
  1015. -psdir | --psdir | --psdi | --psd | --ps)
  1016. ac_prev=psdir ;;
  1017. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1018. psdir=$ac_optarg ;;
  1019. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1020. | -silent | --silent | --silen | --sile | --sil)
  1021. silent=yes ;;
  1022. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1023. | --runstate | --runstat | --runsta | --runst | --runs \
  1024. | --run | --ru | --r)
  1025. ac_prev=runstatedir ;;
  1026. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1027. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1028. | --run=* | --ru=* | --r=*)
  1029. runstatedir=$ac_optarg ;;
  1030. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1031. ac_prev=sbindir ;;
  1032. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1033. | --sbi=* | --sb=*)
  1034. sbindir=$ac_optarg ;;
  1035. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1036. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1037. | --sharedst | --shareds | --shared | --share | --shar \
  1038. | --sha | --sh)
  1039. ac_prev=sharedstatedir ;;
  1040. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1041. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1042. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1043. | --sha=* | --sh=*)
  1044. sharedstatedir=$ac_optarg ;;
  1045. -site | --site | --sit)
  1046. ac_prev=site ;;
  1047. -site=* | --site=* | --sit=*)
  1048. site=$ac_optarg ;;
  1049. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1050. ac_prev=srcdir ;;
  1051. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1052. srcdir=$ac_optarg ;;
  1053. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1054. | --syscon | --sysco | --sysc | --sys | --sy)
  1055. ac_prev=sysconfdir ;;
  1056. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1057. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1058. sysconfdir=$ac_optarg ;;
  1059. -target | --target | --targe | --targ | --tar | --ta | --t)
  1060. ac_prev=target_alias ;;
  1061. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1062. target_alias=$ac_optarg ;;
  1063. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1064. verbose=yes ;;
  1065. -version | --version | --versio | --versi | --vers | -V)
  1066. ac_init_version=: ;;
  1067. -with-* | --with-*)
  1068. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1071. as_fn_error $? "invalid package name: $ac_useropt"
  1072. ac_useropt_orig=$ac_useropt
  1073. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1074. case $ac_user_opts in
  1075. *"
  1076. "with_$ac_useropt"
  1077. "*) ;;
  1078. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1079. ac_unrecognized_sep=', ';;
  1080. esac
  1081. eval with_$ac_useropt=\$ac_optarg ;;
  1082. -without-* | --without-*)
  1083. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1084. # Reject names that are not valid shell variable names.
  1085. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1086. as_fn_error $? "invalid package name: $ac_useropt"
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "with_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval with_$ac_useropt=no ;;
  1097. --x)
  1098. # Obsolete; use --with-x.
  1099. with_x=yes ;;
  1100. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1101. | --x-incl | --x-inc | --x-in | --x-i)
  1102. ac_prev=x_includes ;;
  1103. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1104. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1105. x_includes=$ac_optarg ;;
  1106. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1107. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1108. ac_prev=x_libraries ;;
  1109. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1110. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1111. x_libraries=$ac_optarg ;;
  1112. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1113. Try \`$0 --help' for more information"
  1114. ;;
  1115. *=*)
  1116. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1117. # Reject names that are not valid shell variable names.
  1118. case $ac_envvar in #(
  1119. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1120. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1121. esac
  1122. eval $ac_envvar=\$ac_optarg
  1123. export $ac_envvar ;;
  1124. *)
  1125. # FIXME: should be removed in autoconf 3.0.
  1126. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1127. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1128. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1129. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1130. ;;
  1131. esac
  1132. done
  1133. if test -n "$ac_prev"; then
  1134. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1135. as_fn_error $? "missing argument to $ac_option"
  1136. fi
  1137. if test -n "$ac_unrecognized_opts"; then
  1138. case $enable_option_checking in
  1139. no) ;;
  1140. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1141. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1142. esac
  1143. fi
  1144. # Check all directory arguments for consistency.
  1145. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1146. datadir sysconfdir sharedstatedir localstatedir includedir \
  1147. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1148. libdir localedir mandir runstatedir
  1149. do
  1150. eval ac_val=\$$ac_var
  1151. # Remove trailing slashes.
  1152. case $ac_val in
  1153. */ )
  1154. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1155. eval $ac_var=\$ac_val;;
  1156. esac
  1157. # Be sure to have absolute directory names.
  1158. case $ac_val in
  1159. [\\/$]* | ?:[\\/]* ) continue;;
  1160. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1161. esac
  1162. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1163. done
  1164. # There might be people who depend on the old broken behavior: `$host'
  1165. # used to hold the argument of --host etc.
  1166. # FIXME: To remove some day.
  1167. build=$build_alias
  1168. host=$host_alias
  1169. target=$target_alias
  1170. # FIXME: To remove some day.
  1171. if test "x$host_alias" != x; then
  1172. if test "x$build_alias" = x; then
  1173. cross_compiling=maybe
  1174. elif test "x$build_alias" != "x$host_alias"; then
  1175. cross_compiling=yes
  1176. fi
  1177. fi
  1178. ac_tool_prefix=
  1179. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1180. test "$silent" = yes && exec 6>/dev/null
  1181. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1182. ac_ls_di=`ls -di .` &&
  1183. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1184. as_fn_error $? "working directory cannot be determined"
  1185. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1186. as_fn_error $? "pwd does not report name of working directory"
  1187. # Find the source files, if location was not specified.
  1188. if test -z "$srcdir"; then
  1189. ac_srcdir_defaulted=yes
  1190. # Try the directory containing this script, then the parent directory.
  1191. ac_confdir=`$as_dirname -- "$as_myself" ||
  1192. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1193. X"$as_myself" : 'X\(//\)[^/]' \| \
  1194. X"$as_myself" : 'X\(//\)$' \| \
  1195. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1196. $as_echo X"$as_myself" |
  1197. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1198. s//\1/
  1199. q
  1200. }
  1201. /^X\(\/\/\)[^/].*/{
  1202. s//\1/
  1203. q
  1204. }
  1205. /^X\(\/\/\)$/{
  1206. s//\1/
  1207. q
  1208. }
  1209. /^X\(\/\).*/{
  1210. s//\1/
  1211. q
  1212. }
  1213. s/.*/./; q'`
  1214. srcdir=$ac_confdir
  1215. if test ! -r "$srcdir/$ac_unique_file"; then
  1216. srcdir=..
  1217. fi
  1218. else
  1219. ac_srcdir_defaulted=no
  1220. fi
  1221. if test ! -r "$srcdir/$ac_unique_file"; then
  1222. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1223. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1224. fi
  1225. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1226. ac_abs_confdir=`(
  1227. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1228. pwd)`
  1229. # When building in place, set srcdir=.
  1230. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1231. srcdir=.
  1232. fi
  1233. # Remove unnecessary trailing slashes from srcdir.
  1234. # Double slashes in file names in object file debugging info
  1235. # mess up M-x gdb in Emacs.
  1236. case $srcdir in
  1237. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1238. esac
  1239. for ac_var in $ac_precious_vars; do
  1240. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1241. eval ac_env_${ac_var}_value=\$${ac_var}
  1242. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1243. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1244. done
  1245. #
  1246. # Report the --help message.
  1247. #
  1248. if test "$ac_init_help" = "long"; then
  1249. # Omit some internal or obsolete options to make the list less imposing.
  1250. # This message is too long to be a string in the A/UX 3.1 sh.
  1251. cat <<_ACEOF
  1252. \`configure' configures lcms2 2.13 to adapt to many kinds of systems.
  1253. Usage: $0 [OPTION]... [VAR=VALUE]...
  1254. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1255. VAR=VALUE. See below for descriptions of some of the useful variables.
  1256. Defaults for the options are specified in brackets.
  1257. Configuration:
  1258. -h, --help display this help and exit
  1259. --help=short display options specific to this package
  1260. --help=recursive display the short help of all the included packages
  1261. -V, --version display version information and exit
  1262. -q, --quiet, --silent do not print \`checking ...' messages
  1263. --cache-file=FILE cache test results in FILE [disabled]
  1264. -C, --config-cache alias for \`--cache-file=config.cache'
  1265. -n, --no-create do not create output files
  1266. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1267. Installation directories:
  1268. --prefix=PREFIX install architecture-independent files in PREFIX
  1269. [$ac_default_prefix]
  1270. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1271. [PREFIX]
  1272. By default, \`make install' will install all the files in
  1273. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1274. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1275. for instance \`--prefix=\$HOME'.
  1276. For better control, use the options below.
  1277. Fine tuning of the installation directories:
  1278. --bindir=DIR user executables [EPREFIX/bin]
  1279. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1280. --libexecdir=DIR program executables [EPREFIX/libexec]
  1281. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1282. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1283. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1284. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1285. --libdir=DIR object code libraries [EPREFIX/lib]
  1286. --includedir=DIR C header files [PREFIX/include]
  1287. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1288. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1289. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1290. --infodir=DIR info documentation [DATAROOTDIR/info]
  1291. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1292. --mandir=DIR man documentation [DATAROOTDIR/man]
  1293. --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2]
  1294. --htmldir=DIR html documentation [DOCDIR]
  1295. --dvidir=DIR dvi documentation [DOCDIR]
  1296. --pdfdir=DIR pdf documentation [DOCDIR]
  1297. --psdir=DIR ps documentation [DOCDIR]
  1298. _ACEOF
  1299. cat <<\_ACEOF
  1300. Program names:
  1301. --program-prefix=PREFIX prepend PREFIX to installed program names
  1302. --program-suffix=SUFFIX append SUFFIX to installed program names
  1303. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1304. System types:
  1305. --build=BUILD configure for building on BUILD [guessed]
  1306. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1307. _ACEOF
  1308. fi
  1309. if test -n "$ac_init_help"; then
  1310. case $ac_init_help in
  1311. short | recursive ) echo "Configuration of lcms2 2.13:";;
  1312. esac
  1313. cat <<\_ACEOF
  1314. Optional Features:
  1315. --disable-option-checking ignore unrecognized --enable/--with options
  1316. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1317. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1318. --enable-silent-rules less verbose build output (undo: "make V=1")
  1319. --disable-silent-rules verbose build output (undo: "make V=0")
  1320. --enable-dependency-tracking
  1321. do not reject slow dependency extractors
  1322. --disable-dependency-tracking
  1323. speeds up one-time build
  1324. --enable-shared[=PKGS] build shared libraries [default=yes]
  1325. --enable-static[=PKGS] build static libraries [default=yes]
  1326. --enable-fast-install[=PKGS]
  1327. optimize for fast installation [default=yes]
  1328. --disable-libtool-lock avoid locking (might break parallel builds)
  1329. --enable-maintainer-mode
  1330. enable make rules and dependencies not useful (and
  1331. sometimes confusing) to the casual installer
  1332. Optional Packages:
  1333. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1334. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1335. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1336. both]
  1337. --with-aix-soname=aix|svr4|both
  1338. shared library versioning (aka "SONAME") variant to
  1339. provide on AIX, [default=aix].
  1340. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1341. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1342. compiler's sysroot if not specified).
  1343. --with-jpeg=DIR use jpeg installed in DIR
  1344. --with-tiff=DIR use tiff installed in DIR
  1345. --without-zlib disable ZLIB support
  1346. --with-fastfloat build and install fast_float plugin, use only if GPL
  1347. 3.0 is acceptable
  1348. --with-threaded build and install multi threaded plugin, use only if
  1349. GPL 3.0 is acceptable
  1350. --without-pthreads disable POSIX pthreads API support
  1351. Some influential environment variables:
  1352. CC C compiler command
  1353. CFLAGS C compiler flags
  1354. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1355. nonstandard directory <lib dir>
  1356. LIBS libraries to pass to the linker, e.g. -l<library>
  1357. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1358. you have headers in a nonstandard directory <include dir>
  1359. CPP C preprocessor
  1360. CXX C++ compiler command
  1361. CXXFLAGS C++ compiler flags
  1362. LT_SYS_LIBRARY_PATH
  1363. User-defined run-time library search path.
  1364. CXXCPP C++ preprocessor
  1365. Use these variables to override the choices made by `configure' or to help
  1366. it to find libraries and programs with nonstandard names/locations.
  1367. Report bugs to the package provider.
  1368. _ACEOF
  1369. ac_status=$?
  1370. fi
  1371. if test "$ac_init_help" = "recursive"; then
  1372. # If there are subdirs, report their specific --help.
  1373. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1374. test -d "$ac_dir" ||
  1375. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1376. continue
  1377. ac_builddir=.
  1378. case "$ac_dir" in
  1379. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1380. *)
  1381. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1382. # A ".." for each directory in $ac_dir_suffix.
  1383. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1384. case $ac_top_builddir_sub in
  1385. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1386. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1387. esac ;;
  1388. esac
  1389. ac_abs_top_builddir=$ac_pwd
  1390. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1391. # for backward compatibility:
  1392. ac_top_builddir=$ac_top_build_prefix
  1393. case $srcdir in
  1394. .) # We are building in place.
  1395. ac_srcdir=.
  1396. ac_top_srcdir=$ac_top_builddir_sub
  1397. ac_abs_top_srcdir=$ac_pwd ;;
  1398. [\\/]* | ?:[\\/]* ) # Absolute name.
  1399. ac_srcdir=$srcdir$ac_dir_suffix;
  1400. ac_top_srcdir=$srcdir
  1401. ac_abs_top_srcdir=$srcdir ;;
  1402. *) # Relative name.
  1403. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1404. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1405. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1406. esac
  1407. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1408. cd "$ac_dir" || { ac_status=$?; continue; }
  1409. # Check for guested configure.
  1410. if test -f "$ac_srcdir/configure.gnu"; then
  1411. echo &&
  1412. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1413. elif test -f "$ac_srcdir/configure"; then
  1414. echo &&
  1415. $SHELL "$ac_srcdir/configure" --help=recursive
  1416. else
  1417. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1418. fi || ac_status=$?
  1419. cd "$ac_pwd" || { ac_status=$?; break; }
  1420. done
  1421. fi
  1422. test -n "$ac_init_help" && exit $ac_status
  1423. if $ac_init_version; then
  1424. cat <<\_ACEOF
  1425. lcms2 configure 2.13
  1426. generated by GNU Autoconf 2.69
  1427. Copyright (C) 2012 Free Software Foundation, Inc.
  1428. This configure script is free software; the Free Software Foundation
  1429. gives unlimited permission to copy, distribute and modify it.
  1430. _ACEOF
  1431. exit
  1432. fi
  1433. ## ------------------------ ##
  1434. ## Autoconf initialization. ##
  1435. ## ------------------------ ##
  1436. # ac_fn_c_try_compile LINENO
  1437. # --------------------------
  1438. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1439. ac_fn_c_try_compile ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. rm -f conftest.$ac_objext
  1443. if { { ac_try="$ac_compile"
  1444. case "(($ac_try" in
  1445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1446. *) ac_try_echo=$ac_try;;
  1447. esac
  1448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1449. $as_echo "$ac_try_echo"; } >&5
  1450. (eval "$ac_compile") 2>conftest.err
  1451. ac_status=$?
  1452. if test -s conftest.err; then
  1453. grep -v '^ *+' conftest.err >conftest.er1
  1454. cat conftest.er1 >&5
  1455. mv -f conftest.er1 conftest.err
  1456. fi
  1457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1458. test $ac_status = 0; } && {
  1459. test -z "$ac_c_werror_flag" ||
  1460. test ! -s conftest.err
  1461. } && test -s conftest.$ac_objext; then :
  1462. ac_retval=0
  1463. else
  1464. $as_echo "$as_me: failed program was:" >&5
  1465. sed 's/^/| /' conftest.$ac_ext >&5
  1466. ac_retval=1
  1467. fi
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_compile
  1471. # ac_fn_c_try_cpp LINENO
  1472. # ----------------------
  1473. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1474. ac_fn_c_try_cpp ()
  1475. {
  1476. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1477. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1478. case "(($ac_try" in
  1479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1480. *) ac_try_echo=$ac_try;;
  1481. esac
  1482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1483. $as_echo "$ac_try_echo"; } >&5
  1484. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1485. ac_status=$?
  1486. if test -s conftest.err; then
  1487. grep -v '^ *+' conftest.err >conftest.er1
  1488. cat conftest.er1 >&5
  1489. mv -f conftest.er1 conftest.err
  1490. fi
  1491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1492. test $ac_status = 0; } > conftest.i && {
  1493. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1494. test ! -s conftest.err
  1495. }; then :
  1496. ac_retval=0
  1497. else
  1498. $as_echo "$as_me: failed program was:" >&5
  1499. sed 's/^/| /' conftest.$ac_ext >&5
  1500. ac_retval=1
  1501. fi
  1502. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1503. as_fn_set_status $ac_retval
  1504. } # ac_fn_c_try_cpp
  1505. # ac_fn_cxx_try_compile LINENO
  1506. # ----------------------------
  1507. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1508. ac_fn_cxx_try_compile ()
  1509. {
  1510. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1511. rm -f conftest.$ac_objext
  1512. if { { ac_try="$ac_compile"
  1513. case "(($ac_try" in
  1514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1515. *) ac_try_echo=$ac_try;;
  1516. esac
  1517. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1518. $as_echo "$ac_try_echo"; } >&5
  1519. (eval "$ac_compile") 2>conftest.err
  1520. ac_status=$?
  1521. if test -s conftest.err; then
  1522. grep -v '^ *+' conftest.err >conftest.er1
  1523. cat conftest.er1 >&5
  1524. mv -f conftest.er1 conftest.err
  1525. fi
  1526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1527. test $ac_status = 0; } && {
  1528. test -z "$ac_cxx_werror_flag" ||
  1529. test ! -s conftest.err
  1530. } && test -s conftest.$ac_objext; then :
  1531. ac_retval=0
  1532. else
  1533. $as_echo "$as_me: failed program was:" >&5
  1534. sed 's/^/| /' conftest.$ac_ext >&5
  1535. ac_retval=1
  1536. fi
  1537. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1538. as_fn_set_status $ac_retval
  1539. } # ac_fn_cxx_try_compile
  1540. # ac_fn_c_try_link LINENO
  1541. # -----------------------
  1542. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1543. ac_fn_c_try_link ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. rm -f conftest.$ac_objext conftest$ac_exeext
  1547. if { { ac_try="$ac_link"
  1548. case "(($ac_try" in
  1549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1550. *) ac_try_echo=$ac_try;;
  1551. esac
  1552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1553. $as_echo "$ac_try_echo"; } >&5
  1554. (eval "$ac_link") 2>conftest.err
  1555. ac_status=$?
  1556. if test -s conftest.err; then
  1557. grep -v '^ *+' conftest.err >conftest.er1
  1558. cat conftest.er1 >&5
  1559. mv -f conftest.er1 conftest.err
  1560. fi
  1561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1562. test $ac_status = 0; } && {
  1563. test -z "$ac_c_werror_flag" ||
  1564. test ! -s conftest.err
  1565. } && test -s conftest$ac_exeext && {
  1566. test "$cross_compiling" = yes ||
  1567. test -x conftest$ac_exeext
  1568. }; then :
  1569. ac_retval=0
  1570. else
  1571. $as_echo "$as_me: failed program was:" >&5
  1572. sed 's/^/| /' conftest.$ac_ext >&5
  1573. ac_retval=1
  1574. fi
  1575. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1576. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1577. # interfere with the next link command; also delete a directory that is
  1578. # left behind by Apple's compiler. We do this before executing the actions.
  1579. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1580. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1581. as_fn_set_status $ac_retval
  1582. } # ac_fn_c_try_link
  1583. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1584. # -------------------------------------------------------
  1585. # Tests whether HEADER exists and can be compiled using the include files in
  1586. # INCLUDES, setting the cache variable VAR accordingly.
  1587. ac_fn_c_check_header_compile ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1591. $as_echo_n "checking for $2... " >&6; }
  1592. if eval \${$3+:} false; then :
  1593. $as_echo_n "(cached) " >&6
  1594. else
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $4
  1598. #include <$2>
  1599. _ACEOF
  1600. if ac_fn_c_try_compile "$LINENO"; then :
  1601. eval "$3=yes"
  1602. else
  1603. eval "$3=no"
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1606. fi
  1607. eval ac_res=\$$3
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1609. $as_echo "$ac_res" >&6; }
  1610. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1611. } # ac_fn_c_check_header_compile
  1612. # ac_fn_c_try_run LINENO
  1613. # ----------------------
  1614. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1615. # that executables *can* be run.
  1616. ac_fn_c_try_run ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. if { { ac_try="$ac_link"
  1620. case "(($ac_try" in
  1621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1622. *) ac_try_echo=$ac_try;;
  1623. esac
  1624. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1625. $as_echo "$ac_try_echo"; } >&5
  1626. (eval "$ac_link") 2>&5
  1627. ac_status=$?
  1628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1629. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1630. { { case "(($ac_try" in
  1631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1632. *) ac_try_echo=$ac_try;;
  1633. esac
  1634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1635. $as_echo "$ac_try_echo"; } >&5
  1636. (eval "$ac_try") 2>&5
  1637. ac_status=$?
  1638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1639. test $ac_status = 0; }; }; then :
  1640. ac_retval=0
  1641. else
  1642. $as_echo "$as_me: program exited with status $ac_status" >&5
  1643. $as_echo "$as_me: failed program was:" >&5
  1644. sed 's/^/| /' conftest.$ac_ext >&5
  1645. ac_retval=$ac_status
  1646. fi
  1647. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. as_fn_set_status $ac_retval
  1650. } # ac_fn_c_try_run
  1651. # ac_fn_c_check_func LINENO FUNC VAR
  1652. # ----------------------------------
  1653. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1654. ac_fn_c_check_func ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1658. $as_echo_n "checking for $2... " >&6; }
  1659. if eval \${$3+:} false; then :
  1660. $as_echo_n "(cached) " >&6
  1661. else
  1662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1663. /* end confdefs.h. */
  1664. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1665. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1666. #define $2 innocuous_$2
  1667. /* System header to define __stub macros and hopefully few prototypes,
  1668. which can conflict with char $2 (); below.
  1669. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1670. <limits.h> exists even on freestanding compilers. */
  1671. #ifdef __STDC__
  1672. # include <limits.h>
  1673. #else
  1674. # include <assert.h>
  1675. #endif
  1676. #undef $2
  1677. /* Override any GCC internal prototype to avoid an error.
  1678. Use char because int might match the return type of a GCC
  1679. builtin and then its argument prototype would still apply. */
  1680. #ifdef __cplusplus
  1681. extern "C"
  1682. #endif
  1683. char $2 ();
  1684. /* The GNU C library defines this for functions which it implements
  1685. to always fail with ENOSYS. Some functions are actually named
  1686. something starting with __ and the normal name is an alias. */
  1687. #if defined __stub_$2 || defined __stub___$2
  1688. choke me
  1689. #endif
  1690. int
  1691. main ()
  1692. {
  1693. return $2 ();
  1694. ;
  1695. return 0;
  1696. }
  1697. _ACEOF
  1698. if ac_fn_c_try_link "$LINENO"; then :
  1699. eval "$3=yes"
  1700. else
  1701. eval "$3=no"
  1702. fi
  1703. rm -f core conftest.err conftest.$ac_objext \
  1704. conftest$ac_exeext conftest.$ac_ext
  1705. fi
  1706. eval ac_res=\$$3
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. $as_echo "$ac_res" >&6; }
  1709. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1710. } # ac_fn_c_check_func
  1711. # ac_fn_cxx_try_cpp LINENO
  1712. # ------------------------
  1713. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1714. ac_fn_cxx_try_cpp ()
  1715. {
  1716. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1717. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1718. case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1725. ac_status=$?
  1726. if test -s conftest.err; then
  1727. grep -v '^ *+' conftest.err >conftest.er1
  1728. cat conftest.er1 >&5
  1729. mv -f conftest.er1 conftest.err
  1730. fi
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; } > conftest.i && {
  1733. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1734. test ! -s conftest.err
  1735. }; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: failed program was:" >&5
  1739. sed 's/^/| /' conftest.$ac_ext >&5
  1740. ac_retval=1
  1741. fi
  1742. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1743. as_fn_set_status $ac_retval
  1744. } # ac_fn_cxx_try_cpp
  1745. # ac_fn_cxx_try_link LINENO
  1746. # -------------------------
  1747. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1748. ac_fn_cxx_try_link ()
  1749. {
  1750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1751. rm -f conftest.$ac_objext conftest$ac_exeext
  1752. if { { ac_try="$ac_link"
  1753. case "(($ac_try" in
  1754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1755. *) ac_try_echo=$ac_try;;
  1756. esac
  1757. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1758. $as_echo "$ac_try_echo"; } >&5
  1759. (eval "$ac_link") 2>conftest.err
  1760. ac_status=$?
  1761. if test -s conftest.err; then
  1762. grep -v '^ *+' conftest.err >conftest.er1
  1763. cat conftest.er1 >&5
  1764. mv -f conftest.er1 conftest.err
  1765. fi
  1766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1767. test $ac_status = 0; } && {
  1768. test -z "$ac_cxx_werror_flag" ||
  1769. test ! -s conftest.err
  1770. } && test -s conftest$ac_exeext && {
  1771. test "$cross_compiling" = yes ||
  1772. test -x conftest$ac_exeext
  1773. }; then :
  1774. ac_retval=0
  1775. else
  1776. $as_echo "$as_me: failed program was:" >&5
  1777. sed 's/^/| /' conftest.$ac_ext >&5
  1778. ac_retval=1
  1779. fi
  1780. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1781. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1782. # interfere with the next link command; also delete a directory that is
  1783. # left behind by Apple's compiler. We do this before executing the actions.
  1784. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1786. as_fn_set_status $ac_retval
  1787. } # ac_fn_cxx_try_link
  1788. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1789. # -------------------------------------------------------
  1790. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1791. # the include files in INCLUDES and setting the cache variable VAR
  1792. # accordingly.
  1793. ac_fn_c_check_header_mongrel ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. if eval \${$3+:} false; then :
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1798. $as_echo_n "checking for $2... " >&6; }
  1799. if eval \${$3+:} false; then :
  1800. $as_echo_n "(cached) " >&6
  1801. fi
  1802. eval ac_res=\$$3
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1804. $as_echo "$ac_res" >&6; }
  1805. else
  1806. # Is the header compilable?
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1808. $as_echo_n "checking $2 usability... " >&6; }
  1809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1810. /* end confdefs.h. */
  1811. $4
  1812. #include <$2>
  1813. _ACEOF
  1814. if ac_fn_c_try_compile "$LINENO"; then :
  1815. ac_header_compiler=yes
  1816. else
  1817. ac_header_compiler=no
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1821. $as_echo "$ac_header_compiler" >&6; }
  1822. # Is the header present?
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1824. $as_echo_n "checking $2 presence... " >&6; }
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. #include <$2>
  1828. _ACEOF
  1829. if ac_fn_c_try_cpp "$LINENO"; then :
  1830. ac_header_preproc=yes
  1831. else
  1832. ac_header_preproc=no
  1833. fi
  1834. rm -f conftest.err conftest.i conftest.$ac_ext
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1836. $as_echo "$ac_header_preproc" >&6; }
  1837. # So? What about this header?
  1838. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1839. yes:no: )
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1841. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1843. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1844. ;;
  1845. no:yes:* )
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1847. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1849. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1851. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1853. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1855. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1856. ;;
  1857. esac
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1859. $as_echo_n "checking for $2... " >&6; }
  1860. if eval \${$3+:} false; then :
  1861. $as_echo_n "(cached) " >&6
  1862. else
  1863. eval "$3=\$ac_header_compiler"
  1864. fi
  1865. eval ac_res=\$$3
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1867. $as_echo "$ac_res" >&6; }
  1868. fi
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. } # ac_fn_c_check_header_mongrel
  1871. cat >config.log <<_ACEOF
  1872. This file contains any messages produced by compilers while
  1873. running configure, to aid debugging if configure makes a mistake.
  1874. It was created by lcms2 $as_me 2.13, which was
  1875. generated by GNU Autoconf 2.69. Invocation command line was
  1876. $ $0 $@
  1877. _ACEOF
  1878. exec 5>>config.log
  1879. {
  1880. cat <<_ASUNAME
  1881. ## --------- ##
  1882. ## Platform. ##
  1883. ## --------- ##
  1884. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1885. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1886. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1887. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1888. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1889. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1890. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1891. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1892. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1893. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1894. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1895. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1896. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1897. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1898. _ASUNAME
  1899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1900. for as_dir in $PATH
  1901. do
  1902. IFS=$as_save_IFS
  1903. test -z "$as_dir" && as_dir=.
  1904. $as_echo "PATH: $as_dir"
  1905. done
  1906. IFS=$as_save_IFS
  1907. } >&5
  1908. cat >&5 <<_ACEOF
  1909. ## ----------- ##
  1910. ## Core tests. ##
  1911. ## ----------- ##
  1912. _ACEOF
  1913. # Keep a trace of the command line.
  1914. # Strip out --no-create and --no-recursion so they do not pile up.
  1915. # Strip out --silent because we don't want to record it for future runs.
  1916. # Also quote any args containing shell meta-characters.
  1917. # Make two passes to allow for proper duplicate-argument suppression.
  1918. ac_configure_args=
  1919. ac_configure_args0=
  1920. ac_configure_args1=
  1921. ac_must_keep_next=false
  1922. for ac_pass in 1 2
  1923. do
  1924. for ac_arg
  1925. do
  1926. case $ac_arg in
  1927. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1928. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1929. | -silent | --silent | --silen | --sile | --sil)
  1930. continue ;;
  1931. *\'*)
  1932. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1933. esac
  1934. case $ac_pass in
  1935. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1936. 2)
  1937. as_fn_append ac_configure_args1 " '$ac_arg'"
  1938. if test $ac_must_keep_next = true; then
  1939. ac_must_keep_next=false # Got value, back to normal.
  1940. else
  1941. case $ac_arg in
  1942. *=* | --config-cache | -C | -disable-* | --disable-* \
  1943. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1944. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1945. | -with-* | --with-* | -without-* | --without-* | --x)
  1946. case "$ac_configure_args0 " in
  1947. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1948. esac
  1949. ;;
  1950. -* ) ac_must_keep_next=true ;;
  1951. esac
  1952. fi
  1953. as_fn_append ac_configure_args " '$ac_arg'"
  1954. ;;
  1955. esac
  1956. done
  1957. done
  1958. { ac_configure_args0=; unset ac_configure_args0;}
  1959. { ac_configure_args1=; unset ac_configure_args1;}
  1960. # When interrupted or exit'd, cleanup temporary files, and complete
  1961. # config.log. We remove comments because anyway the quotes in there
  1962. # would cause problems or look ugly.
  1963. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1964. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1965. trap 'exit_status=$?
  1966. # Save into config.log some information that might help in debugging.
  1967. {
  1968. echo
  1969. $as_echo "## ---------------- ##
  1970. ## Cache variables. ##
  1971. ## ---------------- ##"
  1972. echo
  1973. # The following way of writing the cache mishandles newlines in values,
  1974. (
  1975. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1976. eval ac_val=\$$ac_var
  1977. case $ac_val in #(
  1978. *${as_nl}*)
  1979. case $ac_var in #(
  1980. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1981. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1982. esac
  1983. case $ac_var in #(
  1984. _ | IFS | as_nl) ;; #(
  1985. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1986. *) { eval $ac_var=; unset $ac_var;} ;;
  1987. esac ;;
  1988. esac
  1989. done
  1990. (set) 2>&1 |
  1991. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1992. *${as_nl}ac_space=\ *)
  1993. sed -n \
  1994. "s/'\''/'\''\\\\'\'''\''/g;
  1995. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1996. ;; #(
  1997. *)
  1998. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1999. ;;
  2000. esac |
  2001. sort
  2002. )
  2003. echo
  2004. $as_echo "## ----------------- ##
  2005. ## Output variables. ##
  2006. ## ----------------- ##"
  2007. echo
  2008. for ac_var in $ac_subst_vars
  2009. do
  2010. eval ac_val=\$$ac_var
  2011. case $ac_val in
  2012. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2013. esac
  2014. $as_echo "$ac_var='\''$ac_val'\''"
  2015. done | sort
  2016. echo
  2017. if test -n "$ac_subst_files"; then
  2018. $as_echo "## ------------------- ##
  2019. ## File substitutions. ##
  2020. ## ------------------- ##"
  2021. echo
  2022. for ac_var in $ac_subst_files
  2023. do
  2024. eval ac_val=\$$ac_var
  2025. case $ac_val in
  2026. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2027. esac
  2028. $as_echo "$ac_var='\''$ac_val'\''"
  2029. done | sort
  2030. echo
  2031. fi
  2032. if test -s confdefs.h; then
  2033. $as_echo "## ----------- ##
  2034. ## confdefs.h. ##
  2035. ## ----------- ##"
  2036. echo
  2037. cat confdefs.h
  2038. echo
  2039. fi
  2040. test "$ac_signal" != 0 &&
  2041. $as_echo "$as_me: caught signal $ac_signal"
  2042. $as_echo "$as_me: exit $exit_status"
  2043. } >&5
  2044. rm -f core *.core core.conftest.* &&
  2045. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2046. exit $exit_status
  2047. ' 0
  2048. for ac_signal in 1 2 13 15; do
  2049. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2050. done
  2051. ac_signal=0
  2052. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2053. rm -f -r conftest* confdefs.h
  2054. $as_echo "/* confdefs.h */" > confdefs.h
  2055. # Predefined preprocessor variables.
  2056. cat >>confdefs.h <<_ACEOF
  2057. #define PACKAGE_NAME "$PACKAGE_NAME"
  2058. _ACEOF
  2059. cat >>confdefs.h <<_ACEOF
  2060. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2061. _ACEOF
  2062. cat >>confdefs.h <<_ACEOF
  2063. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2064. _ACEOF
  2065. cat >>confdefs.h <<_ACEOF
  2066. #define PACKAGE_STRING "$PACKAGE_STRING"
  2067. _ACEOF
  2068. cat >>confdefs.h <<_ACEOF
  2069. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2070. _ACEOF
  2071. cat >>confdefs.h <<_ACEOF
  2072. #define PACKAGE_URL "$PACKAGE_URL"
  2073. _ACEOF
  2074. # Let the site file select an alternate cache file if it wants to.
  2075. # Prefer an explicitly selected file to automatically selected ones.
  2076. ac_site_file1=NONE
  2077. ac_site_file2=NONE
  2078. if test -n "$CONFIG_SITE"; then
  2079. # We do not want a PATH search for config.site.
  2080. case $CONFIG_SITE in #((
  2081. -*) ac_site_file1=./$CONFIG_SITE;;
  2082. */*) ac_site_file1=$CONFIG_SITE;;
  2083. *) ac_site_file1=./$CONFIG_SITE;;
  2084. esac
  2085. elif test "x$prefix" != xNONE; then
  2086. ac_site_file1=$prefix/share/config.site
  2087. ac_site_file2=$prefix/etc/config.site
  2088. else
  2089. ac_site_file1=$ac_default_prefix/share/config.site
  2090. ac_site_file2=$ac_default_prefix/etc/config.site
  2091. fi
  2092. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2093. do
  2094. test "x$ac_site_file" = xNONE && continue
  2095. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2097. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2098. sed 's/^/| /' "$ac_site_file" >&5
  2099. . "$ac_site_file" \
  2100. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2102. as_fn_error $? "failed to load site script $ac_site_file
  2103. See \`config.log' for more details" "$LINENO" 5; }
  2104. fi
  2105. done
  2106. if test -r "$cache_file"; then
  2107. # Some versions of bash will fail to source /dev/null (special files
  2108. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2109. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2111. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2112. case $cache_file in
  2113. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2114. *) . "./$cache_file";;
  2115. esac
  2116. fi
  2117. else
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2119. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2120. >$cache_file
  2121. fi
  2122. # Check that the precious variables saved in the cache have kept the same
  2123. # value.
  2124. ac_cache_corrupted=false
  2125. for ac_var in $ac_precious_vars; do
  2126. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2127. eval ac_new_set=\$ac_env_${ac_var}_set
  2128. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2129. eval ac_new_val=\$ac_env_${ac_var}_value
  2130. case $ac_old_set,$ac_new_set in
  2131. set,)
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2133. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2134. ac_cache_corrupted=: ;;
  2135. ,set)
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2137. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2138. ac_cache_corrupted=: ;;
  2139. ,);;
  2140. *)
  2141. if test "x$ac_old_val" != "x$ac_new_val"; then
  2142. # differences in whitespace do not lead to failure.
  2143. ac_old_val_w=`echo x $ac_old_val`
  2144. ac_new_val_w=`echo x $ac_new_val`
  2145. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2147. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2148. ac_cache_corrupted=:
  2149. else
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2151. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2152. eval $ac_var=\$ac_old_val
  2153. fi
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2155. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2157. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2158. fi;;
  2159. esac
  2160. # Pass precious variables to config.status.
  2161. if test "$ac_new_set" = set; then
  2162. case $ac_new_val in
  2163. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2164. *) ac_arg=$ac_var=$ac_new_val ;;
  2165. esac
  2166. case " $ac_configure_args " in
  2167. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2168. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2169. esac
  2170. fi
  2171. done
  2172. if $ac_cache_corrupted; then
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2174. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2176. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2177. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2178. fi
  2179. ## -------------------- ##
  2180. ## Main body of script. ##
  2181. ## -------------------- ##
  2182. ac_ext=c
  2183. ac_cpp='$CPP $CPPFLAGS'
  2184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2187. # Specify directory where m4 macros may be found.
  2188. #
  2189. # Libtool library revision control info
  2190. #
  2191. LIBRARY_CURRENT=2
  2192. LIBRARY_REVISION=13
  2193. LIBRARY_AGE=0
  2194. # Obtain system type by running config.guess
  2195. ac_aux_dir=
  2196. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2197. if test -f "$ac_dir/install-sh"; then
  2198. ac_aux_dir=$ac_dir
  2199. ac_install_sh="$ac_aux_dir/install-sh -c"
  2200. break
  2201. elif test -f "$ac_dir/install.sh"; then
  2202. ac_aux_dir=$ac_dir
  2203. ac_install_sh="$ac_aux_dir/install.sh -c"
  2204. break
  2205. elif test -f "$ac_dir/shtool"; then
  2206. ac_aux_dir=$ac_dir
  2207. ac_install_sh="$ac_aux_dir/shtool install -c"
  2208. break
  2209. fi
  2210. done
  2211. if test -z "$ac_aux_dir"; then
  2212. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2213. fi
  2214. # These three variables are undocumented and unsupported,
  2215. # and are intended to be withdrawn in a future Autoconf release.
  2216. # They can cause serious problems if a builder's source tree is in a directory
  2217. # whose full name contains unusual characters.
  2218. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2219. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2220. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2221. # Make sure we can run config.sub.
  2222. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2223. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2225. $as_echo_n "checking build system type... " >&6; }
  2226. if ${ac_cv_build+:} false; then :
  2227. $as_echo_n "(cached) " >&6
  2228. else
  2229. ac_build_alias=$build_alias
  2230. test "x$ac_build_alias" = x &&
  2231. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2232. test "x$ac_build_alias" = x &&
  2233. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2234. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2235. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2236. fi
  2237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2238. $as_echo "$ac_cv_build" >&6; }
  2239. case $ac_cv_build in
  2240. *-*-*) ;;
  2241. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2242. esac
  2243. build=$ac_cv_build
  2244. ac_save_IFS=$IFS; IFS='-'
  2245. set x $ac_cv_build
  2246. shift
  2247. build_cpu=$1
  2248. build_vendor=$2
  2249. shift; shift
  2250. # Remember, the first character of IFS is used to create $*,
  2251. # except with old shells:
  2252. build_os=$*
  2253. IFS=$ac_save_IFS
  2254. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2256. $as_echo_n "checking host system type... " >&6; }
  2257. if ${ac_cv_host+:} false; then :
  2258. $as_echo_n "(cached) " >&6
  2259. else
  2260. if test "x$host_alias" = x; then
  2261. ac_cv_host=$ac_cv_build
  2262. else
  2263. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2264. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2265. fi
  2266. fi
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2268. $as_echo "$ac_cv_host" >&6; }
  2269. case $ac_cv_host in
  2270. *-*-*) ;;
  2271. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2272. esac
  2273. host=$ac_cv_host
  2274. ac_save_IFS=$IFS; IFS='-'
  2275. set x $ac_cv_host
  2276. shift
  2277. host_cpu=$1
  2278. host_vendor=$2
  2279. shift; shift
  2280. # Remember, the first character of IFS is used to create $*,
  2281. # except with old shells:
  2282. host_os=$*
  2283. IFS=$ac_save_IFS
  2284. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2285. am__api_version='1.16'
  2286. # Find a good install program. We prefer a C program (faster),
  2287. # so one script is as good as another. But avoid the broken or
  2288. # incompatible versions:
  2289. # SysV /etc/install, /usr/sbin/install
  2290. # SunOS /usr/etc/install
  2291. # IRIX /sbin/install
  2292. # AIX /bin/install
  2293. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2294. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2295. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2296. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2297. # OS/2's system install, which has a completely different semantic
  2298. # ./install, which can be erroneously created by make from ./install.sh.
  2299. # Reject install programs that cannot install multiple files.
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2301. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2302. if test -z "$INSTALL"; then
  2303. if ${ac_cv_path_install+:} false; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. # Account for people who put trailing slashes in PATH elements.
  2312. case $as_dir/ in #((
  2313. ./ | .// | /[cC]/* | \
  2314. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2315. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2316. /usr/ucb/* ) ;;
  2317. *)
  2318. # OSF1 and SCO ODT 3.0 have their own names for install.
  2319. # Don't use installbsd from OSF since it installs stuff as root
  2320. # by default.
  2321. for ac_prog in ginstall scoinst install; do
  2322. for ac_exec_ext in '' $ac_executable_extensions; do
  2323. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2324. if test $ac_prog = install &&
  2325. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2326. # AIX install. It has an incompatible calling convention.
  2327. :
  2328. elif test $ac_prog = install &&
  2329. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2330. # program-specific install script used by HP pwplus--don't use.
  2331. :
  2332. else
  2333. rm -rf conftest.one conftest.two conftest.dir
  2334. echo one > conftest.one
  2335. echo two > conftest.two
  2336. mkdir conftest.dir
  2337. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2338. test -s conftest.one && test -s conftest.two &&
  2339. test -s conftest.dir/conftest.one &&
  2340. test -s conftest.dir/conftest.two
  2341. then
  2342. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2343. break 3
  2344. fi
  2345. fi
  2346. fi
  2347. done
  2348. done
  2349. ;;
  2350. esac
  2351. done
  2352. IFS=$as_save_IFS
  2353. rm -rf conftest.one conftest.two conftest.dir
  2354. fi
  2355. if test "${ac_cv_path_install+set}" = set; then
  2356. INSTALL=$ac_cv_path_install
  2357. else
  2358. # As a last resort, use the slow shell script. Don't cache a
  2359. # value for INSTALL within a source directory, because that will
  2360. # break other packages using the cache if that directory is
  2361. # removed, or if the value is a relative name.
  2362. INSTALL=$ac_install_sh
  2363. fi
  2364. fi
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2366. $as_echo "$INSTALL" >&6; }
  2367. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2368. # It thinks the first close brace ends the variable substitution.
  2369. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2370. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2371. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2373. $as_echo_n "checking whether build environment is sane... " >&6; }
  2374. # Reject unsafe characters in $srcdir or the absolute working directory
  2375. # name. Accept space and tab only in the latter.
  2376. am_lf='
  2377. '
  2378. case `pwd` in
  2379. *[\\\"\#\$\&\'\`$am_lf]*)
  2380. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2381. esac
  2382. case $srcdir in
  2383. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2384. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2385. esac
  2386. # Do 'set' in a subshell so we don't clobber the current shell's
  2387. # arguments. Must try -L first in case configure is actually a
  2388. # symlink; some systems play weird games with the mod time of symlinks
  2389. # (eg FreeBSD returns the mod time of the symlink's containing
  2390. # directory).
  2391. if (
  2392. am_has_slept=no
  2393. for am_try in 1 2; do
  2394. echo "timestamp, slept: $am_has_slept" > conftest.file
  2395. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2396. if test "$*" = "X"; then
  2397. # -L didn't work.
  2398. set X `ls -t "$srcdir/configure" conftest.file`
  2399. fi
  2400. if test "$*" != "X $srcdir/configure conftest.file" \
  2401. && test "$*" != "X conftest.file $srcdir/configure"; then
  2402. # If neither matched, then we have a broken ls. This can happen
  2403. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2404. # broken ls alias from the environment. This has actually
  2405. # happened. Such a system could not be considered "sane".
  2406. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2407. alias in your environment" "$LINENO" 5
  2408. fi
  2409. if test "$2" = conftest.file || test $am_try -eq 2; then
  2410. break
  2411. fi
  2412. # Just in case.
  2413. sleep 1
  2414. am_has_slept=yes
  2415. done
  2416. test "$2" = conftest.file
  2417. )
  2418. then
  2419. # Ok.
  2420. :
  2421. else
  2422. as_fn_error $? "newly created file is older than distributed files!
  2423. Check your system clock" "$LINENO" 5
  2424. fi
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2426. $as_echo "yes" >&6; }
  2427. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2428. # generated files are strictly newer.
  2429. am_sleep_pid=
  2430. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2431. ( sleep 1 ) &
  2432. am_sleep_pid=$!
  2433. fi
  2434. rm -f conftest.file
  2435. test "$program_prefix" != NONE &&
  2436. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2437. # Use a double $ so make ignores it.
  2438. test "$program_suffix" != NONE &&
  2439. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2440. # Double any \ or $.
  2441. # By default was `s,x,x', remove it if useless.
  2442. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2443. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2444. # Expand $ac_aux_dir to an absolute path.
  2445. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2446. if test x"${MISSING+set}" != xset; then
  2447. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2448. fi
  2449. # Use eval to expand $SHELL
  2450. if eval "$MISSING --is-lightweight"; then
  2451. am_missing_run="$MISSING "
  2452. else
  2453. am_missing_run=
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2455. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2456. fi
  2457. if test x"${install_sh+set}" != xset; then
  2458. case $am_aux_dir in
  2459. *\ * | *\ *)
  2460. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2461. *)
  2462. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2463. esac
  2464. fi
  2465. # Installed binaries are usually stripped using 'strip' when the user
  2466. # run "make install-strip". However 'strip' might not be the right
  2467. # tool to use in cross-compilation environments, therefore Automake
  2468. # will honor the 'STRIP' environment variable to overrule this program.
  2469. if test "$cross_compiling" != no; then
  2470. if test -n "$ac_tool_prefix"; then
  2471. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2472. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2474. $as_echo_n "checking for $ac_word... " >&6; }
  2475. if ${ac_cv_prog_STRIP+:} false; then :
  2476. $as_echo_n "(cached) " >&6
  2477. else
  2478. if test -n "$STRIP"; then
  2479. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2480. else
  2481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2482. for as_dir in $PATH
  2483. do
  2484. IFS=$as_save_IFS
  2485. test -z "$as_dir" && as_dir=.
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2488. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2490. break 2
  2491. fi
  2492. done
  2493. done
  2494. IFS=$as_save_IFS
  2495. fi
  2496. fi
  2497. STRIP=$ac_cv_prog_STRIP
  2498. if test -n "$STRIP"; then
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2500. $as_echo "$STRIP" >&6; }
  2501. else
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2503. $as_echo "no" >&6; }
  2504. fi
  2505. fi
  2506. if test -z "$ac_cv_prog_STRIP"; then
  2507. ac_ct_STRIP=$STRIP
  2508. # Extract the first word of "strip", so it can be a program name with args.
  2509. set dummy strip; ac_word=$2
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2511. $as_echo_n "checking for $ac_word... " >&6; }
  2512. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test -n "$ac_ct_STRIP"; then
  2516. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2517. else
  2518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2519. for as_dir in $PATH
  2520. do
  2521. IFS=$as_save_IFS
  2522. test -z "$as_dir" && as_dir=.
  2523. for ac_exec_ext in '' $ac_executable_extensions; do
  2524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2525. ac_cv_prog_ac_ct_STRIP="strip"
  2526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2527. break 2
  2528. fi
  2529. done
  2530. done
  2531. IFS=$as_save_IFS
  2532. fi
  2533. fi
  2534. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2535. if test -n "$ac_ct_STRIP"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2537. $as_echo "$ac_ct_STRIP" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. if test "x$ac_ct_STRIP" = x; then
  2543. STRIP=":"
  2544. else
  2545. case $cross_compiling:$ac_tool_warned in
  2546. yes:)
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2549. ac_tool_warned=yes ;;
  2550. esac
  2551. STRIP=$ac_ct_STRIP
  2552. fi
  2553. else
  2554. STRIP="$ac_cv_prog_STRIP"
  2555. fi
  2556. fi
  2557. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2559. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2560. if test -z "$MKDIR_P"; then
  2561. if ${ac_cv_path_mkdir+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_prog in mkdir gmkdir; do
  2570. for ac_exec_ext in '' $ac_executable_extensions; do
  2571. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2572. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2573. 'mkdir (GNU coreutils) '* | \
  2574. 'mkdir (coreutils) '* | \
  2575. 'mkdir (fileutils) '4.1*)
  2576. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2577. break 3;;
  2578. esac
  2579. done
  2580. done
  2581. done
  2582. IFS=$as_save_IFS
  2583. fi
  2584. test -d ./--version && rmdir ./--version
  2585. if test "${ac_cv_path_mkdir+set}" = set; then
  2586. MKDIR_P="$ac_cv_path_mkdir -p"
  2587. else
  2588. # As a last resort, use the slow shell script. Don't cache a
  2589. # value for MKDIR_P within a source directory, because that will
  2590. # break other packages using the cache if that directory is
  2591. # removed, or if the value is a relative name.
  2592. MKDIR_P="$ac_install_sh -d"
  2593. fi
  2594. fi
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2596. $as_echo "$MKDIR_P" >&6; }
  2597. for ac_prog in gawk mawk nawk awk
  2598. do
  2599. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2600. set dummy $ac_prog; ac_word=$2
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2602. $as_echo_n "checking for $ac_word... " >&6; }
  2603. if ${ac_cv_prog_AWK+:} false; then :
  2604. $as_echo_n "(cached) " >&6
  2605. else
  2606. if test -n "$AWK"; then
  2607. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2608. else
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. for ac_exec_ext in '' $ac_executable_extensions; do
  2615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2616. ac_cv_prog_AWK="$ac_prog"
  2617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2618. break 2
  2619. fi
  2620. done
  2621. done
  2622. IFS=$as_save_IFS
  2623. fi
  2624. fi
  2625. AWK=$ac_cv_prog_AWK
  2626. if test -n "$AWK"; then
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2628. $as_echo "$AWK" >&6; }
  2629. else
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2631. $as_echo "no" >&6; }
  2632. fi
  2633. test -n "$AWK" && break
  2634. done
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2636. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2637. set x ${MAKE-make}
  2638. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2639. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2640. $as_echo_n "(cached) " >&6
  2641. else
  2642. cat >conftest.make <<\_ACEOF
  2643. SHELL = /bin/sh
  2644. all:
  2645. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2646. _ACEOF
  2647. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2648. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2649. *@@@%%%=?*=@@@%%%*)
  2650. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2651. *)
  2652. eval ac_cv_prog_make_${ac_make}_set=no;;
  2653. esac
  2654. rm -f conftest.make
  2655. fi
  2656. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2658. $as_echo "yes" >&6; }
  2659. SET_MAKE=
  2660. else
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. SET_MAKE="MAKE=${MAKE-make}"
  2664. fi
  2665. rm -rf .tst 2>/dev/null
  2666. mkdir .tst 2>/dev/null
  2667. if test -d .tst; then
  2668. am__leading_dot=.
  2669. else
  2670. am__leading_dot=_
  2671. fi
  2672. rmdir .tst 2>/dev/null
  2673. # Check whether --enable-silent-rules was given.
  2674. if test "${enable_silent_rules+set}" = set; then :
  2675. enableval=$enable_silent_rules;
  2676. fi
  2677. case $enable_silent_rules in # (((
  2678. yes) AM_DEFAULT_VERBOSITY=0;;
  2679. no) AM_DEFAULT_VERBOSITY=1;;
  2680. *) AM_DEFAULT_VERBOSITY=1;;
  2681. esac
  2682. am_make=${MAKE-make}
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2684. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2685. if ${am_cv_make_support_nested_variables+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if $as_echo 'TRUE=$(BAR$(V))
  2689. BAR0=false
  2690. BAR1=true
  2691. V=1
  2692. am__doit:
  2693. @$(TRUE)
  2694. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2695. am_cv_make_support_nested_variables=yes
  2696. else
  2697. am_cv_make_support_nested_variables=no
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2701. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2702. if test $am_cv_make_support_nested_variables = yes; then
  2703. AM_V='$(V)'
  2704. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2705. else
  2706. AM_V=$AM_DEFAULT_VERBOSITY
  2707. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2708. fi
  2709. AM_BACKSLASH='\'
  2710. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2711. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2712. # is not polluted with repeated "-I."
  2713. am__isrc=' -I$(srcdir)'
  2714. # test to see if srcdir already configured
  2715. if test -f $srcdir/config.status; then
  2716. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2717. fi
  2718. fi
  2719. # test whether we have cygpath
  2720. if test -z "$CYGPATH_W"; then
  2721. if (cygpath --version) >/dev/null 2>/dev/null; then
  2722. CYGPATH_W='cygpath -w'
  2723. else
  2724. CYGPATH_W=echo
  2725. fi
  2726. fi
  2727. # Define the identity of the package.
  2728. PACKAGE='lcms2'
  2729. VERSION='2.13'
  2730. # Some tools Automake needs.
  2731. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2732. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2733. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2734. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2735. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2736. # For better backward compatibility. To be removed once Automake 1.9.x
  2737. # dies out for good. For more background, see:
  2738. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2739. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2740. mkdir_p='$(MKDIR_P)'
  2741. # We need awk for the "check" target (and possibly the TAP driver). The
  2742. # system "awk" is bad on some platforms.
  2743. # Always define AMTAR for backward compatibility. Yes, it's still used
  2744. # in the wild :-( We should find a proper way to deprecate it ...
  2745. AMTAR='$${TAR-tar}'
  2746. # We'll loop over all known methods to create a tar archive until one works.
  2747. _am_tools='gnutar plaintar pax cpio none'
  2748. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  2749. # There is notably a 21 bits limit for the UID and the GID. In fact,
  2750. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  2751. # and bug#13588).
  2752. am_max_uid=2097151 # 2^21 - 1
  2753. am_max_gid=$am_max_uid
  2754. # The $UID and $GID variables are not portable, so we need to resort
  2755. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  2756. # below are definitely unexpected, so allow the users to see them
  2757. # (that is, avoid stderr redirection).
  2758. am_uid=`id -u || echo unknown`
  2759. am_gid=`id -g || echo unknown`
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  2761. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  2762. if test $am_uid -le $am_max_uid; then
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2764. $as_echo "yes" >&6; }
  2765. else
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2767. $as_echo "no" >&6; }
  2768. _am_tools=none
  2769. fi
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  2771. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  2772. if test $am_gid -le $am_max_gid; then
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2774. $as_echo "yes" >&6; }
  2775. else
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2777. $as_echo "no" >&6; }
  2778. _am_tools=none
  2779. fi
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2781. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2782. # Go ahead even if we have the value already cached. We do so because we
  2783. # need to set the values for the 'am__tar' and 'am__untar' variables.
  2784. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  2785. for _am_tool in $_am_tools; do
  2786. case $_am_tool in
  2787. gnutar)
  2788. for _am_tar in tar gnutar gtar; do
  2789. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2790. ($_am_tar --version) >&5 2>&5
  2791. ac_status=$?
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); } && break
  2794. done
  2795. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  2796. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  2797. am__untar="$_am_tar -xf -"
  2798. ;;
  2799. plaintar)
  2800. # Must skip GNU tar: if it does not support --format= it doesn't create
  2801. # ustar tarball either.
  2802. (tar --version) >/dev/null 2>&1 && continue
  2803. am__tar='tar chf - "$$tardir"'
  2804. am__tar_='tar chf - "$tardir"'
  2805. am__untar='tar xf -'
  2806. ;;
  2807. pax)
  2808. am__tar='pax -L -x ustar -w "$$tardir"'
  2809. am__tar_='pax -L -x ustar -w "$tardir"'
  2810. am__untar='pax -r'
  2811. ;;
  2812. cpio)
  2813. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  2814. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  2815. am__untar='cpio -i -H ustar -d'
  2816. ;;
  2817. none)
  2818. am__tar=false
  2819. am__tar_=false
  2820. am__untar=false
  2821. ;;
  2822. esac
  2823. # If the value was cached, stop now. We just wanted to have am__tar
  2824. # and am__untar set.
  2825. test -n "${am_cv_prog_tar_ustar}" && break
  2826. # tar/untar a dummy directory, and stop if the command works.
  2827. rm -rf conftest.dir
  2828. mkdir conftest.dir
  2829. echo GrepMe > conftest.dir/file
  2830. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2831. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2832. ac_status=$?
  2833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2834. (exit $ac_status); }
  2835. rm -rf conftest.dir
  2836. if test -s conftest.tar; then
  2837. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2838. ($am__untar <conftest.tar) >&5 2>&5
  2839. ac_status=$?
  2840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2841. (exit $ac_status); }
  2842. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2843. (cat conftest.dir/file) >&5 2>&5
  2844. ac_status=$?
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); }
  2847. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2848. fi
  2849. done
  2850. rm -rf conftest.dir
  2851. if ${am_cv_prog_tar_ustar+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. am_cv_prog_tar_ustar=$_am_tool
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  2857. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  2858. # POSIX will say in a future version that running "rm -f" with no argument
  2859. # is OK; and we want to be able to make that assumption in our Makefile
  2860. # recipes. So use an aggressive probe to check that the usage we want is
  2861. # actually supported "in the wild" to an acceptable degree.
  2862. # See automake bug#10828.
  2863. # To make any issue more visible, cause the running configure to be aborted
  2864. # by default if the 'rm' program in use doesn't match our expectations; the
  2865. # user can still override this though.
  2866. if rm -f && rm -fr && rm -rf; then : OK; else
  2867. cat >&2 <<'END'
  2868. Oops!
  2869. Your 'rm' program seems unable to run without file operands specified
  2870. on the command line, even when the '-f' option is present. This is contrary
  2871. to the behaviour of most rm programs out there, and not conforming with
  2872. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2873. Please tell [email protected] about your system, including the value
  2874. of your $PATH and any error possibly output before this message. This
  2875. can help us improve future automake versions.
  2876. END
  2877. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2878. echo 'Configuration will proceed anyway, since you have set the' >&2
  2879. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2880. echo >&2
  2881. else
  2882. cat >&2 <<'END'
  2883. Aborting the configuration process, to ensure you take notice of the issue.
  2884. You can download and install GNU coreutils to get an 'rm' implementation
  2885. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2886. If you want to complete the configuration process using your problematic
  2887. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2888. to "yes", and re-run configure.
  2889. END
  2890. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2891. fi
  2892. fi
  2893. # Check for programs
  2894. DEPDIR="${am__leading_dot}deps"
  2895. ac_config_commands="$ac_config_commands depfiles"
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  2897. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  2898. cat > confinc.mk << 'END'
  2899. am__doit:
  2900. @echo this is the am__doit target >confinc.out
  2901. .PHONY: am__doit
  2902. END
  2903. am__include="#"
  2904. am__quote=
  2905. # BSD make does it like this.
  2906. echo '.include "confinc.mk" # ignored' > confmf.BSD
  2907. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  2908. echo 'include confinc.mk # ignored' > confmf.GNU
  2909. _am_result=no
  2910. for s in GNU BSD; do
  2911. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  2912. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }
  2916. case $?:`cat confinc.out 2>/dev/null` in #(
  2917. '0:this is the am__doit target') :
  2918. case $s in #(
  2919. BSD) :
  2920. am__include='.include' am__quote='"' ;; #(
  2921. *) :
  2922. am__include='include' am__quote='' ;;
  2923. esac ;; #(
  2924. *) :
  2925. ;;
  2926. esac
  2927. if test "$am__include" != "#"; then
  2928. _am_result="yes ($s style)"
  2929. break
  2930. fi
  2931. done
  2932. rm -f confinc.* confmf.*
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  2934. $as_echo "${_am_result}" >&6; }
  2935. # Check whether --enable-dependency-tracking was given.
  2936. if test "${enable_dependency_tracking+set}" = set; then :
  2937. enableval=$enable_dependency_tracking;
  2938. fi
  2939. if test "x$enable_dependency_tracking" != xno; then
  2940. am_depcomp="$ac_aux_dir/depcomp"
  2941. AMDEPBACKSLASH='\'
  2942. am__nodep='_no'
  2943. fi
  2944. if test "x$enable_dependency_tracking" != xno; then
  2945. AMDEP_TRUE=
  2946. AMDEP_FALSE='#'
  2947. else
  2948. AMDEP_TRUE='#'
  2949. AMDEP_FALSE=
  2950. fi
  2951. ac_ext=c
  2952. ac_cpp='$CPP $CPPFLAGS'
  2953. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2954. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2955. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2956. if test -n "$ac_tool_prefix"; then
  2957. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2958. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2960. $as_echo_n "checking for $ac_word... " >&6; }
  2961. if ${ac_cv_prog_CC+:} false; then :
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. if test -n "$CC"; then
  2965. ac_cv_prog_CC="$CC" # Let the user override the test.
  2966. else
  2967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2968. for as_dir in $PATH
  2969. do
  2970. IFS=$as_save_IFS
  2971. test -z "$as_dir" && as_dir=.
  2972. for ac_exec_ext in '' $ac_executable_extensions; do
  2973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2974. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2976. break 2
  2977. fi
  2978. done
  2979. done
  2980. IFS=$as_save_IFS
  2981. fi
  2982. fi
  2983. CC=$ac_cv_prog_CC
  2984. if test -n "$CC"; then
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2986. $as_echo "$CC" >&6; }
  2987. else
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. fi
  2991. fi
  2992. if test -z "$ac_cv_prog_CC"; then
  2993. ac_ct_CC=$CC
  2994. # Extract the first word of "gcc", so it can be a program name with args.
  2995. set dummy gcc; ac_word=$2
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2997. $as_echo_n "checking for $ac_word... " >&6; }
  2998. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2999. $as_echo_n "(cached) " >&6
  3000. else
  3001. if test -n "$ac_ct_CC"; then
  3002. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3003. else
  3004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3005. for as_dir in $PATH
  3006. do
  3007. IFS=$as_save_IFS
  3008. test -z "$as_dir" && as_dir=.
  3009. for ac_exec_ext in '' $ac_executable_extensions; do
  3010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3011. ac_cv_prog_ac_ct_CC="gcc"
  3012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3013. break 2
  3014. fi
  3015. done
  3016. done
  3017. IFS=$as_save_IFS
  3018. fi
  3019. fi
  3020. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3021. if test -n "$ac_ct_CC"; then
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3023. $as_echo "$ac_ct_CC" >&6; }
  3024. else
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3026. $as_echo "no" >&6; }
  3027. fi
  3028. if test "x$ac_ct_CC" = x; then
  3029. CC=""
  3030. else
  3031. case $cross_compiling:$ac_tool_warned in
  3032. yes:)
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3035. ac_tool_warned=yes ;;
  3036. esac
  3037. CC=$ac_ct_CC
  3038. fi
  3039. else
  3040. CC="$ac_cv_prog_CC"
  3041. fi
  3042. if test -z "$CC"; then
  3043. if test -n "$ac_tool_prefix"; then
  3044. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3045. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3047. $as_echo_n "checking for $ac_word... " >&6; }
  3048. if ${ac_cv_prog_CC+:} false; then :
  3049. $as_echo_n "(cached) " >&6
  3050. else
  3051. if test -n "$CC"; then
  3052. ac_cv_prog_CC="$CC" # Let the user override the test.
  3053. else
  3054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3055. for as_dir in $PATH
  3056. do
  3057. IFS=$as_save_IFS
  3058. test -z "$as_dir" && as_dir=.
  3059. for ac_exec_ext in '' $ac_executable_extensions; do
  3060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3061. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3063. break 2
  3064. fi
  3065. done
  3066. done
  3067. IFS=$as_save_IFS
  3068. fi
  3069. fi
  3070. CC=$ac_cv_prog_CC
  3071. if test -n "$CC"; then
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3073. $as_echo "$CC" >&6; }
  3074. else
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3076. $as_echo "no" >&6; }
  3077. fi
  3078. fi
  3079. fi
  3080. if test -z "$CC"; then
  3081. # Extract the first word of "cc", so it can be a program name with args.
  3082. set dummy cc; ac_word=$2
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3084. $as_echo_n "checking for $ac_word... " >&6; }
  3085. if ${ac_cv_prog_CC+:} false; then :
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. if test -n "$CC"; then
  3089. ac_cv_prog_CC="$CC" # Let the user override the test.
  3090. else
  3091. ac_prog_rejected=no
  3092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. for ac_exec_ext in '' $ac_executable_extensions; do
  3098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3099. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3100. ac_prog_rejected=yes
  3101. continue
  3102. fi
  3103. ac_cv_prog_CC="cc"
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3105. break 2
  3106. fi
  3107. done
  3108. done
  3109. IFS=$as_save_IFS
  3110. if test $ac_prog_rejected = yes; then
  3111. # We found a bogon in the path, so make sure we never use it.
  3112. set dummy $ac_cv_prog_CC
  3113. shift
  3114. if test $# != 0; then
  3115. # We chose a different compiler from the bogus one.
  3116. # However, it has the same basename, so the bogon will be chosen
  3117. # first if we set CC to just the basename; use the full file name.
  3118. shift
  3119. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3120. fi
  3121. fi
  3122. fi
  3123. fi
  3124. CC=$ac_cv_prog_CC
  3125. if test -n "$CC"; then
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3127. $as_echo "$CC" >&6; }
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3130. $as_echo "no" >&6; }
  3131. fi
  3132. fi
  3133. if test -z "$CC"; then
  3134. if test -n "$ac_tool_prefix"; then
  3135. for ac_prog in cl.exe
  3136. do
  3137. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3138. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3140. $as_echo_n "checking for $ac_word... " >&6; }
  3141. if ${ac_cv_prog_CC+:} false; then :
  3142. $as_echo_n "(cached) " >&6
  3143. else
  3144. if test -n "$CC"; then
  3145. ac_cv_prog_CC="$CC" # Let the user override the test.
  3146. else
  3147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3148. for as_dir in $PATH
  3149. do
  3150. IFS=$as_save_IFS
  3151. test -z "$as_dir" && as_dir=.
  3152. for ac_exec_ext in '' $ac_executable_extensions; do
  3153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3154. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. IFS=$as_save_IFS
  3161. fi
  3162. fi
  3163. CC=$ac_cv_prog_CC
  3164. if test -n "$CC"; then
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3166. $as_echo "$CC" >&6; }
  3167. else
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3169. $as_echo "no" >&6; }
  3170. fi
  3171. test -n "$CC" && break
  3172. done
  3173. fi
  3174. if test -z "$CC"; then
  3175. ac_ct_CC=$CC
  3176. for ac_prog in cl.exe
  3177. do
  3178. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3179. set dummy $ac_prog; ac_word=$2
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3181. $as_echo_n "checking for $ac_word... " >&6; }
  3182. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3183. $as_echo_n "(cached) " >&6
  3184. else
  3185. if test -n "$ac_ct_CC"; then
  3186. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3187. else
  3188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3189. for as_dir in $PATH
  3190. do
  3191. IFS=$as_save_IFS
  3192. test -z "$as_dir" && as_dir=.
  3193. for ac_exec_ext in '' $ac_executable_extensions; do
  3194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3195. ac_cv_prog_ac_ct_CC="$ac_prog"
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3197. break 2
  3198. fi
  3199. done
  3200. done
  3201. IFS=$as_save_IFS
  3202. fi
  3203. fi
  3204. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3205. if test -n "$ac_ct_CC"; then
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3207. $as_echo "$ac_ct_CC" >&6; }
  3208. else
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3210. $as_echo "no" >&6; }
  3211. fi
  3212. test -n "$ac_ct_CC" && break
  3213. done
  3214. if test "x$ac_ct_CC" = x; then
  3215. CC=""
  3216. else
  3217. case $cross_compiling:$ac_tool_warned in
  3218. yes:)
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3221. ac_tool_warned=yes ;;
  3222. esac
  3223. CC=$ac_ct_CC
  3224. fi
  3225. fi
  3226. fi
  3227. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3228. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3229. as_fn_error $? "no acceptable C compiler found in \$PATH
  3230. See \`config.log' for more details" "$LINENO" 5; }
  3231. # Provide some information about the compiler.
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3233. set X $ac_compile
  3234. ac_compiler=$2
  3235. for ac_option in --version -v -V -qversion; do
  3236. { { ac_try="$ac_compiler $ac_option >&5"
  3237. case "(($ac_try" in
  3238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3239. *) ac_try_echo=$ac_try;;
  3240. esac
  3241. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3242. $as_echo "$ac_try_echo"; } >&5
  3243. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3244. ac_status=$?
  3245. if test -s conftest.err; then
  3246. sed '10a\
  3247. ... rest of stderr output deleted ...
  3248. 10q' conftest.err >conftest.er1
  3249. cat conftest.er1 >&5
  3250. fi
  3251. rm -f conftest.er1 conftest.err
  3252. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3253. test $ac_status = 0; }
  3254. done
  3255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3256. /* end confdefs.h. */
  3257. int
  3258. main ()
  3259. {
  3260. ;
  3261. return 0;
  3262. }
  3263. _ACEOF
  3264. ac_clean_files_save=$ac_clean_files
  3265. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3266. # Try to create an executable without -o first, disregard a.out.
  3267. # It will help us diagnose broken compilers, and finding out an intuition
  3268. # of exeext.
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3270. $as_echo_n "checking whether the C compiler works... " >&6; }
  3271. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3272. # The possible output files:
  3273. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3274. ac_rmfiles=
  3275. for ac_file in $ac_files
  3276. do
  3277. case $ac_file in
  3278. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3279. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3280. esac
  3281. done
  3282. rm -f $ac_rmfiles
  3283. if { { ac_try="$ac_link_default"
  3284. case "(($ac_try" in
  3285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3286. *) ac_try_echo=$ac_try;;
  3287. esac
  3288. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3289. $as_echo "$ac_try_echo"; } >&5
  3290. (eval "$ac_link_default") 2>&5
  3291. ac_status=$?
  3292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3293. test $ac_status = 0; }; then :
  3294. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3295. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3296. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3297. # so that the user can short-circuit this test for compilers unknown to
  3298. # Autoconf.
  3299. for ac_file in $ac_files ''
  3300. do
  3301. test -f "$ac_file" || continue
  3302. case $ac_file in
  3303. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3304. ;;
  3305. [ab].out )
  3306. # We found the default executable, but exeext='' is most
  3307. # certainly right.
  3308. break;;
  3309. *.* )
  3310. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3311. then :; else
  3312. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3313. fi
  3314. # We set ac_cv_exeext here because the later test for it is not
  3315. # safe: cross compilers may not add the suffix if given an `-o'
  3316. # argument, so we may need to know it at that point already.
  3317. # Even if this section looks crufty: it has the advantage of
  3318. # actually working.
  3319. break;;
  3320. * )
  3321. break;;
  3322. esac
  3323. done
  3324. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3325. else
  3326. ac_file=''
  3327. fi
  3328. if test -z "$ac_file"; then :
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3330. $as_echo "no" >&6; }
  3331. $as_echo "$as_me: failed program was:" >&5
  3332. sed 's/^/| /' conftest.$ac_ext >&5
  3333. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3335. as_fn_error 77 "C compiler cannot create executables
  3336. See \`config.log' for more details" "$LINENO" 5; }
  3337. else
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3339. $as_echo "yes" >&6; }
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3342. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3344. $as_echo "$ac_file" >&6; }
  3345. ac_exeext=$ac_cv_exeext
  3346. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3347. ac_clean_files=$ac_clean_files_save
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3349. $as_echo_n "checking for suffix of executables... " >&6; }
  3350. if { { ac_try="$ac_link"
  3351. case "(($ac_try" in
  3352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3353. *) ac_try_echo=$ac_try;;
  3354. esac
  3355. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3356. $as_echo "$ac_try_echo"; } >&5
  3357. (eval "$ac_link") 2>&5
  3358. ac_status=$?
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360. test $ac_status = 0; }; then :
  3361. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3362. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3363. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3364. # `rm'.
  3365. for ac_file in conftest.exe conftest conftest.*; do
  3366. test -f "$ac_file" || continue
  3367. case $ac_file in
  3368. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3369. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3370. break;;
  3371. * ) break;;
  3372. esac
  3373. done
  3374. else
  3375. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3377. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3378. See \`config.log' for more details" "$LINENO" 5; }
  3379. fi
  3380. rm -f conftest conftest$ac_cv_exeext
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3382. $as_echo "$ac_cv_exeext" >&6; }
  3383. rm -f conftest.$ac_ext
  3384. EXEEXT=$ac_cv_exeext
  3385. ac_exeext=$EXEEXT
  3386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3387. /* end confdefs.h. */
  3388. #include <stdio.h>
  3389. int
  3390. main ()
  3391. {
  3392. FILE *f = fopen ("conftest.out", "w");
  3393. return ferror (f) || fclose (f) != 0;
  3394. ;
  3395. return 0;
  3396. }
  3397. _ACEOF
  3398. ac_clean_files="$ac_clean_files conftest.out"
  3399. # Check that the compiler produces executables we can run. If not, either
  3400. # the compiler is broken, or we cross compile.
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3402. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3403. if test "$cross_compiling" != yes; then
  3404. { { ac_try="$ac_link"
  3405. case "(($ac_try" in
  3406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3407. *) ac_try_echo=$ac_try;;
  3408. esac
  3409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3410. $as_echo "$ac_try_echo"; } >&5
  3411. (eval "$ac_link") 2>&5
  3412. ac_status=$?
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3414. test $ac_status = 0; }
  3415. if { ac_try='./conftest$ac_cv_exeext'
  3416. { { case "(($ac_try" in
  3417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3418. *) ac_try_echo=$ac_try;;
  3419. esac
  3420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3421. $as_echo "$ac_try_echo"; } >&5
  3422. (eval "$ac_try") 2>&5
  3423. ac_status=$?
  3424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3425. test $ac_status = 0; }; }; then
  3426. cross_compiling=no
  3427. else
  3428. if test "$cross_compiling" = maybe; then
  3429. cross_compiling=yes
  3430. else
  3431. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3432. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3433. as_fn_error $? "cannot run C compiled programs.
  3434. If you meant to cross compile, use \`--host'.
  3435. See \`config.log' for more details" "$LINENO" 5; }
  3436. fi
  3437. fi
  3438. fi
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3440. $as_echo "$cross_compiling" >&6; }
  3441. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3442. ac_clean_files=$ac_clean_files_save
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3444. $as_echo_n "checking for suffix of object files... " >&6; }
  3445. if ${ac_cv_objext+:} false; then :
  3446. $as_echo_n "(cached) " >&6
  3447. else
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. int
  3451. main ()
  3452. {
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. rm -f conftest.o conftest.obj
  3458. if { { ac_try="$ac_compile"
  3459. case "(($ac_try" in
  3460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3461. *) ac_try_echo=$ac_try;;
  3462. esac
  3463. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3464. $as_echo "$ac_try_echo"; } >&5
  3465. (eval "$ac_compile") 2>&5
  3466. ac_status=$?
  3467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3468. test $ac_status = 0; }; then :
  3469. for ac_file in conftest.o conftest.obj conftest.*; do
  3470. test -f "$ac_file" || continue;
  3471. case $ac_file in
  3472. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3473. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3474. break;;
  3475. esac
  3476. done
  3477. else
  3478. $as_echo "$as_me: failed program was:" >&5
  3479. sed 's/^/| /' conftest.$ac_ext >&5
  3480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3482. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3483. See \`config.log' for more details" "$LINENO" 5; }
  3484. fi
  3485. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3488. $as_echo "$ac_cv_objext" >&6; }
  3489. OBJEXT=$ac_cv_objext
  3490. ac_objext=$OBJEXT
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3492. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3493. if ${ac_cv_c_compiler_gnu+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3497. /* end confdefs.h. */
  3498. int
  3499. main ()
  3500. {
  3501. #ifndef __GNUC__
  3502. choke me
  3503. #endif
  3504. ;
  3505. return 0;
  3506. }
  3507. _ACEOF
  3508. if ac_fn_c_try_compile "$LINENO"; then :
  3509. ac_compiler_gnu=yes
  3510. else
  3511. ac_compiler_gnu=no
  3512. fi
  3513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3514. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3517. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3518. if test $ac_compiler_gnu = yes; then
  3519. GCC=yes
  3520. else
  3521. GCC=
  3522. fi
  3523. ac_test_CFLAGS=${CFLAGS+set}
  3524. ac_save_CFLAGS=$CFLAGS
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3526. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3527. if ${ac_cv_prog_cc_g+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. ac_save_c_werror_flag=$ac_c_werror_flag
  3531. ac_c_werror_flag=yes
  3532. ac_cv_prog_cc_g=no
  3533. CFLAGS="-g"
  3534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3535. /* end confdefs.h. */
  3536. int
  3537. main ()
  3538. {
  3539. ;
  3540. return 0;
  3541. }
  3542. _ACEOF
  3543. if ac_fn_c_try_compile "$LINENO"; then :
  3544. ac_cv_prog_cc_g=yes
  3545. else
  3546. CFLAGS=""
  3547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3548. /* end confdefs.h. */
  3549. int
  3550. main ()
  3551. {
  3552. ;
  3553. return 0;
  3554. }
  3555. _ACEOF
  3556. if ac_fn_c_try_compile "$LINENO"; then :
  3557. else
  3558. ac_c_werror_flag=$ac_save_c_werror_flag
  3559. CFLAGS="-g"
  3560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3561. /* end confdefs.h. */
  3562. int
  3563. main ()
  3564. {
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. if ac_fn_c_try_compile "$LINENO"; then :
  3570. ac_cv_prog_cc_g=yes
  3571. fi
  3572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3573. fi
  3574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3575. fi
  3576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3577. ac_c_werror_flag=$ac_save_c_werror_flag
  3578. fi
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3580. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3581. if test "$ac_test_CFLAGS" = set; then
  3582. CFLAGS=$ac_save_CFLAGS
  3583. elif test $ac_cv_prog_cc_g = yes; then
  3584. if test "$GCC" = yes; then
  3585. CFLAGS="-g -O2"
  3586. else
  3587. CFLAGS="-g"
  3588. fi
  3589. else
  3590. if test "$GCC" = yes; then
  3591. CFLAGS="-O2"
  3592. else
  3593. CFLAGS=
  3594. fi
  3595. fi
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3597. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3598. if ${ac_cv_prog_cc_c89+:} false; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. ac_cv_prog_cc_c89=no
  3602. ac_save_CC=$CC
  3603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3604. /* end confdefs.h. */
  3605. #include <stdarg.h>
  3606. #include <stdio.h>
  3607. struct stat;
  3608. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3609. struct buf { int x; };
  3610. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3611. static char *e (p, i)
  3612. char **p;
  3613. int i;
  3614. {
  3615. return p[i];
  3616. }
  3617. static char *f (char * (*g) (char **, int), char **p, ...)
  3618. {
  3619. char *s;
  3620. va_list v;
  3621. va_start (v,p);
  3622. s = g (p, va_arg (v,int));
  3623. va_end (v);
  3624. return s;
  3625. }
  3626. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3627. function prototypes and stuff, but not '\xHH' hex character constants.
  3628. These don't provoke an error unfortunately, instead are silently treated
  3629. as 'x'. The following induces an error, until -std is added to get
  3630. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3631. array size at least. It's necessary to write '\x00'==0 to get something
  3632. that's true only with -std. */
  3633. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3634. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3635. inside strings and character constants. */
  3636. #define FOO(x) 'x'
  3637. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3638. int test (int i, double x);
  3639. struct s1 {int (*f) (int a);};
  3640. struct s2 {int (*f) (double a);};
  3641. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3642. int argc;
  3643. char **argv;
  3644. int
  3645. main ()
  3646. {
  3647. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3648. ;
  3649. return 0;
  3650. }
  3651. _ACEOF
  3652. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3653. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3654. do
  3655. CC="$ac_save_CC $ac_arg"
  3656. if ac_fn_c_try_compile "$LINENO"; then :
  3657. ac_cv_prog_cc_c89=$ac_arg
  3658. fi
  3659. rm -f core conftest.err conftest.$ac_objext
  3660. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3661. done
  3662. rm -f conftest.$ac_ext
  3663. CC=$ac_save_CC
  3664. fi
  3665. # AC_CACHE_VAL
  3666. case "x$ac_cv_prog_cc_c89" in
  3667. x)
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3669. $as_echo "none needed" >&6; } ;;
  3670. xno)
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3672. $as_echo "unsupported" >&6; } ;;
  3673. *)
  3674. CC="$CC $ac_cv_prog_cc_c89"
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3676. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3677. esac
  3678. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3679. fi
  3680. ac_ext=c
  3681. ac_cpp='$CPP $CPPFLAGS'
  3682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3685. ac_ext=c
  3686. ac_cpp='$CPP $CPPFLAGS'
  3687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3691. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3692. if ${am_cv_prog_cc_c_o+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. int
  3698. main ()
  3699. {
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. # Make sure it works both with $CC and with simple cc.
  3705. # Following AC_PROG_CC_C_O, we do the test twice because some
  3706. # compilers refuse to overwrite an existing .o file with -o,
  3707. # though they will create one.
  3708. am_cv_prog_cc_c_o=yes
  3709. for am_i in 1 2; do
  3710. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3711. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3712. ac_status=$?
  3713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3714. (exit $ac_status); } \
  3715. && test -f conftest2.$ac_objext; then
  3716. : OK
  3717. else
  3718. am_cv_prog_cc_c_o=no
  3719. break
  3720. fi
  3721. done
  3722. rm -f core conftest*
  3723. unset am_i
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3726. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3727. if test "$am_cv_prog_cc_c_o" != yes; then
  3728. # Losing compiler, so override with the script.
  3729. # FIXME: It is wrong to rewrite CC.
  3730. # But if we don't then we get into trouble of one sort or another.
  3731. # A longer-term fix would be to have automake use am__CC in this case,
  3732. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3733. CC="$am_aux_dir/compile $CC"
  3734. fi
  3735. ac_ext=c
  3736. ac_cpp='$CPP $CPPFLAGS'
  3737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3740. depcc="$CC" am_compiler_list=
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3742. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3743. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3747. # We make a subdir and do the tests there. Otherwise we can end up
  3748. # making bogus files that we don't know about and never remove. For
  3749. # instance it was reported that on HP-UX the gcc test will end up
  3750. # making a dummy file named 'D' -- because '-MD' means "put the output
  3751. # in D".
  3752. rm -rf conftest.dir
  3753. mkdir conftest.dir
  3754. # Copy depcomp to subdir because otherwise we won't find it if we're
  3755. # using a relative directory.
  3756. cp "$am_depcomp" conftest.dir
  3757. cd conftest.dir
  3758. # We will build objects and dependencies in a subdirectory because
  3759. # it helps to detect inapplicable dependency modes. For instance
  3760. # both Tru64's cc and ICC support -MD to output dependencies as a
  3761. # side effect of compilation, but ICC will put the dependencies in
  3762. # the current directory while Tru64 will put them in the object
  3763. # directory.
  3764. mkdir sub
  3765. am_cv_CC_dependencies_compiler_type=none
  3766. if test "$am_compiler_list" = ""; then
  3767. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3768. fi
  3769. am__universal=false
  3770. case " $depcc " in #(
  3771. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3772. esac
  3773. for depmode in $am_compiler_list; do
  3774. # Setup a source with many dependencies, because some compilers
  3775. # like to wrap large dependency lists on column 80 (with \), and
  3776. # we should not choose a depcomp mode which is confused by this.
  3777. #
  3778. # We need to recreate these files for each test, as the compiler may
  3779. # overwrite some of them when testing with obscure command lines.
  3780. # This happens at least with the AIX C compiler.
  3781. : > sub/conftest.c
  3782. for i in 1 2 3 4 5 6; do
  3783. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3784. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3785. # Solaris 10 /bin/sh.
  3786. echo '/* dummy */' > sub/conftst$i.h
  3787. done
  3788. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3789. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3790. # mode. It turns out that the SunPro C++ compiler does not properly
  3791. # handle '-M -o', and we need to detect this. Also, some Intel
  3792. # versions had trouble with output in subdirs.
  3793. am__obj=sub/conftest.${OBJEXT-o}
  3794. am__minus_obj="-o $am__obj"
  3795. case $depmode in
  3796. gcc)
  3797. # This depmode causes a compiler race in universal mode.
  3798. test "$am__universal" = false || continue
  3799. ;;
  3800. nosideeffect)
  3801. # After this tag, mechanisms are not by side-effect, so they'll
  3802. # only be used when explicitly requested.
  3803. if test "x$enable_dependency_tracking" = xyes; then
  3804. continue
  3805. else
  3806. break
  3807. fi
  3808. ;;
  3809. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3810. # This compiler won't grok '-c -o', but also, the minuso test has
  3811. # not run yet. These depmodes are late enough in the game, and
  3812. # so weak that their functioning should not be impacted.
  3813. am__obj=conftest.${OBJEXT-o}
  3814. am__minus_obj=
  3815. ;;
  3816. none) break ;;
  3817. esac
  3818. if depmode=$depmode \
  3819. source=sub/conftest.c object=$am__obj \
  3820. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3821. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3822. >/dev/null 2>conftest.err &&
  3823. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3824. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3825. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3826. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3827. # icc doesn't choke on unknown options, it will just issue warnings
  3828. # or remarks (even with -Werror). So we grep stderr for any message
  3829. # that says an option was ignored or not supported.
  3830. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3831. # icc: Command line warning: ignoring option '-M'; no argument required
  3832. # The diagnosis changed in icc 8.0:
  3833. # icc: Command line remark: option '-MP' not supported
  3834. if (grep 'ignoring option' conftest.err ||
  3835. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3836. am_cv_CC_dependencies_compiler_type=$depmode
  3837. break
  3838. fi
  3839. fi
  3840. done
  3841. cd ..
  3842. rm -rf conftest.dir
  3843. else
  3844. am_cv_CC_dependencies_compiler_type=none
  3845. fi
  3846. fi
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3848. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3849. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3850. if
  3851. test "x$enable_dependency_tracking" != xno \
  3852. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3853. am__fastdepCC_TRUE=
  3854. am__fastdepCC_FALSE='#'
  3855. else
  3856. am__fastdepCC_TRUE='#'
  3857. am__fastdepCC_FALSE=
  3858. fi
  3859. case $ac_cv_prog_cc_stdc in #(
  3860. no) :
  3861. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3862. *) :
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3864. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3865. if ${ac_cv_prog_cc_c99+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. ac_cv_prog_cc_c99=no
  3869. ac_save_CC=$CC
  3870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3871. /* end confdefs.h. */
  3872. #include <stdarg.h>
  3873. #include <stdbool.h>
  3874. #include <stdlib.h>
  3875. #include <wchar.h>
  3876. #include <stdio.h>
  3877. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3878. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3879. #define showlist(...) puts (#__VA_ARGS__)
  3880. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3881. static void
  3882. test_varargs_macros (void)
  3883. {
  3884. int x = 1234;
  3885. int y = 5678;
  3886. debug ("Flag");
  3887. debug ("X = %d\n", x);
  3888. showlist (The first, second, and third items.);
  3889. report (x>y, "x is %d but y is %d", x, y);
  3890. }
  3891. // Check long long types.
  3892. #define BIG64 18446744073709551615ull
  3893. #define BIG32 4294967295ul
  3894. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3895. #if !BIG_OK
  3896. your preprocessor is broken;
  3897. #endif
  3898. #if BIG_OK
  3899. #else
  3900. your preprocessor is broken;
  3901. #endif
  3902. static long long int bignum = -9223372036854775807LL;
  3903. static unsigned long long int ubignum = BIG64;
  3904. struct incomplete_array
  3905. {
  3906. int datasize;
  3907. double data[];
  3908. };
  3909. struct named_init {
  3910. int number;
  3911. const wchar_t *name;
  3912. double average;
  3913. };
  3914. typedef const char *ccp;
  3915. static inline int
  3916. test_restrict (ccp restrict text)
  3917. {
  3918. // See if C++-style comments work.
  3919. // Iterate through items via the restricted pointer.
  3920. // Also check for declarations in for loops.
  3921. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3922. continue;
  3923. return 0;
  3924. }
  3925. // Check varargs and va_copy.
  3926. static void
  3927. test_varargs (const char *format, ...)
  3928. {
  3929. va_list args;
  3930. va_start (args, format);
  3931. va_list args_copy;
  3932. va_copy (args_copy, args);
  3933. const char *str;
  3934. int number;
  3935. float fnumber;
  3936. while (*format)
  3937. {
  3938. switch (*format++)
  3939. {
  3940. case 's': // string
  3941. str = va_arg (args_copy, const char *);
  3942. break;
  3943. case 'd': // int
  3944. number = va_arg (args_copy, int);
  3945. break;
  3946. case 'f': // float
  3947. fnumber = va_arg (args_copy, double);
  3948. break;
  3949. default:
  3950. break;
  3951. }
  3952. }
  3953. va_end (args_copy);
  3954. va_end (args);
  3955. }
  3956. int
  3957. main ()
  3958. {
  3959. // Check bool.
  3960. _Bool success = false;
  3961. // Check restrict.
  3962. if (test_restrict ("String literal") == 0)
  3963. success = true;
  3964. char *restrict newvar = "Another string";
  3965. // Check varargs.
  3966. test_varargs ("s, d' f .", "string", 65, 34.234);
  3967. test_varargs_macros ();
  3968. // Check flexible array members.
  3969. struct incomplete_array *ia =
  3970. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3971. ia->datasize = 10;
  3972. for (int i = 0; i < ia->datasize; ++i)
  3973. ia->data[i] = i * 1.234;
  3974. // Check named initializers.
  3975. struct named_init ni = {
  3976. .number = 34,
  3977. .name = L"Test wide string",
  3978. .average = 543.34343,
  3979. };
  3980. ni.number = 58;
  3981. int dynamic_array[ni.number];
  3982. dynamic_array[ni.number - 1] = 543;
  3983. // work around unused variable warnings
  3984. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3985. || dynamic_array[ni.number - 1] != 543);
  3986. ;
  3987. return 0;
  3988. }
  3989. _ACEOF
  3990. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3991. do
  3992. CC="$ac_save_CC $ac_arg"
  3993. if ac_fn_c_try_compile "$LINENO"; then :
  3994. ac_cv_prog_cc_c99=$ac_arg
  3995. fi
  3996. rm -f core conftest.err conftest.$ac_objext
  3997. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3998. done
  3999. rm -f conftest.$ac_ext
  4000. CC=$ac_save_CC
  4001. fi
  4002. # AC_CACHE_VAL
  4003. case "x$ac_cv_prog_cc_c99" in
  4004. x)
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4006. $as_echo "none needed" >&6; } ;;
  4007. xno)
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4009. $as_echo "unsupported" >&6; } ;;
  4010. *)
  4011. CC="$CC $ac_cv_prog_cc_c99"
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4013. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4014. esac
  4015. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4016. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4019. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4020. if ${ac_cv_prog_cc_c89+:} false; then :
  4021. $as_echo_n "(cached) " >&6
  4022. else
  4023. ac_cv_prog_cc_c89=no
  4024. ac_save_CC=$CC
  4025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. #include <stdarg.h>
  4028. #include <stdio.h>
  4029. struct stat;
  4030. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4031. struct buf { int x; };
  4032. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4033. static char *e (p, i)
  4034. char **p;
  4035. int i;
  4036. {
  4037. return p[i];
  4038. }
  4039. static char *f (char * (*g) (char **, int), char **p, ...)
  4040. {
  4041. char *s;
  4042. va_list v;
  4043. va_start (v,p);
  4044. s = g (p, va_arg (v,int));
  4045. va_end (v);
  4046. return s;
  4047. }
  4048. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4049. function prototypes and stuff, but not '\xHH' hex character constants.
  4050. These don't provoke an error unfortunately, instead are silently treated
  4051. as 'x'. The following induces an error, until -std is added to get
  4052. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4053. array size at least. It's necessary to write '\x00'==0 to get something
  4054. that's true only with -std. */
  4055. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4056. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4057. inside strings and character constants. */
  4058. #define FOO(x) 'x'
  4059. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4060. int test (int i, double x);
  4061. struct s1 {int (*f) (int a);};
  4062. struct s2 {int (*f) (double a);};
  4063. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4064. int argc;
  4065. char **argv;
  4066. int
  4067. main ()
  4068. {
  4069. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4070. ;
  4071. return 0;
  4072. }
  4073. _ACEOF
  4074. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4075. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4076. do
  4077. CC="$ac_save_CC $ac_arg"
  4078. if ac_fn_c_try_compile "$LINENO"; then :
  4079. ac_cv_prog_cc_c89=$ac_arg
  4080. fi
  4081. rm -f core conftest.err conftest.$ac_objext
  4082. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4083. done
  4084. rm -f conftest.$ac_ext
  4085. CC=$ac_save_CC
  4086. fi
  4087. # AC_CACHE_VAL
  4088. case "x$ac_cv_prog_cc_c89" in
  4089. x)
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4091. $as_echo "none needed" >&6; } ;;
  4092. xno)
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4094. $as_echo "unsupported" >&6; } ;;
  4095. *)
  4096. CC="$CC $ac_cv_prog_cc_c89"
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4098. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4099. esac
  4100. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4101. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4102. else
  4103. ac_cv_prog_cc_stdc=no
  4104. fi
  4105. fi
  4106. ;;
  4107. esac
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4109. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4110. if ${ac_cv_prog_cc_stdc+:} false; then :
  4111. $as_echo_n "(cached) " >&6
  4112. fi
  4113. case $ac_cv_prog_cc_stdc in #(
  4114. no) :
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4116. $as_echo "unsupported" >&6; } ;; #(
  4117. '') :
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4119. $as_echo "none needed" >&6; } ;; #(
  4120. *) :
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4122. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4123. esac
  4124. ac_ext=c
  4125. ac_cpp='$CPP $CPPFLAGS'
  4126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4130. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4131. # On Suns, sometimes $CPP names a directory.
  4132. if test -n "$CPP" && test -d "$CPP"; then
  4133. CPP=
  4134. fi
  4135. if test -z "$CPP"; then
  4136. if ${ac_cv_prog_CPP+:} false; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. # Double quotes because CPP needs to be expanded
  4140. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4141. do
  4142. ac_preproc_ok=false
  4143. for ac_c_preproc_warn_flag in '' yes
  4144. do
  4145. # Use a header file that comes with gcc, so configuring glibc
  4146. # with a fresh cross-compiler works.
  4147. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4148. # <limits.h> exists even on freestanding compilers.
  4149. # On the NeXT, cc -E runs the code through the compiler's parser,
  4150. # not just through cpp. "Syntax error" is here to catch this case.
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. #ifdef __STDC__
  4154. # include <limits.h>
  4155. #else
  4156. # include <assert.h>
  4157. #endif
  4158. Syntax error
  4159. _ACEOF
  4160. if ac_fn_c_try_cpp "$LINENO"; then :
  4161. else
  4162. # Broken: fails on valid input.
  4163. continue
  4164. fi
  4165. rm -f conftest.err conftest.i conftest.$ac_ext
  4166. # OK, works on sane cases. Now check whether nonexistent headers
  4167. # can be detected and how.
  4168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4169. /* end confdefs.h. */
  4170. #include <ac_nonexistent.h>
  4171. _ACEOF
  4172. if ac_fn_c_try_cpp "$LINENO"; then :
  4173. # Broken: success on invalid input.
  4174. continue
  4175. else
  4176. # Passes both tests.
  4177. ac_preproc_ok=:
  4178. break
  4179. fi
  4180. rm -f conftest.err conftest.i conftest.$ac_ext
  4181. done
  4182. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4183. rm -f conftest.i conftest.err conftest.$ac_ext
  4184. if $ac_preproc_ok; then :
  4185. break
  4186. fi
  4187. done
  4188. ac_cv_prog_CPP=$CPP
  4189. fi
  4190. CPP=$ac_cv_prog_CPP
  4191. else
  4192. ac_cv_prog_CPP=$CPP
  4193. fi
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4195. $as_echo "$CPP" >&6; }
  4196. ac_preproc_ok=false
  4197. for ac_c_preproc_warn_flag in '' yes
  4198. do
  4199. # Use a header file that comes with gcc, so configuring glibc
  4200. # with a fresh cross-compiler works.
  4201. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4202. # <limits.h> exists even on freestanding compilers.
  4203. # On the NeXT, cc -E runs the code through the compiler's parser,
  4204. # not just through cpp. "Syntax error" is here to catch this case.
  4205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4206. /* end confdefs.h. */
  4207. #ifdef __STDC__
  4208. # include <limits.h>
  4209. #else
  4210. # include <assert.h>
  4211. #endif
  4212. Syntax error
  4213. _ACEOF
  4214. if ac_fn_c_try_cpp "$LINENO"; then :
  4215. else
  4216. # Broken: fails on valid input.
  4217. continue
  4218. fi
  4219. rm -f conftest.err conftest.i conftest.$ac_ext
  4220. # OK, works on sane cases. Now check whether nonexistent headers
  4221. # can be detected and how.
  4222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4223. /* end confdefs.h. */
  4224. #include <ac_nonexistent.h>
  4225. _ACEOF
  4226. if ac_fn_c_try_cpp "$LINENO"; then :
  4227. # Broken: success on invalid input.
  4228. continue
  4229. else
  4230. # Passes both tests.
  4231. ac_preproc_ok=:
  4232. break
  4233. fi
  4234. rm -f conftest.err conftest.i conftest.$ac_ext
  4235. done
  4236. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4237. rm -f conftest.i conftest.err conftest.$ac_ext
  4238. if $ac_preproc_ok; then :
  4239. else
  4240. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4242. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4243. See \`config.log' for more details" "$LINENO" 5; }
  4244. fi
  4245. ac_ext=c
  4246. ac_cpp='$CPP $CPPFLAGS'
  4247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4250. ac_ext=cpp
  4251. ac_cpp='$CXXCPP $CPPFLAGS'
  4252. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4253. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4254. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4255. if test -z "$CXX"; then
  4256. if test -n "$CCC"; then
  4257. CXX=$CCC
  4258. else
  4259. if test -n "$ac_tool_prefix"; then
  4260. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4261. do
  4262. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4263. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4265. $as_echo_n "checking for $ac_word... " >&6; }
  4266. if ${ac_cv_prog_CXX+:} false; then :
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. if test -n "$CXX"; then
  4270. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4271. else
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH
  4274. do
  4275. IFS=$as_save_IFS
  4276. test -z "$as_dir" && as_dir=.
  4277. for ac_exec_ext in '' $ac_executable_extensions; do
  4278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4279. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4281. break 2
  4282. fi
  4283. done
  4284. done
  4285. IFS=$as_save_IFS
  4286. fi
  4287. fi
  4288. CXX=$ac_cv_prog_CXX
  4289. if test -n "$CXX"; then
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4291. $as_echo "$CXX" >&6; }
  4292. else
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4294. $as_echo "no" >&6; }
  4295. fi
  4296. test -n "$CXX" && break
  4297. done
  4298. fi
  4299. if test -z "$CXX"; then
  4300. ac_ct_CXX=$CXX
  4301. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4302. do
  4303. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4304. set dummy $ac_prog; ac_word=$2
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4306. $as_echo_n "checking for $ac_word... " >&6; }
  4307. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4308. $as_echo_n "(cached) " >&6
  4309. else
  4310. if test -n "$ac_ct_CXX"; then
  4311. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4312. else
  4313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4314. for as_dir in $PATH
  4315. do
  4316. IFS=$as_save_IFS
  4317. test -z "$as_dir" && as_dir=.
  4318. for ac_exec_ext in '' $ac_executable_extensions; do
  4319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4320. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4322. break 2
  4323. fi
  4324. done
  4325. done
  4326. IFS=$as_save_IFS
  4327. fi
  4328. fi
  4329. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4330. if test -n "$ac_ct_CXX"; then
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4332. $as_echo "$ac_ct_CXX" >&6; }
  4333. else
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4335. $as_echo "no" >&6; }
  4336. fi
  4337. test -n "$ac_ct_CXX" && break
  4338. done
  4339. if test "x$ac_ct_CXX" = x; then
  4340. CXX="g++"
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. CXX=$ac_ct_CXX
  4349. fi
  4350. fi
  4351. fi
  4352. fi
  4353. # Provide some information about the compiler.
  4354. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4355. set X $ac_compile
  4356. ac_compiler=$2
  4357. for ac_option in --version -v -V -qversion; do
  4358. { { ac_try="$ac_compiler $ac_option >&5"
  4359. case "(($ac_try" in
  4360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4361. *) ac_try_echo=$ac_try;;
  4362. esac
  4363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4364. $as_echo "$ac_try_echo"; } >&5
  4365. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4366. ac_status=$?
  4367. if test -s conftest.err; then
  4368. sed '10a\
  4369. ... rest of stderr output deleted ...
  4370. 10q' conftest.err >conftest.er1
  4371. cat conftest.er1 >&5
  4372. fi
  4373. rm -f conftest.er1 conftest.err
  4374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4375. test $ac_status = 0; }
  4376. done
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4378. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4379. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4380. $as_echo_n "(cached) " >&6
  4381. else
  4382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4383. /* end confdefs.h. */
  4384. int
  4385. main ()
  4386. {
  4387. #ifndef __GNUC__
  4388. choke me
  4389. #endif
  4390. ;
  4391. return 0;
  4392. }
  4393. _ACEOF
  4394. if ac_fn_cxx_try_compile "$LINENO"; then :
  4395. ac_compiler_gnu=yes
  4396. else
  4397. ac_compiler_gnu=no
  4398. fi
  4399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4400. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4403. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4404. if test $ac_compiler_gnu = yes; then
  4405. GXX=yes
  4406. else
  4407. GXX=
  4408. fi
  4409. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4410. ac_save_CXXFLAGS=$CXXFLAGS
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4412. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4413. if ${ac_cv_prog_cxx_g+:} false; then :
  4414. $as_echo_n "(cached) " >&6
  4415. else
  4416. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4417. ac_cxx_werror_flag=yes
  4418. ac_cv_prog_cxx_g=no
  4419. CXXFLAGS="-g"
  4420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4421. /* end confdefs.h. */
  4422. int
  4423. main ()
  4424. {
  4425. ;
  4426. return 0;
  4427. }
  4428. _ACEOF
  4429. if ac_fn_cxx_try_compile "$LINENO"; then :
  4430. ac_cv_prog_cxx_g=yes
  4431. else
  4432. CXXFLAGS=""
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. int
  4436. main ()
  4437. {
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. if ac_fn_cxx_try_compile "$LINENO"; then :
  4443. else
  4444. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4445. CXXFLAGS="-g"
  4446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4447. /* end confdefs.h. */
  4448. int
  4449. main ()
  4450. {
  4451. ;
  4452. return 0;
  4453. }
  4454. _ACEOF
  4455. if ac_fn_cxx_try_compile "$LINENO"; then :
  4456. ac_cv_prog_cxx_g=yes
  4457. fi
  4458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4459. fi
  4460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4461. fi
  4462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4463. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4464. fi
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4466. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4467. if test "$ac_test_CXXFLAGS" = set; then
  4468. CXXFLAGS=$ac_save_CXXFLAGS
  4469. elif test $ac_cv_prog_cxx_g = yes; then
  4470. if test "$GXX" = yes; then
  4471. CXXFLAGS="-g -O2"
  4472. else
  4473. CXXFLAGS="-g"
  4474. fi
  4475. else
  4476. if test "$GXX" = yes; then
  4477. CXXFLAGS="-O2"
  4478. else
  4479. CXXFLAGS=
  4480. fi
  4481. fi
  4482. ac_ext=c
  4483. ac_cpp='$CPP $CPPFLAGS'
  4484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4487. depcc="$CXX" am_compiler_list=
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4489. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4490. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4491. $as_echo_n "(cached) " >&6
  4492. else
  4493. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4494. # We make a subdir and do the tests there. Otherwise we can end up
  4495. # making bogus files that we don't know about and never remove. For
  4496. # instance it was reported that on HP-UX the gcc test will end up
  4497. # making a dummy file named 'D' -- because '-MD' means "put the output
  4498. # in D".
  4499. rm -rf conftest.dir
  4500. mkdir conftest.dir
  4501. # Copy depcomp to subdir because otherwise we won't find it if we're
  4502. # using a relative directory.
  4503. cp "$am_depcomp" conftest.dir
  4504. cd conftest.dir
  4505. # We will build objects and dependencies in a subdirectory because
  4506. # it helps to detect inapplicable dependency modes. For instance
  4507. # both Tru64's cc and ICC support -MD to output dependencies as a
  4508. # side effect of compilation, but ICC will put the dependencies in
  4509. # the current directory while Tru64 will put them in the object
  4510. # directory.
  4511. mkdir sub
  4512. am_cv_CXX_dependencies_compiler_type=none
  4513. if test "$am_compiler_list" = ""; then
  4514. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4515. fi
  4516. am__universal=false
  4517. case " $depcc " in #(
  4518. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4519. esac
  4520. for depmode in $am_compiler_list; do
  4521. # Setup a source with many dependencies, because some compilers
  4522. # like to wrap large dependency lists on column 80 (with \), and
  4523. # we should not choose a depcomp mode which is confused by this.
  4524. #
  4525. # We need to recreate these files for each test, as the compiler may
  4526. # overwrite some of them when testing with obscure command lines.
  4527. # This happens at least with the AIX C compiler.
  4528. : > sub/conftest.c
  4529. for i in 1 2 3 4 5 6; do
  4530. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4531. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4532. # Solaris 10 /bin/sh.
  4533. echo '/* dummy */' > sub/conftst$i.h
  4534. done
  4535. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4536. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4537. # mode. It turns out that the SunPro C++ compiler does not properly
  4538. # handle '-M -o', and we need to detect this. Also, some Intel
  4539. # versions had trouble with output in subdirs.
  4540. am__obj=sub/conftest.${OBJEXT-o}
  4541. am__minus_obj="-o $am__obj"
  4542. case $depmode in
  4543. gcc)
  4544. # This depmode causes a compiler race in universal mode.
  4545. test "$am__universal" = false || continue
  4546. ;;
  4547. nosideeffect)
  4548. # After this tag, mechanisms are not by side-effect, so they'll
  4549. # only be used when explicitly requested.
  4550. if test "x$enable_dependency_tracking" = xyes; then
  4551. continue
  4552. else
  4553. break
  4554. fi
  4555. ;;
  4556. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4557. # This compiler won't grok '-c -o', but also, the minuso test has
  4558. # not run yet. These depmodes are late enough in the game, and
  4559. # so weak that their functioning should not be impacted.
  4560. am__obj=conftest.${OBJEXT-o}
  4561. am__minus_obj=
  4562. ;;
  4563. none) break ;;
  4564. esac
  4565. if depmode=$depmode \
  4566. source=sub/conftest.c object=$am__obj \
  4567. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4568. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4569. >/dev/null 2>conftest.err &&
  4570. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4571. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4572. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4573. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4574. # icc doesn't choke on unknown options, it will just issue warnings
  4575. # or remarks (even with -Werror). So we grep stderr for any message
  4576. # that says an option was ignored or not supported.
  4577. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4578. # icc: Command line warning: ignoring option '-M'; no argument required
  4579. # The diagnosis changed in icc 8.0:
  4580. # icc: Command line remark: option '-MP' not supported
  4581. if (grep 'ignoring option' conftest.err ||
  4582. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4583. am_cv_CXX_dependencies_compiler_type=$depmode
  4584. break
  4585. fi
  4586. fi
  4587. done
  4588. cd ..
  4589. rm -rf conftest.dir
  4590. else
  4591. am_cv_CXX_dependencies_compiler_type=none
  4592. fi
  4593. fi
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4595. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4596. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4597. if
  4598. test "x$enable_dependency_tracking" != xno \
  4599. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4600. am__fastdepCXX_TRUE=
  4601. am__fastdepCXX_FALSE='#'
  4602. else
  4603. am__fastdepCXX_TRUE='#'
  4604. am__fastdepCXX_FALSE=
  4605. fi
  4606. case `pwd` in
  4607. *\ * | *\ *)
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4609. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4610. esac
  4611. macro_version='2.4.6'
  4612. macro_revision='2.4.6'
  4613. ltmain=$ac_aux_dir/ltmain.sh
  4614. # Backslashify metacharacters that are still active within
  4615. # double-quoted strings.
  4616. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4617. # Same as above, but do not quote variable references.
  4618. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4619. # Sed substitution to delay expansion of an escaped shell variable in a
  4620. # double_quote_subst'ed string.
  4621. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4622. # Sed substitution to delay expansion of an escaped single quote.
  4623. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4624. # Sed substitution to avoid accidental globbing in evaled expressions
  4625. no_glob_subst='s/\*/\\\*/g'
  4626. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4627. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4628. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4630. $as_echo_n "checking how to print strings... " >&6; }
  4631. # Test print first, because it will be a builtin if present.
  4632. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4633. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4634. ECHO='print -r --'
  4635. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4636. ECHO='printf %s\n'
  4637. else
  4638. # Use this function as a fallback that always works.
  4639. func_fallback_echo ()
  4640. {
  4641. eval 'cat <<_LTECHO_EOF
  4642. $1
  4643. _LTECHO_EOF'
  4644. }
  4645. ECHO='func_fallback_echo'
  4646. fi
  4647. # func_echo_all arg...
  4648. # Invoke $ECHO with all args, space-separated.
  4649. func_echo_all ()
  4650. {
  4651. $ECHO ""
  4652. }
  4653. case $ECHO in
  4654. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4655. $as_echo "printf" >&6; } ;;
  4656. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4657. $as_echo "print -r" >&6; } ;;
  4658. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4659. $as_echo "cat" >&6; } ;;
  4660. esac
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4662. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4663. if ${ac_cv_path_SED+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4667. for ac_i in 1 2 3 4 5 6 7; do
  4668. ac_script="$ac_script$as_nl$ac_script"
  4669. done
  4670. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4671. { ac_script=; unset ac_script;}
  4672. if test -z "$SED"; then
  4673. ac_path_SED_found=false
  4674. # Loop through the user's path and test for each of PROGNAME-LIST
  4675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4676. for as_dir in $PATH
  4677. do
  4678. IFS=$as_save_IFS
  4679. test -z "$as_dir" && as_dir=.
  4680. for ac_prog in sed gsed; do
  4681. for ac_exec_ext in '' $ac_executable_extensions; do
  4682. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4683. as_fn_executable_p "$ac_path_SED" || continue
  4684. # Check for GNU ac_path_SED and select it if it is found.
  4685. # Check for GNU $ac_path_SED
  4686. case `"$ac_path_SED" --version 2>&1` in
  4687. *GNU*)
  4688. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4689. *)
  4690. ac_count=0
  4691. $as_echo_n 0123456789 >"conftest.in"
  4692. while :
  4693. do
  4694. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4695. mv "conftest.tmp" "conftest.in"
  4696. cp "conftest.in" "conftest.nl"
  4697. $as_echo '' >> "conftest.nl"
  4698. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4699. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4700. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4701. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4702. # Best one so far, save it but keep looking for a better one
  4703. ac_cv_path_SED="$ac_path_SED"
  4704. ac_path_SED_max=$ac_count
  4705. fi
  4706. # 10*(2^10) chars as input seems more than enough
  4707. test $ac_count -gt 10 && break
  4708. done
  4709. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4710. esac
  4711. $ac_path_SED_found && break 3
  4712. done
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. if test -z "$ac_cv_path_SED"; then
  4717. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4718. fi
  4719. else
  4720. ac_cv_path_SED=$SED
  4721. fi
  4722. fi
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4724. $as_echo "$ac_cv_path_SED" >&6; }
  4725. SED="$ac_cv_path_SED"
  4726. rm -f conftest.sed
  4727. test -z "$SED" && SED=sed
  4728. Xsed="$SED -e 1s/^X//"
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4730. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4731. if ${ac_cv_path_GREP+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. if test -z "$GREP"; then
  4735. ac_path_GREP_found=false
  4736. # Loop through the user's path and test for each of PROGNAME-LIST
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_prog in grep ggrep; do
  4743. for ac_exec_ext in '' $ac_executable_extensions; do
  4744. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4745. as_fn_executable_p "$ac_path_GREP" || continue
  4746. # Check for GNU ac_path_GREP and select it if it is found.
  4747. # Check for GNU $ac_path_GREP
  4748. case `"$ac_path_GREP" --version 2>&1` in
  4749. *GNU*)
  4750. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4751. *)
  4752. ac_count=0
  4753. $as_echo_n 0123456789 >"conftest.in"
  4754. while :
  4755. do
  4756. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4757. mv "conftest.tmp" "conftest.in"
  4758. cp "conftest.in" "conftest.nl"
  4759. $as_echo 'GREP' >> "conftest.nl"
  4760. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4761. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4762. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4763. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4764. # Best one so far, save it but keep looking for a better one
  4765. ac_cv_path_GREP="$ac_path_GREP"
  4766. ac_path_GREP_max=$ac_count
  4767. fi
  4768. # 10*(2^10) chars as input seems more than enough
  4769. test $ac_count -gt 10 && break
  4770. done
  4771. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4772. esac
  4773. $ac_path_GREP_found && break 3
  4774. done
  4775. done
  4776. done
  4777. IFS=$as_save_IFS
  4778. if test -z "$ac_cv_path_GREP"; then
  4779. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4780. fi
  4781. else
  4782. ac_cv_path_GREP=$GREP
  4783. fi
  4784. fi
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4786. $as_echo "$ac_cv_path_GREP" >&6; }
  4787. GREP="$ac_cv_path_GREP"
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4789. $as_echo_n "checking for egrep... " >&6; }
  4790. if ${ac_cv_path_EGREP+:} false; then :
  4791. $as_echo_n "(cached) " >&6
  4792. else
  4793. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4794. then ac_cv_path_EGREP="$GREP -E"
  4795. else
  4796. if test -z "$EGREP"; then
  4797. ac_path_EGREP_found=false
  4798. # Loop through the user's path and test for each of PROGNAME-LIST
  4799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4800. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4801. do
  4802. IFS=$as_save_IFS
  4803. test -z "$as_dir" && as_dir=.
  4804. for ac_prog in egrep; do
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4807. as_fn_executable_p "$ac_path_EGREP" || continue
  4808. # Check for GNU ac_path_EGREP and select it if it is found.
  4809. # Check for GNU $ac_path_EGREP
  4810. case `"$ac_path_EGREP" --version 2>&1` in
  4811. *GNU*)
  4812. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4813. *)
  4814. ac_count=0
  4815. $as_echo_n 0123456789 >"conftest.in"
  4816. while :
  4817. do
  4818. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4819. mv "conftest.tmp" "conftest.in"
  4820. cp "conftest.in" "conftest.nl"
  4821. $as_echo 'EGREP' >> "conftest.nl"
  4822. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4823. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4824. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4825. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4826. # Best one so far, save it but keep looking for a better one
  4827. ac_cv_path_EGREP="$ac_path_EGREP"
  4828. ac_path_EGREP_max=$ac_count
  4829. fi
  4830. # 10*(2^10) chars as input seems more than enough
  4831. test $ac_count -gt 10 && break
  4832. done
  4833. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4834. esac
  4835. $ac_path_EGREP_found && break 3
  4836. done
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. if test -z "$ac_cv_path_EGREP"; then
  4841. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4842. fi
  4843. else
  4844. ac_cv_path_EGREP=$EGREP
  4845. fi
  4846. fi
  4847. fi
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4849. $as_echo "$ac_cv_path_EGREP" >&6; }
  4850. EGREP="$ac_cv_path_EGREP"
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4852. $as_echo_n "checking for fgrep... " >&6; }
  4853. if ${ac_cv_path_FGREP+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4857. then ac_cv_path_FGREP="$GREP -F"
  4858. else
  4859. if test -z "$FGREP"; then
  4860. ac_path_FGREP_found=false
  4861. # Loop through the user's path and test for each of PROGNAME-LIST
  4862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4864. do
  4865. IFS=$as_save_IFS
  4866. test -z "$as_dir" && as_dir=.
  4867. for ac_prog in fgrep; do
  4868. for ac_exec_ext in '' $ac_executable_extensions; do
  4869. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4870. as_fn_executable_p "$ac_path_FGREP" || continue
  4871. # Check for GNU ac_path_FGREP and select it if it is found.
  4872. # Check for GNU $ac_path_FGREP
  4873. case `"$ac_path_FGREP" --version 2>&1` in
  4874. *GNU*)
  4875. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4876. *)
  4877. ac_count=0
  4878. $as_echo_n 0123456789 >"conftest.in"
  4879. while :
  4880. do
  4881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4882. mv "conftest.tmp" "conftest.in"
  4883. cp "conftest.in" "conftest.nl"
  4884. $as_echo 'FGREP' >> "conftest.nl"
  4885. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4888. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4889. # Best one so far, save it but keep looking for a better one
  4890. ac_cv_path_FGREP="$ac_path_FGREP"
  4891. ac_path_FGREP_max=$ac_count
  4892. fi
  4893. # 10*(2^10) chars as input seems more than enough
  4894. test $ac_count -gt 10 && break
  4895. done
  4896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4897. esac
  4898. $ac_path_FGREP_found && break 3
  4899. done
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. if test -z "$ac_cv_path_FGREP"; then
  4904. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4905. fi
  4906. else
  4907. ac_cv_path_FGREP=$FGREP
  4908. fi
  4909. fi
  4910. fi
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4912. $as_echo "$ac_cv_path_FGREP" >&6; }
  4913. FGREP="$ac_cv_path_FGREP"
  4914. test -z "$GREP" && GREP=grep
  4915. # Check whether --with-gnu-ld was given.
  4916. if test "${with_gnu_ld+set}" = set; then :
  4917. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4918. else
  4919. with_gnu_ld=no
  4920. fi
  4921. ac_prog=ld
  4922. if test yes = "$GCC"; then
  4923. # Check if gcc -print-prog-name=ld gives a path.
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4925. $as_echo_n "checking for ld used by $CC... " >&6; }
  4926. case $host in
  4927. *-*-mingw*)
  4928. # gcc leaves a trailing carriage return, which upsets mingw
  4929. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4930. *)
  4931. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4932. esac
  4933. case $ac_prog in
  4934. # Accept absolute paths.
  4935. [\\/]* | ?:[\\/]*)
  4936. re_direlt='/[^/][^/]*/\.\./'
  4937. # Canonicalize the pathname of ld
  4938. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4939. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4940. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4941. done
  4942. test -z "$LD" && LD=$ac_prog
  4943. ;;
  4944. "")
  4945. # If it fails, then pretend we aren't using GCC.
  4946. ac_prog=ld
  4947. ;;
  4948. *)
  4949. # If it is relative, then search for the first ld in PATH.
  4950. with_gnu_ld=unknown
  4951. ;;
  4952. esac
  4953. elif test yes = "$with_gnu_ld"; then
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4955. $as_echo_n "checking for GNU ld... " >&6; }
  4956. else
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4958. $as_echo_n "checking for non-GNU ld... " >&6; }
  4959. fi
  4960. if ${lt_cv_path_LD+:} false; then :
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. if test -z "$LD"; then
  4964. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4965. for ac_dir in $PATH; do
  4966. IFS=$lt_save_ifs
  4967. test -z "$ac_dir" && ac_dir=.
  4968. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4969. lt_cv_path_LD=$ac_dir/$ac_prog
  4970. # Check to see if the program is GNU ld. I'd rather use --version,
  4971. # but apparently some variants of GNU ld only accept -v.
  4972. # Break only if it was the GNU/non-GNU ld that we prefer.
  4973. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4974. *GNU* | *'with BFD'*)
  4975. test no != "$with_gnu_ld" && break
  4976. ;;
  4977. *)
  4978. test yes != "$with_gnu_ld" && break
  4979. ;;
  4980. esac
  4981. fi
  4982. done
  4983. IFS=$lt_save_ifs
  4984. else
  4985. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4986. fi
  4987. fi
  4988. LD=$lt_cv_path_LD
  4989. if test -n "$LD"; then
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4991. $as_echo "$LD" >&6; }
  4992. else
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4994. $as_echo "no" >&6; }
  4995. fi
  4996. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4998. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4999. if ${lt_cv_prog_gnu_ld+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5003. case `$LD -v 2>&1 </dev/null` in
  5004. *GNU* | *'with BFD'*)
  5005. lt_cv_prog_gnu_ld=yes
  5006. ;;
  5007. *)
  5008. lt_cv_prog_gnu_ld=no
  5009. ;;
  5010. esac
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5013. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5014. with_gnu_ld=$lt_cv_prog_gnu_ld
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5016. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5017. if ${lt_cv_path_NM+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. if test -n "$NM"; then
  5021. # Let the user override the test.
  5022. lt_cv_path_NM=$NM
  5023. else
  5024. lt_nm_to_check=${ac_tool_prefix}nm
  5025. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5026. lt_nm_to_check="$lt_nm_to_check nm"
  5027. fi
  5028. for lt_tmp_nm in $lt_nm_to_check; do
  5029. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5030. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5031. IFS=$lt_save_ifs
  5032. test -z "$ac_dir" && ac_dir=.
  5033. tmp_nm=$ac_dir/$lt_tmp_nm
  5034. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5035. # Check to see if the nm accepts a BSD-compat flag.
  5036. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5037. # nm: unknown option "B" ignored
  5038. # Tru64's nm complains that /dev/null is an invalid object file
  5039. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5040. case $build_os in
  5041. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5042. *) lt_bad_file=/dev/null ;;
  5043. esac
  5044. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5045. *$lt_bad_file* | *'Invalid file or object type'*)
  5046. lt_cv_path_NM="$tmp_nm -B"
  5047. break 2
  5048. ;;
  5049. *)
  5050. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5051. */dev/null*)
  5052. lt_cv_path_NM="$tmp_nm -p"
  5053. break 2
  5054. ;;
  5055. *)
  5056. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5057. continue # so that we can try to find one that supports BSD flags
  5058. ;;
  5059. esac
  5060. ;;
  5061. esac
  5062. fi
  5063. done
  5064. IFS=$lt_save_ifs
  5065. done
  5066. : ${lt_cv_path_NM=no}
  5067. fi
  5068. fi
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5070. $as_echo "$lt_cv_path_NM" >&6; }
  5071. if test no != "$lt_cv_path_NM"; then
  5072. NM=$lt_cv_path_NM
  5073. else
  5074. # Didn't find any BSD compatible name lister, look for dumpbin.
  5075. if test -n "$DUMPBIN"; then :
  5076. # Let the user override the test.
  5077. else
  5078. if test -n "$ac_tool_prefix"; then
  5079. for ac_prog in dumpbin "link -dump"
  5080. do
  5081. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5082. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5084. $as_echo_n "checking for $ac_word... " >&6; }
  5085. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. if test -n "$DUMPBIN"; then
  5089. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5090. else
  5091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5092. for as_dir in $PATH
  5093. do
  5094. IFS=$as_save_IFS
  5095. test -z "$as_dir" && as_dir=.
  5096. for ac_exec_ext in '' $ac_executable_extensions; do
  5097. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5098. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5100. break 2
  5101. fi
  5102. done
  5103. done
  5104. IFS=$as_save_IFS
  5105. fi
  5106. fi
  5107. DUMPBIN=$ac_cv_prog_DUMPBIN
  5108. if test -n "$DUMPBIN"; then
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5110. $as_echo "$DUMPBIN" >&6; }
  5111. else
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5113. $as_echo "no" >&6; }
  5114. fi
  5115. test -n "$DUMPBIN" && break
  5116. done
  5117. fi
  5118. if test -z "$DUMPBIN"; then
  5119. ac_ct_DUMPBIN=$DUMPBIN
  5120. for ac_prog in dumpbin "link -dump"
  5121. do
  5122. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5123. set dummy $ac_prog; ac_word=$2
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5125. $as_echo_n "checking for $ac_word... " >&6; }
  5126. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5127. $as_echo_n "(cached) " >&6
  5128. else
  5129. if test -n "$ac_ct_DUMPBIN"; then
  5130. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5131. else
  5132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5133. for as_dir in $PATH
  5134. do
  5135. IFS=$as_save_IFS
  5136. test -z "$as_dir" && as_dir=.
  5137. for ac_exec_ext in '' $ac_executable_extensions; do
  5138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5139. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5141. break 2
  5142. fi
  5143. done
  5144. done
  5145. IFS=$as_save_IFS
  5146. fi
  5147. fi
  5148. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5149. if test -n "$ac_ct_DUMPBIN"; then
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5151. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5152. else
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5154. $as_echo "no" >&6; }
  5155. fi
  5156. test -n "$ac_ct_DUMPBIN" && break
  5157. done
  5158. if test "x$ac_ct_DUMPBIN" = x; then
  5159. DUMPBIN=":"
  5160. else
  5161. case $cross_compiling:$ac_tool_warned in
  5162. yes:)
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5164. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5165. ac_tool_warned=yes ;;
  5166. esac
  5167. DUMPBIN=$ac_ct_DUMPBIN
  5168. fi
  5169. fi
  5170. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5171. *COFF*)
  5172. DUMPBIN="$DUMPBIN -symbols -headers"
  5173. ;;
  5174. *)
  5175. DUMPBIN=:
  5176. ;;
  5177. esac
  5178. fi
  5179. if test : != "$DUMPBIN"; then
  5180. NM=$DUMPBIN
  5181. fi
  5182. fi
  5183. test -z "$NM" && NM=nm
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5185. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5186. if ${lt_cv_nm_interface+:} false; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. lt_cv_nm_interface="BSD nm"
  5190. echo "int some_variable = 0;" > conftest.$ac_ext
  5191. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5192. (eval "$ac_compile" 2>conftest.err)
  5193. cat conftest.err >&5
  5194. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5195. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5196. cat conftest.err >&5
  5197. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5198. cat conftest.out >&5
  5199. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5200. lt_cv_nm_interface="MS dumpbin"
  5201. fi
  5202. rm -f conftest*
  5203. fi
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5205. $as_echo "$lt_cv_nm_interface" >&6; }
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5207. $as_echo_n "checking whether ln -s works... " >&6; }
  5208. LN_S=$as_ln_s
  5209. if test "$LN_S" = "ln -s"; then
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5211. $as_echo "yes" >&6; }
  5212. else
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5214. $as_echo "no, using $LN_S" >&6; }
  5215. fi
  5216. # find the maximum length of command line arguments
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5218. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5219. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. i=0
  5223. teststring=ABCD
  5224. case $build_os in
  5225. msdosdjgpp*)
  5226. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5227. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5228. # during glob expansion). Even if it were fixed, the result of this
  5229. # check would be larger than it should be.
  5230. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5231. ;;
  5232. gnu*)
  5233. # Under GNU Hurd, this test is not required because there is
  5234. # no limit to the length of command line arguments.
  5235. # Libtool will interpret -1 as no limit whatsoever
  5236. lt_cv_sys_max_cmd_len=-1;
  5237. ;;
  5238. cygwin* | mingw* | cegcc*)
  5239. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5240. # about 5 minutes as the teststring grows exponentially.
  5241. # Worse, since 9x/ME are not pre-emptively multitasking,
  5242. # you end up with a "frozen" computer, even though with patience
  5243. # the test eventually succeeds (with a max line length of 256k).
  5244. # Instead, let's just punt: use the minimum linelength reported by
  5245. # all of the supported platforms: 8192 (on NT/2K/XP).
  5246. lt_cv_sys_max_cmd_len=8192;
  5247. ;;
  5248. mint*)
  5249. # On MiNT this can take a long time and run out of memory.
  5250. lt_cv_sys_max_cmd_len=8192;
  5251. ;;
  5252. amigaos*)
  5253. # On AmigaOS with pdksh, this test takes hours, literally.
  5254. # So we just punt and use a minimum line length of 8192.
  5255. lt_cv_sys_max_cmd_len=8192;
  5256. ;;
  5257. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5258. # This has been around since 386BSD, at least. Likely further.
  5259. if test -x /sbin/sysctl; then
  5260. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5261. elif test -x /usr/sbin/sysctl; then
  5262. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5263. else
  5264. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5265. fi
  5266. # And add a safety zone
  5267. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5268. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5269. ;;
  5270. interix*)
  5271. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5272. lt_cv_sys_max_cmd_len=196608
  5273. ;;
  5274. os2*)
  5275. # The test takes a long time on OS/2.
  5276. lt_cv_sys_max_cmd_len=8192
  5277. ;;
  5278. osf*)
  5279. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5280. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5281. # nice to cause kernel panics so lets avoid the loop below.
  5282. # First set a reasonable default.
  5283. lt_cv_sys_max_cmd_len=16384
  5284. #
  5285. if test -x /sbin/sysconfig; then
  5286. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5287. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5288. esac
  5289. fi
  5290. ;;
  5291. sco3.2v5*)
  5292. lt_cv_sys_max_cmd_len=102400
  5293. ;;
  5294. sysv5* | sco5v6* | sysv4.2uw2*)
  5295. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5296. if test -n "$kargmax"; then
  5297. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5298. else
  5299. lt_cv_sys_max_cmd_len=32768
  5300. fi
  5301. ;;
  5302. *)
  5303. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5304. if test -n "$lt_cv_sys_max_cmd_len" && \
  5305. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5306. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5307. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5308. else
  5309. # Make teststring a little bigger before we do anything with it.
  5310. # a 1K string should be a reasonable start.
  5311. for i in 1 2 3 4 5 6 7 8; do
  5312. teststring=$teststring$teststring
  5313. done
  5314. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5315. # If test is not a shell built-in, we'll probably end up computing a
  5316. # maximum length that is only half of the actual maximum length, but
  5317. # we can't tell.
  5318. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5319. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5320. test 17 != "$i" # 1/2 MB should be enough
  5321. do
  5322. i=`expr $i + 1`
  5323. teststring=$teststring$teststring
  5324. done
  5325. # Only check the string length outside the loop.
  5326. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5327. teststring=
  5328. # Add a significant safety factor because C++ compilers can tack on
  5329. # massive amounts of additional arguments before passing them to the
  5330. # linker. It appears as though 1/2 is a usable value.
  5331. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5332. fi
  5333. ;;
  5334. esac
  5335. fi
  5336. if test -n "$lt_cv_sys_max_cmd_len"; then
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5338. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5339. else
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5341. $as_echo "none" >&6; }
  5342. fi
  5343. max_cmd_len=$lt_cv_sys_max_cmd_len
  5344. : ${CP="cp -f"}
  5345. : ${MV="mv -f"}
  5346. : ${RM="rm -f"}
  5347. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5348. lt_unset=unset
  5349. else
  5350. lt_unset=false
  5351. fi
  5352. # test EBCDIC or ASCII
  5353. case `echo X|tr X '\101'` in
  5354. A) # ASCII based system
  5355. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5356. lt_SP2NL='tr \040 \012'
  5357. lt_NL2SP='tr \015\012 \040\040'
  5358. ;;
  5359. *) # EBCDIC based system
  5360. lt_SP2NL='tr \100 \n'
  5361. lt_NL2SP='tr \r\n \100\100'
  5362. ;;
  5363. esac
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5365. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5366. if ${lt_cv_to_host_file_cmd+:} false; then :
  5367. $as_echo_n "(cached) " >&6
  5368. else
  5369. case $host in
  5370. *-*-mingw* )
  5371. case $build in
  5372. *-*-mingw* ) # actually msys
  5373. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5374. ;;
  5375. *-*-cygwin* )
  5376. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5377. ;;
  5378. * ) # otherwise, assume *nix
  5379. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5380. ;;
  5381. esac
  5382. ;;
  5383. *-*-cygwin* )
  5384. case $build in
  5385. *-*-mingw* ) # actually msys
  5386. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5387. ;;
  5388. *-*-cygwin* )
  5389. lt_cv_to_host_file_cmd=func_convert_file_noop
  5390. ;;
  5391. * ) # otherwise, assume *nix
  5392. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5393. ;;
  5394. esac
  5395. ;;
  5396. * ) # unhandled hosts (and "normal" native builds)
  5397. lt_cv_to_host_file_cmd=func_convert_file_noop
  5398. ;;
  5399. esac
  5400. fi
  5401. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5403. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5405. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5406. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. #assume ordinary cross tools, or native build.
  5410. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5411. case $host in
  5412. *-*-mingw* )
  5413. case $build in
  5414. *-*-mingw* ) # actually msys
  5415. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5416. ;;
  5417. esac
  5418. ;;
  5419. esac
  5420. fi
  5421. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5423. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5425. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5426. if ${lt_cv_ld_reload_flag+:} false; then :
  5427. $as_echo_n "(cached) " >&6
  5428. else
  5429. lt_cv_ld_reload_flag='-r'
  5430. fi
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5432. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5433. reload_flag=$lt_cv_ld_reload_flag
  5434. case $reload_flag in
  5435. "" | " "*) ;;
  5436. *) reload_flag=" $reload_flag" ;;
  5437. esac
  5438. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5439. case $host_os in
  5440. cygwin* | mingw* | pw32* | cegcc*)
  5441. if test yes != "$GCC"; then
  5442. reload_cmds=false
  5443. fi
  5444. ;;
  5445. darwin*)
  5446. if test yes = "$GCC"; then
  5447. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5448. else
  5449. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5450. fi
  5451. ;;
  5452. esac
  5453. if test -n "$ac_tool_prefix"; then
  5454. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5455. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5457. $as_echo_n "checking for $ac_word... " >&6; }
  5458. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5459. $as_echo_n "(cached) " >&6
  5460. else
  5461. if test -n "$OBJDUMP"; then
  5462. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5463. else
  5464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5465. for as_dir in $PATH
  5466. do
  5467. IFS=$as_save_IFS
  5468. test -z "$as_dir" && as_dir=.
  5469. for ac_exec_ext in '' $ac_executable_extensions; do
  5470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5471. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5473. break 2
  5474. fi
  5475. done
  5476. done
  5477. IFS=$as_save_IFS
  5478. fi
  5479. fi
  5480. OBJDUMP=$ac_cv_prog_OBJDUMP
  5481. if test -n "$OBJDUMP"; then
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5483. $as_echo "$OBJDUMP" >&6; }
  5484. else
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5486. $as_echo "no" >&6; }
  5487. fi
  5488. fi
  5489. if test -z "$ac_cv_prog_OBJDUMP"; then
  5490. ac_ct_OBJDUMP=$OBJDUMP
  5491. # Extract the first word of "objdump", so it can be a program name with args.
  5492. set dummy objdump; ac_word=$2
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5494. $as_echo_n "checking for $ac_word... " >&6; }
  5495. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5496. $as_echo_n "(cached) " >&6
  5497. else
  5498. if test -n "$ac_ct_OBJDUMP"; then
  5499. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5500. else
  5501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5502. for as_dir in $PATH
  5503. do
  5504. IFS=$as_save_IFS
  5505. test -z "$as_dir" && as_dir=.
  5506. for ac_exec_ext in '' $ac_executable_extensions; do
  5507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5508. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5510. break 2
  5511. fi
  5512. done
  5513. done
  5514. IFS=$as_save_IFS
  5515. fi
  5516. fi
  5517. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5518. if test -n "$ac_ct_OBJDUMP"; then
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5520. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5521. else
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5523. $as_echo "no" >&6; }
  5524. fi
  5525. if test "x$ac_ct_OBJDUMP" = x; then
  5526. OBJDUMP="false"
  5527. else
  5528. case $cross_compiling:$ac_tool_warned in
  5529. yes:)
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5531. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5532. ac_tool_warned=yes ;;
  5533. esac
  5534. OBJDUMP=$ac_ct_OBJDUMP
  5535. fi
  5536. else
  5537. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5538. fi
  5539. test -z "$OBJDUMP" && OBJDUMP=objdump
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5541. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5542. if ${lt_cv_deplibs_check_method+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5546. lt_cv_file_magic_test_file=
  5547. lt_cv_deplibs_check_method='unknown'
  5548. # Need to set the preceding variable on all platforms that support
  5549. # interlibrary dependencies.
  5550. # 'none' -- dependencies not supported.
  5551. # 'unknown' -- same as none, but documents that we really don't know.
  5552. # 'pass_all' -- all dependencies passed with no checks.
  5553. # 'test_compile' -- check by making test program.
  5554. # 'file_magic [[regex]]' -- check by looking for files in library path
  5555. # that responds to the $file_magic_cmd with a given extended regex.
  5556. # If you have 'file' or equivalent on your system and you're not sure
  5557. # whether 'pass_all' will *always* work, you probably want this one.
  5558. case $host_os in
  5559. aix[4-9]*)
  5560. lt_cv_deplibs_check_method=pass_all
  5561. ;;
  5562. beos*)
  5563. lt_cv_deplibs_check_method=pass_all
  5564. ;;
  5565. bsdi[45]*)
  5566. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5567. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5568. lt_cv_file_magic_test_file=/shlib/libc.so
  5569. ;;
  5570. cygwin*)
  5571. # func_win32_libid is a shell function defined in ltmain.sh
  5572. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5573. lt_cv_file_magic_cmd='func_win32_libid'
  5574. ;;
  5575. mingw* | pw32*)
  5576. # Base MSYS/MinGW do not provide the 'file' command needed by
  5577. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5578. # unless we find 'file', for example because we are cross-compiling.
  5579. if ( file / ) >/dev/null 2>&1; then
  5580. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5581. lt_cv_file_magic_cmd='func_win32_libid'
  5582. else
  5583. # Keep this pattern in sync with the one in func_win32_libid.
  5584. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5585. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5586. fi
  5587. ;;
  5588. cegcc*)
  5589. # use the weaker test based on 'objdump'. See mingw*.
  5590. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5591. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5592. ;;
  5593. darwin* | rhapsody*)
  5594. lt_cv_deplibs_check_method=pass_all
  5595. ;;
  5596. freebsd* | dragonfly*)
  5597. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5598. case $host_cpu in
  5599. i*86 )
  5600. # Not sure whether the presence of OpenBSD here was a mistake.
  5601. # Let's accept both of them until this is cleared up.
  5602. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5603. lt_cv_file_magic_cmd=/usr/bin/file
  5604. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5605. ;;
  5606. esac
  5607. else
  5608. lt_cv_deplibs_check_method=pass_all
  5609. fi
  5610. ;;
  5611. haiku*)
  5612. lt_cv_deplibs_check_method=pass_all
  5613. ;;
  5614. hpux10.20* | hpux11*)
  5615. lt_cv_file_magic_cmd=/usr/bin/file
  5616. case $host_cpu in
  5617. ia64*)
  5618. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5619. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5620. ;;
  5621. hppa*64*)
  5622. 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]'
  5623. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5624. ;;
  5625. *)
  5626. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5627. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5628. ;;
  5629. esac
  5630. ;;
  5631. interix[3-9]*)
  5632. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5633. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5634. ;;
  5635. irix5* | irix6* | nonstopux*)
  5636. case $LD in
  5637. *-32|*"-32 ") libmagic=32-bit;;
  5638. *-n32|*"-n32 ") libmagic=N32;;
  5639. *-64|*"-64 ") libmagic=64-bit;;
  5640. *) libmagic=never-match;;
  5641. esac
  5642. lt_cv_deplibs_check_method=pass_all
  5643. ;;
  5644. # This must be glibc/ELF.
  5645. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. netbsd* | netbsdelf*-gnu)
  5649. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5650. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5651. else
  5652. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5653. fi
  5654. ;;
  5655. newos6*)
  5656. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5657. lt_cv_file_magic_cmd=/usr/bin/file
  5658. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5659. ;;
  5660. *nto* | *qnx*)
  5661. lt_cv_deplibs_check_method=pass_all
  5662. ;;
  5663. openbsd* | bitrig*)
  5664. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5665. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5666. else
  5667. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5668. fi
  5669. ;;
  5670. osf3* | osf4* | osf5*)
  5671. lt_cv_deplibs_check_method=pass_all
  5672. ;;
  5673. rdos*)
  5674. lt_cv_deplibs_check_method=pass_all
  5675. ;;
  5676. solaris*)
  5677. lt_cv_deplibs_check_method=pass_all
  5678. ;;
  5679. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5680. lt_cv_deplibs_check_method=pass_all
  5681. ;;
  5682. sysv4 | sysv4.3*)
  5683. case $host_vendor in
  5684. motorola)
  5685. 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]'
  5686. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5687. ;;
  5688. ncr)
  5689. lt_cv_deplibs_check_method=pass_all
  5690. ;;
  5691. sequent)
  5692. lt_cv_file_magic_cmd='/bin/file'
  5693. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5694. ;;
  5695. sni)
  5696. lt_cv_file_magic_cmd='/bin/file'
  5697. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5698. lt_cv_file_magic_test_file=/lib/libc.so
  5699. ;;
  5700. siemens)
  5701. lt_cv_deplibs_check_method=pass_all
  5702. ;;
  5703. pc)
  5704. lt_cv_deplibs_check_method=pass_all
  5705. ;;
  5706. esac
  5707. ;;
  5708. tpf*)
  5709. lt_cv_deplibs_check_method=pass_all
  5710. ;;
  5711. os2*)
  5712. lt_cv_deplibs_check_method=pass_all
  5713. ;;
  5714. esac
  5715. fi
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5717. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5718. file_magic_glob=
  5719. want_nocaseglob=no
  5720. if test "$build" = "$host"; then
  5721. case $host_os in
  5722. mingw* | pw32*)
  5723. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5724. want_nocaseglob=yes
  5725. else
  5726. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5727. fi
  5728. ;;
  5729. esac
  5730. fi
  5731. file_magic_cmd=$lt_cv_file_magic_cmd
  5732. deplibs_check_method=$lt_cv_deplibs_check_method
  5733. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5734. if test -n "$ac_tool_prefix"; then
  5735. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5736. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5738. $as_echo_n "checking for $ac_word... " >&6; }
  5739. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. if test -n "$DLLTOOL"; then
  5743. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5744. else
  5745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5746. for as_dir in $PATH
  5747. do
  5748. IFS=$as_save_IFS
  5749. test -z "$as_dir" && as_dir=.
  5750. for ac_exec_ext in '' $ac_executable_extensions; do
  5751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5752. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5754. break 2
  5755. fi
  5756. done
  5757. done
  5758. IFS=$as_save_IFS
  5759. fi
  5760. fi
  5761. DLLTOOL=$ac_cv_prog_DLLTOOL
  5762. if test -n "$DLLTOOL"; then
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5764. $as_echo "$DLLTOOL" >&6; }
  5765. else
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5767. $as_echo "no" >&6; }
  5768. fi
  5769. fi
  5770. if test -z "$ac_cv_prog_DLLTOOL"; then
  5771. ac_ct_DLLTOOL=$DLLTOOL
  5772. # Extract the first word of "dlltool", so it can be a program name with args.
  5773. set dummy dlltool; ac_word=$2
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5775. $as_echo_n "checking for $ac_word... " >&6; }
  5776. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5777. $as_echo_n "(cached) " >&6
  5778. else
  5779. if test -n "$ac_ct_DLLTOOL"; then
  5780. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5781. else
  5782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5783. for as_dir in $PATH
  5784. do
  5785. IFS=$as_save_IFS
  5786. test -z "$as_dir" && as_dir=.
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5789. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. fi
  5797. fi
  5798. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5799. if test -n "$ac_ct_DLLTOOL"; then
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5801. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5802. else
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5804. $as_echo "no" >&6; }
  5805. fi
  5806. if test "x$ac_ct_DLLTOOL" = x; then
  5807. DLLTOOL="false"
  5808. else
  5809. case $cross_compiling:$ac_tool_warned in
  5810. yes:)
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5813. ac_tool_warned=yes ;;
  5814. esac
  5815. DLLTOOL=$ac_ct_DLLTOOL
  5816. fi
  5817. else
  5818. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5819. fi
  5820. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5822. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5823. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5827. case $host_os in
  5828. cygwin* | mingw* | pw32* | cegcc*)
  5829. # two different shell functions defined in ltmain.sh;
  5830. # decide which one to use based on capabilities of $DLLTOOL
  5831. case `$DLLTOOL --help 2>&1` in
  5832. *--identify-strict*)
  5833. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5834. ;;
  5835. *)
  5836. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5837. ;;
  5838. esac
  5839. ;;
  5840. *)
  5841. # fallback: assume linklib IS sharedlib
  5842. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5843. ;;
  5844. esac
  5845. fi
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5847. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5848. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5849. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5850. if test -n "$ac_tool_prefix"; then
  5851. for ac_prog in ar
  5852. do
  5853. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5854. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5856. $as_echo_n "checking for $ac_word... " >&6; }
  5857. if ${ac_cv_prog_AR+:} false; then :
  5858. $as_echo_n "(cached) " >&6
  5859. else
  5860. if test -n "$AR"; then
  5861. ac_cv_prog_AR="$AR" # Let the user override the test.
  5862. else
  5863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5864. for as_dir in $PATH
  5865. do
  5866. IFS=$as_save_IFS
  5867. test -z "$as_dir" && as_dir=.
  5868. for ac_exec_ext in '' $ac_executable_extensions; do
  5869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5870. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5872. break 2
  5873. fi
  5874. done
  5875. done
  5876. IFS=$as_save_IFS
  5877. fi
  5878. fi
  5879. AR=$ac_cv_prog_AR
  5880. if test -n "$AR"; then
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5882. $as_echo "$AR" >&6; }
  5883. else
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5885. $as_echo "no" >&6; }
  5886. fi
  5887. test -n "$AR" && break
  5888. done
  5889. fi
  5890. if test -z "$AR"; then
  5891. ac_ct_AR=$AR
  5892. for ac_prog in ar
  5893. do
  5894. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5895. set dummy $ac_prog; ac_word=$2
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5897. $as_echo_n "checking for $ac_word... " >&6; }
  5898. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. if test -n "$ac_ct_AR"; then
  5902. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5903. else
  5904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5905. for as_dir in $PATH
  5906. do
  5907. IFS=$as_save_IFS
  5908. test -z "$as_dir" && as_dir=.
  5909. for ac_exec_ext in '' $ac_executable_extensions; do
  5910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5911. ac_cv_prog_ac_ct_AR="$ac_prog"
  5912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5913. break 2
  5914. fi
  5915. done
  5916. done
  5917. IFS=$as_save_IFS
  5918. fi
  5919. fi
  5920. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5921. if test -n "$ac_ct_AR"; then
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5923. $as_echo "$ac_ct_AR" >&6; }
  5924. else
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5926. $as_echo "no" >&6; }
  5927. fi
  5928. test -n "$ac_ct_AR" && break
  5929. done
  5930. if test "x$ac_ct_AR" = x; then
  5931. AR="false"
  5932. else
  5933. case $cross_compiling:$ac_tool_warned in
  5934. yes:)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5937. ac_tool_warned=yes ;;
  5938. esac
  5939. AR=$ac_ct_AR
  5940. fi
  5941. fi
  5942. : ${AR=ar}
  5943. : ${AR_FLAGS=cr}
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5945. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5946. if ${lt_cv_ar_at_file+:} false; then :
  5947. $as_echo_n "(cached) " >&6
  5948. else
  5949. lt_cv_ar_at_file=no
  5950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5951. /* end confdefs.h. */
  5952. int
  5953. main ()
  5954. {
  5955. ;
  5956. return 0;
  5957. }
  5958. _ACEOF
  5959. if ac_fn_c_try_compile "$LINENO"; then :
  5960. echo conftest.$ac_objext > conftest.lst
  5961. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5962. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5963. (eval $lt_ar_try) 2>&5
  5964. ac_status=$?
  5965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5966. test $ac_status = 0; }
  5967. if test 0 -eq "$ac_status"; then
  5968. # Ensure the archiver fails upon bogus file names.
  5969. rm -f conftest.$ac_objext libconftest.a
  5970. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5971. (eval $lt_ar_try) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; }
  5975. if test 0 -ne "$ac_status"; then
  5976. lt_cv_ar_at_file=@
  5977. fi
  5978. fi
  5979. rm -f conftest.* libconftest.a
  5980. fi
  5981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5982. fi
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5984. $as_echo "$lt_cv_ar_at_file" >&6; }
  5985. if test no = "$lt_cv_ar_at_file"; then
  5986. archiver_list_spec=
  5987. else
  5988. archiver_list_spec=$lt_cv_ar_at_file
  5989. fi
  5990. if test -n "$ac_tool_prefix"; then
  5991. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5992. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5994. $as_echo_n "checking for $ac_word... " >&6; }
  5995. if ${ac_cv_prog_STRIP+:} false; then :
  5996. $as_echo_n "(cached) " >&6
  5997. else
  5998. if test -n "$STRIP"; then
  5999. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6000. else
  6001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6002. for as_dir in $PATH
  6003. do
  6004. IFS=$as_save_IFS
  6005. test -z "$as_dir" && as_dir=.
  6006. for ac_exec_ext in '' $ac_executable_extensions; do
  6007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6008. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6010. break 2
  6011. fi
  6012. done
  6013. done
  6014. IFS=$as_save_IFS
  6015. fi
  6016. fi
  6017. STRIP=$ac_cv_prog_STRIP
  6018. if test -n "$STRIP"; then
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6020. $as_echo "$STRIP" >&6; }
  6021. else
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6023. $as_echo "no" >&6; }
  6024. fi
  6025. fi
  6026. if test -z "$ac_cv_prog_STRIP"; then
  6027. ac_ct_STRIP=$STRIP
  6028. # Extract the first word of "strip", so it can be a program name with args.
  6029. set dummy strip; ac_word=$2
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6031. $as_echo_n "checking for $ac_word... " >&6; }
  6032. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6033. $as_echo_n "(cached) " >&6
  6034. else
  6035. if test -n "$ac_ct_STRIP"; then
  6036. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6037. else
  6038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6039. for as_dir in $PATH
  6040. do
  6041. IFS=$as_save_IFS
  6042. test -z "$as_dir" && as_dir=.
  6043. for ac_exec_ext in '' $ac_executable_extensions; do
  6044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6045. ac_cv_prog_ac_ct_STRIP="strip"
  6046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6047. break 2
  6048. fi
  6049. done
  6050. done
  6051. IFS=$as_save_IFS
  6052. fi
  6053. fi
  6054. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6055. if test -n "$ac_ct_STRIP"; then
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6057. $as_echo "$ac_ct_STRIP" >&6; }
  6058. else
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6060. $as_echo "no" >&6; }
  6061. fi
  6062. if test "x$ac_ct_STRIP" = x; then
  6063. STRIP=":"
  6064. else
  6065. case $cross_compiling:$ac_tool_warned in
  6066. yes:)
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6068. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6069. ac_tool_warned=yes ;;
  6070. esac
  6071. STRIP=$ac_ct_STRIP
  6072. fi
  6073. else
  6074. STRIP="$ac_cv_prog_STRIP"
  6075. fi
  6076. test -z "$STRIP" && STRIP=:
  6077. if test -n "$ac_tool_prefix"; then
  6078. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6079. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6081. $as_echo_n "checking for $ac_word... " >&6; }
  6082. if ${ac_cv_prog_RANLIB+:} false; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. if test -n "$RANLIB"; then
  6086. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6087. else
  6088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6089. for as_dir in $PATH
  6090. do
  6091. IFS=$as_save_IFS
  6092. test -z "$as_dir" && as_dir=.
  6093. for ac_exec_ext in '' $ac_executable_extensions; do
  6094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6095. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6097. break 2
  6098. fi
  6099. done
  6100. done
  6101. IFS=$as_save_IFS
  6102. fi
  6103. fi
  6104. RANLIB=$ac_cv_prog_RANLIB
  6105. if test -n "$RANLIB"; then
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6107. $as_echo "$RANLIB" >&6; }
  6108. else
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6110. $as_echo "no" >&6; }
  6111. fi
  6112. fi
  6113. if test -z "$ac_cv_prog_RANLIB"; then
  6114. ac_ct_RANLIB=$RANLIB
  6115. # Extract the first word of "ranlib", so it can be a program name with args.
  6116. set dummy ranlib; ac_word=$2
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6118. $as_echo_n "checking for $ac_word... " >&6; }
  6119. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test -n "$ac_ct_RANLIB"; then
  6123. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6124. else
  6125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6126. for as_dir in $PATH
  6127. do
  6128. IFS=$as_save_IFS
  6129. test -z "$as_dir" && as_dir=.
  6130. for ac_exec_ext in '' $ac_executable_extensions; do
  6131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6132. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6134. break 2
  6135. fi
  6136. done
  6137. done
  6138. IFS=$as_save_IFS
  6139. fi
  6140. fi
  6141. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6142. if test -n "$ac_ct_RANLIB"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6144. $as_echo "$ac_ct_RANLIB" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6147. $as_echo "no" >&6; }
  6148. fi
  6149. if test "x$ac_ct_RANLIB" = x; then
  6150. RANLIB=":"
  6151. else
  6152. case $cross_compiling:$ac_tool_warned in
  6153. yes:)
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6156. ac_tool_warned=yes ;;
  6157. esac
  6158. RANLIB=$ac_ct_RANLIB
  6159. fi
  6160. else
  6161. RANLIB="$ac_cv_prog_RANLIB"
  6162. fi
  6163. test -z "$RANLIB" && RANLIB=:
  6164. # Determine commands to create old-style static archives.
  6165. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6166. old_postinstall_cmds='chmod 644 $oldlib'
  6167. old_postuninstall_cmds=
  6168. if test -n "$RANLIB"; then
  6169. case $host_os in
  6170. bitrig* | openbsd*)
  6171. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6172. ;;
  6173. *)
  6174. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6175. ;;
  6176. esac
  6177. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6178. fi
  6179. case $host_os in
  6180. darwin*)
  6181. lock_old_archive_extraction=yes ;;
  6182. *)
  6183. lock_old_archive_extraction=no ;;
  6184. esac
  6185. # If no C compiler was specified, use CC.
  6186. LTCC=${LTCC-"$CC"}
  6187. # If no C compiler flags were specified, use CFLAGS.
  6188. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6189. # Allow CC to be a program name with arguments.
  6190. compiler=$CC
  6191. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6193. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6194. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. # These are sane defaults that work on at least a few old systems.
  6198. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6199. # Character class describing NM global symbol codes.
  6200. symcode='[BCDEGRST]'
  6201. # Regexp to match symbols that can be accessed directly from C.
  6202. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6203. # Define system-specific variables.
  6204. case $host_os in
  6205. aix*)
  6206. symcode='[BCDT]'
  6207. ;;
  6208. cygwin* | mingw* | pw32* | cegcc*)
  6209. symcode='[ABCDGISTW]'
  6210. ;;
  6211. hpux*)
  6212. if test ia64 = "$host_cpu"; then
  6213. symcode='[ABCDEGRST]'
  6214. fi
  6215. ;;
  6216. irix* | nonstopux*)
  6217. symcode='[BCDEGRST]'
  6218. ;;
  6219. osf*)
  6220. symcode='[BCDEGQRST]'
  6221. ;;
  6222. solaris*)
  6223. symcode='[BDRT]'
  6224. ;;
  6225. sco3.2v5*)
  6226. symcode='[DT]'
  6227. ;;
  6228. sysv4.2uw2*)
  6229. symcode='[DT]'
  6230. ;;
  6231. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6232. symcode='[ABDT]'
  6233. ;;
  6234. sysv4)
  6235. symcode='[DFNSTU]'
  6236. ;;
  6237. esac
  6238. # If we're using GNU nm, then use its standard symbol codes.
  6239. case `$NM -V 2>&1` in
  6240. *GNU* | *'with BFD'*)
  6241. symcode='[ABCDGIRSTW]' ;;
  6242. esac
  6243. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6244. # Gets list of data symbols to import.
  6245. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6246. # Adjust the below global symbol transforms to fixup imported variables.
  6247. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6248. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6249. lt_c_name_lib_hook="\
  6250. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6251. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6252. else
  6253. # Disable hooks by default.
  6254. lt_cv_sys_global_symbol_to_import=
  6255. lt_cdecl_hook=
  6256. lt_c_name_hook=
  6257. lt_c_name_lib_hook=
  6258. fi
  6259. # Transform an extracted symbol line into a proper C declaration.
  6260. # Some systems (esp. on ia64) link data and code symbols differently,
  6261. # so use this general approach.
  6262. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6263. $lt_cdecl_hook\
  6264. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6265. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6266. # Transform an extracted symbol line into symbol name and symbol address
  6267. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6268. $lt_c_name_hook\
  6269. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6270. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6271. # Transform an extracted symbol line into symbol name with lib prefix and
  6272. # symbol address.
  6273. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6274. $lt_c_name_lib_hook\
  6275. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6276. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6277. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6278. # Handle CRLF in mingw tool chain
  6279. opt_cr=
  6280. case $build_os in
  6281. mingw*)
  6282. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6283. ;;
  6284. esac
  6285. # Try without a prefix underscore, then with it.
  6286. for ac_symprfx in "" "_"; do
  6287. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6288. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6289. # Write the raw and C identifiers.
  6290. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6291. # Fake it for dumpbin and say T for any non-static function,
  6292. # D for any global variable and I for any imported variable.
  6293. # Also find C++ and __fastcall symbols from MSVC++,
  6294. # which start with @ or ?.
  6295. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6296. " {last_section=section; section=\$ 3};"\
  6297. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6298. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6299. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6300. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6301. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6302. " \$ 0!~/External *\|/{next};"\
  6303. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6304. " {if(hide[section]) next};"\
  6305. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6306. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6307. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6308. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6309. " ' prfx=^$ac_symprfx"
  6310. else
  6311. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6312. fi
  6313. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6314. # Check to see that the pipe works correctly.
  6315. pipe_works=no
  6316. rm -f conftest*
  6317. cat > conftest.$ac_ext <<_LT_EOF
  6318. #ifdef __cplusplus
  6319. extern "C" {
  6320. #endif
  6321. char nm_test_var;
  6322. void nm_test_func(void);
  6323. void nm_test_func(void){}
  6324. #ifdef __cplusplus
  6325. }
  6326. #endif
  6327. int main(){nm_test_var='a';nm_test_func();return(0);}
  6328. _LT_EOF
  6329. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6330. (eval $ac_compile) 2>&5
  6331. ac_status=$?
  6332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6333. test $ac_status = 0; }; then
  6334. # Now try to grab the symbols.
  6335. nlist=conftest.nm
  6336. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6337. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6338. # Try sorting and uniquifying the output.
  6339. if sort "$nlist" | uniq > "$nlist"T; then
  6340. mv -f "$nlist"T "$nlist"
  6341. else
  6342. rm -f "$nlist"T
  6343. fi
  6344. # Make sure that we snagged all the symbols we need.
  6345. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6346. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6347. cat <<_LT_EOF > conftest.$ac_ext
  6348. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6349. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6350. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6351. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6352. # define LT_DLSYM_CONST
  6353. #elif defined __osf__
  6354. /* This system does not cope well with relocations in const data. */
  6355. # define LT_DLSYM_CONST
  6356. #else
  6357. # define LT_DLSYM_CONST const
  6358. #endif
  6359. #ifdef __cplusplus
  6360. extern "C" {
  6361. #endif
  6362. _LT_EOF
  6363. # Now generate the symbol file.
  6364. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6365. cat <<_LT_EOF >> conftest.$ac_ext
  6366. /* The mapping between symbol names and symbols. */
  6367. LT_DLSYM_CONST struct {
  6368. const char *name;
  6369. void *address;
  6370. }
  6371. lt__PROGRAM__LTX_preloaded_symbols[] =
  6372. {
  6373. { "@PROGRAM@", (void *) 0 },
  6374. _LT_EOF
  6375. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6376. cat <<\_LT_EOF >> conftest.$ac_ext
  6377. {0, (void *) 0}
  6378. };
  6379. /* This works around a problem in FreeBSD linker */
  6380. #ifdef FREEBSD_WORKAROUND
  6381. static const void *lt_preloaded_setup() {
  6382. return lt__PROGRAM__LTX_preloaded_symbols;
  6383. }
  6384. #endif
  6385. #ifdef __cplusplus
  6386. }
  6387. #endif
  6388. _LT_EOF
  6389. # Now try linking the two files.
  6390. mv conftest.$ac_objext conftstm.$ac_objext
  6391. lt_globsym_save_LIBS=$LIBS
  6392. lt_globsym_save_CFLAGS=$CFLAGS
  6393. LIBS=conftstm.$ac_objext
  6394. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6395. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6396. (eval $ac_link) 2>&5
  6397. ac_status=$?
  6398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6399. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6400. pipe_works=yes
  6401. fi
  6402. LIBS=$lt_globsym_save_LIBS
  6403. CFLAGS=$lt_globsym_save_CFLAGS
  6404. else
  6405. echo "cannot find nm_test_func in $nlist" >&5
  6406. fi
  6407. else
  6408. echo "cannot find nm_test_var in $nlist" >&5
  6409. fi
  6410. else
  6411. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6412. fi
  6413. else
  6414. echo "$progname: failed program was:" >&5
  6415. cat conftest.$ac_ext >&5
  6416. fi
  6417. rm -rf conftest* conftst*
  6418. # Do not use the global_symbol_pipe unless it works.
  6419. if test yes = "$pipe_works"; then
  6420. break
  6421. else
  6422. lt_cv_sys_global_symbol_pipe=
  6423. fi
  6424. done
  6425. fi
  6426. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6427. lt_cv_sys_global_symbol_to_cdecl=
  6428. fi
  6429. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6431. $as_echo "failed" >&6; }
  6432. else
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6434. $as_echo "ok" >&6; }
  6435. fi
  6436. # Response file support.
  6437. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6438. nm_file_list_spec='@'
  6439. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6440. nm_file_list_spec='@'
  6441. fi
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6443. $as_echo_n "checking for sysroot... " >&6; }
  6444. # Check whether --with-sysroot was given.
  6445. if test "${with_sysroot+set}" = set; then :
  6446. withval=$with_sysroot;
  6447. else
  6448. with_sysroot=no
  6449. fi
  6450. lt_sysroot=
  6451. case $with_sysroot in #(
  6452. yes)
  6453. if test yes = "$GCC"; then
  6454. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6455. fi
  6456. ;; #(
  6457. /*)
  6458. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6459. ;; #(
  6460. no|'')
  6461. ;; #(
  6462. *)
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6464. $as_echo "$with_sysroot" >&6; }
  6465. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6466. ;;
  6467. esac
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6469. $as_echo "${lt_sysroot:-no}" >&6; }
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6471. $as_echo_n "checking for a working dd... " >&6; }
  6472. if ${ac_cv_path_lt_DD+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. printf 0123456789abcdef0123456789abcdef >conftest.i
  6476. cat conftest.i conftest.i >conftest2.i
  6477. : ${lt_DD:=$DD}
  6478. if test -z "$lt_DD"; then
  6479. ac_path_lt_DD_found=false
  6480. # Loop through the user's path and test for each of PROGNAME-LIST
  6481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6482. for as_dir in $PATH
  6483. do
  6484. IFS=$as_save_IFS
  6485. test -z "$as_dir" && as_dir=.
  6486. for ac_prog in dd; do
  6487. for ac_exec_ext in '' $ac_executable_extensions; do
  6488. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6489. as_fn_executable_p "$ac_path_lt_DD" || continue
  6490. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6491. cmp -s conftest.i conftest.out \
  6492. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6493. fi
  6494. $ac_path_lt_DD_found && break 3
  6495. done
  6496. done
  6497. done
  6498. IFS=$as_save_IFS
  6499. if test -z "$ac_cv_path_lt_DD"; then
  6500. :
  6501. fi
  6502. else
  6503. ac_cv_path_lt_DD=$lt_DD
  6504. fi
  6505. rm -f conftest.i conftest2.i conftest.out
  6506. fi
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6508. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6510. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6511. if ${lt_cv_truncate_bin+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. printf 0123456789abcdef0123456789abcdef >conftest.i
  6515. cat conftest.i conftest.i >conftest2.i
  6516. lt_cv_truncate_bin=
  6517. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6518. cmp -s conftest.i conftest.out \
  6519. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6520. fi
  6521. rm -f conftest.i conftest2.i conftest.out
  6522. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6523. fi
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6525. $as_echo "$lt_cv_truncate_bin" >&6; }
  6526. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6527. func_cc_basename ()
  6528. {
  6529. for cc_temp in $*""; do
  6530. case $cc_temp in
  6531. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6532. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6533. \-*) ;;
  6534. *) break;;
  6535. esac
  6536. done
  6537. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6538. }
  6539. # Check whether --enable-libtool-lock was given.
  6540. if test "${enable_libtool_lock+set}" = set; then :
  6541. enableval=$enable_libtool_lock;
  6542. fi
  6543. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6544. # Some flags need to be propagated to the compiler or linker for good
  6545. # libtool support.
  6546. case $host in
  6547. ia64-*-hpux*)
  6548. # Find out what ABI is being produced by ac_compile, and set mode
  6549. # options accordingly.
  6550. echo 'int i;' > conftest.$ac_ext
  6551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6552. (eval $ac_compile) 2>&5
  6553. ac_status=$?
  6554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6555. test $ac_status = 0; }; then
  6556. case `/usr/bin/file conftest.$ac_objext` in
  6557. *ELF-32*)
  6558. HPUX_IA64_MODE=32
  6559. ;;
  6560. *ELF-64*)
  6561. HPUX_IA64_MODE=64
  6562. ;;
  6563. esac
  6564. fi
  6565. rm -rf conftest*
  6566. ;;
  6567. *-*-irix6*)
  6568. # Find out what ABI is being produced by ac_compile, and set linker
  6569. # options accordingly.
  6570. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6571. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6572. (eval $ac_compile) 2>&5
  6573. ac_status=$?
  6574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6575. test $ac_status = 0; }; then
  6576. if test yes = "$lt_cv_prog_gnu_ld"; then
  6577. case `/usr/bin/file conftest.$ac_objext` in
  6578. *32-bit*)
  6579. LD="${LD-ld} -melf32bsmip"
  6580. ;;
  6581. *N32*)
  6582. LD="${LD-ld} -melf32bmipn32"
  6583. ;;
  6584. *64-bit*)
  6585. LD="${LD-ld} -melf64bmip"
  6586. ;;
  6587. esac
  6588. else
  6589. case `/usr/bin/file conftest.$ac_objext` in
  6590. *32-bit*)
  6591. LD="${LD-ld} -32"
  6592. ;;
  6593. *N32*)
  6594. LD="${LD-ld} -n32"
  6595. ;;
  6596. *64-bit*)
  6597. LD="${LD-ld} -64"
  6598. ;;
  6599. esac
  6600. fi
  6601. fi
  6602. rm -rf conftest*
  6603. ;;
  6604. mips64*-*linux*)
  6605. # Find out what ABI is being produced by ac_compile, and set linker
  6606. # options accordingly.
  6607. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6609. (eval $ac_compile) 2>&5
  6610. ac_status=$?
  6611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6612. test $ac_status = 0; }; then
  6613. emul=elf
  6614. case `/usr/bin/file conftest.$ac_objext` in
  6615. *32-bit*)
  6616. emul="${emul}32"
  6617. ;;
  6618. *64-bit*)
  6619. emul="${emul}64"
  6620. ;;
  6621. esac
  6622. case `/usr/bin/file conftest.$ac_objext` in
  6623. *MSB*)
  6624. emul="${emul}btsmip"
  6625. ;;
  6626. *LSB*)
  6627. emul="${emul}ltsmip"
  6628. ;;
  6629. esac
  6630. case `/usr/bin/file conftest.$ac_objext` in
  6631. *N32*)
  6632. emul="${emul}n32"
  6633. ;;
  6634. esac
  6635. LD="${LD-ld} -m $emul"
  6636. fi
  6637. rm -rf conftest*
  6638. ;;
  6639. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6640. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6641. # Find out what ABI is being produced by ac_compile, and set linker
  6642. # options accordingly. Note that the listed cases only cover the
  6643. # situations where additional linker options are needed (such as when
  6644. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6645. # vice versa); the common cases where no linker options are needed do
  6646. # not appear in the list.
  6647. echo 'int i;' > conftest.$ac_ext
  6648. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6649. (eval $ac_compile) 2>&5
  6650. ac_status=$?
  6651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6652. test $ac_status = 0; }; then
  6653. case `/usr/bin/file conftest.o` in
  6654. *32-bit*)
  6655. case $host in
  6656. x86_64-*kfreebsd*-gnu)
  6657. LD="${LD-ld} -m elf_i386_fbsd"
  6658. ;;
  6659. x86_64-*linux*)
  6660. case `/usr/bin/file conftest.o` in
  6661. *x86-64*)
  6662. LD="${LD-ld} -m elf32_x86_64"
  6663. ;;
  6664. *)
  6665. LD="${LD-ld} -m elf_i386"
  6666. ;;
  6667. esac
  6668. ;;
  6669. powerpc64le-*linux*)
  6670. LD="${LD-ld} -m elf32lppclinux"
  6671. ;;
  6672. powerpc64-*linux*)
  6673. LD="${LD-ld} -m elf32ppclinux"
  6674. ;;
  6675. s390x-*linux*)
  6676. LD="${LD-ld} -m elf_s390"
  6677. ;;
  6678. sparc64-*linux*)
  6679. LD="${LD-ld} -m elf32_sparc"
  6680. ;;
  6681. esac
  6682. ;;
  6683. *64-bit*)
  6684. case $host in
  6685. x86_64-*kfreebsd*-gnu)
  6686. LD="${LD-ld} -m elf_x86_64_fbsd"
  6687. ;;
  6688. x86_64-*linux*)
  6689. LD="${LD-ld} -m elf_x86_64"
  6690. ;;
  6691. powerpcle-*linux*)
  6692. LD="${LD-ld} -m elf64lppc"
  6693. ;;
  6694. powerpc-*linux*)
  6695. LD="${LD-ld} -m elf64ppc"
  6696. ;;
  6697. s390*-*linux*|s390*-*tpf*)
  6698. LD="${LD-ld} -m elf64_s390"
  6699. ;;
  6700. sparc*-*linux*)
  6701. LD="${LD-ld} -m elf64_sparc"
  6702. ;;
  6703. esac
  6704. ;;
  6705. esac
  6706. fi
  6707. rm -rf conftest*
  6708. ;;
  6709. *-*-sco3.2v5*)
  6710. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6711. SAVE_CFLAGS=$CFLAGS
  6712. CFLAGS="$CFLAGS -belf"
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6714. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6715. if ${lt_cv_cc_needs_belf+:} false; then :
  6716. $as_echo_n "(cached) " >&6
  6717. else
  6718. ac_ext=c
  6719. ac_cpp='$CPP $CPPFLAGS'
  6720. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6721. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6722. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6724. /* end confdefs.h. */
  6725. int
  6726. main ()
  6727. {
  6728. ;
  6729. return 0;
  6730. }
  6731. _ACEOF
  6732. if ac_fn_c_try_link "$LINENO"; then :
  6733. lt_cv_cc_needs_belf=yes
  6734. else
  6735. lt_cv_cc_needs_belf=no
  6736. fi
  6737. rm -f core conftest.err conftest.$ac_objext \
  6738. conftest$ac_exeext conftest.$ac_ext
  6739. ac_ext=c
  6740. ac_cpp='$CPP $CPPFLAGS'
  6741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6744. fi
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6746. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6747. if test yes != "$lt_cv_cc_needs_belf"; then
  6748. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6749. CFLAGS=$SAVE_CFLAGS
  6750. fi
  6751. ;;
  6752. *-*solaris*)
  6753. # Find out what ABI is being produced by ac_compile, and set linker
  6754. # options accordingly.
  6755. echo 'int i;' > conftest.$ac_ext
  6756. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6757. (eval $ac_compile) 2>&5
  6758. ac_status=$?
  6759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6760. test $ac_status = 0; }; then
  6761. case `/usr/bin/file conftest.o` in
  6762. *64-bit*)
  6763. case $lt_cv_prog_gnu_ld in
  6764. yes*)
  6765. case $host in
  6766. i?86-*-solaris*|x86_64-*-solaris*)
  6767. LD="${LD-ld} -m elf_x86_64"
  6768. ;;
  6769. sparc*-*-solaris*)
  6770. LD="${LD-ld} -m elf64_sparc"
  6771. ;;
  6772. esac
  6773. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6774. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6775. LD=${LD-ld}_sol2
  6776. fi
  6777. ;;
  6778. *)
  6779. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6780. LD="${LD-ld} -64"
  6781. fi
  6782. ;;
  6783. esac
  6784. ;;
  6785. esac
  6786. fi
  6787. rm -rf conftest*
  6788. ;;
  6789. esac
  6790. need_locks=$enable_libtool_lock
  6791. if test -n "$ac_tool_prefix"; then
  6792. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6793. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6795. $as_echo_n "checking for $ac_word... " >&6; }
  6796. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6797. $as_echo_n "(cached) " >&6
  6798. else
  6799. if test -n "$MANIFEST_TOOL"; then
  6800. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6801. else
  6802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6803. for as_dir in $PATH
  6804. do
  6805. IFS=$as_save_IFS
  6806. test -z "$as_dir" && as_dir=.
  6807. for ac_exec_ext in '' $ac_executable_extensions; do
  6808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6809. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6811. break 2
  6812. fi
  6813. done
  6814. done
  6815. IFS=$as_save_IFS
  6816. fi
  6817. fi
  6818. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6819. if test -n "$MANIFEST_TOOL"; then
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6821. $as_echo "$MANIFEST_TOOL" >&6; }
  6822. else
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6824. $as_echo "no" >&6; }
  6825. fi
  6826. fi
  6827. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6828. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6829. # Extract the first word of "mt", so it can be a program name with args.
  6830. set dummy mt; ac_word=$2
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6832. $as_echo_n "checking for $ac_word... " >&6; }
  6833. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6834. $as_echo_n "(cached) " >&6
  6835. else
  6836. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6837. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6838. else
  6839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6840. for as_dir in $PATH
  6841. do
  6842. IFS=$as_save_IFS
  6843. test -z "$as_dir" && as_dir=.
  6844. for ac_exec_ext in '' $ac_executable_extensions; do
  6845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6846. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6848. break 2
  6849. fi
  6850. done
  6851. done
  6852. IFS=$as_save_IFS
  6853. fi
  6854. fi
  6855. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6856. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6858. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6859. else
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6861. $as_echo "no" >&6; }
  6862. fi
  6863. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6864. MANIFEST_TOOL=":"
  6865. else
  6866. case $cross_compiling:$ac_tool_warned in
  6867. yes:)
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6870. ac_tool_warned=yes ;;
  6871. esac
  6872. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6873. fi
  6874. else
  6875. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6876. fi
  6877. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6879. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6880. if ${lt_cv_path_mainfest_tool+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. lt_cv_path_mainfest_tool=no
  6884. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6885. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6886. cat conftest.err >&5
  6887. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6888. lt_cv_path_mainfest_tool=yes
  6889. fi
  6890. rm -f conftest*
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6893. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6894. if test yes != "$lt_cv_path_mainfest_tool"; then
  6895. MANIFEST_TOOL=:
  6896. fi
  6897. case $host_os in
  6898. rhapsody* | darwin*)
  6899. if test -n "$ac_tool_prefix"; then
  6900. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6901. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6903. $as_echo_n "checking for $ac_word... " >&6; }
  6904. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. if test -n "$DSYMUTIL"; then
  6908. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6909. else
  6910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6911. for as_dir in $PATH
  6912. do
  6913. IFS=$as_save_IFS
  6914. test -z "$as_dir" && as_dir=.
  6915. for ac_exec_ext in '' $ac_executable_extensions; do
  6916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6917. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6919. break 2
  6920. fi
  6921. done
  6922. done
  6923. IFS=$as_save_IFS
  6924. fi
  6925. fi
  6926. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6927. if test -n "$DSYMUTIL"; then
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6929. $as_echo "$DSYMUTIL" >&6; }
  6930. else
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. $as_echo "no" >&6; }
  6933. fi
  6934. fi
  6935. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6936. ac_ct_DSYMUTIL=$DSYMUTIL
  6937. # Extract the first word of "dsymutil", so it can be a program name with args.
  6938. set dummy dsymutil; ac_word=$2
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6940. $as_echo_n "checking for $ac_word... " >&6; }
  6941. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. if test -n "$ac_ct_DSYMUTIL"; then
  6945. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6946. else
  6947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6948. for as_dir in $PATH
  6949. do
  6950. IFS=$as_save_IFS
  6951. test -z "$as_dir" && as_dir=.
  6952. for ac_exec_ext in '' $ac_executable_extensions; do
  6953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6954. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6956. break 2
  6957. fi
  6958. done
  6959. done
  6960. IFS=$as_save_IFS
  6961. fi
  6962. fi
  6963. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6964. if test -n "$ac_ct_DSYMUTIL"; then
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6966. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6967. else
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6969. $as_echo "no" >&6; }
  6970. fi
  6971. if test "x$ac_ct_DSYMUTIL" = x; then
  6972. DSYMUTIL=":"
  6973. else
  6974. case $cross_compiling:$ac_tool_warned in
  6975. yes:)
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6978. ac_tool_warned=yes ;;
  6979. esac
  6980. DSYMUTIL=$ac_ct_DSYMUTIL
  6981. fi
  6982. else
  6983. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6984. fi
  6985. if test -n "$ac_tool_prefix"; then
  6986. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6987. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6989. $as_echo_n "checking for $ac_word... " >&6; }
  6990. if ${ac_cv_prog_NMEDIT+:} false; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. if test -n "$NMEDIT"; then
  6994. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6995. else
  6996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6997. for as_dir in $PATH
  6998. do
  6999. IFS=$as_save_IFS
  7000. test -z "$as_dir" && as_dir=.
  7001. for ac_exec_ext in '' $ac_executable_extensions; do
  7002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7003. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7005. break 2
  7006. fi
  7007. done
  7008. done
  7009. IFS=$as_save_IFS
  7010. fi
  7011. fi
  7012. NMEDIT=$ac_cv_prog_NMEDIT
  7013. if test -n "$NMEDIT"; then
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7015. $as_echo "$NMEDIT" >&6; }
  7016. else
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7018. $as_echo "no" >&6; }
  7019. fi
  7020. fi
  7021. if test -z "$ac_cv_prog_NMEDIT"; then
  7022. ac_ct_NMEDIT=$NMEDIT
  7023. # Extract the first word of "nmedit", so it can be a program name with args.
  7024. set dummy nmedit; ac_word=$2
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7026. $as_echo_n "checking for $ac_word... " >&6; }
  7027. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7028. $as_echo_n "(cached) " >&6
  7029. else
  7030. if test -n "$ac_ct_NMEDIT"; then
  7031. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7032. else
  7033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7034. for as_dir in $PATH
  7035. do
  7036. IFS=$as_save_IFS
  7037. test -z "$as_dir" && as_dir=.
  7038. for ac_exec_ext in '' $ac_executable_extensions; do
  7039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7040. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7042. break 2
  7043. fi
  7044. done
  7045. done
  7046. IFS=$as_save_IFS
  7047. fi
  7048. fi
  7049. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7050. if test -n "$ac_ct_NMEDIT"; then
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7052. $as_echo "$ac_ct_NMEDIT" >&6; }
  7053. else
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7055. $as_echo "no" >&6; }
  7056. fi
  7057. if test "x$ac_ct_NMEDIT" = x; then
  7058. NMEDIT=":"
  7059. else
  7060. case $cross_compiling:$ac_tool_warned in
  7061. yes:)
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7063. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7064. ac_tool_warned=yes ;;
  7065. esac
  7066. NMEDIT=$ac_ct_NMEDIT
  7067. fi
  7068. else
  7069. NMEDIT="$ac_cv_prog_NMEDIT"
  7070. fi
  7071. if test -n "$ac_tool_prefix"; then
  7072. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7073. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7075. $as_echo_n "checking for $ac_word... " >&6; }
  7076. if ${ac_cv_prog_LIPO+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. if test -n "$LIPO"; then
  7080. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7081. else
  7082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7083. for as_dir in $PATH
  7084. do
  7085. IFS=$as_save_IFS
  7086. test -z "$as_dir" && as_dir=.
  7087. for ac_exec_ext in '' $ac_executable_extensions; do
  7088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7089. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7091. break 2
  7092. fi
  7093. done
  7094. done
  7095. IFS=$as_save_IFS
  7096. fi
  7097. fi
  7098. LIPO=$ac_cv_prog_LIPO
  7099. if test -n "$LIPO"; then
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7101. $as_echo "$LIPO" >&6; }
  7102. else
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7104. $as_echo "no" >&6; }
  7105. fi
  7106. fi
  7107. if test -z "$ac_cv_prog_LIPO"; then
  7108. ac_ct_LIPO=$LIPO
  7109. # Extract the first word of "lipo", so it can be a program name with args.
  7110. set dummy lipo; ac_word=$2
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7112. $as_echo_n "checking for $ac_word... " >&6; }
  7113. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7114. $as_echo_n "(cached) " >&6
  7115. else
  7116. if test -n "$ac_ct_LIPO"; then
  7117. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7118. else
  7119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7120. for as_dir in $PATH
  7121. do
  7122. IFS=$as_save_IFS
  7123. test -z "$as_dir" && as_dir=.
  7124. for ac_exec_ext in '' $ac_executable_extensions; do
  7125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7126. ac_cv_prog_ac_ct_LIPO="lipo"
  7127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7128. break 2
  7129. fi
  7130. done
  7131. done
  7132. IFS=$as_save_IFS
  7133. fi
  7134. fi
  7135. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7136. if test -n "$ac_ct_LIPO"; then
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7138. $as_echo "$ac_ct_LIPO" >&6; }
  7139. else
  7140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7141. $as_echo "no" >&6; }
  7142. fi
  7143. if test "x$ac_ct_LIPO" = x; then
  7144. LIPO=":"
  7145. else
  7146. case $cross_compiling:$ac_tool_warned in
  7147. yes:)
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7150. ac_tool_warned=yes ;;
  7151. esac
  7152. LIPO=$ac_ct_LIPO
  7153. fi
  7154. else
  7155. LIPO="$ac_cv_prog_LIPO"
  7156. fi
  7157. if test -n "$ac_tool_prefix"; then
  7158. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7159. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7161. $as_echo_n "checking for $ac_word... " >&6; }
  7162. if ${ac_cv_prog_OTOOL+:} false; then :
  7163. $as_echo_n "(cached) " >&6
  7164. else
  7165. if test -n "$OTOOL"; then
  7166. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7167. else
  7168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7169. for as_dir in $PATH
  7170. do
  7171. IFS=$as_save_IFS
  7172. test -z "$as_dir" && as_dir=.
  7173. for ac_exec_ext in '' $ac_executable_extensions; do
  7174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7175. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7177. break 2
  7178. fi
  7179. done
  7180. done
  7181. IFS=$as_save_IFS
  7182. fi
  7183. fi
  7184. OTOOL=$ac_cv_prog_OTOOL
  7185. if test -n "$OTOOL"; then
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7187. $as_echo "$OTOOL" >&6; }
  7188. else
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7190. $as_echo "no" >&6; }
  7191. fi
  7192. fi
  7193. if test -z "$ac_cv_prog_OTOOL"; then
  7194. ac_ct_OTOOL=$OTOOL
  7195. # Extract the first word of "otool", so it can be a program name with args.
  7196. set dummy otool; ac_word=$2
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7198. $as_echo_n "checking for $ac_word... " >&6; }
  7199. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7200. $as_echo_n "(cached) " >&6
  7201. else
  7202. if test -n "$ac_ct_OTOOL"; then
  7203. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7204. else
  7205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7206. for as_dir in $PATH
  7207. do
  7208. IFS=$as_save_IFS
  7209. test -z "$as_dir" && as_dir=.
  7210. for ac_exec_ext in '' $ac_executable_extensions; do
  7211. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7212. ac_cv_prog_ac_ct_OTOOL="otool"
  7213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7214. break 2
  7215. fi
  7216. done
  7217. done
  7218. IFS=$as_save_IFS
  7219. fi
  7220. fi
  7221. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7222. if test -n "$ac_ct_OTOOL"; then
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7224. $as_echo "$ac_ct_OTOOL" >&6; }
  7225. else
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7227. $as_echo "no" >&6; }
  7228. fi
  7229. if test "x$ac_ct_OTOOL" = x; then
  7230. OTOOL=":"
  7231. else
  7232. case $cross_compiling:$ac_tool_warned in
  7233. yes:)
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7235. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7236. ac_tool_warned=yes ;;
  7237. esac
  7238. OTOOL=$ac_ct_OTOOL
  7239. fi
  7240. else
  7241. OTOOL="$ac_cv_prog_OTOOL"
  7242. fi
  7243. if test -n "$ac_tool_prefix"; then
  7244. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7245. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7247. $as_echo_n "checking for $ac_word... " >&6; }
  7248. if ${ac_cv_prog_OTOOL64+:} false; then :
  7249. $as_echo_n "(cached) " >&6
  7250. else
  7251. if test -n "$OTOOL64"; then
  7252. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7253. else
  7254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7255. for as_dir in $PATH
  7256. do
  7257. IFS=$as_save_IFS
  7258. test -z "$as_dir" && as_dir=.
  7259. for ac_exec_ext in '' $ac_executable_extensions; do
  7260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7261. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7263. break 2
  7264. fi
  7265. done
  7266. done
  7267. IFS=$as_save_IFS
  7268. fi
  7269. fi
  7270. OTOOL64=$ac_cv_prog_OTOOL64
  7271. if test -n "$OTOOL64"; then
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7273. $as_echo "$OTOOL64" >&6; }
  7274. else
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7276. $as_echo "no" >&6; }
  7277. fi
  7278. fi
  7279. if test -z "$ac_cv_prog_OTOOL64"; then
  7280. ac_ct_OTOOL64=$OTOOL64
  7281. # Extract the first word of "otool64", so it can be a program name with args.
  7282. set dummy otool64; ac_word=$2
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7284. $as_echo_n "checking for $ac_word... " >&6; }
  7285. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. if test -n "$ac_ct_OTOOL64"; then
  7289. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7290. else
  7291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7292. for as_dir in $PATH
  7293. do
  7294. IFS=$as_save_IFS
  7295. test -z "$as_dir" && as_dir=.
  7296. for ac_exec_ext in '' $ac_executable_extensions; do
  7297. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7298. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7300. break 2
  7301. fi
  7302. done
  7303. done
  7304. IFS=$as_save_IFS
  7305. fi
  7306. fi
  7307. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7308. if test -n "$ac_ct_OTOOL64"; then
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7310. $as_echo "$ac_ct_OTOOL64" >&6; }
  7311. else
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7313. $as_echo "no" >&6; }
  7314. fi
  7315. if test "x$ac_ct_OTOOL64" = x; then
  7316. OTOOL64=":"
  7317. else
  7318. case $cross_compiling:$ac_tool_warned in
  7319. yes:)
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7322. ac_tool_warned=yes ;;
  7323. esac
  7324. OTOOL64=$ac_ct_OTOOL64
  7325. fi
  7326. else
  7327. OTOOL64="$ac_cv_prog_OTOOL64"
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7330. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7331. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. lt_cv_apple_cc_single_mod=no
  7335. if test -z "$LT_MULTI_MODULE"; then
  7336. # By default we will add the -single_module flag. You can override
  7337. # by either setting the environment variable LT_MULTI_MODULE
  7338. # non-empty at configure time, or by adding -multi_module to the
  7339. # link flags.
  7340. rm -rf libconftest.dylib*
  7341. echo "int foo(void){return 1;}" > conftest.c
  7342. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7343. -dynamiclib -Wl,-single_module conftest.c" >&5
  7344. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7345. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7346. _lt_result=$?
  7347. # If there is a non-empty error log, and "single_module"
  7348. # appears in it, assume the flag caused a linker warning
  7349. if test -s conftest.err && $GREP single_module conftest.err; then
  7350. cat conftest.err >&5
  7351. # Otherwise, if the output was created with a 0 exit code from
  7352. # the compiler, it worked.
  7353. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7354. lt_cv_apple_cc_single_mod=yes
  7355. else
  7356. cat conftest.err >&5
  7357. fi
  7358. rm -rf libconftest.dylib*
  7359. rm -f conftest.*
  7360. fi
  7361. fi
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7363. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7365. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7366. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7367. $as_echo_n "(cached) " >&6
  7368. else
  7369. lt_cv_ld_exported_symbols_list=no
  7370. save_LDFLAGS=$LDFLAGS
  7371. echo "_main" > conftest.sym
  7372. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7374. /* end confdefs.h. */
  7375. int
  7376. main ()
  7377. {
  7378. ;
  7379. return 0;
  7380. }
  7381. _ACEOF
  7382. if ac_fn_c_try_link "$LINENO"; then :
  7383. lt_cv_ld_exported_symbols_list=yes
  7384. else
  7385. lt_cv_ld_exported_symbols_list=no
  7386. fi
  7387. rm -f core conftest.err conftest.$ac_objext \
  7388. conftest$ac_exeext conftest.$ac_ext
  7389. LDFLAGS=$save_LDFLAGS
  7390. fi
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7392. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7394. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7395. if ${lt_cv_ld_force_load+:} false; then :
  7396. $as_echo_n "(cached) " >&6
  7397. else
  7398. lt_cv_ld_force_load=no
  7399. cat > conftest.c << _LT_EOF
  7400. int forced_loaded() { return 2;}
  7401. _LT_EOF
  7402. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7403. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7404. echo "$AR cr libconftest.a conftest.o" >&5
  7405. $AR cr libconftest.a conftest.o 2>&5
  7406. echo "$RANLIB libconftest.a" >&5
  7407. $RANLIB libconftest.a 2>&5
  7408. cat > conftest.c << _LT_EOF
  7409. int main() { return 0;}
  7410. _LT_EOF
  7411. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7412. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7413. _lt_result=$?
  7414. if test -s conftest.err && $GREP force_load conftest.err; then
  7415. cat conftest.err >&5
  7416. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7417. lt_cv_ld_force_load=yes
  7418. else
  7419. cat conftest.err >&5
  7420. fi
  7421. rm -f conftest.err libconftest.a conftest conftest.c
  7422. rm -rf conftest.dSYM
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7425. $as_echo "$lt_cv_ld_force_load" >&6; }
  7426. case $host_os in
  7427. rhapsody* | darwin1.[012])
  7428. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7429. darwin1.*)
  7430. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7431. darwin*) # darwin 5.x on
  7432. # if running on 10.5 or later, the deployment target defaults
  7433. # to the OS version, if on x86, and 10.4, the deployment
  7434. # target defaults to 10.4. Don't you love it?
  7435. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7436. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  7437. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7438. 10.[012][,.]*)
  7439. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7440. 10.*|11.*)
  7441. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7442. esac
  7443. ;;
  7444. esac
  7445. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7446. _lt_dar_single_mod='$single_module'
  7447. fi
  7448. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7449. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7450. else
  7451. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7452. fi
  7453. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7454. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7455. else
  7456. _lt_dsymutil=
  7457. fi
  7458. ;;
  7459. esac
  7460. # func_munge_path_list VARIABLE PATH
  7461. # -----------------------------------
  7462. # VARIABLE is name of variable containing _space_ separated list of
  7463. # directories to be munged by the contents of PATH, which is string
  7464. # having a format:
  7465. # "DIR[:DIR]:"
  7466. # string "DIR[ DIR]" will be prepended to VARIABLE
  7467. # ":DIR[:DIR]"
  7468. # string "DIR[ DIR]" will be appended to VARIABLE
  7469. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7470. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7471. # "DIRA[ DIRA]" will be appended to VARIABLE
  7472. # "DIR[:DIR]"
  7473. # VARIABLE will be replaced by "DIR[ DIR]"
  7474. func_munge_path_list ()
  7475. {
  7476. case x$2 in
  7477. x)
  7478. ;;
  7479. *:)
  7480. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7481. ;;
  7482. x:*)
  7483. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7484. ;;
  7485. *::*)
  7486. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7487. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7488. ;;
  7489. *)
  7490. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7491. ;;
  7492. esac
  7493. }
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7495. $as_echo_n "checking for ANSI C header files... " >&6; }
  7496. if ${ac_cv_header_stdc+:} false; then :
  7497. $as_echo_n "(cached) " >&6
  7498. else
  7499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7500. /* end confdefs.h. */
  7501. #include <stdlib.h>
  7502. #include <stdarg.h>
  7503. #include <string.h>
  7504. #include <float.h>
  7505. int
  7506. main ()
  7507. {
  7508. ;
  7509. return 0;
  7510. }
  7511. _ACEOF
  7512. if ac_fn_c_try_compile "$LINENO"; then :
  7513. ac_cv_header_stdc=yes
  7514. else
  7515. ac_cv_header_stdc=no
  7516. fi
  7517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7518. if test $ac_cv_header_stdc = yes; then
  7519. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7521. /* end confdefs.h. */
  7522. #include <string.h>
  7523. _ACEOF
  7524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7525. $EGREP "memchr" >/dev/null 2>&1; then :
  7526. else
  7527. ac_cv_header_stdc=no
  7528. fi
  7529. rm -f conftest*
  7530. fi
  7531. if test $ac_cv_header_stdc = yes; then
  7532. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7534. /* end confdefs.h. */
  7535. #include <stdlib.h>
  7536. _ACEOF
  7537. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7538. $EGREP "free" >/dev/null 2>&1; then :
  7539. else
  7540. ac_cv_header_stdc=no
  7541. fi
  7542. rm -f conftest*
  7543. fi
  7544. if test $ac_cv_header_stdc = yes; then
  7545. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7546. if test "$cross_compiling" = yes; then :
  7547. :
  7548. else
  7549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7550. /* end confdefs.h. */
  7551. #include <ctype.h>
  7552. #include <stdlib.h>
  7553. #if ((' ' & 0x0FF) == 0x020)
  7554. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7555. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7556. #else
  7557. # define ISLOWER(c) \
  7558. (('a' <= (c) && (c) <= 'i') \
  7559. || ('j' <= (c) && (c) <= 'r') \
  7560. || ('s' <= (c) && (c) <= 'z'))
  7561. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7562. #endif
  7563. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7564. int
  7565. main ()
  7566. {
  7567. int i;
  7568. for (i = 0; i < 256; i++)
  7569. if (XOR (islower (i), ISLOWER (i))
  7570. || toupper (i) != TOUPPER (i))
  7571. return 2;
  7572. return 0;
  7573. }
  7574. _ACEOF
  7575. if ac_fn_c_try_run "$LINENO"; then :
  7576. else
  7577. ac_cv_header_stdc=no
  7578. fi
  7579. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7580. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7581. fi
  7582. fi
  7583. fi
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7585. $as_echo "$ac_cv_header_stdc" >&6; }
  7586. if test $ac_cv_header_stdc = yes; then
  7587. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7588. fi
  7589. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7590. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7591. inttypes.h stdint.h unistd.h
  7592. do :
  7593. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7594. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7595. "
  7596. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7597. cat >>confdefs.h <<_ACEOF
  7598. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7599. _ACEOF
  7600. fi
  7601. done
  7602. for ac_header in dlfcn.h
  7603. do :
  7604. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7605. "
  7606. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7607. cat >>confdefs.h <<_ACEOF
  7608. #define HAVE_DLFCN_H 1
  7609. _ACEOF
  7610. fi
  7611. done
  7612. func_stripname_cnf ()
  7613. {
  7614. case $2 in
  7615. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  7616. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  7617. esac
  7618. } # func_stripname_cnf
  7619. # Set options
  7620. enable_dlopen=no
  7621. enable_win32_dll=no
  7622. # Check whether --enable-shared was given.
  7623. if test "${enable_shared+set}" = set; then :
  7624. enableval=$enable_shared; p=${PACKAGE-default}
  7625. case $enableval in
  7626. yes) enable_shared=yes ;;
  7627. no) enable_shared=no ;;
  7628. *)
  7629. enable_shared=no
  7630. # Look at the argument we got. We use all the common list separators.
  7631. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7632. for pkg in $enableval; do
  7633. IFS=$lt_save_ifs
  7634. if test "X$pkg" = "X$p"; then
  7635. enable_shared=yes
  7636. fi
  7637. done
  7638. IFS=$lt_save_ifs
  7639. ;;
  7640. esac
  7641. else
  7642. enable_shared=yes
  7643. fi
  7644. # Check whether --enable-static was given.
  7645. if test "${enable_static+set}" = set; then :
  7646. enableval=$enable_static; p=${PACKAGE-default}
  7647. case $enableval in
  7648. yes) enable_static=yes ;;
  7649. no) enable_static=no ;;
  7650. *)
  7651. enable_static=no
  7652. # Look at the argument we got. We use all the common list separators.
  7653. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7654. for pkg in $enableval; do
  7655. IFS=$lt_save_ifs
  7656. if test "X$pkg" = "X$p"; then
  7657. enable_static=yes
  7658. fi
  7659. done
  7660. IFS=$lt_save_ifs
  7661. ;;
  7662. esac
  7663. else
  7664. enable_static=yes
  7665. fi
  7666. # Check whether --with-pic was given.
  7667. if test "${with_pic+set}" = set; then :
  7668. withval=$with_pic; lt_p=${PACKAGE-default}
  7669. case $withval in
  7670. yes|no) pic_mode=$withval ;;
  7671. *)
  7672. pic_mode=default
  7673. # Look at the argument we got. We use all the common list separators.
  7674. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7675. for lt_pkg in $withval; do
  7676. IFS=$lt_save_ifs
  7677. if test "X$lt_pkg" = "X$lt_p"; then
  7678. pic_mode=yes
  7679. fi
  7680. done
  7681. IFS=$lt_save_ifs
  7682. ;;
  7683. esac
  7684. else
  7685. pic_mode=default
  7686. fi
  7687. # Check whether --enable-fast-install was given.
  7688. if test "${enable_fast_install+set}" = set; then :
  7689. enableval=$enable_fast_install; p=${PACKAGE-default}
  7690. case $enableval in
  7691. yes) enable_fast_install=yes ;;
  7692. no) enable_fast_install=no ;;
  7693. *)
  7694. enable_fast_install=no
  7695. # Look at the argument we got. We use all the common list separators.
  7696. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7697. for pkg in $enableval; do
  7698. IFS=$lt_save_ifs
  7699. if test "X$pkg" = "X$p"; then
  7700. enable_fast_install=yes
  7701. fi
  7702. done
  7703. IFS=$lt_save_ifs
  7704. ;;
  7705. esac
  7706. else
  7707. enable_fast_install=yes
  7708. fi
  7709. shared_archive_member_spec=
  7710. case $host,$enable_shared in
  7711. power*-*-aix[5-9]*,yes)
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7713. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7714. # Check whether --with-aix-soname was given.
  7715. if test "${with_aix_soname+set}" = set; then :
  7716. withval=$with_aix_soname; case $withval in
  7717. aix|svr4|both)
  7718. ;;
  7719. *)
  7720. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7721. ;;
  7722. esac
  7723. lt_cv_with_aix_soname=$with_aix_soname
  7724. else
  7725. if ${lt_cv_with_aix_soname+:} false; then :
  7726. $as_echo_n "(cached) " >&6
  7727. else
  7728. lt_cv_with_aix_soname=aix
  7729. fi
  7730. with_aix_soname=$lt_cv_with_aix_soname
  7731. fi
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7733. $as_echo "$with_aix_soname" >&6; }
  7734. if test aix != "$with_aix_soname"; then
  7735. # For the AIX way of multilib, we name the shared archive member
  7736. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7737. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7738. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7739. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7740. if test 64 = "${OBJECT_MODE-32}"; then
  7741. shared_archive_member_spec=shr_64
  7742. else
  7743. shared_archive_member_spec=shr
  7744. fi
  7745. fi
  7746. ;;
  7747. *)
  7748. with_aix_soname=aix
  7749. ;;
  7750. esac
  7751. # This can be used to rebuild libtool when needed
  7752. LIBTOOL_DEPS=$ltmain
  7753. # Always use our own libtool.
  7754. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7755. test -z "$LN_S" && LN_S="ln -s"
  7756. if test -n "${ZSH_VERSION+set}"; then
  7757. setopt NO_GLOB_SUBST
  7758. fi
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7760. $as_echo_n "checking for objdir... " >&6; }
  7761. if ${lt_cv_objdir+:} false; then :
  7762. $as_echo_n "(cached) " >&6
  7763. else
  7764. rm -f .libs 2>/dev/null
  7765. mkdir .libs 2>/dev/null
  7766. if test -d .libs; then
  7767. lt_cv_objdir=.libs
  7768. else
  7769. # MS-DOS does not allow filenames that begin with a dot.
  7770. lt_cv_objdir=_libs
  7771. fi
  7772. rmdir .libs 2>/dev/null
  7773. fi
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7775. $as_echo "$lt_cv_objdir" >&6; }
  7776. objdir=$lt_cv_objdir
  7777. cat >>confdefs.h <<_ACEOF
  7778. #define LT_OBJDIR "$lt_cv_objdir/"
  7779. _ACEOF
  7780. case $host_os in
  7781. aix3*)
  7782. # AIX sometimes has problems with the GCC collect2 program. For some
  7783. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7784. # vanish in a puff of smoke.
  7785. if test set != "${COLLECT_NAMES+set}"; then
  7786. COLLECT_NAMES=
  7787. export COLLECT_NAMES
  7788. fi
  7789. ;;
  7790. esac
  7791. # Global variables:
  7792. ofile=libtool
  7793. can_build_shared=yes
  7794. # All known linkers require a '.a' archive for static linking (except MSVC,
  7795. # which needs '.lib').
  7796. libext=a
  7797. with_gnu_ld=$lt_cv_prog_gnu_ld
  7798. old_CC=$CC
  7799. old_CFLAGS=$CFLAGS
  7800. # Set sane defaults for various variables
  7801. test -z "$CC" && CC=cc
  7802. test -z "$LTCC" && LTCC=$CC
  7803. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7804. test -z "$LD" && LD=ld
  7805. test -z "$ac_objext" && ac_objext=o
  7806. func_cc_basename $compiler
  7807. cc_basename=$func_cc_basename_result
  7808. # Only perform the check for file, if the check method requires it
  7809. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7810. case $deplibs_check_method in
  7811. file_magic*)
  7812. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7814. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7815. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. case $MAGIC_CMD in
  7819. [\\/*] | ?:[\\/]*)
  7820. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7821. ;;
  7822. *)
  7823. lt_save_MAGIC_CMD=$MAGIC_CMD
  7824. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7825. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7826. for ac_dir in $ac_dummy; do
  7827. IFS=$lt_save_ifs
  7828. test -z "$ac_dir" && ac_dir=.
  7829. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7830. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7831. if test -n "$file_magic_test_file"; then
  7832. case $deplibs_check_method in
  7833. "file_magic "*)
  7834. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7835. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7836. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7837. $EGREP "$file_magic_regex" > /dev/null; then
  7838. :
  7839. else
  7840. cat <<_LT_EOF 1>&2
  7841. *** Warning: the command libtool uses to detect shared libraries,
  7842. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7843. *** The result is that libtool may fail to recognize shared libraries
  7844. *** as such. This will affect the creation of libtool libraries that
  7845. *** depend on shared libraries, but programs linked with such libtool
  7846. *** libraries will work regardless of this problem. Nevertheless, you
  7847. *** may want to report the problem to your system manager and/or to
  7848. *** [email protected]
  7849. _LT_EOF
  7850. fi ;;
  7851. esac
  7852. fi
  7853. break
  7854. fi
  7855. done
  7856. IFS=$lt_save_ifs
  7857. MAGIC_CMD=$lt_save_MAGIC_CMD
  7858. ;;
  7859. esac
  7860. fi
  7861. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7862. if test -n "$MAGIC_CMD"; then
  7863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7864. $as_echo "$MAGIC_CMD" >&6; }
  7865. else
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7867. $as_echo "no" >&6; }
  7868. fi
  7869. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7870. if test -n "$ac_tool_prefix"; then
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7872. $as_echo_n "checking for file... " >&6; }
  7873. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7874. $as_echo_n "(cached) " >&6
  7875. else
  7876. case $MAGIC_CMD in
  7877. [\\/*] | ?:[\\/]*)
  7878. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7879. ;;
  7880. *)
  7881. lt_save_MAGIC_CMD=$MAGIC_CMD
  7882. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7883. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7884. for ac_dir in $ac_dummy; do
  7885. IFS=$lt_save_ifs
  7886. test -z "$ac_dir" && ac_dir=.
  7887. if test -f "$ac_dir/file"; then
  7888. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7889. if test -n "$file_magic_test_file"; then
  7890. case $deplibs_check_method in
  7891. "file_magic "*)
  7892. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7893. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7894. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7895. $EGREP "$file_magic_regex" > /dev/null; then
  7896. :
  7897. else
  7898. cat <<_LT_EOF 1>&2
  7899. *** Warning: the command libtool uses to detect shared libraries,
  7900. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7901. *** The result is that libtool may fail to recognize shared libraries
  7902. *** as such. This will affect the creation of libtool libraries that
  7903. *** depend on shared libraries, but programs linked with such libtool
  7904. *** libraries will work regardless of this problem. Nevertheless, you
  7905. *** may want to report the problem to your system manager and/or to
  7906. *** [email protected]
  7907. _LT_EOF
  7908. fi ;;
  7909. esac
  7910. fi
  7911. break
  7912. fi
  7913. done
  7914. IFS=$lt_save_ifs
  7915. MAGIC_CMD=$lt_save_MAGIC_CMD
  7916. ;;
  7917. esac
  7918. fi
  7919. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7920. if test -n "$MAGIC_CMD"; then
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7922. $as_echo "$MAGIC_CMD" >&6; }
  7923. else
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7925. $as_echo "no" >&6; }
  7926. fi
  7927. else
  7928. MAGIC_CMD=:
  7929. fi
  7930. fi
  7931. fi
  7932. ;;
  7933. esac
  7934. # Use C for the default configuration in the libtool script
  7935. lt_save_CC=$CC
  7936. ac_ext=c
  7937. ac_cpp='$CPP $CPPFLAGS'
  7938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7941. # Source file extension for C test sources.
  7942. ac_ext=c
  7943. # Object file extension for compiled C test sources.
  7944. objext=o
  7945. objext=$objext
  7946. # Code to be used in simple compile tests
  7947. lt_simple_compile_test_code="int some_variable = 0;"
  7948. # Code to be used in simple link tests
  7949. lt_simple_link_test_code='int main(){return(0);}'
  7950. # If no C compiler was specified, use CC.
  7951. LTCC=${LTCC-"$CC"}
  7952. # If no C compiler flags were specified, use CFLAGS.
  7953. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7954. # Allow CC to be a program name with arguments.
  7955. compiler=$CC
  7956. # Save the default compiler, since it gets overwritten when the other
  7957. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7958. compiler_DEFAULT=$CC
  7959. # save warnings/boilerplate of simple test code
  7960. ac_outfile=conftest.$ac_objext
  7961. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7962. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7963. _lt_compiler_boilerplate=`cat conftest.err`
  7964. $RM conftest*
  7965. ac_outfile=conftest.$ac_objext
  7966. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7967. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7968. _lt_linker_boilerplate=`cat conftest.err`
  7969. $RM -r conftest*
  7970. ## CAVEAT EMPTOR:
  7971. ## There is no encapsulation within the following macros, do not change
  7972. ## the running order or otherwise move them around unless you know exactly
  7973. ## what you are doing...
  7974. if test -n "$compiler"; then
  7975. lt_prog_compiler_no_builtin_flag=
  7976. if test yes = "$GCC"; then
  7977. case $cc_basename in
  7978. nvcc*)
  7979. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7980. *)
  7981. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7982. esac
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7984. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7985. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7986. $as_echo_n "(cached) " >&6
  7987. else
  7988. lt_cv_prog_compiler_rtti_exceptions=no
  7989. ac_outfile=conftest.$ac_objext
  7990. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7991. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7992. # Insert the option either (1) after the last *FLAGS variable, or
  7993. # (2) before a word containing "conftest.", or (3) at the end.
  7994. # Note that $ac_compile itself does not contain backslashes and begins
  7995. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7996. # The option is referenced via a variable to avoid confusing sed.
  7997. lt_compile=`echo "$ac_compile" | $SED \
  7998. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7999. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8000. -e 's:$: $lt_compiler_flag:'`
  8001. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8002. (eval "$lt_compile" 2>conftest.err)
  8003. ac_status=$?
  8004. cat conftest.err >&5
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. if (exit $ac_status) && test -s "$ac_outfile"; then
  8007. # The compiler can only warn and ignore the option if not recognized
  8008. # So say no if there are warnings other than the usual output.
  8009. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8010. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8011. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8012. lt_cv_prog_compiler_rtti_exceptions=yes
  8013. fi
  8014. fi
  8015. $RM conftest*
  8016. fi
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8018. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8019. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8020. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8021. else
  8022. :
  8023. fi
  8024. fi
  8025. lt_prog_compiler_wl=
  8026. lt_prog_compiler_pic=
  8027. lt_prog_compiler_static=
  8028. if test yes = "$GCC"; then
  8029. lt_prog_compiler_wl='-Wl,'
  8030. lt_prog_compiler_static='-static'
  8031. case $host_os in
  8032. aix*)
  8033. # All AIX code is PIC.
  8034. if test ia64 = "$host_cpu"; then
  8035. # AIX 5 now supports IA64 processor
  8036. lt_prog_compiler_static='-Bstatic'
  8037. fi
  8038. lt_prog_compiler_pic='-fPIC'
  8039. ;;
  8040. amigaos*)
  8041. case $host_cpu in
  8042. powerpc)
  8043. # see comment about AmigaOS4 .so support
  8044. lt_prog_compiler_pic='-fPIC'
  8045. ;;
  8046. m68k)
  8047. # FIXME: we need at least 68020 code to build shared libraries, but
  8048. # adding the '-m68020' flag to GCC prevents building anything better,
  8049. # like '-m68040'.
  8050. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8051. ;;
  8052. esac
  8053. ;;
  8054. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8055. # PIC is the default for these OSes.
  8056. ;;
  8057. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8058. # This hack is so that the source file can tell whether it is being
  8059. # built for inclusion in a dll (and should export symbols for example).
  8060. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8061. # (--disable-auto-import) libraries
  8062. lt_prog_compiler_pic='-DDLL_EXPORT'
  8063. case $host_os in
  8064. os2*)
  8065. lt_prog_compiler_static='$wl-static'
  8066. ;;
  8067. esac
  8068. ;;
  8069. darwin* | rhapsody*)
  8070. # PIC is the default on this platform
  8071. # Common symbols not allowed in MH_DYLIB files
  8072. lt_prog_compiler_pic='-fno-common'
  8073. ;;
  8074. haiku*)
  8075. # PIC is the default for Haiku.
  8076. # The "-static" flag exists, but is broken.
  8077. lt_prog_compiler_static=
  8078. ;;
  8079. hpux*)
  8080. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8081. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8082. # sets the default TLS model and affects inlining.
  8083. case $host_cpu in
  8084. hppa*64*)
  8085. # +Z the default
  8086. ;;
  8087. *)
  8088. lt_prog_compiler_pic='-fPIC'
  8089. ;;
  8090. esac
  8091. ;;
  8092. interix[3-9]*)
  8093. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8094. # Instead, we relocate shared libraries at runtime.
  8095. ;;
  8096. msdosdjgpp*)
  8097. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8098. # on systems that don't support them.
  8099. lt_prog_compiler_can_build_shared=no
  8100. enable_shared=no
  8101. ;;
  8102. *nto* | *qnx*)
  8103. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8104. # it will coredump.
  8105. lt_prog_compiler_pic='-fPIC -shared'
  8106. ;;
  8107. sysv4*MP*)
  8108. if test -d /usr/nec; then
  8109. lt_prog_compiler_pic=-Kconform_pic
  8110. fi
  8111. ;;
  8112. *)
  8113. lt_prog_compiler_pic='-fPIC'
  8114. ;;
  8115. esac
  8116. case $cc_basename in
  8117. nvcc*) # Cuda Compiler Driver 2.2
  8118. lt_prog_compiler_wl='-Xlinker '
  8119. if test -n "$lt_prog_compiler_pic"; then
  8120. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8121. fi
  8122. ;;
  8123. esac
  8124. else
  8125. # PORTME Check for flag to pass linker flags through the system compiler.
  8126. case $host_os in
  8127. aix*)
  8128. lt_prog_compiler_wl='-Wl,'
  8129. if test ia64 = "$host_cpu"; then
  8130. # AIX 5 now supports IA64 processor
  8131. lt_prog_compiler_static='-Bstatic'
  8132. else
  8133. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8134. fi
  8135. ;;
  8136. darwin* | rhapsody*)
  8137. # PIC is the default on this platform
  8138. # Common symbols not allowed in MH_DYLIB files
  8139. lt_prog_compiler_pic='-fno-common'
  8140. case $cc_basename in
  8141. nagfor*)
  8142. # NAG Fortran compiler
  8143. lt_prog_compiler_wl='-Wl,-Wl,,'
  8144. lt_prog_compiler_pic='-PIC'
  8145. lt_prog_compiler_static='-Bstatic'
  8146. ;;
  8147. esac
  8148. ;;
  8149. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8150. # This hack is so that the source file can tell whether it is being
  8151. # built for inclusion in a dll (and should export symbols for example).
  8152. lt_prog_compiler_pic='-DDLL_EXPORT'
  8153. case $host_os in
  8154. os2*)
  8155. lt_prog_compiler_static='$wl-static'
  8156. ;;
  8157. esac
  8158. ;;
  8159. hpux9* | hpux10* | hpux11*)
  8160. lt_prog_compiler_wl='-Wl,'
  8161. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8162. # not for PA HP-UX.
  8163. case $host_cpu in
  8164. hppa*64*|ia64*)
  8165. # +Z the default
  8166. ;;
  8167. *)
  8168. lt_prog_compiler_pic='+Z'
  8169. ;;
  8170. esac
  8171. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8172. lt_prog_compiler_static='$wl-a ${wl}archive'
  8173. ;;
  8174. irix5* | irix6* | nonstopux*)
  8175. lt_prog_compiler_wl='-Wl,'
  8176. # PIC (with -KPIC) is the default.
  8177. lt_prog_compiler_static='-non_shared'
  8178. ;;
  8179. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8180. case $cc_basename in
  8181. # old Intel for x86_64, which still supported -KPIC.
  8182. ecc*)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. lt_prog_compiler_pic='-KPIC'
  8185. lt_prog_compiler_static='-static'
  8186. ;;
  8187. # flang / f18. f95 an alias for gfortran or flang on Debian
  8188. flang* | f18* | f95*)
  8189. lt_prog_compiler_wl='-Wl,'
  8190. lt_prog_compiler_pic='-fPIC'
  8191. lt_prog_compiler_static='-static'
  8192. ;;
  8193. # icc used to be incompatible with GCC.
  8194. # ICC 10 doesn't accept -KPIC any more.
  8195. icc* | ifort*)
  8196. lt_prog_compiler_wl='-Wl,'
  8197. lt_prog_compiler_pic='-fPIC'
  8198. lt_prog_compiler_static='-static'
  8199. ;;
  8200. # Lahey Fortran 8.1.
  8201. lf95*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_pic='--shared'
  8204. lt_prog_compiler_static='--static'
  8205. ;;
  8206. nagfor*)
  8207. # NAG Fortran compiler
  8208. lt_prog_compiler_wl='-Wl,-Wl,,'
  8209. lt_prog_compiler_pic='-PIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. ;;
  8212. tcc*)
  8213. # Fabrice Bellard et al's Tiny C Compiler
  8214. lt_prog_compiler_wl='-Wl,'
  8215. lt_prog_compiler_pic='-fPIC'
  8216. lt_prog_compiler_static='-static'
  8217. ;;
  8218. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8219. # Portland Group compilers (*not* the Pentium gcc compiler,
  8220. # which looks to be a dead project)
  8221. lt_prog_compiler_wl='-Wl,'
  8222. lt_prog_compiler_pic='-fpic'
  8223. lt_prog_compiler_static='-Bstatic'
  8224. ;;
  8225. ccc*)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. # All Alpha code is PIC.
  8228. lt_prog_compiler_static='-non_shared'
  8229. ;;
  8230. xl* | bgxl* | bgf* | mpixl*)
  8231. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8232. lt_prog_compiler_wl='-Wl,'
  8233. lt_prog_compiler_pic='-qpic'
  8234. lt_prog_compiler_static='-qstaticlink'
  8235. ;;
  8236. *)
  8237. case `$CC -V 2>&1 | sed 5q` in
  8238. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8239. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8240. lt_prog_compiler_pic='-KPIC'
  8241. lt_prog_compiler_static='-Bstatic'
  8242. lt_prog_compiler_wl=''
  8243. ;;
  8244. *Sun\ F* | *Sun*Fortran*)
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. lt_prog_compiler_wl='-Qoption ld '
  8248. ;;
  8249. *Sun\ C*)
  8250. # Sun C 5.9
  8251. lt_prog_compiler_pic='-KPIC'
  8252. lt_prog_compiler_static='-Bstatic'
  8253. lt_prog_compiler_wl='-Wl,'
  8254. ;;
  8255. *Intel*\ [CF]*Compiler*)
  8256. lt_prog_compiler_wl='-Wl,'
  8257. lt_prog_compiler_pic='-fPIC'
  8258. lt_prog_compiler_static='-static'
  8259. ;;
  8260. *Portland\ Group*)
  8261. lt_prog_compiler_wl='-Wl,'
  8262. lt_prog_compiler_pic='-fpic'
  8263. lt_prog_compiler_static='-Bstatic'
  8264. ;;
  8265. esac
  8266. ;;
  8267. esac
  8268. ;;
  8269. newsos6)
  8270. lt_prog_compiler_pic='-KPIC'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. ;;
  8273. *nto* | *qnx*)
  8274. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8275. # it will coredump.
  8276. lt_prog_compiler_pic='-fPIC -shared'
  8277. ;;
  8278. osf3* | osf4* | osf5*)
  8279. lt_prog_compiler_wl='-Wl,'
  8280. # All OSF/1 code is PIC.
  8281. lt_prog_compiler_static='-non_shared'
  8282. ;;
  8283. rdos*)
  8284. lt_prog_compiler_static='-non_shared'
  8285. ;;
  8286. solaris*)
  8287. lt_prog_compiler_pic='-KPIC'
  8288. lt_prog_compiler_static='-Bstatic'
  8289. case $cc_basename in
  8290. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8291. lt_prog_compiler_wl='-Qoption ld ';;
  8292. *)
  8293. lt_prog_compiler_wl='-Wl,';;
  8294. esac
  8295. ;;
  8296. sunos4*)
  8297. lt_prog_compiler_wl='-Qoption ld '
  8298. lt_prog_compiler_pic='-PIC'
  8299. lt_prog_compiler_static='-Bstatic'
  8300. ;;
  8301. sysv4 | sysv4.2uw2* | sysv4.3*)
  8302. lt_prog_compiler_wl='-Wl,'
  8303. lt_prog_compiler_pic='-KPIC'
  8304. lt_prog_compiler_static='-Bstatic'
  8305. ;;
  8306. sysv4*MP*)
  8307. if test -d /usr/nec; then
  8308. lt_prog_compiler_pic='-Kconform_pic'
  8309. lt_prog_compiler_static='-Bstatic'
  8310. fi
  8311. ;;
  8312. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8313. lt_prog_compiler_wl='-Wl,'
  8314. lt_prog_compiler_pic='-KPIC'
  8315. lt_prog_compiler_static='-Bstatic'
  8316. ;;
  8317. unicos*)
  8318. lt_prog_compiler_wl='-Wl,'
  8319. lt_prog_compiler_can_build_shared=no
  8320. ;;
  8321. uts4*)
  8322. lt_prog_compiler_pic='-pic'
  8323. lt_prog_compiler_static='-Bstatic'
  8324. ;;
  8325. *)
  8326. lt_prog_compiler_can_build_shared=no
  8327. ;;
  8328. esac
  8329. fi
  8330. case $host_os in
  8331. # For platforms that do not support PIC, -DPIC is meaningless:
  8332. *djgpp*)
  8333. lt_prog_compiler_pic=
  8334. ;;
  8335. *)
  8336. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8337. ;;
  8338. esac
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8340. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8341. if ${lt_cv_prog_compiler_pic+:} false; then :
  8342. $as_echo_n "(cached) " >&6
  8343. else
  8344. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8345. fi
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8347. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8348. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8349. #
  8350. # Check to make sure the PIC flag actually works.
  8351. #
  8352. if test -n "$lt_prog_compiler_pic"; then
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8354. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8355. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8356. $as_echo_n "(cached) " >&6
  8357. else
  8358. lt_cv_prog_compiler_pic_works=no
  8359. ac_outfile=conftest.$ac_objext
  8360. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8361. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8362. # Insert the option either (1) after the last *FLAGS variable, or
  8363. # (2) before a word containing "conftest.", or (3) at the end.
  8364. # Note that $ac_compile itself does not contain backslashes and begins
  8365. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8366. # The option is referenced via a variable to avoid confusing sed.
  8367. lt_compile=`echo "$ac_compile" | $SED \
  8368. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8370. -e 's:$: $lt_compiler_flag:'`
  8371. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8372. (eval "$lt_compile" 2>conftest.err)
  8373. ac_status=$?
  8374. cat conftest.err >&5
  8375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8376. if (exit $ac_status) && test -s "$ac_outfile"; then
  8377. # The compiler can only warn and ignore the option if not recognized
  8378. # So say no if there are warnings other than the usual output.
  8379. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8381. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8382. lt_cv_prog_compiler_pic_works=yes
  8383. fi
  8384. fi
  8385. $RM conftest*
  8386. fi
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8388. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8389. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8390. case $lt_prog_compiler_pic in
  8391. "" | " "*) ;;
  8392. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8393. esac
  8394. else
  8395. lt_prog_compiler_pic=
  8396. lt_prog_compiler_can_build_shared=no
  8397. fi
  8398. fi
  8399. #
  8400. # Check to make sure the static flag actually works.
  8401. #
  8402. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8404. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8405. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8406. $as_echo_n "(cached) " >&6
  8407. else
  8408. lt_cv_prog_compiler_static_works=no
  8409. save_LDFLAGS=$LDFLAGS
  8410. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8411. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8412. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8413. # The linker can only warn and ignore the option if not recognized
  8414. # So say no if there are warnings
  8415. if test -s conftest.err; then
  8416. # Append any errors to the config.log.
  8417. cat conftest.err 1>&5
  8418. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8419. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8420. if diff conftest.exp conftest.er2 >/dev/null; then
  8421. lt_cv_prog_compiler_static_works=yes
  8422. fi
  8423. else
  8424. lt_cv_prog_compiler_static_works=yes
  8425. fi
  8426. fi
  8427. $RM -r conftest*
  8428. LDFLAGS=$save_LDFLAGS
  8429. fi
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8431. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8432. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8433. :
  8434. else
  8435. lt_prog_compiler_static=
  8436. fi
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8438. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8439. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8440. $as_echo_n "(cached) " >&6
  8441. else
  8442. lt_cv_prog_compiler_c_o=no
  8443. $RM -r conftest 2>/dev/null
  8444. mkdir conftest
  8445. cd conftest
  8446. mkdir out
  8447. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8448. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8449. # Insert the option either (1) after the last *FLAGS variable, or
  8450. # (2) before a word containing "conftest.", or (3) at the end.
  8451. # Note that $ac_compile itself does not contain backslashes and begins
  8452. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8453. lt_compile=`echo "$ac_compile" | $SED \
  8454. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8455. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8456. -e 's:$: $lt_compiler_flag:'`
  8457. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8458. (eval "$lt_compile" 2>out/conftest.err)
  8459. ac_status=$?
  8460. cat out/conftest.err >&5
  8461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8462. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8463. then
  8464. # The compiler can only warn and ignore the option if not recognized
  8465. # So say no if there are warnings
  8466. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8467. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8468. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8469. lt_cv_prog_compiler_c_o=yes
  8470. fi
  8471. fi
  8472. chmod u+w . 2>&5
  8473. $RM conftest*
  8474. # SGI C++ compiler will create directory out/ii_files/ for
  8475. # template instantiation
  8476. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8477. $RM out/* && rmdir out
  8478. cd ..
  8479. $RM -r conftest
  8480. $RM conftest*
  8481. fi
  8482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8483. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8485. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8486. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8487. $as_echo_n "(cached) " >&6
  8488. else
  8489. lt_cv_prog_compiler_c_o=no
  8490. $RM -r conftest 2>/dev/null
  8491. mkdir conftest
  8492. cd conftest
  8493. mkdir out
  8494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8495. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8496. # Insert the option either (1) after the last *FLAGS variable, or
  8497. # (2) before a word containing "conftest.", or (3) at the end.
  8498. # Note that $ac_compile itself does not contain backslashes and begins
  8499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8500. lt_compile=`echo "$ac_compile" | $SED \
  8501. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8502. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8503. -e 's:$: $lt_compiler_flag:'`
  8504. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8505. (eval "$lt_compile" 2>out/conftest.err)
  8506. ac_status=$?
  8507. cat out/conftest.err >&5
  8508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8509. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8510. then
  8511. # The compiler can only warn and ignore the option if not recognized
  8512. # So say no if there are warnings
  8513. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8514. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8515. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8516. lt_cv_prog_compiler_c_o=yes
  8517. fi
  8518. fi
  8519. chmod u+w . 2>&5
  8520. $RM conftest*
  8521. # SGI C++ compiler will create directory out/ii_files/ for
  8522. # template instantiation
  8523. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8524. $RM out/* && rmdir out
  8525. cd ..
  8526. $RM -r conftest
  8527. $RM conftest*
  8528. fi
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8530. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8531. hard_links=nottested
  8532. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8533. # do not overwrite the value of need_locks provided by the user
  8534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8535. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8536. hard_links=yes
  8537. $RM conftest*
  8538. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8539. touch conftest.a
  8540. ln conftest.a conftest.b 2>&5 || hard_links=no
  8541. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8543. $as_echo "$hard_links" >&6; }
  8544. if test no = "$hard_links"; then
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8546. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8547. need_locks=warn
  8548. fi
  8549. else
  8550. need_locks=no
  8551. fi
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8553. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8554. runpath_var=
  8555. allow_undefined_flag=
  8556. always_export_symbols=no
  8557. archive_cmds=
  8558. archive_expsym_cmds=
  8559. compiler_needs_object=no
  8560. enable_shared_with_static_runtimes=no
  8561. export_dynamic_flag_spec=
  8562. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8563. hardcode_automatic=no
  8564. hardcode_direct=no
  8565. hardcode_direct_absolute=no
  8566. hardcode_libdir_flag_spec=
  8567. hardcode_libdir_separator=
  8568. hardcode_minus_L=no
  8569. hardcode_shlibpath_var=unsupported
  8570. inherit_rpath=no
  8571. link_all_deplibs=unknown
  8572. module_cmds=
  8573. module_expsym_cmds=
  8574. old_archive_from_new_cmds=
  8575. old_archive_from_expsyms_cmds=
  8576. thread_safe_flag_spec=
  8577. whole_archive_flag_spec=
  8578. # include_expsyms should be a list of space-separated symbols to be *always*
  8579. # included in the symbol list
  8580. include_expsyms=
  8581. # exclude_expsyms can be an extended regexp of symbols to exclude
  8582. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8583. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8584. # as well as any symbol that contains 'd'.
  8585. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8586. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8587. # platforms (ab)use it in PIC code, but their linkers get confused if
  8588. # the symbol is explicitly referenced. Since portable code cannot
  8589. # rely on this symbol name, it's probably fine to never include it in
  8590. # preloaded symbol tables.
  8591. # Exclude shared library initialization/finalization symbols.
  8592. extract_expsyms_cmds=
  8593. case $host_os in
  8594. cygwin* | mingw* | pw32* | cegcc*)
  8595. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8596. # When not using gcc, we currently assume that we are using
  8597. # Microsoft Visual C++.
  8598. if test yes != "$GCC"; then
  8599. with_gnu_ld=no
  8600. fi
  8601. ;;
  8602. interix*)
  8603. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8604. with_gnu_ld=yes
  8605. ;;
  8606. openbsd* | bitrig*)
  8607. with_gnu_ld=no
  8608. ;;
  8609. linux* | k*bsd*-gnu | gnu*)
  8610. link_all_deplibs=no
  8611. ;;
  8612. esac
  8613. ld_shlibs=yes
  8614. # On some targets, GNU ld is compatible enough with the native linker
  8615. # that we're better off using the native interface for both.
  8616. lt_use_gnu_ld_interface=no
  8617. if test yes = "$with_gnu_ld"; then
  8618. case $host_os in
  8619. aix*)
  8620. # The AIX port of GNU ld has always aspired to compatibility
  8621. # with the native linker. However, as the warning in the GNU ld
  8622. # block says, versions before 2.19.5* couldn't really create working
  8623. # shared libraries, regardless of the interface used.
  8624. case `$LD -v 2>&1` in
  8625. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8626. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8627. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8628. *)
  8629. lt_use_gnu_ld_interface=yes
  8630. ;;
  8631. esac
  8632. ;;
  8633. *)
  8634. lt_use_gnu_ld_interface=yes
  8635. ;;
  8636. esac
  8637. fi
  8638. if test yes = "$lt_use_gnu_ld_interface"; then
  8639. # If archive_cmds runs LD, not CC, wlarc should be empty
  8640. wlarc='$wl'
  8641. # Set some defaults for GNU ld with shared library support. These
  8642. # are reset later if shared libraries are not supported. Putting them
  8643. # here allows them to be overridden if necessary.
  8644. runpath_var=LD_RUN_PATH
  8645. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8646. export_dynamic_flag_spec='$wl--export-dynamic'
  8647. # ancient GNU ld didn't support --whole-archive et. al.
  8648. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8649. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8650. else
  8651. whole_archive_flag_spec=
  8652. fi
  8653. supports_anon_versioning=no
  8654. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8655. *GNU\ gold*) supports_anon_versioning=yes ;;
  8656. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8657. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8658. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8659. *\ 2.11.*) ;; # other 2.11 versions
  8660. *) supports_anon_versioning=yes ;;
  8661. esac
  8662. # See if GNU ld supports shared libraries.
  8663. case $host_os in
  8664. aix[3-9]*)
  8665. # On AIX/PPC, the GNU linker is very broken
  8666. if test ia64 != "$host_cpu"; then
  8667. ld_shlibs=no
  8668. cat <<_LT_EOF 1>&2
  8669. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8670. *** to be unable to reliably create shared libraries on AIX.
  8671. *** Therefore, libtool is disabling shared libraries support. If you
  8672. *** really care for shared libraries, you may want to install binutils
  8673. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8674. *** You will then need to restart the configuration process.
  8675. _LT_EOF
  8676. fi
  8677. ;;
  8678. amigaos*)
  8679. case $host_cpu in
  8680. powerpc)
  8681. # see comment about AmigaOS4 .so support
  8682. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8683. archive_expsym_cmds=''
  8684. ;;
  8685. m68k)
  8686. 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)'
  8687. hardcode_libdir_flag_spec='-L$libdir'
  8688. hardcode_minus_L=yes
  8689. ;;
  8690. esac
  8691. ;;
  8692. beos*)
  8693. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8694. allow_undefined_flag=unsupported
  8695. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8696. # support --undefined. This deserves some investigation. FIXME
  8697. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8698. else
  8699. ld_shlibs=no
  8700. fi
  8701. ;;
  8702. cygwin* | mingw* | pw32* | cegcc*)
  8703. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8704. # as there is no search path for DLLs.
  8705. hardcode_libdir_flag_spec='-L$libdir'
  8706. export_dynamic_flag_spec='$wl--export-all-symbols'
  8707. allow_undefined_flag=unsupported
  8708. always_export_symbols=no
  8709. enable_shared_with_static_runtimes=yes
  8710. 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'
  8711. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8712. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8714. # If the export-symbols file already is a .def file, use it as
  8715. # is; otherwise, prepend EXPORTS...
  8716. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8717. cp $export_symbols $output_objdir/$soname.def;
  8718. else
  8719. echo EXPORTS > $output_objdir/$soname.def;
  8720. cat $export_symbols >> $output_objdir/$soname.def;
  8721. fi~
  8722. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8723. else
  8724. ld_shlibs=no
  8725. fi
  8726. ;;
  8727. haiku*)
  8728. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8729. link_all_deplibs=yes
  8730. ;;
  8731. os2*)
  8732. hardcode_libdir_flag_spec='-L$libdir'
  8733. hardcode_minus_L=yes
  8734. allow_undefined_flag=unsupported
  8735. shrext_cmds=.dll
  8736. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8737. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8738. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8739. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8740. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8741. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8742. emximp -o $lib $output_objdir/$libname.def'
  8743. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8744. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8745. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8746. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8747. prefix_cmds="$SED"~
  8748. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8749. prefix_cmds="$prefix_cmds -e 1d";
  8750. fi~
  8751. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8752. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8753. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8754. emximp -o $lib $output_objdir/$libname.def'
  8755. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8756. enable_shared_with_static_runtimes=yes
  8757. ;;
  8758. interix[3-9]*)
  8759. hardcode_direct=no
  8760. hardcode_shlibpath_var=no
  8761. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8762. export_dynamic_flag_spec='$wl-E'
  8763. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8764. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8765. # default) and relocated if they conflict, which is a slow very memory
  8766. # consuming and fragmenting process. To avoid this, we pick a random,
  8767. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8768. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8769. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8770. 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'
  8771. ;;
  8772. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8773. tmp_diet=no
  8774. if test linux-dietlibc = "$host_os"; then
  8775. case $cc_basename in
  8776. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8777. esac
  8778. fi
  8779. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8780. && test no = "$tmp_diet"
  8781. then
  8782. tmp_addflag=' $pic_flag'
  8783. tmp_sharedflag='-shared'
  8784. case $cc_basename,$host_cpu in
  8785. pgcc*) # Portland Group C compiler
  8786. 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'
  8787. tmp_addflag=' $pic_flag'
  8788. ;;
  8789. pgf77* | pgf90* | pgf95* | pgfortran*)
  8790. # Portland Group f77 and f90 compilers
  8791. 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'
  8792. tmp_addflag=' $pic_flag -Mnomain' ;;
  8793. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8794. tmp_addflag=' -i_dynamic' ;;
  8795. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8796. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8797. ifc* | ifort*) # Intel Fortran compiler
  8798. tmp_addflag=' -nofor_main' ;;
  8799. lf95*) # Lahey Fortran 8.1
  8800. whole_archive_flag_spec=
  8801. tmp_sharedflag='--shared' ;;
  8802. nagfor*) # NAGFOR 5.3
  8803. tmp_sharedflag='-Wl,-shared' ;;
  8804. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8805. tmp_sharedflag='-qmkshrobj'
  8806. tmp_addflag= ;;
  8807. nvcc*) # Cuda Compiler Driver 2.2
  8808. 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'
  8809. compiler_needs_object=yes
  8810. ;;
  8811. esac
  8812. case `$CC -V 2>&1 | sed 5q` in
  8813. *Sun\ C*) # Sun C 5.9
  8814. 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'
  8815. compiler_needs_object=yes
  8816. tmp_sharedflag='-G' ;;
  8817. *Sun\ F*) # Sun Fortran 8.3
  8818. tmp_sharedflag='-G' ;;
  8819. esac
  8820. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8821. if test yes = "$supports_anon_versioning"; then
  8822. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8823. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8824. echo "local: *; };" >> $output_objdir/$libname.ver~
  8825. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8826. fi
  8827. case $cc_basename in
  8828. tcc*)
  8829. export_dynamic_flag_spec='-rdynamic'
  8830. ;;
  8831. xlf* | bgf* | bgxlf* | mpixlf*)
  8832. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8833. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8834. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8835. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8836. if test yes = "$supports_anon_versioning"; then
  8837. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8838. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8839. echo "local: *; };" >> $output_objdir/$libname.ver~
  8840. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8841. fi
  8842. ;;
  8843. esac
  8844. else
  8845. ld_shlibs=no
  8846. fi
  8847. ;;
  8848. netbsd* | netbsdelf*-gnu)
  8849. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8850. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8851. wlarc=
  8852. else
  8853. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8854. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8855. fi
  8856. ;;
  8857. solaris*)
  8858. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8859. ld_shlibs=no
  8860. cat <<_LT_EOF 1>&2
  8861. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8862. *** create shared libraries on Solaris systems. Therefore, libtool
  8863. *** is disabling shared libraries support. We urge you to upgrade GNU
  8864. *** binutils to release 2.9.1 or newer. Another option is to modify
  8865. *** your PATH or compiler configuration so that the native linker is
  8866. *** used, and then restart.
  8867. _LT_EOF
  8868. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8869. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8870. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8871. else
  8872. ld_shlibs=no
  8873. fi
  8874. ;;
  8875. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8876. case `$LD -v 2>&1` in
  8877. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8878. ld_shlibs=no
  8879. cat <<_LT_EOF 1>&2
  8880. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8881. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8882. *** is disabling shared libraries support. We urge you to upgrade GNU
  8883. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8884. *** your PATH or compiler configuration so that the native linker is
  8885. *** used, and then restart.
  8886. _LT_EOF
  8887. ;;
  8888. *)
  8889. # For security reasons, it is highly recommended that you always
  8890. # use absolute paths for naming shared libraries, and exclude the
  8891. # DT_RUNPATH tag from executables and libraries. But doing so
  8892. # requires that you compile everything twice, which is a pain.
  8893. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8894. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8895. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8896. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8897. else
  8898. ld_shlibs=no
  8899. fi
  8900. ;;
  8901. esac
  8902. ;;
  8903. sunos4*)
  8904. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8905. wlarc=
  8906. hardcode_direct=yes
  8907. hardcode_shlibpath_var=no
  8908. ;;
  8909. *)
  8910. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8911. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8912. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8913. else
  8914. ld_shlibs=no
  8915. fi
  8916. ;;
  8917. esac
  8918. if test no = "$ld_shlibs"; then
  8919. runpath_var=
  8920. hardcode_libdir_flag_spec=
  8921. export_dynamic_flag_spec=
  8922. whole_archive_flag_spec=
  8923. fi
  8924. else
  8925. # PORTME fill in a description of your system's linker (not GNU ld)
  8926. case $host_os in
  8927. aix3*)
  8928. allow_undefined_flag=unsupported
  8929. always_export_symbols=yes
  8930. 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'
  8931. # Note: this linker hardcodes the directories in LIBPATH if there
  8932. # are no directories specified by -L.
  8933. hardcode_minus_L=yes
  8934. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8935. # Neither direct hardcoding nor static linking is supported with a
  8936. # broken collect2.
  8937. hardcode_direct=unsupported
  8938. fi
  8939. ;;
  8940. aix[4-9]*)
  8941. if test ia64 = "$host_cpu"; then
  8942. # On IA64, the linker does run time linking by default, so we don't
  8943. # have to do anything special.
  8944. aix_use_runtimelinking=no
  8945. exp_sym_flag='-Bexport'
  8946. no_entry_flag=
  8947. else
  8948. # If we're using GNU nm, then we don't want the "-C" option.
  8949. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8950. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8951. # weak defined symbols like other global defined symbols, whereas
  8952. # GNU nm marks them as "W".
  8953. # While the 'weak' keyword is ignored in the Export File, we need
  8954. # it in the Import File for the 'aix-soname' feature, so we have
  8955. # to replace the "-B" option with "-P" for AIX nm.
  8956. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8957. 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'
  8958. else
  8959. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8960. fi
  8961. aix_use_runtimelinking=no
  8962. # Test if we are trying to use run time linking or normal
  8963. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8964. # have runtime linking enabled, and use it for executables.
  8965. # For shared libraries, we enable/disable runtime linking
  8966. # depending on the kind of the shared library created -
  8967. # when "with_aix_soname,aix_use_runtimelinking" is:
  8968. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8969. # "aix,yes" lib.so shared, rtl:yes, for executables
  8970. # lib.a static archive
  8971. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8972. # lib.a(lib.so.V) shared, rtl:no, for executables
  8973. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8974. # lib.a(lib.so.V) shared, rtl:no
  8975. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8976. # lib.a static archive
  8977. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8978. for ld_flag in $LDFLAGS; do
  8979. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8980. aix_use_runtimelinking=yes
  8981. break
  8982. fi
  8983. done
  8984. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8985. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8986. # so we don't have lib.a shared libs to link our executables.
  8987. # We have to force runtime linking in this case.
  8988. aix_use_runtimelinking=yes
  8989. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8990. fi
  8991. ;;
  8992. esac
  8993. exp_sym_flag='-bexport'
  8994. no_entry_flag='-bnoentry'
  8995. fi
  8996. # When large executables or shared objects are built, AIX ld can
  8997. # have problems creating the table of contents. If linking a library
  8998. # or program results in "error TOC overflow" add -mminimal-toc to
  8999. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9000. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9001. archive_cmds=''
  9002. hardcode_direct=yes
  9003. hardcode_direct_absolute=yes
  9004. hardcode_libdir_separator=':'
  9005. link_all_deplibs=yes
  9006. file_list_spec='$wl-f,'
  9007. case $with_aix_soname,$aix_use_runtimelinking in
  9008. aix,*) ;; # traditional, no import file
  9009. svr4,* | *,yes) # use import file
  9010. # The Import File defines what to hardcode.
  9011. hardcode_direct=no
  9012. hardcode_direct_absolute=no
  9013. ;;
  9014. esac
  9015. if test yes = "$GCC"; then
  9016. case $host_os in aix4.[012]|aix4.[012].*)
  9017. # We only want to do this on AIX 4.2 and lower, the check
  9018. # below for broken collect2 doesn't work under 4.3+
  9019. collect2name=`$CC -print-prog-name=collect2`
  9020. if test -f "$collect2name" &&
  9021. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9022. then
  9023. # We have reworked collect2
  9024. :
  9025. else
  9026. # We have old collect2
  9027. hardcode_direct=unsupported
  9028. # It fails to find uninstalled libraries when the uninstalled
  9029. # path is not listed in the libpath. Setting hardcode_minus_L
  9030. # to unsupported forces relinking
  9031. hardcode_minus_L=yes
  9032. hardcode_libdir_flag_spec='-L$libdir'
  9033. hardcode_libdir_separator=
  9034. fi
  9035. ;;
  9036. esac
  9037. shared_flag='-shared'
  9038. if test yes = "$aix_use_runtimelinking"; then
  9039. shared_flag="$shared_flag "'$wl-G'
  9040. fi
  9041. # Need to ensure runtime linking is disabled for the traditional
  9042. # shared library, or the linker may eventually find shared libraries
  9043. # /with/ Import File - we do not want to mix them.
  9044. shared_flag_aix='-shared'
  9045. shared_flag_svr4='-shared $wl-G'
  9046. else
  9047. # not using gcc
  9048. if test ia64 = "$host_cpu"; then
  9049. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9050. # chokes on -Wl,-G. The following line is correct:
  9051. shared_flag='-G'
  9052. else
  9053. if test yes = "$aix_use_runtimelinking"; then
  9054. shared_flag='$wl-G'
  9055. else
  9056. shared_flag='$wl-bM:SRE'
  9057. fi
  9058. shared_flag_aix='$wl-bM:SRE'
  9059. shared_flag_svr4='$wl-G'
  9060. fi
  9061. fi
  9062. export_dynamic_flag_spec='$wl-bexpall'
  9063. # It seems that -bexpall does not export symbols beginning with
  9064. # underscore (_), so it is better to generate a list of symbols to export.
  9065. always_export_symbols=yes
  9066. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9067. # Warning - without using the other runtime loading flags (-brtl),
  9068. # -berok will link without error, but may produce a broken library.
  9069. allow_undefined_flag='-berok'
  9070. # Determine the default libpath from the value encoded in an
  9071. # empty executable.
  9072. if test set = "${lt_cv_aix_libpath+set}"; then
  9073. aix_libpath=$lt_cv_aix_libpath
  9074. else
  9075. if ${lt_cv_aix_libpath_+:} false; then :
  9076. $as_echo_n "(cached) " >&6
  9077. else
  9078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9079. /* end confdefs.h. */
  9080. int
  9081. main ()
  9082. {
  9083. ;
  9084. return 0;
  9085. }
  9086. _ACEOF
  9087. if ac_fn_c_try_link "$LINENO"; then :
  9088. lt_aix_libpath_sed='
  9089. /Import File Strings/,/^$/ {
  9090. /^0/ {
  9091. s/^0 *\([^ ]*\) *$/\1/
  9092. p
  9093. }
  9094. }'
  9095. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9096. # Check for a 64-bit object if we didn't find anything.
  9097. if test -z "$lt_cv_aix_libpath_"; then
  9098. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9099. fi
  9100. fi
  9101. rm -f core conftest.err conftest.$ac_objext \
  9102. conftest$ac_exeext conftest.$ac_ext
  9103. if test -z "$lt_cv_aix_libpath_"; then
  9104. lt_cv_aix_libpath_=/usr/lib:/lib
  9105. fi
  9106. fi
  9107. aix_libpath=$lt_cv_aix_libpath_
  9108. fi
  9109. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9110. 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
  9111. else
  9112. if test ia64 = "$host_cpu"; then
  9113. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9114. allow_undefined_flag="-z nodefs"
  9115. 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"
  9116. else
  9117. # Determine the default libpath from the value encoded in an
  9118. # empty executable.
  9119. if test set = "${lt_cv_aix_libpath+set}"; then
  9120. aix_libpath=$lt_cv_aix_libpath
  9121. else
  9122. if ${lt_cv_aix_libpath_+:} false; then :
  9123. $as_echo_n "(cached) " >&6
  9124. else
  9125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9126. /* end confdefs.h. */
  9127. int
  9128. main ()
  9129. {
  9130. ;
  9131. return 0;
  9132. }
  9133. _ACEOF
  9134. if ac_fn_c_try_link "$LINENO"; then :
  9135. lt_aix_libpath_sed='
  9136. /Import File Strings/,/^$/ {
  9137. /^0/ {
  9138. s/^0 *\([^ ]*\) *$/\1/
  9139. p
  9140. }
  9141. }'
  9142. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9143. # Check for a 64-bit object if we didn't find anything.
  9144. if test -z "$lt_cv_aix_libpath_"; then
  9145. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9146. fi
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext \
  9149. conftest$ac_exeext conftest.$ac_ext
  9150. if test -z "$lt_cv_aix_libpath_"; then
  9151. lt_cv_aix_libpath_=/usr/lib:/lib
  9152. fi
  9153. fi
  9154. aix_libpath=$lt_cv_aix_libpath_
  9155. fi
  9156. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9157. # Warning - without using the other run time loading flags,
  9158. # -berok will link without error, but may produce a broken library.
  9159. no_undefined_flag=' $wl-bernotok'
  9160. allow_undefined_flag=' $wl-berok'
  9161. if test yes = "$with_gnu_ld"; then
  9162. # We only use this code for GNU lds that support --whole-archive.
  9163. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9164. else
  9165. # Exported symbols can be pulled into shared objects from archives
  9166. whole_archive_flag_spec='$convenience'
  9167. fi
  9168. archive_cmds_need_lc=yes
  9169. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9170. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9171. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9172. if test svr4 != "$with_aix_soname"; then
  9173. # This is similar to how AIX traditionally builds its shared libraries.
  9174. 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'
  9175. fi
  9176. if test aix != "$with_aix_soname"; then
  9177. 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'
  9178. else
  9179. # used by -dlpreopen to get the symbols
  9180. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9181. fi
  9182. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9183. fi
  9184. fi
  9185. ;;
  9186. amigaos*)
  9187. case $host_cpu in
  9188. powerpc)
  9189. # see comment about AmigaOS4 .so support
  9190. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9191. archive_expsym_cmds=''
  9192. ;;
  9193. m68k)
  9194. 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)'
  9195. hardcode_libdir_flag_spec='-L$libdir'
  9196. hardcode_minus_L=yes
  9197. ;;
  9198. esac
  9199. ;;
  9200. bsdi[45]*)
  9201. export_dynamic_flag_spec=-rdynamic
  9202. ;;
  9203. cygwin* | mingw* | pw32* | cegcc*)
  9204. # When not using gcc, we currently assume that we are using
  9205. # Microsoft Visual C++.
  9206. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9207. # no search path for DLLs.
  9208. case $cc_basename in
  9209. cl*)
  9210. # Native MSVC
  9211. hardcode_libdir_flag_spec=' '
  9212. allow_undefined_flag=unsupported
  9213. always_export_symbols=yes
  9214. file_list_spec='@'
  9215. # Tell ltmain to make .lib files, not .a files.
  9216. libext=lib
  9217. # Tell ltmain to make .dll files, not .so files.
  9218. shrext_cmds=.dll
  9219. # FIXME: Setting linknames here is a bad hack.
  9220. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9221. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9222. cp "$export_symbols" "$output_objdir/$soname.def";
  9223. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9224. else
  9225. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9226. fi~
  9227. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9228. linknames='
  9229. # The linker will not automatically build a static lib if we build a DLL.
  9230. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9231. enable_shared_with_static_runtimes=yes
  9232. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9233. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9234. # Don't use ranlib
  9235. old_postinstall_cmds='chmod 644 $oldlib'
  9236. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9237. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9238. case $lt_outputfile in
  9239. *.exe|*.EXE) ;;
  9240. *)
  9241. lt_outputfile=$lt_outputfile.exe
  9242. lt_tool_outputfile=$lt_tool_outputfile.exe
  9243. ;;
  9244. esac~
  9245. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9246. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9247. $RM "$lt_outputfile.manifest";
  9248. fi'
  9249. ;;
  9250. *)
  9251. # Assume MSVC wrapper
  9252. hardcode_libdir_flag_spec=' '
  9253. allow_undefined_flag=unsupported
  9254. # Tell ltmain to make .lib files, not .a files.
  9255. libext=lib
  9256. # Tell ltmain to make .dll files, not .so files.
  9257. shrext_cmds=.dll
  9258. # FIXME: Setting linknames here is a bad hack.
  9259. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9260. # The linker will automatically build a .lib file if we build a DLL.
  9261. old_archive_from_new_cmds='true'
  9262. # FIXME: Should let the user specify the lib program.
  9263. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9264. enable_shared_with_static_runtimes=yes
  9265. ;;
  9266. esac
  9267. ;;
  9268. darwin* | rhapsody*)
  9269. archive_cmds_need_lc=no
  9270. hardcode_direct=no
  9271. hardcode_automatic=yes
  9272. hardcode_shlibpath_var=unsupported
  9273. if test yes = "$lt_cv_ld_force_load"; then
  9274. 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\"`'
  9275. else
  9276. whole_archive_flag_spec=''
  9277. fi
  9278. link_all_deplibs=yes
  9279. allow_undefined_flag=$_lt_dar_allow_undefined
  9280. case $cc_basename in
  9281. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9282. *) _lt_dar_can_shared=$GCC ;;
  9283. esac
  9284. if test yes = "$_lt_dar_can_shared"; then
  9285. output_verbose_link_cmd=func_echo_all
  9286. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9287. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9288. 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"
  9289. 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"
  9290. else
  9291. ld_shlibs=no
  9292. fi
  9293. ;;
  9294. dgux*)
  9295. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9296. hardcode_libdir_flag_spec='-L$libdir'
  9297. hardcode_shlibpath_var=no
  9298. ;;
  9299. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9300. # support. Future versions do this automatically, but an explicit c++rt0.o
  9301. # does not break anything, and helps significantly (at the cost of a little
  9302. # extra space).
  9303. freebsd2.2*)
  9304. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9305. hardcode_libdir_flag_spec='-R$libdir'
  9306. hardcode_direct=yes
  9307. hardcode_shlibpath_var=no
  9308. ;;
  9309. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9310. freebsd2.*)
  9311. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9312. hardcode_direct=yes
  9313. hardcode_minus_L=yes
  9314. hardcode_shlibpath_var=no
  9315. ;;
  9316. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9317. freebsd* | dragonfly*)
  9318. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9319. hardcode_libdir_flag_spec='-R$libdir'
  9320. hardcode_direct=yes
  9321. hardcode_shlibpath_var=no
  9322. ;;
  9323. hpux9*)
  9324. if test yes = "$GCC"; then
  9325. 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'
  9326. else
  9327. 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'
  9328. fi
  9329. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9330. hardcode_libdir_separator=:
  9331. hardcode_direct=yes
  9332. # hardcode_minus_L: Not really in the search PATH,
  9333. # but as the default location of the library.
  9334. hardcode_minus_L=yes
  9335. export_dynamic_flag_spec='$wl-E'
  9336. ;;
  9337. hpux10*)
  9338. if test yes,no = "$GCC,$with_gnu_ld"; then
  9339. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9340. else
  9341. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9342. fi
  9343. if test no = "$with_gnu_ld"; then
  9344. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9345. hardcode_libdir_separator=:
  9346. hardcode_direct=yes
  9347. hardcode_direct_absolute=yes
  9348. export_dynamic_flag_spec='$wl-E'
  9349. # hardcode_minus_L: Not really in the search PATH,
  9350. # but as the default location of the library.
  9351. hardcode_minus_L=yes
  9352. fi
  9353. ;;
  9354. hpux11*)
  9355. if test yes,no = "$GCC,$with_gnu_ld"; then
  9356. case $host_cpu in
  9357. hppa*64*)
  9358. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9359. ;;
  9360. ia64*)
  9361. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9362. ;;
  9363. *)
  9364. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9365. ;;
  9366. esac
  9367. else
  9368. case $host_cpu in
  9369. hppa*64*)
  9370. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9371. ;;
  9372. ia64*)
  9373. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9374. ;;
  9375. *)
  9376. # Older versions of the 11.00 compiler do not understand -b yet
  9377. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9379. $as_echo_n "checking if $CC understands -b... " >&6; }
  9380. if ${lt_cv_prog_compiler__b+:} false; then :
  9381. $as_echo_n "(cached) " >&6
  9382. else
  9383. lt_cv_prog_compiler__b=no
  9384. save_LDFLAGS=$LDFLAGS
  9385. LDFLAGS="$LDFLAGS -b"
  9386. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9387. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9388. # The linker can only warn and ignore the option if not recognized
  9389. # So say no if there are warnings
  9390. if test -s conftest.err; then
  9391. # Append any errors to the config.log.
  9392. cat conftest.err 1>&5
  9393. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9394. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9395. if diff conftest.exp conftest.er2 >/dev/null; then
  9396. lt_cv_prog_compiler__b=yes
  9397. fi
  9398. else
  9399. lt_cv_prog_compiler__b=yes
  9400. fi
  9401. fi
  9402. $RM -r conftest*
  9403. LDFLAGS=$save_LDFLAGS
  9404. fi
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9406. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9407. if test yes = "$lt_cv_prog_compiler__b"; then
  9408. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9409. else
  9410. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9411. fi
  9412. ;;
  9413. esac
  9414. fi
  9415. if test no = "$with_gnu_ld"; then
  9416. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9417. hardcode_libdir_separator=:
  9418. case $host_cpu in
  9419. hppa*64*|ia64*)
  9420. hardcode_direct=no
  9421. hardcode_shlibpath_var=no
  9422. ;;
  9423. *)
  9424. hardcode_direct=yes
  9425. hardcode_direct_absolute=yes
  9426. export_dynamic_flag_spec='$wl-E'
  9427. # hardcode_minus_L: Not really in the search PATH,
  9428. # but as the default location of the library.
  9429. hardcode_minus_L=yes
  9430. ;;
  9431. esac
  9432. fi
  9433. ;;
  9434. irix5* | irix6* | nonstopux*)
  9435. if test yes = "$GCC"; then
  9436. 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'
  9437. # Try to use the -exported_symbol ld option, if it does not
  9438. # work, assume that -exports_file does not work either and
  9439. # implicitly export all symbols.
  9440. # This should be the same for all languages, so no per-tag cache variable.
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9442. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9443. if ${lt_cv_irix_exported_symbol+:} false; then :
  9444. $as_echo_n "(cached) " >&6
  9445. else
  9446. save_LDFLAGS=$LDFLAGS
  9447. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9449. /* end confdefs.h. */
  9450. int foo (void) { return 0; }
  9451. _ACEOF
  9452. if ac_fn_c_try_link "$LINENO"; then :
  9453. lt_cv_irix_exported_symbol=yes
  9454. else
  9455. lt_cv_irix_exported_symbol=no
  9456. fi
  9457. rm -f core conftest.err conftest.$ac_objext \
  9458. conftest$ac_exeext conftest.$ac_ext
  9459. LDFLAGS=$save_LDFLAGS
  9460. fi
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9462. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9463. if test yes = "$lt_cv_irix_exported_symbol"; then
  9464. 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'
  9465. fi
  9466. link_all_deplibs=no
  9467. else
  9468. 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'
  9469. 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'
  9470. fi
  9471. archive_cmds_need_lc='no'
  9472. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9473. hardcode_libdir_separator=:
  9474. inherit_rpath=yes
  9475. link_all_deplibs=yes
  9476. ;;
  9477. linux*)
  9478. case $cc_basename in
  9479. tcc*)
  9480. # Fabrice Bellard et al's Tiny C Compiler
  9481. ld_shlibs=yes
  9482. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9483. ;;
  9484. esac
  9485. ;;
  9486. netbsd* | netbsdelf*-gnu)
  9487. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9488. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9489. else
  9490. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9491. fi
  9492. hardcode_libdir_flag_spec='-R$libdir'
  9493. hardcode_direct=yes
  9494. hardcode_shlibpath_var=no
  9495. ;;
  9496. newsos6)
  9497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9498. hardcode_direct=yes
  9499. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9500. hardcode_libdir_separator=:
  9501. hardcode_shlibpath_var=no
  9502. ;;
  9503. *nto* | *qnx*)
  9504. ;;
  9505. openbsd* | bitrig*)
  9506. if test -f /usr/libexec/ld.so; then
  9507. hardcode_direct=yes
  9508. hardcode_shlibpath_var=no
  9509. hardcode_direct_absolute=yes
  9510. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9511. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9512. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9513. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9514. export_dynamic_flag_spec='$wl-E'
  9515. else
  9516. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9517. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9518. fi
  9519. else
  9520. ld_shlibs=no
  9521. fi
  9522. ;;
  9523. os2*)
  9524. hardcode_libdir_flag_spec='-L$libdir'
  9525. hardcode_minus_L=yes
  9526. allow_undefined_flag=unsupported
  9527. shrext_cmds=.dll
  9528. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9529. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9530. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9531. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9532. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9533. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9534. emximp -o $lib $output_objdir/$libname.def'
  9535. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9536. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9537. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9538. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9539. prefix_cmds="$SED"~
  9540. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9541. prefix_cmds="$prefix_cmds -e 1d";
  9542. fi~
  9543. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9544. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9545. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9546. emximp -o $lib $output_objdir/$libname.def'
  9547. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9548. enable_shared_with_static_runtimes=yes
  9549. ;;
  9550. osf3*)
  9551. if test yes = "$GCC"; then
  9552. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9553. 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'
  9554. else
  9555. allow_undefined_flag=' -expect_unresolved \*'
  9556. 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'
  9557. fi
  9558. archive_cmds_need_lc='no'
  9559. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9560. hardcode_libdir_separator=:
  9561. ;;
  9562. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9563. if test yes = "$GCC"; then
  9564. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9565. 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'
  9566. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9567. else
  9568. allow_undefined_flag=' -expect_unresolved \*'
  9569. 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'
  9570. 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~
  9571. $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'
  9572. # Both c and cxx compiler support -rpath directly
  9573. hardcode_libdir_flag_spec='-rpath $libdir'
  9574. fi
  9575. archive_cmds_need_lc='no'
  9576. hardcode_libdir_separator=:
  9577. ;;
  9578. solaris*)
  9579. no_undefined_flag=' -z defs'
  9580. if test yes = "$GCC"; then
  9581. wlarc='$wl'
  9582. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9583. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9584. $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'
  9585. else
  9586. case `$CC -V 2>&1` in
  9587. *"Compilers 5.0"*)
  9588. wlarc=''
  9589. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9590. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9591. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9592. ;;
  9593. *)
  9594. wlarc='$wl'
  9595. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9597. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9598. ;;
  9599. esac
  9600. fi
  9601. hardcode_libdir_flag_spec='-R$libdir'
  9602. hardcode_shlibpath_var=no
  9603. case $host_os in
  9604. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9605. *)
  9606. # The compiler driver will combine and reorder linker options,
  9607. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9608. # but is careful enough not to reorder.
  9609. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9610. if test yes = "$GCC"; then
  9611. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9612. else
  9613. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9614. fi
  9615. ;;
  9616. esac
  9617. link_all_deplibs=yes
  9618. ;;
  9619. sunos4*)
  9620. if test sequent = "$host_vendor"; then
  9621. # Use $CC to link under sequent, because it throws in some extra .o
  9622. # files that make .init and .fini sections work.
  9623. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9624. else
  9625. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9626. fi
  9627. hardcode_libdir_flag_spec='-L$libdir'
  9628. hardcode_direct=yes
  9629. hardcode_minus_L=yes
  9630. hardcode_shlibpath_var=no
  9631. ;;
  9632. sysv4)
  9633. case $host_vendor in
  9634. sni)
  9635. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9636. hardcode_direct=yes # is this really true???
  9637. ;;
  9638. siemens)
  9639. ## LD is ld it makes a PLAMLIB
  9640. ## CC just makes a GrossModule.
  9641. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9642. reload_cmds='$CC -r -o $output$reload_objs'
  9643. hardcode_direct=no
  9644. ;;
  9645. motorola)
  9646. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9647. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9648. ;;
  9649. esac
  9650. runpath_var='LD_RUN_PATH'
  9651. hardcode_shlibpath_var=no
  9652. ;;
  9653. sysv4.3*)
  9654. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9655. hardcode_shlibpath_var=no
  9656. export_dynamic_flag_spec='-Bexport'
  9657. ;;
  9658. sysv4*MP*)
  9659. if test -d /usr/nec; then
  9660. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9661. hardcode_shlibpath_var=no
  9662. runpath_var=LD_RUN_PATH
  9663. hardcode_runpath_var=yes
  9664. ld_shlibs=yes
  9665. fi
  9666. ;;
  9667. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9668. no_undefined_flag='$wl-z,text'
  9669. archive_cmds_need_lc=no
  9670. hardcode_shlibpath_var=no
  9671. runpath_var='LD_RUN_PATH'
  9672. if test yes = "$GCC"; then
  9673. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9674. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9675. else
  9676. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9677. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9678. fi
  9679. ;;
  9680. sysv5* | sco3.2v5* | sco5v6*)
  9681. # Note: We CANNOT use -z defs as we might desire, because we do not
  9682. # link with -lc, and that would cause any symbols used from libc to
  9683. # always be unresolved, which means just about no library would
  9684. # ever link correctly. If we're not using GNU ld we use -z text
  9685. # though, which does catch some bad symbols but isn't as heavy-handed
  9686. # as -z defs.
  9687. no_undefined_flag='$wl-z,text'
  9688. allow_undefined_flag='$wl-z,nodefs'
  9689. archive_cmds_need_lc=no
  9690. hardcode_shlibpath_var=no
  9691. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9692. hardcode_libdir_separator=':'
  9693. link_all_deplibs=yes
  9694. export_dynamic_flag_spec='$wl-Bexport'
  9695. runpath_var='LD_RUN_PATH'
  9696. if test yes = "$GCC"; then
  9697. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9698. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9699. else
  9700. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9701. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9702. fi
  9703. ;;
  9704. uts4*)
  9705. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9706. hardcode_libdir_flag_spec='-L$libdir'
  9707. hardcode_shlibpath_var=no
  9708. ;;
  9709. *)
  9710. ld_shlibs=no
  9711. ;;
  9712. esac
  9713. if test sni = "$host_vendor"; then
  9714. case $host in
  9715. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9716. export_dynamic_flag_spec='$wl-Blargedynsym'
  9717. ;;
  9718. esac
  9719. fi
  9720. fi
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9722. $as_echo "$ld_shlibs" >&6; }
  9723. test no = "$ld_shlibs" && can_build_shared=no
  9724. with_gnu_ld=$with_gnu_ld
  9725. #
  9726. # Do we need to explicitly link libc?
  9727. #
  9728. case "x$archive_cmds_need_lc" in
  9729. x|xyes)
  9730. # Assume -lc should be added
  9731. archive_cmds_need_lc=yes
  9732. if test yes,yes = "$GCC,$enable_shared"; then
  9733. case $archive_cmds in
  9734. *'~'*)
  9735. # FIXME: we may have to deal with multi-command sequences.
  9736. ;;
  9737. '$CC '*)
  9738. # Test whether the compiler implicitly links with -lc since on some
  9739. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9740. # to ld, don't add -lc before -lgcc.
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9742. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9743. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9744. $as_echo_n "(cached) " >&6
  9745. else
  9746. $RM conftest*
  9747. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9748. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9749. (eval $ac_compile) 2>&5
  9750. ac_status=$?
  9751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9752. test $ac_status = 0; } 2>conftest.err; then
  9753. soname=conftest
  9754. lib=conftest
  9755. libobjs=conftest.$ac_objext
  9756. deplibs=
  9757. wl=$lt_prog_compiler_wl
  9758. pic_flag=$lt_prog_compiler_pic
  9759. compiler_flags=-v
  9760. linker_flags=-v
  9761. verstring=
  9762. output_objdir=.
  9763. libname=conftest
  9764. lt_save_allow_undefined_flag=$allow_undefined_flag
  9765. allow_undefined_flag=
  9766. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9767. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9768. ac_status=$?
  9769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9770. test $ac_status = 0; }
  9771. then
  9772. lt_cv_archive_cmds_need_lc=no
  9773. else
  9774. lt_cv_archive_cmds_need_lc=yes
  9775. fi
  9776. allow_undefined_flag=$lt_save_allow_undefined_flag
  9777. else
  9778. cat conftest.err 1>&5
  9779. fi
  9780. $RM conftest*
  9781. fi
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9783. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9784. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9785. ;;
  9786. esac
  9787. fi
  9788. ;;
  9789. esac
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9791. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9792. if test yes = "$GCC"; then
  9793. case $host_os in
  9794. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9795. *) lt_awk_arg='/^libraries:/' ;;
  9796. esac
  9797. case $host_os in
  9798. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9799. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9800. esac
  9801. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9802. case $lt_search_path_spec in
  9803. *\;*)
  9804. # if the path contains ";" then we assume it to be the separator
  9805. # otherwise default to the standard path separator (i.e. ":") - it is
  9806. # assumed that no part of a normal pathname contains ";" but that should
  9807. # okay in the real world where ";" in dirpaths is itself problematic.
  9808. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9809. ;;
  9810. *)
  9811. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9812. ;;
  9813. esac
  9814. # Ok, now we have the path, separated by spaces, we can step through it
  9815. # and add multilib dir if necessary...
  9816. lt_tmp_lt_search_path_spec=
  9817. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9818. # ...but if some path component already ends with the multilib dir we assume
  9819. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9820. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9821. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9822. lt_multi_os_dir=
  9823. ;;
  9824. esac
  9825. for lt_sys_path in $lt_search_path_spec; do
  9826. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9827. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9828. elif test -n "$lt_multi_os_dir"; then
  9829. test -d "$lt_sys_path" && \
  9830. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9831. fi
  9832. done
  9833. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9834. BEGIN {RS = " "; FS = "/|\n";} {
  9835. lt_foo = "";
  9836. lt_count = 0;
  9837. for (lt_i = NF; lt_i > 0; lt_i--) {
  9838. if ($lt_i != "" && $lt_i != ".") {
  9839. if ($lt_i == "..") {
  9840. lt_count++;
  9841. } else {
  9842. if (lt_count == 0) {
  9843. lt_foo = "/" $lt_i lt_foo;
  9844. } else {
  9845. lt_count--;
  9846. }
  9847. }
  9848. }
  9849. }
  9850. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9851. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9852. }'`
  9853. # AWK program above erroneously prepends '/' to C:/dos/paths
  9854. # for these hosts.
  9855. case $host_os in
  9856. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9857. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9858. esac
  9859. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9860. else
  9861. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9862. fi
  9863. library_names_spec=
  9864. libname_spec='lib$name'
  9865. soname_spec=
  9866. shrext_cmds=.so
  9867. postinstall_cmds=
  9868. postuninstall_cmds=
  9869. finish_cmds=
  9870. finish_eval=
  9871. shlibpath_var=
  9872. shlibpath_overrides_runpath=unknown
  9873. version_type=none
  9874. dynamic_linker="$host_os ld.so"
  9875. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9876. need_lib_prefix=unknown
  9877. hardcode_into_libs=no
  9878. # when you set need_version to no, make sure it does not cause -set_version
  9879. # flags to be left without arguments
  9880. need_version=unknown
  9881. case $host_os in
  9882. aix3*)
  9883. version_type=linux # correct to gnu/linux during the next big refactor
  9884. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9885. shlibpath_var=LIBPATH
  9886. # AIX 3 has no versioning support, so we append a major version to the name.
  9887. soname_spec='$libname$release$shared_ext$major'
  9888. ;;
  9889. aix[4-9]*)
  9890. version_type=linux # correct to gnu/linux during the next big refactor
  9891. need_lib_prefix=no
  9892. need_version=no
  9893. hardcode_into_libs=yes
  9894. if test ia64 = "$host_cpu"; then
  9895. # AIX 5 supports IA64
  9896. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9897. shlibpath_var=LD_LIBRARY_PATH
  9898. else
  9899. # With GCC up to 2.95.x, collect2 would create an import file
  9900. # for dependence libraries. The import file would start with
  9901. # the line '#! .'. This would cause the generated library to
  9902. # depend on '.', always an invalid library. This was fixed in
  9903. # development snapshots of GCC prior to 3.0.
  9904. case $host_os in
  9905. aix4 | aix4.[01] | aix4.[01].*)
  9906. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9907. echo ' yes '
  9908. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9909. :
  9910. else
  9911. can_build_shared=no
  9912. fi
  9913. ;;
  9914. esac
  9915. # Using Import Files as archive members, it is possible to support
  9916. # filename-based versioning of shared library archives on AIX. While
  9917. # this would work for both with and without runtime linking, it will
  9918. # prevent static linking of such archives. So we do filename-based
  9919. # shared library versioning with .so extension only, which is used
  9920. # when both runtime linking and shared linking is enabled.
  9921. # Unfortunately, runtime linking may impact performance, so we do
  9922. # not want this to be the default eventually. Also, we use the
  9923. # versioned .so libs for executables only if there is the -brtl
  9924. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9925. # To allow for filename-based versioning support, we need to create
  9926. # libNAME.so.V as an archive file, containing:
  9927. # *) an Import File, referring to the versioned filename of the
  9928. # archive as well as the shared archive member, telling the
  9929. # bitwidth (32 or 64) of that shared object, and providing the
  9930. # list of exported symbols of that shared object, eventually
  9931. # decorated with the 'weak' keyword
  9932. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9933. # it being seen by the linker.
  9934. # At run time we better use the real file rather than another symlink,
  9935. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9936. case $with_aix_soname,$aix_use_runtimelinking in
  9937. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9938. # soname into executable. Probably we can add versioning support to
  9939. # collect2, so additional links can be useful in future.
  9940. aix,yes) # traditional libtool
  9941. dynamic_linker='AIX unversionable lib.so'
  9942. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9943. # instead of lib<name>.a to let people know that these are not
  9944. # typical AIX shared libraries.
  9945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9946. ;;
  9947. aix,no) # traditional AIX only
  9948. dynamic_linker='AIX lib.a(lib.so.V)'
  9949. # We preserve .a as extension for shared libraries through AIX4.2
  9950. # and later when we are not doing run time linking.
  9951. library_names_spec='$libname$release.a $libname.a'
  9952. soname_spec='$libname$release$shared_ext$major'
  9953. ;;
  9954. svr4,*) # full svr4 only
  9955. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9956. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9957. # We do not specify a path in Import Files, so LIBPATH fires.
  9958. shlibpath_overrides_runpath=yes
  9959. ;;
  9960. *,yes) # both, prefer svr4
  9961. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9962. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9963. # unpreferred sharedlib libNAME.a needs extra handling
  9964. 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"'
  9965. 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"'
  9966. # We do not specify a path in Import Files, so LIBPATH fires.
  9967. shlibpath_overrides_runpath=yes
  9968. ;;
  9969. *,no) # both, prefer aix
  9970. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9971. library_names_spec='$libname$release.a $libname.a'
  9972. soname_spec='$libname$release$shared_ext$major'
  9973. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9974. 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)'
  9975. 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"'
  9976. ;;
  9977. esac
  9978. shlibpath_var=LIBPATH
  9979. fi
  9980. ;;
  9981. amigaos*)
  9982. case $host_cpu in
  9983. powerpc)
  9984. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9985. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9987. ;;
  9988. m68k)
  9989. library_names_spec='$libname.ixlibrary $libname.a'
  9990. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9991. 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'
  9992. ;;
  9993. esac
  9994. ;;
  9995. beos*)
  9996. library_names_spec='$libname$shared_ext'
  9997. dynamic_linker="$host_os ld.so"
  9998. shlibpath_var=LIBRARY_PATH
  9999. ;;
  10000. bsdi[45]*)
  10001. version_type=linux # correct to gnu/linux during the next big refactor
  10002. need_version=no
  10003. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10004. soname_spec='$libname$release$shared_ext$major'
  10005. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10006. shlibpath_var=LD_LIBRARY_PATH
  10007. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10008. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10009. # the default ld.so.conf also contains /usr/contrib/lib and
  10010. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10011. # libtool to hard-code these into programs
  10012. ;;
  10013. cygwin* | mingw* | pw32* | cegcc*)
  10014. version_type=windows
  10015. shrext_cmds=.dll
  10016. need_version=no
  10017. need_lib_prefix=no
  10018. case $GCC,$cc_basename in
  10019. yes,*)
  10020. # gcc
  10021. library_names_spec='$libname.dll.a'
  10022. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10023. postinstall_cmds='base_file=`basename \$file`~
  10024. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10025. dldir=$destdir/`dirname \$dlpath`~
  10026. test -d \$dldir || mkdir -p \$dldir~
  10027. $install_prog $dir/$dlname \$dldir/$dlname~
  10028. chmod a+x \$dldir/$dlname~
  10029. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10030. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10031. fi'
  10032. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10033. dlpath=$dir/\$dldll~
  10034. $RM \$dlpath'
  10035. shlibpath_overrides_runpath=yes
  10036. case $host_os in
  10037. cygwin*)
  10038. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10039. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10040. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10041. ;;
  10042. mingw* | cegcc*)
  10043. # MinGW DLLs use traditional 'lib' prefix
  10044. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10045. ;;
  10046. pw32*)
  10047. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10048. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10049. ;;
  10050. esac
  10051. dynamic_linker='Win32 ld.exe'
  10052. ;;
  10053. *,cl*)
  10054. # Native MSVC
  10055. libname_spec='$name'
  10056. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10057. library_names_spec='$libname.dll.lib'
  10058. case $build_os in
  10059. mingw*)
  10060. sys_lib_search_path_spec=
  10061. lt_save_ifs=$IFS
  10062. IFS=';'
  10063. for lt_path in $LIB
  10064. do
  10065. IFS=$lt_save_ifs
  10066. # Let DOS variable expansion print the short 8.3 style file name.
  10067. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10068. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10069. done
  10070. IFS=$lt_save_ifs
  10071. # Convert to MSYS style.
  10072. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10073. ;;
  10074. cygwin*)
  10075. # Convert to unix form, then to dos form, then back to unix form
  10076. # but this time dos style (no spaces!) so that the unix form looks
  10077. # like /cygdrive/c/PROGRA~1:/cygdr...
  10078. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10079. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10080. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10081. ;;
  10082. *)
  10083. sys_lib_search_path_spec=$LIB
  10084. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10085. # It is most probably a Windows format PATH.
  10086. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10087. else
  10088. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10089. fi
  10090. # FIXME: find the short name or the path components, as spaces are
  10091. # common. (e.g. "Program Files" -> "PROGRA~1")
  10092. ;;
  10093. esac
  10094. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10095. postinstall_cmds='base_file=`basename \$file`~
  10096. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10097. dldir=$destdir/`dirname \$dlpath`~
  10098. test -d \$dldir || mkdir -p \$dldir~
  10099. $install_prog $dir/$dlname \$dldir/$dlname'
  10100. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10101. dlpath=$dir/\$dldll~
  10102. $RM \$dlpath'
  10103. shlibpath_overrides_runpath=yes
  10104. dynamic_linker='Win32 link.exe'
  10105. ;;
  10106. *)
  10107. # Assume MSVC wrapper
  10108. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10109. dynamic_linker='Win32 ld.exe'
  10110. ;;
  10111. esac
  10112. # FIXME: first we should search . and the directory the executable is in
  10113. shlibpath_var=PATH
  10114. ;;
  10115. darwin* | rhapsody*)
  10116. dynamic_linker="$host_os dyld"
  10117. version_type=darwin
  10118. need_lib_prefix=no
  10119. need_version=no
  10120. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10121. soname_spec='$libname$release$major$shared_ext'
  10122. shlibpath_overrides_runpath=yes
  10123. shlibpath_var=DYLD_LIBRARY_PATH
  10124. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10125. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10126. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10127. ;;
  10128. dgux*)
  10129. version_type=linux # correct to gnu/linux during the next big refactor
  10130. need_lib_prefix=no
  10131. need_version=no
  10132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10133. soname_spec='$libname$release$shared_ext$major'
  10134. shlibpath_var=LD_LIBRARY_PATH
  10135. ;;
  10136. freebsd* | dragonfly*)
  10137. # DragonFly does not have aout. When/if they implement a new
  10138. # versioning mechanism, adjust this.
  10139. if test -x /usr/bin/objformat; then
  10140. objformat=`/usr/bin/objformat`
  10141. else
  10142. case $host_os in
  10143. freebsd[23].*) objformat=aout ;;
  10144. *) objformat=elf ;;
  10145. esac
  10146. fi
  10147. version_type=freebsd-$objformat
  10148. case $version_type in
  10149. freebsd-elf*)
  10150. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10151. soname_spec='$libname$release$shared_ext$major'
  10152. need_version=no
  10153. need_lib_prefix=no
  10154. ;;
  10155. freebsd-*)
  10156. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10157. need_version=yes
  10158. ;;
  10159. esac
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. case $host_os in
  10162. freebsd2.*)
  10163. shlibpath_overrides_runpath=yes
  10164. ;;
  10165. freebsd3.[01]* | freebsdelf3.[01]*)
  10166. shlibpath_overrides_runpath=yes
  10167. hardcode_into_libs=yes
  10168. ;;
  10169. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10170. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10171. shlibpath_overrides_runpath=no
  10172. hardcode_into_libs=yes
  10173. ;;
  10174. *) # from 4.6 on, and DragonFly
  10175. shlibpath_overrides_runpath=yes
  10176. hardcode_into_libs=yes
  10177. ;;
  10178. esac
  10179. ;;
  10180. haiku*)
  10181. version_type=linux # correct to gnu/linux during the next big refactor
  10182. need_lib_prefix=no
  10183. need_version=no
  10184. dynamic_linker="$host_os runtime_loader"
  10185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10186. soname_spec='$libname$release$shared_ext$major'
  10187. shlibpath_var=LIBRARY_PATH
  10188. shlibpath_overrides_runpath=no
  10189. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10190. hardcode_into_libs=yes
  10191. ;;
  10192. hpux9* | hpux10* | hpux11*)
  10193. # Give a soname corresponding to the major version so that dld.sl refuses to
  10194. # link against other versions.
  10195. version_type=sunos
  10196. need_lib_prefix=no
  10197. need_version=no
  10198. case $host_cpu in
  10199. ia64*)
  10200. shrext_cmds='.so'
  10201. hardcode_into_libs=yes
  10202. dynamic_linker="$host_os dld.so"
  10203. shlibpath_var=LD_LIBRARY_PATH
  10204. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10205. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10206. soname_spec='$libname$release$shared_ext$major'
  10207. if test 32 = "$HPUX_IA64_MODE"; then
  10208. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10209. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10210. else
  10211. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10212. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10213. fi
  10214. ;;
  10215. hppa*64*)
  10216. shrext_cmds='.sl'
  10217. hardcode_into_libs=yes
  10218. dynamic_linker="$host_os dld.sl"
  10219. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10220. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10221. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10222. soname_spec='$libname$release$shared_ext$major'
  10223. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10224. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10225. ;;
  10226. *)
  10227. shrext_cmds='.sl'
  10228. dynamic_linker="$host_os dld.sl"
  10229. shlibpath_var=SHLIB_PATH
  10230. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10232. soname_spec='$libname$release$shared_ext$major'
  10233. ;;
  10234. esac
  10235. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10236. postinstall_cmds='chmod 555 $lib'
  10237. # or fails outright, so override atomically:
  10238. install_override_mode=555
  10239. ;;
  10240. interix[3-9]*)
  10241. version_type=linux # correct to gnu/linux during the next big refactor
  10242. need_lib_prefix=no
  10243. need_version=no
  10244. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10245. soname_spec='$libname$release$shared_ext$major'
  10246. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10247. shlibpath_var=LD_LIBRARY_PATH
  10248. shlibpath_overrides_runpath=no
  10249. hardcode_into_libs=yes
  10250. ;;
  10251. irix5* | irix6* | nonstopux*)
  10252. case $host_os in
  10253. nonstopux*) version_type=nonstopux ;;
  10254. *)
  10255. if test yes = "$lt_cv_prog_gnu_ld"; then
  10256. version_type=linux # correct to gnu/linux during the next big refactor
  10257. else
  10258. version_type=irix
  10259. fi ;;
  10260. esac
  10261. need_lib_prefix=no
  10262. need_version=no
  10263. soname_spec='$libname$release$shared_ext$major'
  10264. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10265. case $host_os in
  10266. irix5* | nonstopux*)
  10267. libsuff= shlibsuff=
  10268. ;;
  10269. *)
  10270. case $LD in # libtool.m4 will add one of these switches to LD
  10271. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10272. libsuff= shlibsuff= libmagic=32-bit;;
  10273. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10274. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10275. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10276. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10277. *) libsuff= shlibsuff= libmagic=never-match;;
  10278. esac
  10279. ;;
  10280. esac
  10281. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10282. shlibpath_overrides_runpath=no
  10283. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10284. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10285. hardcode_into_libs=yes
  10286. ;;
  10287. # No shared lib support for Linux oldld, aout, or coff.
  10288. linux*oldld* | linux*aout* | linux*coff*)
  10289. dynamic_linker=no
  10290. ;;
  10291. linux*android*)
  10292. version_type=none # Android doesn't support versioned libraries.
  10293. need_lib_prefix=no
  10294. need_version=no
  10295. library_names_spec='$libname$release$shared_ext'
  10296. soname_spec='$libname$release$shared_ext'
  10297. finish_cmds=
  10298. shlibpath_var=LD_LIBRARY_PATH
  10299. shlibpath_overrides_runpath=yes
  10300. # This implies no fast_install, which is unacceptable.
  10301. # Some rework will be needed to allow for fast_install
  10302. # before this can be enabled.
  10303. hardcode_into_libs=yes
  10304. dynamic_linker='Android linker'
  10305. # Don't embed -rpath directories since the linker doesn't support them.
  10306. hardcode_libdir_flag_spec='-L$libdir'
  10307. ;;
  10308. # This must be glibc/ELF.
  10309. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10310. version_type=linux # correct to gnu/linux during the next big refactor
  10311. need_lib_prefix=no
  10312. need_version=no
  10313. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10314. soname_spec='$libname$release$shared_ext$major'
  10315. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10316. shlibpath_var=LD_LIBRARY_PATH
  10317. shlibpath_overrides_runpath=no
  10318. # Some binutils ld are patched to set DT_RUNPATH
  10319. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10320. $as_echo_n "(cached) " >&6
  10321. else
  10322. lt_cv_shlibpath_overrides_runpath=no
  10323. save_LDFLAGS=$LDFLAGS
  10324. save_libdir=$libdir
  10325. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10326. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10328. /* end confdefs.h. */
  10329. int
  10330. main ()
  10331. {
  10332. ;
  10333. return 0;
  10334. }
  10335. _ACEOF
  10336. if ac_fn_c_try_link "$LINENO"; then :
  10337. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10338. lt_cv_shlibpath_overrides_runpath=yes
  10339. fi
  10340. fi
  10341. rm -f core conftest.err conftest.$ac_objext \
  10342. conftest$ac_exeext conftest.$ac_ext
  10343. LDFLAGS=$save_LDFLAGS
  10344. libdir=$save_libdir
  10345. fi
  10346. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10347. # This implies no fast_install, which is unacceptable.
  10348. # Some rework will be needed to allow for fast_install
  10349. # before this can be enabled.
  10350. hardcode_into_libs=yes
  10351. # Ideally, we could use ldconfig to report *all* directores which are
  10352. # searched for libraries, however this is still not possible. Aside from not
  10353. # being certain /sbin/ldconfig is available, command
  10354. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10355. # even though it is searched at run-time. Try to do the best guess by
  10356. # appending ld.so.conf contents (and includes) to the search path.
  10357. if test -f /etc/ld.so.conf; then
  10358. 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' ' '`
  10359. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10360. fi
  10361. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10362. # powerpc, because MkLinux only supported shared libraries with the
  10363. # GNU dynamic linker. Since this was broken with cross compilers,
  10364. # most powerpc-linux boxes support dynamic linking these days and
  10365. # people can always --disable-shared, the test was removed, and we
  10366. # assume the GNU/Linux dynamic linker is in use.
  10367. dynamic_linker='GNU/Linux ld.so'
  10368. ;;
  10369. netbsdelf*-gnu)
  10370. version_type=linux
  10371. need_lib_prefix=no
  10372. need_version=no
  10373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10374. soname_spec='${libname}${release}${shared_ext}$major'
  10375. shlibpath_var=LD_LIBRARY_PATH
  10376. shlibpath_overrides_runpath=no
  10377. hardcode_into_libs=yes
  10378. dynamic_linker='NetBSD ld.elf_so'
  10379. ;;
  10380. netbsd*)
  10381. version_type=sunos
  10382. need_lib_prefix=no
  10383. need_version=no
  10384. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10385. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10386. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10387. dynamic_linker='NetBSD (a.out) ld.so'
  10388. else
  10389. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10390. soname_spec='$libname$release$shared_ext$major'
  10391. dynamic_linker='NetBSD ld.elf_so'
  10392. fi
  10393. shlibpath_var=LD_LIBRARY_PATH
  10394. shlibpath_overrides_runpath=yes
  10395. hardcode_into_libs=yes
  10396. ;;
  10397. newsos6)
  10398. version_type=linux # correct to gnu/linux during the next big refactor
  10399. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10400. shlibpath_var=LD_LIBRARY_PATH
  10401. shlibpath_overrides_runpath=yes
  10402. ;;
  10403. *nto* | *qnx*)
  10404. version_type=qnx
  10405. need_lib_prefix=no
  10406. need_version=no
  10407. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10408. soname_spec='$libname$release$shared_ext$major'
  10409. shlibpath_var=LD_LIBRARY_PATH
  10410. shlibpath_overrides_runpath=no
  10411. hardcode_into_libs=yes
  10412. dynamic_linker='ldqnx.so'
  10413. ;;
  10414. openbsd* | bitrig*)
  10415. version_type=sunos
  10416. sys_lib_dlsearch_path_spec=/usr/lib
  10417. need_lib_prefix=no
  10418. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10419. need_version=no
  10420. else
  10421. need_version=yes
  10422. fi
  10423. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10424. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10425. shlibpath_var=LD_LIBRARY_PATH
  10426. shlibpath_overrides_runpath=yes
  10427. ;;
  10428. os2*)
  10429. libname_spec='$name'
  10430. version_type=windows
  10431. shrext_cmds=.dll
  10432. need_version=no
  10433. need_lib_prefix=no
  10434. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10435. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10436. v=$($ECHO $release$versuffix | tr -d .-);
  10437. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10438. $ECHO $n$v`$shared_ext'
  10439. library_names_spec='${libname}_dll.$libext'
  10440. dynamic_linker='OS/2 ld.exe'
  10441. shlibpath_var=BEGINLIBPATH
  10442. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10443. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10444. postinstall_cmds='base_file=`basename \$file`~
  10445. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10446. dldir=$destdir/`dirname \$dlpath`~
  10447. test -d \$dldir || mkdir -p \$dldir~
  10448. $install_prog $dir/$dlname \$dldir/$dlname~
  10449. chmod a+x \$dldir/$dlname~
  10450. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10451. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10452. fi'
  10453. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10454. dlpath=$dir/\$dldll~
  10455. $RM \$dlpath'
  10456. ;;
  10457. osf3* | osf4* | osf5*)
  10458. version_type=osf
  10459. need_lib_prefix=no
  10460. need_version=no
  10461. soname_spec='$libname$release$shared_ext$major'
  10462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10463. shlibpath_var=LD_LIBRARY_PATH
  10464. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10465. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10466. ;;
  10467. rdos*)
  10468. dynamic_linker=no
  10469. ;;
  10470. solaris*)
  10471. version_type=linux # correct to gnu/linux during the next big refactor
  10472. need_lib_prefix=no
  10473. need_version=no
  10474. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10475. soname_spec='$libname$release$shared_ext$major'
  10476. shlibpath_var=LD_LIBRARY_PATH
  10477. shlibpath_overrides_runpath=yes
  10478. hardcode_into_libs=yes
  10479. # ldd complains unless libraries are executable
  10480. postinstall_cmds='chmod +x $lib'
  10481. ;;
  10482. sunos4*)
  10483. version_type=sunos
  10484. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10485. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10486. shlibpath_var=LD_LIBRARY_PATH
  10487. shlibpath_overrides_runpath=yes
  10488. if test yes = "$with_gnu_ld"; then
  10489. need_lib_prefix=no
  10490. fi
  10491. need_version=yes
  10492. ;;
  10493. sysv4 | sysv4.3*)
  10494. version_type=linux # correct to gnu/linux during the next big refactor
  10495. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10496. soname_spec='$libname$release$shared_ext$major'
  10497. shlibpath_var=LD_LIBRARY_PATH
  10498. case $host_vendor in
  10499. sni)
  10500. shlibpath_overrides_runpath=no
  10501. need_lib_prefix=no
  10502. runpath_var=LD_RUN_PATH
  10503. ;;
  10504. siemens)
  10505. need_lib_prefix=no
  10506. ;;
  10507. motorola)
  10508. need_lib_prefix=no
  10509. need_version=no
  10510. shlibpath_overrides_runpath=no
  10511. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10512. ;;
  10513. esac
  10514. ;;
  10515. sysv4*MP*)
  10516. if test -d /usr/nec; then
  10517. version_type=linux # correct to gnu/linux during the next big refactor
  10518. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10519. soname_spec='$libname$shared_ext.$major'
  10520. shlibpath_var=LD_LIBRARY_PATH
  10521. fi
  10522. ;;
  10523. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10524. version_type=sco
  10525. need_lib_prefix=no
  10526. need_version=no
  10527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10528. soname_spec='$libname$release$shared_ext$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. shlibpath_overrides_runpath=yes
  10531. hardcode_into_libs=yes
  10532. if test yes = "$with_gnu_ld"; then
  10533. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10534. else
  10535. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10536. case $host_os in
  10537. sco3.2v5*)
  10538. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10539. ;;
  10540. esac
  10541. fi
  10542. sys_lib_dlsearch_path_spec='/usr/lib'
  10543. ;;
  10544. tpf*)
  10545. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10546. version_type=linux # correct to gnu/linux during the next big refactor
  10547. need_lib_prefix=no
  10548. need_version=no
  10549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10550. shlibpath_var=LD_LIBRARY_PATH
  10551. shlibpath_overrides_runpath=no
  10552. hardcode_into_libs=yes
  10553. ;;
  10554. uts4*)
  10555. version_type=linux # correct to gnu/linux during the next big refactor
  10556. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10557. soname_spec='$libname$release$shared_ext$major'
  10558. shlibpath_var=LD_LIBRARY_PATH
  10559. ;;
  10560. *)
  10561. dynamic_linker=no
  10562. ;;
  10563. esac
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10565. $as_echo "$dynamic_linker" >&6; }
  10566. test no = "$dynamic_linker" && can_build_shared=no
  10567. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10568. if test yes = "$GCC"; then
  10569. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10570. fi
  10571. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10572. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10573. fi
  10574. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10575. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10576. fi
  10577. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10578. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10579. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10580. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10581. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10582. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10584. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10585. hardcode_action=
  10586. if test -n "$hardcode_libdir_flag_spec" ||
  10587. test -n "$runpath_var" ||
  10588. test yes = "$hardcode_automatic"; then
  10589. # We can hardcode non-existent directories.
  10590. if test no != "$hardcode_direct" &&
  10591. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10592. # have to relink, otherwise we might link with an installed library
  10593. # when we should be linking with a yet-to-be-installed one
  10594. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10595. test no != "$hardcode_minus_L"; then
  10596. # Linking always hardcodes the temporary library directory.
  10597. hardcode_action=relink
  10598. else
  10599. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10600. hardcode_action=immediate
  10601. fi
  10602. else
  10603. # We cannot hardcode anything, or else we can only hardcode existing
  10604. # directories.
  10605. hardcode_action=unsupported
  10606. fi
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10608. $as_echo "$hardcode_action" >&6; }
  10609. if test relink = "$hardcode_action" ||
  10610. test yes = "$inherit_rpath"; then
  10611. # Fast installation is not supported
  10612. enable_fast_install=no
  10613. elif test yes = "$shlibpath_overrides_runpath" ||
  10614. test no = "$enable_shared"; then
  10615. # Fast installation is not necessary
  10616. enable_fast_install=needless
  10617. fi
  10618. if test yes != "$enable_dlopen"; then
  10619. enable_dlopen=unknown
  10620. enable_dlopen_self=unknown
  10621. enable_dlopen_self_static=unknown
  10622. else
  10623. lt_cv_dlopen=no
  10624. lt_cv_dlopen_libs=
  10625. case $host_os in
  10626. beos*)
  10627. lt_cv_dlopen=load_add_on
  10628. lt_cv_dlopen_libs=
  10629. lt_cv_dlopen_self=yes
  10630. ;;
  10631. mingw* | pw32* | cegcc*)
  10632. lt_cv_dlopen=LoadLibrary
  10633. lt_cv_dlopen_libs=
  10634. ;;
  10635. cygwin*)
  10636. lt_cv_dlopen=dlopen
  10637. lt_cv_dlopen_libs=
  10638. ;;
  10639. darwin*)
  10640. # if libdl is installed we need to link against it
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10642. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10643. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. ac_check_lib_save_LIBS=$LIBS
  10647. LIBS="-ldl $LIBS"
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. /* Override any GCC internal prototype to avoid an error.
  10651. Use char because int might match the return type of a GCC
  10652. builtin and then its argument prototype would still apply. */
  10653. #ifdef __cplusplus
  10654. extern "C"
  10655. #endif
  10656. char dlopen ();
  10657. int
  10658. main ()
  10659. {
  10660. return dlopen ();
  10661. ;
  10662. return 0;
  10663. }
  10664. _ACEOF
  10665. if ac_fn_c_try_link "$LINENO"; then :
  10666. ac_cv_lib_dl_dlopen=yes
  10667. else
  10668. ac_cv_lib_dl_dlopen=no
  10669. fi
  10670. rm -f core conftest.err conftest.$ac_objext \
  10671. conftest$ac_exeext conftest.$ac_ext
  10672. LIBS=$ac_check_lib_save_LIBS
  10673. fi
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10675. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10676. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10677. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10678. else
  10679. lt_cv_dlopen=dyld
  10680. lt_cv_dlopen_libs=
  10681. lt_cv_dlopen_self=yes
  10682. fi
  10683. ;;
  10684. tpf*)
  10685. # Don't try to run any link tests for TPF. We know it's impossible
  10686. # because TPF is a cross-compiler, and we know how we open DSOs.
  10687. lt_cv_dlopen=dlopen
  10688. lt_cv_dlopen_libs=
  10689. lt_cv_dlopen_self=no
  10690. ;;
  10691. *)
  10692. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10693. if test "x$ac_cv_func_shl_load" = xyes; then :
  10694. lt_cv_dlopen=shl_load
  10695. else
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10697. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10698. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10699. $as_echo_n "(cached) " >&6
  10700. else
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-ldld $LIBS"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. /* Override any GCC internal prototype to avoid an error.
  10706. Use char because int might match the return type of a GCC
  10707. builtin and then its argument prototype would still apply. */
  10708. #ifdef __cplusplus
  10709. extern "C"
  10710. #endif
  10711. char shl_load ();
  10712. int
  10713. main ()
  10714. {
  10715. return shl_load ();
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_c_try_link "$LINENO"; then :
  10721. ac_cv_lib_dld_shl_load=yes
  10722. else
  10723. ac_cv_lib_dld_shl_load=no
  10724. fi
  10725. rm -f core conftest.err conftest.$ac_objext \
  10726. conftest$ac_exeext conftest.$ac_ext
  10727. LIBS=$ac_check_lib_save_LIBS
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10730. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10731. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10732. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10733. else
  10734. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10735. if test "x$ac_cv_func_dlopen" = xyes; then :
  10736. lt_cv_dlopen=dlopen
  10737. else
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10739. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10740. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10741. $as_echo_n "(cached) " >&6
  10742. else
  10743. ac_check_lib_save_LIBS=$LIBS
  10744. LIBS="-ldl $LIBS"
  10745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10746. /* end confdefs.h. */
  10747. /* Override any GCC internal prototype to avoid an error.
  10748. Use char because int might match the return type of a GCC
  10749. builtin and then its argument prototype would still apply. */
  10750. #ifdef __cplusplus
  10751. extern "C"
  10752. #endif
  10753. char dlopen ();
  10754. int
  10755. main ()
  10756. {
  10757. return dlopen ();
  10758. ;
  10759. return 0;
  10760. }
  10761. _ACEOF
  10762. if ac_fn_c_try_link "$LINENO"; then :
  10763. ac_cv_lib_dl_dlopen=yes
  10764. else
  10765. ac_cv_lib_dl_dlopen=no
  10766. fi
  10767. rm -f core conftest.err conftest.$ac_objext \
  10768. conftest$ac_exeext conftest.$ac_ext
  10769. LIBS=$ac_check_lib_save_LIBS
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10772. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10773. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10774. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10775. else
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10777. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10778. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. ac_check_lib_save_LIBS=$LIBS
  10782. LIBS="-lsvld $LIBS"
  10783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10784. /* end confdefs.h. */
  10785. /* Override any GCC internal prototype to avoid an error.
  10786. Use char because int might match the return type of a GCC
  10787. builtin and then its argument prototype would still apply. */
  10788. #ifdef __cplusplus
  10789. extern "C"
  10790. #endif
  10791. char dlopen ();
  10792. int
  10793. main ()
  10794. {
  10795. return dlopen ();
  10796. ;
  10797. return 0;
  10798. }
  10799. _ACEOF
  10800. if ac_fn_c_try_link "$LINENO"; then :
  10801. ac_cv_lib_svld_dlopen=yes
  10802. else
  10803. ac_cv_lib_svld_dlopen=no
  10804. fi
  10805. rm -f core conftest.err conftest.$ac_objext \
  10806. conftest$ac_exeext conftest.$ac_ext
  10807. LIBS=$ac_check_lib_save_LIBS
  10808. fi
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10810. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10811. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10812. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10813. else
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10815. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10816. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10817. $as_echo_n "(cached) " >&6
  10818. else
  10819. ac_check_lib_save_LIBS=$LIBS
  10820. LIBS="-ldld $LIBS"
  10821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10822. /* end confdefs.h. */
  10823. /* Override any GCC internal prototype to avoid an error.
  10824. Use char because int might match the return type of a GCC
  10825. builtin and then its argument prototype would still apply. */
  10826. #ifdef __cplusplus
  10827. extern "C"
  10828. #endif
  10829. char dld_link ();
  10830. int
  10831. main ()
  10832. {
  10833. return dld_link ();
  10834. ;
  10835. return 0;
  10836. }
  10837. _ACEOF
  10838. if ac_fn_c_try_link "$LINENO"; then :
  10839. ac_cv_lib_dld_dld_link=yes
  10840. else
  10841. ac_cv_lib_dld_dld_link=no
  10842. fi
  10843. rm -f core conftest.err conftest.$ac_objext \
  10844. conftest$ac_exeext conftest.$ac_ext
  10845. LIBS=$ac_check_lib_save_LIBS
  10846. fi
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10848. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10849. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10850. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10851. fi
  10852. fi
  10853. fi
  10854. fi
  10855. fi
  10856. fi
  10857. ;;
  10858. esac
  10859. if test no = "$lt_cv_dlopen"; then
  10860. enable_dlopen=no
  10861. else
  10862. enable_dlopen=yes
  10863. fi
  10864. case $lt_cv_dlopen in
  10865. dlopen)
  10866. save_CPPFLAGS=$CPPFLAGS
  10867. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10868. save_LDFLAGS=$LDFLAGS
  10869. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10870. save_LIBS=$LIBS
  10871. LIBS="$lt_cv_dlopen_libs $LIBS"
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10873. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10874. if ${lt_cv_dlopen_self+:} false; then :
  10875. $as_echo_n "(cached) " >&6
  10876. else
  10877. if test yes = "$cross_compiling"; then :
  10878. lt_cv_dlopen_self=cross
  10879. else
  10880. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10881. lt_status=$lt_dlunknown
  10882. cat > conftest.$ac_ext <<_LT_EOF
  10883. #line $LINENO "configure"
  10884. #include "confdefs.h"
  10885. #if HAVE_DLFCN_H
  10886. #include <dlfcn.h>
  10887. #endif
  10888. #include <stdio.h>
  10889. #ifdef RTLD_GLOBAL
  10890. # define LT_DLGLOBAL RTLD_GLOBAL
  10891. #else
  10892. # ifdef DL_GLOBAL
  10893. # define LT_DLGLOBAL DL_GLOBAL
  10894. # else
  10895. # define LT_DLGLOBAL 0
  10896. # endif
  10897. #endif
  10898. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10899. find out it does not work in some platform. */
  10900. #ifndef LT_DLLAZY_OR_NOW
  10901. # ifdef RTLD_LAZY
  10902. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10903. # else
  10904. # ifdef DL_LAZY
  10905. # define LT_DLLAZY_OR_NOW DL_LAZY
  10906. # else
  10907. # ifdef RTLD_NOW
  10908. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10909. # else
  10910. # ifdef DL_NOW
  10911. # define LT_DLLAZY_OR_NOW DL_NOW
  10912. # else
  10913. # define LT_DLLAZY_OR_NOW 0
  10914. # endif
  10915. # endif
  10916. # endif
  10917. # endif
  10918. #endif
  10919. /* When -fvisibility=hidden is used, assume the code has been annotated
  10920. correspondingly for the symbols needed. */
  10921. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10922. int fnord () __attribute__((visibility("default")));
  10923. #endif
  10924. int fnord () { return 42; }
  10925. int main ()
  10926. {
  10927. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10928. int status = $lt_dlunknown;
  10929. if (self)
  10930. {
  10931. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10932. else
  10933. {
  10934. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10935. else puts (dlerror ());
  10936. }
  10937. /* dlclose (self); */
  10938. }
  10939. else
  10940. puts (dlerror ());
  10941. return status;
  10942. }
  10943. _LT_EOF
  10944. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10945. (eval $ac_link) 2>&5
  10946. ac_status=$?
  10947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10948. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10949. (./conftest; exit; ) >&5 2>/dev/null
  10950. lt_status=$?
  10951. case x$lt_status in
  10952. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10953. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10954. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10955. esac
  10956. else :
  10957. # compilation failed
  10958. lt_cv_dlopen_self=no
  10959. fi
  10960. fi
  10961. rm -fr conftest*
  10962. fi
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10964. $as_echo "$lt_cv_dlopen_self" >&6; }
  10965. if test yes = "$lt_cv_dlopen_self"; then
  10966. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10968. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10969. if ${lt_cv_dlopen_self_static+:} false; then :
  10970. $as_echo_n "(cached) " >&6
  10971. else
  10972. if test yes = "$cross_compiling"; then :
  10973. lt_cv_dlopen_self_static=cross
  10974. else
  10975. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10976. lt_status=$lt_dlunknown
  10977. cat > conftest.$ac_ext <<_LT_EOF
  10978. #line $LINENO "configure"
  10979. #include "confdefs.h"
  10980. #if HAVE_DLFCN_H
  10981. #include <dlfcn.h>
  10982. #endif
  10983. #include <stdio.h>
  10984. #ifdef RTLD_GLOBAL
  10985. # define LT_DLGLOBAL RTLD_GLOBAL
  10986. #else
  10987. # ifdef DL_GLOBAL
  10988. # define LT_DLGLOBAL DL_GLOBAL
  10989. # else
  10990. # define LT_DLGLOBAL 0
  10991. # endif
  10992. #endif
  10993. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10994. find out it does not work in some platform. */
  10995. #ifndef LT_DLLAZY_OR_NOW
  10996. # ifdef RTLD_LAZY
  10997. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10998. # else
  10999. # ifdef DL_LAZY
  11000. # define LT_DLLAZY_OR_NOW DL_LAZY
  11001. # else
  11002. # ifdef RTLD_NOW
  11003. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11004. # else
  11005. # ifdef DL_NOW
  11006. # define LT_DLLAZY_OR_NOW DL_NOW
  11007. # else
  11008. # define LT_DLLAZY_OR_NOW 0
  11009. # endif
  11010. # endif
  11011. # endif
  11012. # endif
  11013. #endif
  11014. /* When -fvisibility=hidden is used, assume the code has been annotated
  11015. correspondingly for the symbols needed. */
  11016. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11017. int fnord () __attribute__((visibility("default")));
  11018. #endif
  11019. int fnord () { return 42; }
  11020. int main ()
  11021. {
  11022. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11023. int status = $lt_dlunknown;
  11024. if (self)
  11025. {
  11026. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11027. else
  11028. {
  11029. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11030. else puts (dlerror ());
  11031. }
  11032. /* dlclose (self); */
  11033. }
  11034. else
  11035. puts (dlerror ());
  11036. return status;
  11037. }
  11038. _LT_EOF
  11039. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11040. (eval $ac_link) 2>&5
  11041. ac_status=$?
  11042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11043. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11044. (./conftest; exit; ) >&5 2>/dev/null
  11045. lt_status=$?
  11046. case x$lt_status in
  11047. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11048. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11049. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11050. esac
  11051. else :
  11052. # compilation failed
  11053. lt_cv_dlopen_self_static=no
  11054. fi
  11055. fi
  11056. rm -fr conftest*
  11057. fi
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11059. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11060. fi
  11061. CPPFLAGS=$save_CPPFLAGS
  11062. LDFLAGS=$save_LDFLAGS
  11063. LIBS=$save_LIBS
  11064. ;;
  11065. esac
  11066. case $lt_cv_dlopen_self in
  11067. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11068. *) enable_dlopen_self=unknown ;;
  11069. esac
  11070. case $lt_cv_dlopen_self_static in
  11071. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11072. *) enable_dlopen_self_static=unknown ;;
  11073. esac
  11074. fi
  11075. striplib=
  11076. old_striplib=
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11078. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11079. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11080. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11081. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11083. $as_echo "yes" >&6; }
  11084. else
  11085. # FIXME - insert some real tests, host_os isn't really good enough
  11086. case $host_os in
  11087. darwin*)
  11088. if test -n "$STRIP"; then
  11089. striplib="$STRIP -x"
  11090. old_striplib="$STRIP -S"
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11092. $as_echo "yes" >&6; }
  11093. else
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11095. $as_echo "no" >&6; }
  11096. fi
  11097. ;;
  11098. *)
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11100. $as_echo "no" >&6; }
  11101. ;;
  11102. esac
  11103. fi
  11104. # Report what library types will actually be built
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11106. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11108. $as_echo "$can_build_shared" >&6; }
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11110. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11111. test no = "$can_build_shared" && enable_shared=no
  11112. # On AIX, shared libraries and static libraries use the same namespace, and
  11113. # are all built from PIC.
  11114. case $host_os in
  11115. aix3*)
  11116. test yes = "$enable_shared" && enable_static=no
  11117. if test -n "$RANLIB"; then
  11118. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11119. postinstall_cmds='$RANLIB $lib'
  11120. fi
  11121. ;;
  11122. aix[4-9]*)
  11123. if test ia64 != "$host_cpu"; then
  11124. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11125. yes,aix,yes) ;; # shared object as lib.so file only
  11126. yes,svr4,*) ;; # shared object as lib.so archive member only
  11127. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11128. esac
  11129. fi
  11130. ;;
  11131. esac
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11133. $as_echo "$enable_shared" >&6; }
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11135. $as_echo_n "checking whether to build static libraries... " >&6; }
  11136. # Make sure either enable_shared or enable_static is yes.
  11137. test yes = "$enable_shared" || enable_static=yes
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11139. $as_echo "$enable_static" >&6; }
  11140. fi
  11141. ac_ext=c
  11142. ac_cpp='$CPP $CPPFLAGS'
  11143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11146. CC=$lt_save_CC
  11147. if test -n "$CXX" && ( test no != "$CXX" &&
  11148. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11149. (test g++ != "$CXX"))); then
  11150. ac_ext=cpp
  11151. ac_cpp='$CXXCPP $CPPFLAGS'
  11152. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11153. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11154. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11156. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11157. if test -z "$CXXCPP"; then
  11158. if ${ac_cv_prog_CXXCPP+:} false; then :
  11159. $as_echo_n "(cached) " >&6
  11160. else
  11161. # Double quotes because CXXCPP needs to be expanded
  11162. for CXXCPP in "$CXX -E" "/lib/cpp"
  11163. do
  11164. ac_preproc_ok=false
  11165. for ac_cxx_preproc_warn_flag in '' yes
  11166. do
  11167. # Use a header file that comes with gcc, so configuring glibc
  11168. # with a fresh cross-compiler works.
  11169. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11170. # <limits.h> exists even on freestanding compilers.
  11171. # On the NeXT, cc -E runs the code through the compiler's parser,
  11172. # not just through cpp. "Syntax error" is here to catch this case.
  11173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11174. /* end confdefs.h. */
  11175. #ifdef __STDC__
  11176. # include <limits.h>
  11177. #else
  11178. # include <assert.h>
  11179. #endif
  11180. Syntax error
  11181. _ACEOF
  11182. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11183. else
  11184. # Broken: fails on valid input.
  11185. continue
  11186. fi
  11187. rm -f conftest.err conftest.i conftest.$ac_ext
  11188. # OK, works on sane cases. Now check whether nonexistent headers
  11189. # can be detected and how.
  11190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11191. /* end confdefs.h. */
  11192. #include <ac_nonexistent.h>
  11193. _ACEOF
  11194. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11195. # Broken: success on invalid input.
  11196. continue
  11197. else
  11198. # Passes both tests.
  11199. ac_preproc_ok=:
  11200. break
  11201. fi
  11202. rm -f conftest.err conftest.i conftest.$ac_ext
  11203. done
  11204. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11205. rm -f conftest.i conftest.err conftest.$ac_ext
  11206. if $ac_preproc_ok; then :
  11207. break
  11208. fi
  11209. done
  11210. ac_cv_prog_CXXCPP=$CXXCPP
  11211. fi
  11212. CXXCPP=$ac_cv_prog_CXXCPP
  11213. else
  11214. ac_cv_prog_CXXCPP=$CXXCPP
  11215. fi
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11217. $as_echo "$CXXCPP" >&6; }
  11218. ac_preproc_ok=false
  11219. for ac_cxx_preproc_warn_flag in '' yes
  11220. do
  11221. # Use a header file that comes with gcc, so configuring glibc
  11222. # with a fresh cross-compiler works.
  11223. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11224. # <limits.h> exists even on freestanding compilers.
  11225. # On the NeXT, cc -E runs the code through the compiler's parser,
  11226. # not just through cpp. "Syntax error" is here to catch this case.
  11227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11228. /* end confdefs.h. */
  11229. #ifdef __STDC__
  11230. # include <limits.h>
  11231. #else
  11232. # include <assert.h>
  11233. #endif
  11234. Syntax error
  11235. _ACEOF
  11236. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11237. else
  11238. # Broken: fails on valid input.
  11239. continue
  11240. fi
  11241. rm -f conftest.err conftest.i conftest.$ac_ext
  11242. # OK, works on sane cases. Now check whether nonexistent headers
  11243. # can be detected and how.
  11244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11245. /* end confdefs.h. */
  11246. #include <ac_nonexistent.h>
  11247. _ACEOF
  11248. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11249. # Broken: success on invalid input.
  11250. continue
  11251. else
  11252. # Passes both tests.
  11253. ac_preproc_ok=:
  11254. break
  11255. fi
  11256. rm -f conftest.err conftest.i conftest.$ac_ext
  11257. done
  11258. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11259. rm -f conftest.i conftest.err conftest.$ac_ext
  11260. if $ac_preproc_ok; then :
  11261. else
  11262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11264. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11265. See \`config.log' for more details" "$LINENO" 5; }
  11266. fi
  11267. ac_ext=c
  11268. ac_cpp='$CPP $CPPFLAGS'
  11269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11272. else
  11273. _lt_caught_CXX_error=yes
  11274. fi
  11275. ac_ext=cpp
  11276. ac_cpp='$CXXCPP $CPPFLAGS'
  11277. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11278. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11279. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11280. archive_cmds_need_lc_CXX=no
  11281. allow_undefined_flag_CXX=
  11282. always_export_symbols_CXX=no
  11283. archive_expsym_cmds_CXX=
  11284. compiler_needs_object_CXX=no
  11285. export_dynamic_flag_spec_CXX=
  11286. hardcode_direct_CXX=no
  11287. hardcode_direct_absolute_CXX=no
  11288. hardcode_libdir_flag_spec_CXX=
  11289. hardcode_libdir_separator_CXX=
  11290. hardcode_minus_L_CXX=no
  11291. hardcode_shlibpath_var_CXX=unsupported
  11292. hardcode_automatic_CXX=no
  11293. inherit_rpath_CXX=no
  11294. module_cmds_CXX=
  11295. module_expsym_cmds_CXX=
  11296. link_all_deplibs_CXX=unknown
  11297. old_archive_cmds_CXX=$old_archive_cmds
  11298. reload_flag_CXX=$reload_flag
  11299. reload_cmds_CXX=$reload_cmds
  11300. no_undefined_flag_CXX=
  11301. whole_archive_flag_spec_CXX=
  11302. enable_shared_with_static_runtimes_CXX=no
  11303. # Source file extension for C++ test sources.
  11304. ac_ext=cpp
  11305. # Object file extension for compiled C++ test sources.
  11306. objext=o
  11307. objext_CXX=$objext
  11308. # No sense in running all these tests if we already determined that
  11309. # the CXX compiler isn't working. Some variables (like enable_shared)
  11310. # are currently assumed to apply to all compilers on this platform,
  11311. # and will be corrupted by setting them based on a non-working compiler.
  11312. if test yes != "$_lt_caught_CXX_error"; then
  11313. # Code to be used in simple compile tests
  11314. lt_simple_compile_test_code="int some_variable = 0;"
  11315. # Code to be used in simple link tests
  11316. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11317. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11318. # If no C compiler was specified, use CC.
  11319. LTCC=${LTCC-"$CC"}
  11320. # If no C compiler flags were specified, use CFLAGS.
  11321. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11322. # Allow CC to be a program name with arguments.
  11323. compiler=$CC
  11324. # save warnings/boilerplate of simple test code
  11325. ac_outfile=conftest.$ac_objext
  11326. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11327. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11328. _lt_compiler_boilerplate=`cat conftest.err`
  11329. $RM conftest*
  11330. ac_outfile=conftest.$ac_objext
  11331. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11332. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11333. _lt_linker_boilerplate=`cat conftest.err`
  11334. $RM -r conftest*
  11335. # Allow CC to be a program name with arguments.
  11336. lt_save_CC=$CC
  11337. lt_save_CFLAGS=$CFLAGS
  11338. lt_save_LD=$LD
  11339. lt_save_GCC=$GCC
  11340. GCC=$GXX
  11341. lt_save_with_gnu_ld=$with_gnu_ld
  11342. lt_save_path_LD=$lt_cv_path_LD
  11343. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11344. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11345. else
  11346. $as_unset lt_cv_prog_gnu_ld
  11347. fi
  11348. if test -n "${lt_cv_path_LDCXX+set}"; then
  11349. lt_cv_path_LD=$lt_cv_path_LDCXX
  11350. else
  11351. $as_unset lt_cv_path_LD
  11352. fi
  11353. test -z "${LDCXX+set}" || LD=$LDCXX
  11354. CC=${CXX-"c++"}
  11355. CFLAGS=$CXXFLAGS
  11356. compiler=$CC
  11357. compiler_CXX=$CC
  11358. func_cc_basename $compiler
  11359. cc_basename=$func_cc_basename_result
  11360. if test -n "$compiler"; then
  11361. # We don't want -fno-exception when compiling C++ code, so set the
  11362. # no_builtin_flag separately
  11363. if test yes = "$GXX"; then
  11364. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11365. else
  11366. lt_prog_compiler_no_builtin_flag_CXX=
  11367. fi
  11368. if test yes = "$GXX"; then
  11369. # Set up default GNU C++ configuration
  11370. # Check whether --with-gnu-ld was given.
  11371. if test "${with_gnu_ld+set}" = set; then :
  11372. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11373. else
  11374. with_gnu_ld=no
  11375. fi
  11376. ac_prog=ld
  11377. if test yes = "$GCC"; then
  11378. # Check if gcc -print-prog-name=ld gives a path.
  11379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11380. $as_echo_n "checking for ld used by $CC... " >&6; }
  11381. case $host in
  11382. *-*-mingw*)
  11383. # gcc leaves a trailing carriage return, which upsets mingw
  11384. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11385. *)
  11386. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11387. esac
  11388. case $ac_prog in
  11389. # Accept absolute paths.
  11390. [\\/]* | ?:[\\/]*)
  11391. re_direlt='/[^/][^/]*/\.\./'
  11392. # Canonicalize the pathname of ld
  11393. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11394. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11395. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11396. done
  11397. test -z "$LD" && LD=$ac_prog
  11398. ;;
  11399. "")
  11400. # If it fails, then pretend we aren't using GCC.
  11401. ac_prog=ld
  11402. ;;
  11403. *)
  11404. # If it is relative, then search for the first ld in PATH.
  11405. with_gnu_ld=unknown
  11406. ;;
  11407. esac
  11408. elif test yes = "$with_gnu_ld"; then
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11410. $as_echo_n "checking for GNU ld... " >&6; }
  11411. else
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11413. $as_echo_n "checking for non-GNU ld... " >&6; }
  11414. fi
  11415. if ${lt_cv_path_LD+:} false; then :
  11416. $as_echo_n "(cached) " >&6
  11417. else
  11418. if test -z "$LD"; then
  11419. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11420. for ac_dir in $PATH; do
  11421. IFS=$lt_save_ifs
  11422. test -z "$ac_dir" && ac_dir=.
  11423. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11424. lt_cv_path_LD=$ac_dir/$ac_prog
  11425. # Check to see if the program is GNU ld. I'd rather use --version,
  11426. # but apparently some variants of GNU ld only accept -v.
  11427. # Break only if it was the GNU/non-GNU ld that we prefer.
  11428. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11429. *GNU* | *'with BFD'*)
  11430. test no != "$with_gnu_ld" && break
  11431. ;;
  11432. *)
  11433. test yes != "$with_gnu_ld" && break
  11434. ;;
  11435. esac
  11436. fi
  11437. done
  11438. IFS=$lt_save_ifs
  11439. else
  11440. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11441. fi
  11442. fi
  11443. LD=$lt_cv_path_LD
  11444. if test -n "$LD"; then
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11446. $as_echo "$LD" >&6; }
  11447. else
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11449. $as_echo "no" >&6; }
  11450. fi
  11451. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11453. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11454. if ${lt_cv_prog_gnu_ld+:} false; then :
  11455. $as_echo_n "(cached) " >&6
  11456. else
  11457. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11458. case `$LD -v 2>&1 </dev/null` in
  11459. *GNU* | *'with BFD'*)
  11460. lt_cv_prog_gnu_ld=yes
  11461. ;;
  11462. *)
  11463. lt_cv_prog_gnu_ld=no
  11464. ;;
  11465. esac
  11466. fi
  11467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11468. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11469. with_gnu_ld=$lt_cv_prog_gnu_ld
  11470. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11471. # archiving commands below assume that GNU ld is being used.
  11472. if test yes = "$with_gnu_ld"; then
  11473. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11474. 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'
  11475. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11476. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11477. # If archive_cmds runs LD, not CC, wlarc should be empty
  11478. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11479. # investigate it a little bit more. (MM)
  11480. wlarc='$wl'
  11481. # ancient GNU ld didn't support --whole-archive et. al.
  11482. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11483. $GREP 'no-whole-archive' > /dev/null; then
  11484. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11485. else
  11486. whole_archive_flag_spec_CXX=
  11487. fi
  11488. else
  11489. with_gnu_ld=no
  11490. wlarc=
  11491. # A generic and very simple default shared library creation
  11492. # command for GNU C++ for the case where it uses the native
  11493. # linker, instead of GNU ld. If possible, this setting should
  11494. # overridden to take advantage of the native linker features on
  11495. # the platform it is being used on.
  11496. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11497. fi
  11498. # Commands to make compiler produce verbose output that lists
  11499. # what "hidden" libraries, object files and flags are used when
  11500. # linking a shared library.
  11501. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  11502. else
  11503. GXX=no
  11504. with_gnu_ld=no
  11505. wlarc=
  11506. fi
  11507. # PORTME: fill in a description of your system's C++ link characteristics
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11509. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11510. ld_shlibs_CXX=yes
  11511. case $host_os in
  11512. aix3*)
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. ;;
  11516. aix[4-9]*)
  11517. if test ia64 = "$host_cpu"; then
  11518. # On IA64, the linker does run time linking by default, so we don't
  11519. # have to do anything special.
  11520. aix_use_runtimelinking=no
  11521. exp_sym_flag='-Bexport'
  11522. no_entry_flag=
  11523. else
  11524. aix_use_runtimelinking=no
  11525. # Test if we are trying to use run time linking or normal
  11526. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11527. # have runtime linking enabled, and use it for executables.
  11528. # For shared libraries, we enable/disable runtime linking
  11529. # depending on the kind of the shared library created -
  11530. # when "with_aix_soname,aix_use_runtimelinking" is:
  11531. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11532. # "aix,yes" lib.so shared, rtl:yes, for executables
  11533. # lib.a static archive
  11534. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11535. # lib.a(lib.so.V) shared, rtl:no, for executables
  11536. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11537. # lib.a(lib.so.V) shared, rtl:no
  11538. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11539. # lib.a static archive
  11540. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11541. for ld_flag in $LDFLAGS; do
  11542. case $ld_flag in
  11543. *-brtl*)
  11544. aix_use_runtimelinking=yes
  11545. break
  11546. ;;
  11547. esac
  11548. done
  11549. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11550. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11551. # so we don't have lib.a shared libs to link our executables.
  11552. # We have to force runtime linking in this case.
  11553. aix_use_runtimelinking=yes
  11554. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11555. fi
  11556. ;;
  11557. esac
  11558. exp_sym_flag='-bexport'
  11559. no_entry_flag='-bnoentry'
  11560. fi
  11561. # When large executables or shared objects are built, AIX ld can
  11562. # have problems creating the table of contents. If linking a library
  11563. # or program results in "error TOC overflow" add -mminimal-toc to
  11564. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11565. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11566. archive_cmds_CXX=''
  11567. hardcode_direct_CXX=yes
  11568. hardcode_direct_absolute_CXX=yes
  11569. hardcode_libdir_separator_CXX=':'
  11570. link_all_deplibs_CXX=yes
  11571. file_list_spec_CXX='$wl-f,'
  11572. case $with_aix_soname,$aix_use_runtimelinking in
  11573. aix,*) ;; # no import file
  11574. svr4,* | *,yes) # use import file
  11575. # The Import File defines what to hardcode.
  11576. hardcode_direct_CXX=no
  11577. hardcode_direct_absolute_CXX=no
  11578. ;;
  11579. esac
  11580. if test yes = "$GXX"; then
  11581. case $host_os in aix4.[012]|aix4.[012].*)
  11582. # We only want to do this on AIX 4.2 and lower, the check
  11583. # below for broken collect2 doesn't work under 4.3+
  11584. collect2name=`$CC -print-prog-name=collect2`
  11585. if test -f "$collect2name" &&
  11586. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11587. then
  11588. # We have reworked collect2
  11589. :
  11590. else
  11591. # We have old collect2
  11592. hardcode_direct_CXX=unsupported
  11593. # It fails to find uninstalled libraries when the uninstalled
  11594. # path is not listed in the libpath. Setting hardcode_minus_L
  11595. # to unsupported forces relinking
  11596. hardcode_minus_L_CXX=yes
  11597. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11598. hardcode_libdir_separator_CXX=
  11599. fi
  11600. esac
  11601. shared_flag='-shared'
  11602. if test yes = "$aix_use_runtimelinking"; then
  11603. shared_flag=$shared_flag' $wl-G'
  11604. fi
  11605. # Need to ensure runtime linking is disabled for the traditional
  11606. # shared library, or the linker may eventually find shared libraries
  11607. # /with/ Import File - we do not want to mix them.
  11608. shared_flag_aix='-shared'
  11609. shared_flag_svr4='-shared $wl-G'
  11610. else
  11611. # not using gcc
  11612. if test ia64 = "$host_cpu"; then
  11613. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11614. # chokes on -Wl,-G. The following line is correct:
  11615. shared_flag='-G'
  11616. else
  11617. if test yes = "$aix_use_runtimelinking"; then
  11618. shared_flag='$wl-G'
  11619. else
  11620. shared_flag='$wl-bM:SRE'
  11621. fi
  11622. shared_flag_aix='$wl-bM:SRE'
  11623. shared_flag_svr4='$wl-G'
  11624. fi
  11625. fi
  11626. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11627. # It seems that -bexpall does not export symbols beginning with
  11628. # underscore (_), so it is better to generate a list of symbols to
  11629. # export.
  11630. always_export_symbols_CXX=yes
  11631. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11632. # Warning - without using the other runtime loading flags (-brtl),
  11633. # -berok will link without error, but may produce a broken library.
  11634. # The "-G" linker flag allows undefined symbols.
  11635. no_undefined_flag_CXX='-bernotok'
  11636. # Determine the default libpath from the value encoded in an empty
  11637. # executable.
  11638. if test set = "${lt_cv_aix_libpath+set}"; then
  11639. aix_libpath=$lt_cv_aix_libpath
  11640. else
  11641. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11642. $as_echo_n "(cached) " >&6
  11643. else
  11644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11645. /* end confdefs.h. */
  11646. int
  11647. main ()
  11648. {
  11649. ;
  11650. return 0;
  11651. }
  11652. _ACEOF
  11653. if ac_fn_cxx_try_link "$LINENO"; then :
  11654. lt_aix_libpath_sed='
  11655. /Import File Strings/,/^$/ {
  11656. /^0/ {
  11657. s/^0 *\([^ ]*\) *$/\1/
  11658. p
  11659. }
  11660. }'
  11661. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11662. # Check for a 64-bit object if we didn't find anything.
  11663. if test -z "$lt_cv_aix_libpath__CXX"; then
  11664. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11665. fi
  11666. fi
  11667. rm -f core conftest.err conftest.$ac_objext \
  11668. conftest$ac_exeext conftest.$ac_ext
  11669. if test -z "$lt_cv_aix_libpath__CXX"; then
  11670. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11671. fi
  11672. fi
  11673. aix_libpath=$lt_cv_aix_libpath__CXX
  11674. fi
  11675. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11676. 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
  11677. else
  11678. if test ia64 = "$host_cpu"; then
  11679. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11680. allow_undefined_flag_CXX="-z nodefs"
  11681. 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"
  11682. else
  11683. # Determine the default libpath from the value encoded in an
  11684. # empty executable.
  11685. if test set = "${lt_cv_aix_libpath+set}"; then
  11686. aix_libpath=$lt_cv_aix_libpath
  11687. else
  11688. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11689. $as_echo_n "(cached) " >&6
  11690. else
  11691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11692. /* end confdefs.h. */
  11693. int
  11694. main ()
  11695. {
  11696. ;
  11697. return 0;
  11698. }
  11699. _ACEOF
  11700. if ac_fn_cxx_try_link "$LINENO"; then :
  11701. lt_aix_libpath_sed='
  11702. /Import File Strings/,/^$/ {
  11703. /^0/ {
  11704. s/^0 *\([^ ]*\) *$/\1/
  11705. p
  11706. }
  11707. }'
  11708. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11709. # Check for a 64-bit object if we didn't find anything.
  11710. if test -z "$lt_cv_aix_libpath__CXX"; then
  11711. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11712. fi
  11713. fi
  11714. rm -f core conftest.err conftest.$ac_objext \
  11715. conftest$ac_exeext conftest.$ac_ext
  11716. if test -z "$lt_cv_aix_libpath__CXX"; then
  11717. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11718. fi
  11719. fi
  11720. aix_libpath=$lt_cv_aix_libpath__CXX
  11721. fi
  11722. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11723. # Warning - without using the other run time loading flags,
  11724. # -berok will link without error, but may produce a broken library.
  11725. no_undefined_flag_CXX=' $wl-bernotok'
  11726. allow_undefined_flag_CXX=' $wl-berok'
  11727. if test yes = "$with_gnu_ld"; then
  11728. # We only use this code for GNU lds that support --whole-archive.
  11729. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11730. else
  11731. # Exported symbols can be pulled into shared objects from archives
  11732. whole_archive_flag_spec_CXX='$convenience'
  11733. fi
  11734. archive_cmds_need_lc_CXX=yes
  11735. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11736. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11737. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11738. if test svr4 != "$with_aix_soname"; then
  11739. # This is similar to how AIX traditionally builds its shared
  11740. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11741. 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'
  11742. fi
  11743. if test aix != "$with_aix_soname"; then
  11744. 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'
  11745. else
  11746. # used by -dlpreopen to get the symbols
  11747. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11748. fi
  11749. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11750. fi
  11751. fi
  11752. ;;
  11753. beos*)
  11754. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11755. allow_undefined_flag_CXX=unsupported
  11756. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11757. # support --undefined. This deserves some investigation. FIXME
  11758. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11759. else
  11760. ld_shlibs_CXX=no
  11761. fi
  11762. ;;
  11763. chorus*)
  11764. case $cc_basename in
  11765. *)
  11766. # FIXME: insert proper C++ library support
  11767. ld_shlibs_CXX=no
  11768. ;;
  11769. esac
  11770. ;;
  11771. cygwin* | mingw* | pw32* | cegcc*)
  11772. case $GXX,$cc_basename in
  11773. ,cl* | no,cl*)
  11774. # Native MSVC
  11775. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11776. # no search path for DLLs.
  11777. hardcode_libdir_flag_spec_CXX=' '
  11778. allow_undefined_flag_CXX=unsupported
  11779. always_export_symbols_CXX=yes
  11780. file_list_spec_CXX='@'
  11781. # Tell ltmain to make .lib files, not .a files.
  11782. libext=lib
  11783. # Tell ltmain to make .dll files, not .so files.
  11784. shrext_cmds=.dll
  11785. # FIXME: Setting linknames here is a bad hack.
  11786. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11787. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11788. cp "$export_symbols" "$output_objdir/$soname.def";
  11789. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11790. else
  11791. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11792. fi~
  11793. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11794. linknames='
  11795. # The linker will not automatically build a static lib if we build a DLL.
  11796. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11797. enable_shared_with_static_runtimes_CXX=yes
  11798. # Don't use ranlib
  11799. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11800. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11801. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11802. case $lt_outputfile in
  11803. *.exe|*.EXE) ;;
  11804. *)
  11805. lt_outputfile=$lt_outputfile.exe
  11806. lt_tool_outputfile=$lt_tool_outputfile.exe
  11807. ;;
  11808. esac~
  11809. func_to_tool_file "$lt_outputfile"~
  11810. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11811. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11812. $RM "$lt_outputfile.manifest";
  11813. fi'
  11814. ;;
  11815. *)
  11816. # g++
  11817. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11818. # as there is no search path for DLLs.
  11819. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11820. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11821. allow_undefined_flag_CXX=unsupported
  11822. always_export_symbols_CXX=no
  11823. enable_shared_with_static_runtimes_CXX=yes
  11824. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11825. 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'
  11826. # If the export-symbols file already is a .def file, use it as
  11827. # is; otherwise, prepend EXPORTS...
  11828. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11829. cp $export_symbols $output_objdir/$soname.def;
  11830. else
  11831. echo EXPORTS > $output_objdir/$soname.def;
  11832. cat $export_symbols >> $output_objdir/$soname.def;
  11833. fi~
  11834. $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'
  11835. else
  11836. ld_shlibs_CXX=no
  11837. fi
  11838. ;;
  11839. esac
  11840. ;;
  11841. darwin* | rhapsody*)
  11842. archive_cmds_need_lc_CXX=no
  11843. hardcode_direct_CXX=no
  11844. hardcode_automatic_CXX=yes
  11845. hardcode_shlibpath_var_CXX=unsupported
  11846. if test yes = "$lt_cv_ld_force_load"; then
  11847. 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\"`'
  11848. else
  11849. whole_archive_flag_spec_CXX=''
  11850. fi
  11851. link_all_deplibs_CXX=yes
  11852. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11853. case $cc_basename in
  11854. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11855. *) _lt_dar_can_shared=$GCC ;;
  11856. esac
  11857. if test yes = "$_lt_dar_can_shared"; then
  11858. output_verbose_link_cmd=func_echo_all
  11859. 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"
  11860. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11861. 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"
  11862. 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"
  11863. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11864. 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"
  11865. 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"
  11866. fi
  11867. else
  11868. ld_shlibs_CXX=no
  11869. fi
  11870. ;;
  11871. os2*)
  11872. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11873. hardcode_minus_L_CXX=yes
  11874. allow_undefined_flag_CXX=unsupported
  11875. shrext_cmds=.dll
  11876. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11877. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11878. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11879. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11880. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11881. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11882. emximp -o $lib $output_objdir/$libname.def'
  11883. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11884. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11885. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11886. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11887. prefix_cmds="$SED"~
  11888. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11889. prefix_cmds="$prefix_cmds -e 1d";
  11890. fi~
  11891. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11892. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11893. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11894. emximp -o $lib $output_objdir/$libname.def'
  11895. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11896. enable_shared_with_static_runtimes_CXX=yes
  11897. ;;
  11898. dgux*)
  11899. case $cc_basename in
  11900. ec++*)
  11901. # FIXME: insert proper C++ library support
  11902. ld_shlibs_CXX=no
  11903. ;;
  11904. ghcx*)
  11905. # Green Hills C++ Compiler
  11906. # FIXME: insert proper C++ library support
  11907. ld_shlibs_CXX=no
  11908. ;;
  11909. *)
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. ;;
  11913. esac
  11914. ;;
  11915. freebsd2.*)
  11916. # C++ shared libraries reported to be fairly broken before
  11917. # switch to ELF
  11918. ld_shlibs_CXX=no
  11919. ;;
  11920. freebsd-elf*)
  11921. archive_cmds_need_lc_CXX=no
  11922. ;;
  11923. freebsd* | dragonfly*)
  11924. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11925. # conventions
  11926. ld_shlibs_CXX=yes
  11927. ;;
  11928. haiku*)
  11929. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11930. link_all_deplibs_CXX=yes
  11931. ;;
  11932. hpux9*)
  11933. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11934. hardcode_libdir_separator_CXX=:
  11935. export_dynamic_flag_spec_CXX='$wl-E'
  11936. hardcode_direct_CXX=yes
  11937. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11938. # but as the default
  11939. # location of the library.
  11940. case $cc_basename in
  11941. CC*)
  11942. # FIXME: insert proper C++ library support
  11943. ld_shlibs_CXX=no
  11944. ;;
  11945. aCC*)
  11946. 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'
  11947. # Commands to make compiler produce verbose output that lists
  11948. # what "hidden" libraries, object files and flags are used when
  11949. # linking a shared library.
  11950. #
  11951. # There doesn't appear to be a way to prevent this compiler from
  11952. # explicitly linking system object files so we need to strip them
  11953. # from the output so that they don't get included in the library
  11954. # dependencies.
  11955. 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"'
  11956. ;;
  11957. *)
  11958. if test yes = "$GXX"; then
  11959. 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'
  11960. else
  11961. # FIXME: insert proper C++ library support
  11962. ld_shlibs_CXX=no
  11963. fi
  11964. ;;
  11965. esac
  11966. ;;
  11967. hpux10*|hpux11*)
  11968. if test no = "$with_gnu_ld"; then
  11969. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11970. hardcode_libdir_separator_CXX=:
  11971. case $host_cpu in
  11972. hppa*64*|ia64*)
  11973. ;;
  11974. *)
  11975. export_dynamic_flag_spec_CXX='$wl-E'
  11976. ;;
  11977. esac
  11978. fi
  11979. case $host_cpu in
  11980. hppa*64*|ia64*)
  11981. hardcode_direct_CXX=no
  11982. hardcode_shlibpath_var_CXX=no
  11983. ;;
  11984. *)
  11985. hardcode_direct_CXX=yes
  11986. hardcode_direct_absolute_CXX=yes
  11987. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11988. # but as the default
  11989. # location of the library.
  11990. ;;
  11991. esac
  11992. case $cc_basename in
  11993. CC*)
  11994. # FIXME: insert proper C++ library support
  11995. ld_shlibs_CXX=no
  11996. ;;
  11997. aCC*)
  11998. case $host_cpu in
  11999. hppa*64*)
  12000. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12001. ;;
  12002. ia64*)
  12003. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12004. ;;
  12005. *)
  12006. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12007. ;;
  12008. esac
  12009. # Commands to make compiler produce verbose output that lists
  12010. # what "hidden" libraries, object files and flags are used when
  12011. # linking a shared library.
  12012. #
  12013. # There doesn't appear to be a way to prevent this compiler from
  12014. # explicitly linking system object files so we need to strip them
  12015. # from the output so that they don't get included in the library
  12016. # dependencies.
  12017. 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"'
  12018. ;;
  12019. *)
  12020. if test yes = "$GXX"; then
  12021. if test no = "$with_gnu_ld"; then
  12022. case $host_cpu in
  12023. hppa*64*)
  12024. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12025. ;;
  12026. ia64*)
  12027. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12028. ;;
  12029. *)
  12030. 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'
  12031. ;;
  12032. esac
  12033. fi
  12034. else
  12035. # FIXME: insert proper C++ library support
  12036. ld_shlibs_CXX=no
  12037. fi
  12038. ;;
  12039. esac
  12040. ;;
  12041. interix[3-9]*)
  12042. hardcode_direct_CXX=no
  12043. hardcode_shlibpath_var_CXX=no
  12044. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12045. export_dynamic_flag_spec_CXX='$wl-E'
  12046. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12047. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12048. # default) and relocated if they conflict, which is a slow very memory
  12049. # consuming and fragmenting process. To avoid this, we pick a random,
  12050. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12051. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12052. 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'
  12053. 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'
  12054. ;;
  12055. irix5* | irix6*)
  12056. case $cc_basename in
  12057. CC*)
  12058. # SGI C++
  12059. 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'
  12060. # Archives containing C++ object files must be created using
  12061. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12062. # necessary to make sure instantiated templates are included
  12063. # in the archive.
  12064. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12065. ;;
  12066. *)
  12067. if test yes = "$GXX"; then
  12068. if test no = "$with_gnu_ld"; then
  12069. 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'
  12070. else
  12071. 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'
  12072. fi
  12073. fi
  12074. link_all_deplibs_CXX=yes
  12075. ;;
  12076. esac
  12077. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12078. hardcode_libdir_separator_CXX=:
  12079. inherit_rpath_CXX=yes
  12080. ;;
  12081. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12082. case $cc_basename in
  12083. KCC*)
  12084. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12085. # KCC will only create a shared library if the output file
  12086. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12087. # to its proper name (with version) after linking.
  12088. 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'
  12089. 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'
  12090. # Commands to make compiler produce verbose output that lists
  12091. # what "hidden" libraries, object files and flags are used when
  12092. # linking a shared library.
  12093. #
  12094. # There doesn't appear to be a way to prevent this compiler from
  12095. # explicitly linking system object files so we need to strip them
  12096. # from the output so that they don't get included in the library
  12097. # dependencies.
  12098. 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"'
  12099. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12100. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12101. # Archives containing C++ object files must be created using
  12102. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12103. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12104. ;;
  12105. icpc* | ecpc* )
  12106. # Intel C++
  12107. with_gnu_ld=yes
  12108. # version 8.0 and above of icpc choke on multiply defined symbols
  12109. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12110. # earlier do not add the objects themselves.
  12111. case `$CC -V 2>&1` in
  12112. *"Version 7."*)
  12113. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12114. 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'
  12115. ;;
  12116. *) # Version 8.0 or newer
  12117. tmp_idyn=
  12118. case $host_cpu in
  12119. ia64*) tmp_idyn=' -i_dynamic';;
  12120. esac
  12121. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12122. 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'
  12123. ;;
  12124. esac
  12125. archive_cmds_need_lc_CXX=no
  12126. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12127. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12128. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12129. ;;
  12130. pgCC* | pgcpp*)
  12131. # Portland Group C++ compiler
  12132. case `$CC -V` in
  12133. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12134. prelink_cmds_CXX='tpldir=Template.dir~
  12135. rm -rf $tpldir~
  12136. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12137. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12138. old_archive_cmds_CXX='tpldir=Template.dir~
  12139. rm -rf $tpldir~
  12140. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12141. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12142. $RANLIB $oldlib'
  12143. archive_cmds_CXX='tpldir=Template.dir~
  12144. rm -rf $tpldir~
  12145. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12146. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12147. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12148. rm -rf $tpldir~
  12149. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12150. $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'
  12151. ;;
  12152. *) # Version 6 and above use weak symbols
  12153. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12154. 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'
  12155. ;;
  12156. esac
  12157. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12158. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12159. 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'
  12160. ;;
  12161. cxx*)
  12162. # Compaq C++
  12163. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12164. 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'
  12165. runpath_var=LD_RUN_PATH
  12166. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12167. hardcode_libdir_separator_CXX=:
  12168. # Commands to make compiler produce verbose output that lists
  12169. # what "hidden" libraries, object files and flags are used when
  12170. # linking a shared library.
  12171. #
  12172. # There doesn't appear to be a way to prevent this compiler from
  12173. # explicitly linking system object files so we need to strip them
  12174. # from the output so that they don't get included in the library
  12175. # dependencies.
  12176. 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'
  12177. ;;
  12178. xl* | mpixl* | bgxl*)
  12179. # IBM XL 8.0 on PPC, with GNU ld
  12180. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12181. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12182. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12183. if test yes = "$supports_anon_versioning"; then
  12184. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12185. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12186. echo "local: *; };" >> $output_objdir/$libname.ver~
  12187. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12188. fi
  12189. ;;
  12190. *)
  12191. case `$CC -V 2>&1 | sed 5q` in
  12192. *Sun\ C*)
  12193. # Sun C++ 5.9
  12194. no_undefined_flag_CXX=' -zdefs'
  12195. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12196. 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'
  12197. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12198. 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'
  12199. compiler_needs_object_CXX=yes
  12200. # Not sure whether something based on
  12201. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12202. # would be better.
  12203. output_verbose_link_cmd='func_echo_all'
  12204. # Archives containing C++ object files must be created using
  12205. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12206. # necessary to make sure instantiated templates are included
  12207. # in the archive.
  12208. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12209. ;;
  12210. esac
  12211. ;;
  12212. esac
  12213. ;;
  12214. lynxos*)
  12215. # FIXME: insert proper C++ library support
  12216. ld_shlibs_CXX=no
  12217. ;;
  12218. m88k*)
  12219. # FIXME: insert proper C++ library support
  12220. ld_shlibs_CXX=no
  12221. ;;
  12222. mvs*)
  12223. case $cc_basename in
  12224. cxx*)
  12225. # FIXME: insert proper C++ library support
  12226. ld_shlibs_CXX=no
  12227. ;;
  12228. *)
  12229. # FIXME: insert proper C++ library support
  12230. ld_shlibs_CXX=no
  12231. ;;
  12232. esac
  12233. ;;
  12234. netbsd*)
  12235. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12236. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12237. wlarc=
  12238. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12239. hardcode_direct_CXX=yes
  12240. hardcode_shlibpath_var_CXX=no
  12241. fi
  12242. # Workaround some broken pre-1.5 toolchains
  12243. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12244. ;;
  12245. *nto* | *qnx*)
  12246. ld_shlibs_CXX=yes
  12247. ;;
  12248. openbsd* | bitrig*)
  12249. if test -f /usr/libexec/ld.so; then
  12250. hardcode_direct_CXX=yes
  12251. hardcode_shlibpath_var_CXX=no
  12252. hardcode_direct_absolute_CXX=yes
  12253. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12254. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12255. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12256. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12257. export_dynamic_flag_spec_CXX='$wl-E'
  12258. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12259. fi
  12260. output_verbose_link_cmd=func_echo_all
  12261. else
  12262. ld_shlibs_CXX=no
  12263. fi
  12264. ;;
  12265. osf3* | osf4* | osf5*)
  12266. case $cc_basename in
  12267. KCC*)
  12268. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12269. # KCC will only create a shared library if the output file
  12270. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12271. # to its proper name (with version) after linking.
  12272. 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'
  12273. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12274. hardcode_libdir_separator_CXX=:
  12275. # Archives containing C++ object files must be created using
  12276. # the KAI C++ compiler.
  12277. case $host in
  12278. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12279. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12280. esac
  12281. ;;
  12282. RCC*)
  12283. # Rational C++ 2.4.1
  12284. # FIXME: insert proper C++ library support
  12285. ld_shlibs_CXX=no
  12286. ;;
  12287. cxx*)
  12288. case $host in
  12289. osf3*)
  12290. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12291. 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'
  12292. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12293. ;;
  12294. *)
  12295. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12296. 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'
  12297. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12298. echo "-hidden">> $lib.exp~
  12299. $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~
  12300. $RM $lib.exp'
  12301. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12302. ;;
  12303. esac
  12304. hardcode_libdir_separator_CXX=:
  12305. # Commands to make compiler produce verbose output that lists
  12306. # what "hidden" libraries, object files and flags are used when
  12307. # linking a shared library.
  12308. #
  12309. # There doesn't appear to be a way to prevent this compiler from
  12310. # explicitly linking system object files so we need to strip them
  12311. # from the output so that they don't get included in the library
  12312. # dependencies.
  12313. 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"'
  12314. ;;
  12315. *)
  12316. if test yes,no = "$GXX,$with_gnu_ld"; then
  12317. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12318. case $host in
  12319. osf3*)
  12320. 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'
  12321. ;;
  12322. *)
  12323. 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'
  12324. ;;
  12325. esac
  12326. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12327. hardcode_libdir_separator_CXX=:
  12328. # Commands to make compiler produce verbose output that lists
  12329. # what "hidden" libraries, object files and flags are used when
  12330. # linking a shared library.
  12331. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12332. else
  12333. # FIXME: insert proper C++ library support
  12334. ld_shlibs_CXX=no
  12335. fi
  12336. ;;
  12337. esac
  12338. ;;
  12339. psos*)
  12340. # FIXME: insert proper C++ library support
  12341. ld_shlibs_CXX=no
  12342. ;;
  12343. sunos4*)
  12344. case $cc_basename in
  12345. CC*)
  12346. # Sun C++ 4.x
  12347. # FIXME: insert proper C++ library support
  12348. ld_shlibs_CXX=no
  12349. ;;
  12350. lcc*)
  12351. # Lucid
  12352. # FIXME: insert proper C++ library support
  12353. ld_shlibs_CXX=no
  12354. ;;
  12355. *)
  12356. # FIXME: insert proper C++ library support
  12357. ld_shlibs_CXX=no
  12358. ;;
  12359. esac
  12360. ;;
  12361. solaris*)
  12362. case $cc_basename in
  12363. CC* | sunCC*)
  12364. # Sun C++ 4.2, 5.x and Centerline C++
  12365. archive_cmds_need_lc_CXX=yes
  12366. no_undefined_flag_CXX=' -zdefs'
  12367. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12368. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12369. $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'
  12370. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12371. hardcode_shlibpath_var_CXX=no
  12372. case $host_os in
  12373. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12374. *)
  12375. # The compiler driver will combine and reorder linker options,
  12376. # but understands '-z linker_flag'.
  12377. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12378. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12379. ;;
  12380. esac
  12381. link_all_deplibs_CXX=yes
  12382. output_verbose_link_cmd='func_echo_all'
  12383. # Archives containing C++ object files must be created using
  12384. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12385. # necessary to make sure instantiated templates are included
  12386. # in the archive.
  12387. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12388. ;;
  12389. gcx*)
  12390. # Green Hills C++ Compiler
  12391. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12392. # The C++ compiler must be used to create the archive.
  12393. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12394. ;;
  12395. *)
  12396. # GNU C++ compiler with Solaris linker
  12397. if test yes,no = "$GXX,$with_gnu_ld"; then
  12398. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12399. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12400. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12401. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12402. $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'
  12403. # Commands to make compiler produce verbose output that lists
  12404. # what "hidden" libraries, object files and flags are used when
  12405. # linking a shared library.
  12406. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12407. else
  12408. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12409. # platform.
  12410. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12411. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12412. $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'
  12413. # Commands to make compiler produce verbose output that lists
  12414. # what "hidden" libraries, object files and flags are used when
  12415. # linking a shared library.
  12416. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12417. fi
  12418. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12419. case $host_os in
  12420. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12421. *)
  12422. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12423. ;;
  12424. esac
  12425. fi
  12426. ;;
  12427. esac
  12428. ;;
  12429. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12430. no_undefined_flag_CXX='$wl-z,text'
  12431. archive_cmds_need_lc_CXX=no
  12432. hardcode_shlibpath_var_CXX=no
  12433. runpath_var='LD_RUN_PATH'
  12434. case $cc_basename in
  12435. CC*)
  12436. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12437. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12438. ;;
  12439. *)
  12440. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12441. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12442. ;;
  12443. esac
  12444. ;;
  12445. sysv5* | sco3.2v5* | sco5v6*)
  12446. # Note: We CANNOT use -z defs as we might desire, because we do not
  12447. # link with -lc, and that would cause any symbols used from libc to
  12448. # always be unresolved, which means just about no library would
  12449. # ever link correctly. If we're not using GNU ld we use -z text
  12450. # though, which does catch some bad symbols but isn't as heavy-handed
  12451. # as -z defs.
  12452. no_undefined_flag_CXX='$wl-z,text'
  12453. allow_undefined_flag_CXX='$wl-z,nodefs'
  12454. archive_cmds_need_lc_CXX=no
  12455. hardcode_shlibpath_var_CXX=no
  12456. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12457. hardcode_libdir_separator_CXX=':'
  12458. link_all_deplibs_CXX=yes
  12459. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12460. runpath_var='LD_RUN_PATH'
  12461. case $cc_basename in
  12462. CC*)
  12463. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12464. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12465. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12466. '"$old_archive_cmds_CXX"
  12467. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12468. '"$reload_cmds_CXX"
  12469. ;;
  12470. *)
  12471. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12472. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12473. ;;
  12474. esac
  12475. ;;
  12476. tandem*)
  12477. case $cc_basename in
  12478. NCC*)
  12479. # NonStop-UX NCC 3.20
  12480. # FIXME: insert proper C++ library support
  12481. ld_shlibs_CXX=no
  12482. ;;
  12483. *)
  12484. # FIXME: insert proper C++ library support
  12485. ld_shlibs_CXX=no
  12486. ;;
  12487. esac
  12488. ;;
  12489. vxworks*)
  12490. # FIXME: insert proper C++ library support
  12491. ld_shlibs_CXX=no
  12492. ;;
  12493. *)
  12494. # FIXME: insert proper C++ library support
  12495. ld_shlibs_CXX=no
  12496. ;;
  12497. esac
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12499. $as_echo "$ld_shlibs_CXX" >&6; }
  12500. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12501. GCC_CXX=$GXX
  12502. LD_CXX=$LD
  12503. ## CAVEAT EMPTOR:
  12504. ## There is no encapsulation within the following macros, do not change
  12505. ## the running order or otherwise move them around unless you know exactly
  12506. ## what you are doing...
  12507. # Dependencies to place before and after the object being linked:
  12508. predep_objects_CXX=
  12509. postdep_objects_CXX=
  12510. predeps_CXX=
  12511. postdeps_CXX=
  12512. compiler_lib_search_path_CXX=
  12513. cat > conftest.$ac_ext <<_LT_EOF
  12514. class Foo
  12515. {
  12516. public:
  12517. Foo (void) { a = 0; }
  12518. private:
  12519. int a;
  12520. };
  12521. _LT_EOF
  12522. _lt_libdeps_save_CFLAGS=$CFLAGS
  12523. case "$CC $CFLAGS " in #(
  12524. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12525. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12526. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12527. esac
  12528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12529. (eval $ac_compile) 2>&5
  12530. ac_status=$?
  12531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12532. test $ac_status = 0; }; then
  12533. # Parse the compiler output and extract the necessary
  12534. # objects, libraries and library flags.
  12535. # Sentinel used to keep track of whether or not we are before
  12536. # the conftest object file.
  12537. pre_test_object_deps_done=no
  12538. for p in `eval "$output_verbose_link_cmd"`; do
  12539. case $prev$p in
  12540. -L* | -R* | -l*)
  12541. # Some compilers place space between "-{L,R}" and the path.
  12542. # Remove the space.
  12543. if test x-L = "$p" ||
  12544. test x-R = "$p"; then
  12545. prev=$p
  12546. continue
  12547. fi
  12548. # Expand the sysroot to ease extracting the directories later.
  12549. if test -z "$prev"; then
  12550. case $p in
  12551. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12552. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12553. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12554. esac
  12555. fi
  12556. case $p in
  12557. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12558. esac
  12559. if test no = "$pre_test_object_deps_done"; then
  12560. case $prev in
  12561. -L | -R)
  12562. # Internal compiler library paths should come after those
  12563. # provided the user. The postdeps already come after the
  12564. # user supplied libs so there is no need to process them.
  12565. if test -z "$compiler_lib_search_path_CXX"; then
  12566. compiler_lib_search_path_CXX=$prev$p
  12567. else
  12568. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12569. fi
  12570. ;;
  12571. # The "-l" case would never come before the object being
  12572. # linked, so don't bother handling this case.
  12573. esac
  12574. else
  12575. if test -z "$postdeps_CXX"; then
  12576. postdeps_CXX=$prev$p
  12577. else
  12578. postdeps_CXX="${postdeps_CXX} $prev$p"
  12579. fi
  12580. fi
  12581. prev=
  12582. ;;
  12583. *.lto.$objext) ;; # Ignore GCC LTO objects
  12584. *.$objext)
  12585. # This assumes that the test object file only shows up
  12586. # once in the compiler output.
  12587. if test "$p" = "conftest.$objext"; then
  12588. pre_test_object_deps_done=yes
  12589. continue
  12590. fi
  12591. if test no = "$pre_test_object_deps_done"; then
  12592. if test -z "$predep_objects_CXX"; then
  12593. predep_objects_CXX=$p
  12594. else
  12595. predep_objects_CXX="$predep_objects_CXX $p"
  12596. fi
  12597. else
  12598. if test -z "$postdep_objects_CXX"; then
  12599. postdep_objects_CXX=$p
  12600. else
  12601. postdep_objects_CXX="$postdep_objects_CXX $p"
  12602. fi
  12603. fi
  12604. ;;
  12605. *) ;; # Ignore the rest.
  12606. esac
  12607. done
  12608. # Clean up.
  12609. rm -f a.out a.exe
  12610. else
  12611. echo "libtool.m4: error: problem compiling CXX test program"
  12612. fi
  12613. $RM -f confest.$objext
  12614. CFLAGS=$_lt_libdeps_save_CFLAGS
  12615. # PORTME: override above test on systems where it is broken
  12616. case $host_os in
  12617. interix[3-9]*)
  12618. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12619. # hack all around it, let's just trust "g++" to DTRT.
  12620. predep_objects_CXX=
  12621. postdep_objects_CXX=
  12622. postdeps_CXX=
  12623. ;;
  12624. esac
  12625. case " $postdeps_CXX " in
  12626. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12627. esac
  12628. compiler_lib_search_dirs_CXX=
  12629. if test -n "${compiler_lib_search_path_CXX}"; then
  12630. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12631. fi
  12632. lt_prog_compiler_wl_CXX=
  12633. lt_prog_compiler_pic_CXX=
  12634. lt_prog_compiler_static_CXX=
  12635. # C++ specific cases for pic, static, wl, etc.
  12636. if test yes = "$GXX"; then
  12637. lt_prog_compiler_wl_CXX='-Wl,'
  12638. lt_prog_compiler_static_CXX='-static'
  12639. case $host_os in
  12640. aix*)
  12641. # All AIX code is PIC.
  12642. if test ia64 = "$host_cpu"; then
  12643. # AIX 5 now supports IA64 processor
  12644. lt_prog_compiler_static_CXX='-Bstatic'
  12645. fi
  12646. lt_prog_compiler_pic_CXX='-fPIC'
  12647. ;;
  12648. amigaos*)
  12649. case $host_cpu in
  12650. powerpc)
  12651. # see comment about AmigaOS4 .so support
  12652. lt_prog_compiler_pic_CXX='-fPIC'
  12653. ;;
  12654. m68k)
  12655. # FIXME: we need at least 68020 code to build shared libraries, but
  12656. # adding the '-m68020' flag to GCC prevents building anything better,
  12657. # like '-m68040'.
  12658. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12659. ;;
  12660. esac
  12661. ;;
  12662. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12663. # PIC is the default for these OSes.
  12664. ;;
  12665. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12666. # This hack is so that the source file can tell whether it is being
  12667. # built for inclusion in a dll (and should export symbols for example).
  12668. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12669. # (--disable-auto-import) libraries
  12670. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12671. case $host_os in
  12672. os2*)
  12673. lt_prog_compiler_static_CXX='$wl-static'
  12674. ;;
  12675. esac
  12676. ;;
  12677. darwin* | rhapsody*)
  12678. # PIC is the default on this platform
  12679. # Common symbols not allowed in MH_DYLIB files
  12680. lt_prog_compiler_pic_CXX='-fno-common'
  12681. ;;
  12682. *djgpp*)
  12683. # DJGPP does not support shared libraries at all
  12684. lt_prog_compiler_pic_CXX=
  12685. ;;
  12686. haiku*)
  12687. # PIC is the default for Haiku.
  12688. # The "-static" flag exists, but is broken.
  12689. lt_prog_compiler_static_CXX=
  12690. ;;
  12691. interix[3-9]*)
  12692. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12693. # Instead, we relocate shared libraries at runtime.
  12694. ;;
  12695. sysv4*MP*)
  12696. if test -d /usr/nec; then
  12697. lt_prog_compiler_pic_CXX=-Kconform_pic
  12698. fi
  12699. ;;
  12700. hpux*)
  12701. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12702. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12703. # sets the default TLS model and affects inlining.
  12704. case $host_cpu in
  12705. hppa*64*)
  12706. ;;
  12707. *)
  12708. lt_prog_compiler_pic_CXX='-fPIC'
  12709. ;;
  12710. esac
  12711. ;;
  12712. *qnx* | *nto*)
  12713. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12714. # it will coredump.
  12715. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12716. ;;
  12717. *)
  12718. lt_prog_compiler_pic_CXX='-fPIC'
  12719. ;;
  12720. esac
  12721. else
  12722. case $host_os in
  12723. aix[4-9]*)
  12724. # All AIX code is PIC.
  12725. if test ia64 = "$host_cpu"; then
  12726. # AIX 5 now supports IA64 processor
  12727. lt_prog_compiler_static_CXX='-Bstatic'
  12728. else
  12729. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12730. fi
  12731. ;;
  12732. chorus*)
  12733. case $cc_basename in
  12734. cxch68*)
  12735. # Green Hills C++ Compiler
  12736. # _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"
  12737. ;;
  12738. esac
  12739. ;;
  12740. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12741. # This hack is so that the source file can tell whether it is being
  12742. # built for inclusion in a dll (and should export symbols for example).
  12743. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12744. ;;
  12745. dgux*)
  12746. case $cc_basename in
  12747. ec++*)
  12748. lt_prog_compiler_pic_CXX='-KPIC'
  12749. ;;
  12750. ghcx*)
  12751. # Green Hills C++ Compiler
  12752. lt_prog_compiler_pic_CXX='-pic'
  12753. ;;
  12754. *)
  12755. ;;
  12756. esac
  12757. ;;
  12758. freebsd* | dragonfly*)
  12759. # FreeBSD uses GNU C++
  12760. ;;
  12761. hpux9* | hpux10* | hpux11*)
  12762. case $cc_basename in
  12763. CC*)
  12764. lt_prog_compiler_wl_CXX='-Wl,'
  12765. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12766. if test ia64 != "$host_cpu"; then
  12767. lt_prog_compiler_pic_CXX='+Z'
  12768. fi
  12769. ;;
  12770. aCC*)
  12771. lt_prog_compiler_wl_CXX='-Wl,'
  12772. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12773. case $host_cpu in
  12774. hppa*64*|ia64*)
  12775. # +Z the default
  12776. ;;
  12777. *)
  12778. lt_prog_compiler_pic_CXX='+Z'
  12779. ;;
  12780. esac
  12781. ;;
  12782. *)
  12783. ;;
  12784. esac
  12785. ;;
  12786. interix*)
  12787. # This is c89, which is MS Visual C++ (no shared libs)
  12788. # Anyone wants to do a port?
  12789. ;;
  12790. irix5* | irix6* | nonstopux*)
  12791. case $cc_basename in
  12792. CC*)
  12793. lt_prog_compiler_wl_CXX='-Wl,'
  12794. lt_prog_compiler_static_CXX='-non_shared'
  12795. # CC pic flag -KPIC is the default.
  12796. ;;
  12797. *)
  12798. ;;
  12799. esac
  12800. ;;
  12801. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12802. case $cc_basename in
  12803. KCC*)
  12804. # KAI C++ Compiler
  12805. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12806. lt_prog_compiler_pic_CXX='-fPIC'
  12807. ;;
  12808. ecpc* )
  12809. # old Intel C++ for x86_64, which still supported -KPIC.
  12810. lt_prog_compiler_wl_CXX='-Wl,'
  12811. lt_prog_compiler_pic_CXX='-KPIC'
  12812. lt_prog_compiler_static_CXX='-static'
  12813. ;;
  12814. icpc* )
  12815. # Intel C++, used to be incompatible with GCC.
  12816. # ICC 10 doesn't accept -KPIC any more.
  12817. lt_prog_compiler_wl_CXX='-Wl,'
  12818. lt_prog_compiler_pic_CXX='-fPIC'
  12819. lt_prog_compiler_static_CXX='-static'
  12820. ;;
  12821. pgCC* | pgcpp*)
  12822. # Portland Group C++ compiler
  12823. lt_prog_compiler_wl_CXX='-Wl,'
  12824. lt_prog_compiler_pic_CXX='-fpic'
  12825. lt_prog_compiler_static_CXX='-Bstatic'
  12826. ;;
  12827. cxx*)
  12828. # Compaq C++
  12829. # Make sure the PIC flag is empty. It appears that all Alpha
  12830. # Linux and Compaq Tru64 Unix objects are PIC.
  12831. lt_prog_compiler_pic_CXX=
  12832. lt_prog_compiler_static_CXX='-non_shared'
  12833. ;;
  12834. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12835. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12836. lt_prog_compiler_wl_CXX='-Wl,'
  12837. lt_prog_compiler_pic_CXX='-qpic'
  12838. lt_prog_compiler_static_CXX='-qstaticlink'
  12839. ;;
  12840. *)
  12841. case `$CC -V 2>&1 | sed 5q` in
  12842. *Sun\ C*)
  12843. # Sun C++ 5.9
  12844. lt_prog_compiler_pic_CXX='-KPIC'
  12845. lt_prog_compiler_static_CXX='-Bstatic'
  12846. lt_prog_compiler_wl_CXX='-Qoption ld '
  12847. ;;
  12848. esac
  12849. ;;
  12850. esac
  12851. ;;
  12852. lynxos*)
  12853. ;;
  12854. m88k*)
  12855. ;;
  12856. mvs*)
  12857. case $cc_basename in
  12858. cxx*)
  12859. lt_prog_compiler_pic_CXX='-W c,exportall'
  12860. ;;
  12861. *)
  12862. ;;
  12863. esac
  12864. ;;
  12865. netbsd* | netbsdelf*-gnu)
  12866. ;;
  12867. *qnx* | *nto*)
  12868. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12869. # it will coredump.
  12870. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12871. ;;
  12872. osf3* | osf4* | osf5*)
  12873. case $cc_basename in
  12874. KCC*)
  12875. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12876. ;;
  12877. RCC*)
  12878. # Rational C++ 2.4.1
  12879. lt_prog_compiler_pic_CXX='-pic'
  12880. ;;
  12881. cxx*)
  12882. # Digital/Compaq C++
  12883. lt_prog_compiler_wl_CXX='-Wl,'
  12884. # Make sure the PIC flag is empty. It appears that all Alpha
  12885. # Linux and Compaq Tru64 Unix objects are PIC.
  12886. lt_prog_compiler_pic_CXX=
  12887. lt_prog_compiler_static_CXX='-non_shared'
  12888. ;;
  12889. *)
  12890. ;;
  12891. esac
  12892. ;;
  12893. psos*)
  12894. ;;
  12895. solaris*)
  12896. case $cc_basename in
  12897. CC* | sunCC*)
  12898. # Sun C++ 4.2, 5.x and Centerline C++
  12899. lt_prog_compiler_pic_CXX='-KPIC'
  12900. lt_prog_compiler_static_CXX='-Bstatic'
  12901. lt_prog_compiler_wl_CXX='-Qoption ld '
  12902. ;;
  12903. gcx*)
  12904. # Green Hills C++ Compiler
  12905. lt_prog_compiler_pic_CXX='-PIC'
  12906. ;;
  12907. *)
  12908. ;;
  12909. esac
  12910. ;;
  12911. sunos4*)
  12912. case $cc_basename in
  12913. CC*)
  12914. # Sun C++ 4.x
  12915. lt_prog_compiler_pic_CXX='-pic'
  12916. lt_prog_compiler_static_CXX='-Bstatic'
  12917. ;;
  12918. lcc*)
  12919. # Lucid
  12920. lt_prog_compiler_pic_CXX='-pic'
  12921. ;;
  12922. *)
  12923. ;;
  12924. esac
  12925. ;;
  12926. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12927. case $cc_basename in
  12928. CC*)
  12929. lt_prog_compiler_wl_CXX='-Wl,'
  12930. lt_prog_compiler_pic_CXX='-KPIC'
  12931. lt_prog_compiler_static_CXX='-Bstatic'
  12932. ;;
  12933. esac
  12934. ;;
  12935. tandem*)
  12936. case $cc_basename in
  12937. NCC*)
  12938. # NonStop-UX NCC 3.20
  12939. lt_prog_compiler_pic_CXX='-KPIC'
  12940. ;;
  12941. *)
  12942. ;;
  12943. esac
  12944. ;;
  12945. vxworks*)
  12946. ;;
  12947. *)
  12948. lt_prog_compiler_can_build_shared_CXX=no
  12949. ;;
  12950. esac
  12951. fi
  12952. case $host_os in
  12953. # For platforms that do not support PIC, -DPIC is meaningless:
  12954. *djgpp*)
  12955. lt_prog_compiler_pic_CXX=
  12956. ;;
  12957. *)
  12958. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12959. ;;
  12960. esac
  12961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12962. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12963. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12964. $as_echo_n "(cached) " >&6
  12965. else
  12966. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12967. fi
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12969. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12970. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12971. #
  12972. # Check to make sure the PIC flag actually works.
  12973. #
  12974. if test -n "$lt_prog_compiler_pic_CXX"; then
  12975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12976. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12977. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12978. $as_echo_n "(cached) " >&6
  12979. else
  12980. lt_cv_prog_compiler_pic_works_CXX=no
  12981. ac_outfile=conftest.$ac_objext
  12982. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12983. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12984. # Insert the option either (1) after the last *FLAGS variable, or
  12985. # (2) before a word containing "conftest.", or (3) at the end.
  12986. # Note that $ac_compile itself does not contain backslashes and begins
  12987. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12988. # The option is referenced via a variable to avoid confusing sed.
  12989. lt_compile=`echo "$ac_compile" | $SED \
  12990. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12991. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12992. -e 's:$: $lt_compiler_flag:'`
  12993. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12994. (eval "$lt_compile" 2>conftest.err)
  12995. ac_status=$?
  12996. cat conftest.err >&5
  12997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12998. if (exit $ac_status) && test -s "$ac_outfile"; then
  12999. # The compiler can only warn and ignore the option if not recognized
  13000. # So say no if there are warnings other than the usual output.
  13001. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13002. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13003. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13004. lt_cv_prog_compiler_pic_works_CXX=yes
  13005. fi
  13006. fi
  13007. $RM conftest*
  13008. fi
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13010. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13011. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13012. case $lt_prog_compiler_pic_CXX in
  13013. "" | " "*) ;;
  13014. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13015. esac
  13016. else
  13017. lt_prog_compiler_pic_CXX=
  13018. lt_prog_compiler_can_build_shared_CXX=no
  13019. fi
  13020. fi
  13021. #
  13022. # Check to make sure the static flag actually works.
  13023. #
  13024. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13026. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13027. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13028. $as_echo_n "(cached) " >&6
  13029. else
  13030. lt_cv_prog_compiler_static_works_CXX=no
  13031. save_LDFLAGS=$LDFLAGS
  13032. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13033. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13034. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13035. # The linker can only warn and ignore the option if not recognized
  13036. # So say no if there are warnings
  13037. if test -s conftest.err; then
  13038. # Append any errors to the config.log.
  13039. cat conftest.err 1>&5
  13040. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13041. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13042. if diff conftest.exp conftest.er2 >/dev/null; then
  13043. lt_cv_prog_compiler_static_works_CXX=yes
  13044. fi
  13045. else
  13046. lt_cv_prog_compiler_static_works_CXX=yes
  13047. fi
  13048. fi
  13049. $RM -r conftest*
  13050. LDFLAGS=$save_LDFLAGS
  13051. fi
  13052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13053. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13054. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13055. :
  13056. else
  13057. lt_prog_compiler_static_CXX=
  13058. fi
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13060. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13061. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13062. $as_echo_n "(cached) " >&6
  13063. else
  13064. lt_cv_prog_compiler_c_o_CXX=no
  13065. $RM -r conftest 2>/dev/null
  13066. mkdir conftest
  13067. cd conftest
  13068. mkdir out
  13069. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13070. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13071. # Insert the option either (1) after the last *FLAGS variable, or
  13072. # (2) before a word containing "conftest.", or (3) at the end.
  13073. # Note that $ac_compile itself does not contain backslashes and begins
  13074. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13075. lt_compile=`echo "$ac_compile" | $SED \
  13076. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13077. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13078. -e 's:$: $lt_compiler_flag:'`
  13079. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13080. (eval "$lt_compile" 2>out/conftest.err)
  13081. ac_status=$?
  13082. cat out/conftest.err >&5
  13083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13084. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13085. then
  13086. # The compiler can only warn and ignore the option if not recognized
  13087. # So say no if there are warnings
  13088. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13089. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13090. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13091. lt_cv_prog_compiler_c_o_CXX=yes
  13092. fi
  13093. fi
  13094. chmod u+w . 2>&5
  13095. $RM conftest*
  13096. # SGI C++ compiler will create directory out/ii_files/ for
  13097. # template instantiation
  13098. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13099. $RM out/* && rmdir out
  13100. cd ..
  13101. $RM -r conftest
  13102. $RM conftest*
  13103. fi
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13105. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13107. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13108. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13109. $as_echo_n "(cached) " >&6
  13110. else
  13111. lt_cv_prog_compiler_c_o_CXX=no
  13112. $RM -r conftest 2>/dev/null
  13113. mkdir conftest
  13114. cd conftest
  13115. mkdir out
  13116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13117. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13118. # Insert the option either (1) after the last *FLAGS variable, or
  13119. # (2) before a word containing "conftest.", or (3) at the end.
  13120. # Note that $ac_compile itself does not contain backslashes and begins
  13121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13122. lt_compile=`echo "$ac_compile" | $SED \
  13123. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13124. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13125. -e 's:$: $lt_compiler_flag:'`
  13126. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13127. (eval "$lt_compile" 2>out/conftest.err)
  13128. ac_status=$?
  13129. cat out/conftest.err >&5
  13130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13131. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13132. then
  13133. # The compiler can only warn and ignore the option if not recognized
  13134. # So say no if there are warnings
  13135. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13136. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13137. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13138. lt_cv_prog_compiler_c_o_CXX=yes
  13139. fi
  13140. fi
  13141. chmod u+w . 2>&5
  13142. $RM conftest*
  13143. # SGI C++ compiler will create directory out/ii_files/ for
  13144. # template instantiation
  13145. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13146. $RM out/* && rmdir out
  13147. cd ..
  13148. $RM -r conftest
  13149. $RM conftest*
  13150. fi
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13152. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13153. hard_links=nottested
  13154. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13155. # do not overwrite the value of need_locks provided by the user
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13157. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13158. hard_links=yes
  13159. $RM conftest*
  13160. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13161. touch conftest.a
  13162. ln conftest.a conftest.b 2>&5 || hard_links=no
  13163. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13165. $as_echo "$hard_links" >&6; }
  13166. if test no = "$hard_links"; then
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13168. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13169. need_locks=warn
  13170. fi
  13171. else
  13172. need_locks=no
  13173. fi
  13174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13175. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13176. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13177. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13178. case $host_os in
  13179. aix[4-9]*)
  13180. # If we're using GNU nm, then we don't want the "-C" option.
  13181. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13182. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13183. # weak defined symbols like other global defined symbols, whereas
  13184. # GNU nm marks them as "W".
  13185. # While the 'weak' keyword is ignored in the Export File, we need
  13186. # it in the Import File for the 'aix-soname' feature, so we have
  13187. # to replace the "-B" option with "-P" for AIX nm.
  13188. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13189. 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'
  13190. else
  13191. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13192. fi
  13193. ;;
  13194. pw32*)
  13195. export_symbols_cmds_CXX=$ltdll_cmds
  13196. ;;
  13197. cygwin* | mingw* | cegcc*)
  13198. case $cc_basename in
  13199. cl*)
  13200. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13201. ;;
  13202. *)
  13203. 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'
  13204. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13205. ;;
  13206. esac
  13207. ;;
  13208. linux* | k*bsd*-gnu | gnu*)
  13209. link_all_deplibs_CXX=no
  13210. ;;
  13211. *)
  13212. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13213. ;;
  13214. esac
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13216. $as_echo "$ld_shlibs_CXX" >&6; }
  13217. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13218. with_gnu_ld_CXX=$with_gnu_ld
  13219. #
  13220. # Do we need to explicitly link libc?
  13221. #
  13222. case "x$archive_cmds_need_lc_CXX" in
  13223. x|xyes)
  13224. # Assume -lc should be added
  13225. archive_cmds_need_lc_CXX=yes
  13226. if test yes,yes = "$GCC,$enable_shared"; then
  13227. case $archive_cmds_CXX in
  13228. *'~'*)
  13229. # FIXME: we may have to deal with multi-command sequences.
  13230. ;;
  13231. '$CC '*)
  13232. # Test whether the compiler implicitly links with -lc since on some
  13233. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13234. # to ld, don't add -lc before -lgcc.
  13235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13236. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13237. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13238. $as_echo_n "(cached) " >&6
  13239. else
  13240. $RM conftest*
  13241. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13242. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13243. (eval $ac_compile) 2>&5
  13244. ac_status=$?
  13245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13246. test $ac_status = 0; } 2>conftest.err; then
  13247. soname=conftest
  13248. lib=conftest
  13249. libobjs=conftest.$ac_objext
  13250. deplibs=
  13251. wl=$lt_prog_compiler_wl_CXX
  13252. pic_flag=$lt_prog_compiler_pic_CXX
  13253. compiler_flags=-v
  13254. linker_flags=-v
  13255. verstring=
  13256. output_objdir=.
  13257. libname=conftest
  13258. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13259. allow_undefined_flag_CXX=
  13260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13261. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13262. ac_status=$?
  13263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13264. test $ac_status = 0; }
  13265. then
  13266. lt_cv_archive_cmds_need_lc_CXX=no
  13267. else
  13268. lt_cv_archive_cmds_need_lc_CXX=yes
  13269. fi
  13270. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13271. else
  13272. cat conftest.err 1>&5
  13273. fi
  13274. $RM conftest*
  13275. fi
  13276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13277. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13278. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13279. ;;
  13280. esac
  13281. fi
  13282. ;;
  13283. esac
  13284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13285. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13286. library_names_spec=
  13287. libname_spec='lib$name'
  13288. soname_spec=
  13289. shrext_cmds=.so
  13290. postinstall_cmds=
  13291. postuninstall_cmds=
  13292. finish_cmds=
  13293. finish_eval=
  13294. shlibpath_var=
  13295. shlibpath_overrides_runpath=unknown
  13296. version_type=none
  13297. dynamic_linker="$host_os ld.so"
  13298. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13299. need_lib_prefix=unknown
  13300. hardcode_into_libs=no
  13301. # when you set need_version to no, make sure it does not cause -set_version
  13302. # flags to be left without arguments
  13303. need_version=unknown
  13304. case $host_os in
  13305. aix3*)
  13306. version_type=linux # correct to gnu/linux during the next big refactor
  13307. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13308. shlibpath_var=LIBPATH
  13309. # AIX 3 has no versioning support, so we append a major version to the name.
  13310. soname_spec='$libname$release$shared_ext$major'
  13311. ;;
  13312. aix[4-9]*)
  13313. version_type=linux # correct to gnu/linux during the next big refactor
  13314. need_lib_prefix=no
  13315. need_version=no
  13316. hardcode_into_libs=yes
  13317. if test ia64 = "$host_cpu"; then
  13318. # AIX 5 supports IA64
  13319. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13320. shlibpath_var=LD_LIBRARY_PATH
  13321. else
  13322. # With GCC up to 2.95.x, collect2 would create an import file
  13323. # for dependence libraries. The import file would start with
  13324. # the line '#! .'. This would cause the generated library to
  13325. # depend on '.', always an invalid library. This was fixed in
  13326. # development snapshots of GCC prior to 3.0.
  13327. case $host_os in
  13328. aix4 | aix4.[01] | aix4.[01].*)
  13329. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13330. echo ' yes '
  13331. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13332. :
  13333. else
  13334. can_build_shared=no
  13335. fi
  13336. ;;
  13337. esac
  13338. # Using Import Files as archive members, it is possible to support
  13339. # filename-based versioning of shared library archives on AIX. While
  13340. # this would work for both with and without runtime linking, it will
  13341. # prevent static linking of such archives. So we do filename-based
  13342. # shared library versioning with .so extension only, which is used
  13343. # when both runtime linking and shared linking is enabled.
  13344. # Unfortunately, runtime linking may impact performance, so we do
  13345. # not want this to be the default eventually. Also, we use the
  13346. # versioned .so libs for executables only if there is the -brtl
  13347. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13348. # To allow for filename-based versioning support, we need to create
  13349. # libNAME.so.V as an archive file, containing:
  13350. # *) an Import File, referring to the versioned filename of the
  13351. # archive as well as the shared archive member, telling the
  13352. # bitwidth (32 or 64) of that shared object, and providing the
  13353. # list of exported symbols of that shared object, eventually
  13354. # decorated with the 'weak' keyword
  13355. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13356. # it being seen by the linker.
  13357. # At run time we better use the real file rather than another symlink,
  13358. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13359. case $with_aix_soname,$aix_use_runtimelinking in
  13360. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13361. # soname into executable. Probably we can add versioning support to
  13362. # collect2, so additional links can be useful in future.
  13363. aix,yes) # traditional libtool
  13364. dynamic_linker='AIX unversionable lib.so'
  13365. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13366. # instead of lib<name>.a to let people know that these are not
  13367. # typical AIX shared libraries.
  13368. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13369. ;;
  13370. aix,no) # traditional AIX only
  13371. dynamic_linker='AIX lib.a(lib.so.V)'
  13372. # We preserve .a as extension for shared libraries through AIX4.2
  13373. # and later when we are not doing run time linking.
  13374. library_names_spec='$libname$release.a $libname.a'
  13375. soname_spec='$libname$release$shared_ext$major'
  13376. ;;
  13377. svr4,*) # full svr4 only
  13378. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13379. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13380. # We do not specify a path in Import Files, so LIBPATH fires.
  13381. shlibpath_overrides_runpath=yes
  13382. ;;
  13383. *,yes) # both, prefer svr4
  13384. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13385. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13386. # unpreferred sharedlib libNAME.a needs extra handling
  13387. 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"'
  13388. 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"'
  13389. # We do not specify a path in Import Files, so LIBPATH fires.
  13390. shlibpath_overrides_runpath=yes
  13391. ;;
  13392. *,no) # both, prefer aix
  13393. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13394. library_names_spec='$libname$release.a $libname.a'
  13395. soname_spec='$libname$release$shared_ext$major'
  13396. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13397. 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)'
  13398. 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"'
  13399. ;;
  13400. esac
  13401. shlibpath_var=LIBPATH
  13402. fi
  13403. ;;
  13404. amigaos*)
  13405. case $host_cpu in
  13406. powerpc)
  13407. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13408. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13409. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13410. ;;
  13411. m68k)
  13412. library_names_spec='$libname.ixlibrary $libname.a'
  13413. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13414. 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'
  13415. ;;
  13416. esac
  13417. ;;
  13418. beos*)
  13419. library_names_spec='$libname$shared_ext'
  13420. dynamic_linker="$host_os ld.so"
  13421. shlibpath_var=LIBRARY_PATH
  13422. ;;
  13423. bsdi[45]*)
  13424. version_type=linux # correct to gnu/linux during the next big refactor
  13425. need_version=no
  13426. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13427. soname_spec='$libname$release$shared_ext$major'
  13428. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13429. shlibpath_var=LD_LIBRARY_PATH
  13430. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13431. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13432. # the default ld.so.conf also contains /usr/contrib/lib and
  13433. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13434. # libtool to hard-code these into programs
  13435. ;;
  13436. cygwin* | mingw* | pw32* | cegcc*)
  13437. version_type=windows
  13438. shrext_cmds=.dll
  13439. need_version=no
  13440. need_lib_prefix=no
  13441. case $GCC,$cc_basename in
  13442. yes,*)
  13443. # gcc
  13444. library_names_spec='$libname.dll.a'
  13445. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13446. postinstall_cmds='base_file=`basename \$file`~
  13447. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13448. dldir=$destdir/`dirname \$dlpath`~
  13449. test -d \$dldir || mkdir -p \$dldir~
  13450. $install_prog $dir/$dlname \$dldir/$dlname~
  13451. chmod a+x \$dldir/$dlname~
  13452. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13453. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13454. fi'
  13455. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13456. dlpath=$dir/\$dldll~
  13457. $RM \$dlpath'
  13458. shlibpath_overrides_runpath=yes
  13459. case $host_os in
  13460. cygwin*)
  13461. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13462. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13463. ;;
  13464. mingw* | cegcc*)
  13465. # MinGW DLLs use traditional 'lib' prefix
  13466. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13467. ;;
  13468. pw32*)
  13469. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13470. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13471. ;;
  13472. esac
  13473. dynamic_linker='Win32 ld.exe'
  13474. ;;
  13475. *,cl*)
  13476. # Native MSVC
  13477. libname_spec='$name'
  13478. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13479. library_names_spec='$libname.dll.lib'
  13480. case $build_os in
  13481. mingw*)
  13482. sys_lib_search_path_spec=
  13483. lt_save_ifs=$IFS
  13484. IFS=';'
  13485. for lt_path in $LIB
  13486. do
  13487. IFS=$lt_save_ifs
  13488. # Let DOS variable expansion print the short 8.3 style file name.
  13489. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13490. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13491. done
  13492. IFS=$lt_save_ifs
  13493. # Convert to MSYS style.
  13494. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13495. ;;
  13496. cygwin*)
  13497. # Convert to unix form, then to dos form, then back to unix form
  13498. # but this time dos style (no spaces!) so that the unix form looks
  13499. # like /cygdrive/c/PROGRA~1:/cygdr...
  13500. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13501. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13502. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13503. ;;
  13504. *)
  13505. sys_lib_search_path_spec=$LIB
  13506. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13507. # It is most probably a Windows format PATH.
  13508. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13509. else
  13510. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13511. fi
  13512. # FIXME: find the short name or the path components, as spaces are
  13513. # common. (e.g. "Program Files" -> "PROGRA~1")
  13514. ;;
  13515. esac
  13516. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13517. postinstall_cmds='base_file=`basename \$file`~
  13518. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13519. dldir=$destdir/`dirname \$dlpath`~
  13520. test -d \$dldir || mkdir -p \$dldir~
  13521. $install_prog $dir/$dlname \$dldir/$dlname'
  13522. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13523. dlpath=$dir/\$dldll~
  13524. $RM \$dlpath'
  13525. shlibpath_overrides_runpath=yes
  13526. dynamic_linker='Win32 link.exe'
  13527. ;;
  13528. *)
  13529. # Assume MSVC wrapper
  13530. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13531. dynamic_linker='Win32 ld.exe'
  13532. ;;
  13533. esac
  13534. # FIXME: first we should search . and the directory the executable is in
  13535. shlibpath_var=PATH
  13536. ;;
  13537. darwin* | rhapsody*)
  13538. dynamic_linker="$host_os dyld"
  13539. version_type=darwin
  13540. need_lib_prefix=no
  13541. need_version=no
  13542. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13543. soname_spec='$libname$release$major$shared_ext'
  13544. shlibpath_overrides_runpath=yes
  13545. shlibpath_var=DYLD_LIBRARY_PATH
  13546. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13547. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13548. ;;
  13549. dgux*)
  13550. version_type=linux # correct to gnu/linux during the next big refactor
  13551. need_lib_prefix=no
  13552. need_version=no
  13553. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13554. soname_spec='$libname$release$shared_ext$major'
  13555. shlibpath_var=LD_LIBRARY_PATH
  13556. ;;
  13557. freebsd* | dragonfly*)
  13558. # DragonFly does not have aout. When/if they implement a new
  13559. # versioning mechanism, adjust this.
  13560. if test -x /usr/bin/objformat; then
  13561. objformat=`/usr/bin/objformat`
  13562. else
  13563. case $host_os in
  13564. freebsd[23].*) objformat=aout ;;
  13565. *) objformat=elf ;;
  13566. esac
  13567. fi
  13568. version_type=freebsd-$objformat
  13569. case $version_type in
  13570. freebsd-elf*)
  13571. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13572. soname_spec='$libname$release$shared_ext$major'
  13573. need_version=no
  13574. need_lib_prefix=no
  13575. ;;
  13576. freebsd-*)
  13577. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13578. need_version=yes
  13579. ;;
  13580. esac
  13581. shlibpath_var=LD_LIBRARY_PATH
  13582. case $host_os in
  13583. freebsd2.*)
  13584. shlibpath_overrides_runpath=yes
  13585. ;;
  13586. freebsd3.[01]* | freebsdelf3.[01]*)
  13587. shlibpath_overrides_runpath=yes
  13588. hardcode_into_libs=yes
  13589. ;;
  13590. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13591. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13592. shlibpath_overrides_runpath=no
  13593. hardcode_into_libs=yes
  13594. ;;
  13595. *) # from 4.6 on, and DragonFly
  13596. shlibpath_overrides_runpath=yes
  13597. hardcode_into_libs=yes
  13598. ;;
  13599. esac
  13600. ;;
  13601. haiku*)
  13602. version_type=linux # correct to gnu/linux during the next big refactor
  13603. need_lib_prefix=no
  13604. need_version=no
  13605. dynamic_linker="$host_os runtime_loader"
  13606. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13607. soname_spec='$libname$release$shared_ext$major'
  13608. shlibpath_var=LIBRARY_PATH
  13609. shlibpath_overrides_runpath=no
  13610. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13611. hardcode_into_libs=yes
  13612. ;;
  13613. hpux9* | hpux10* | hpux11*)
  13614. # Give a soname corresponding to the major version so that dld.sl refuses to
  13615. # link against other versions.
  13616. version_type=sunos
  13617. need_lib_prefix=no
  13618. need_version=no
  13619. case $host_cpu in
  13620. ia64*)
  13621. shrext_cmds='.so'
  13622. hardcode_into_libs=yes
  13623. dynamic_linker="$host_os dld.so"
  13624. shlibpath_var=LD_LIBRARY_PATH
  13625. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13627. soname_spec='$libname$release$shared_ext$major'
  13628. if test 32 = "$HPUX_IA64_MODE"; then
  13629. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13630. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13631. else
  13632. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13633. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13634. fi
  13635. ;;
  13636. hppa*64*)
  13637. shrext_cmds='.sl'
  13638. hardcode_into_libs=yes
  13639. dynamic_linker="$host_os dld.sl"
  13640. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13641. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13642. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13643. soname_spec='$libname$release$shared_ext$major'
  13644. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13645. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13646. ;;
  13647. *)
  13648. shrext_cmds='.sl'
  13649. dynamic_linker="$host_os dld.sl"
  13650. shlibpath_var=SHLIB_PATH
  13651. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13652. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13653. soname_spec='$libname$release$shared_ext$major'
  13654. ;;
  13655. esac
  13656. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13657. postinstall_cmds='chmod 555 $lib'
  13658. # or fails outright, so override atomically:
  13659. install_override_mode=555
  13660. ;;
  13661. interix[3-9]*)
  13662. version_type=linux # correct to gnu/linux during the next big refactor
  13663. need_lib_prefix=no
  13664. need_version=no
  13665. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13666. soname_spec='$libname$release$shared_ext$major'
  13667. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13668. shlibpath_var=LD_LIBRARY_PATH
  13669. shlibpath_overrides_runpath=no
  13670. hardcode_into_libs=yes
  13671. ;;
  13672. irix5* | irix6* | nonstopux*)
  13673. case $host_os in
  13674. nonstopux*) version_type=nonstopux ;;
  13675. *)
  13676. if test yes = "$lt_cv_prog_gnu_ld"; then
  13677. version_type=linux # correct to gnu/linux during the next big refactor
  13678. else
  13679. version_type=irix
  13680. fi ;;
  13681. esac
  13682. need_lib_prefix=no
  13683. need_version=no
  13684. soname_spec='$libname$release$shared_ext$major'
  13685. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13686. case $host_os in
  13687. irix5* | nonstopux*)
  13688. libsuff= shlibsuff=
  13689. ;;
  13690. *)
  13691. case $LD in # libtool.m4 will add one of these switches to LD
  13692. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13693. libsuff= shlibsuff= libmagic=32-bit;;
  13694. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13695. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13696. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13697. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13698. *) libsuff= shlibsuff= libmagic=never-match;;
  13699. esac
  13700. ;;
  13701. esac
  13702. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13703. shlibpath_overrides_runpath=no
  13704. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13705. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13706. hardcode_into_libs=yes
  13707. ;;
  13708. # No shared lib support for Linux oldld, aout, or coff.
  13709. linux*oldld* | linux*aout* | linux*coff*)
  13710. dynamic_linker=no
  13711. ;;
  13712. linux*android*)
  13713. version_type=none # Android doesn't support versioned libraries.
  13714. need_lib_prefix=no
  13715. need_version=no
  13716. library_names_spec='$libname$release$shared_ext'
  13717. soname_spec='$libname$release$shared_ext'
  13718. finish_cmds=
  13719. shlibpath_var=LD_LIBRARY_PATH
  13720. shlibpath_overrides_runpath=yes
  13721. # This implies no fast_install, which is unacceptable.
  13722. # Some rework will be needed to allow for fast_install
  13723. # before this can be enabled.
  13724. hardcode_into_libs=yes
  13725. dynamic_linker='Android linker'
  13726. # Don't embed -rpath directories since the linker doesn't support them.
  13727. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13728. ;;
  13729. # This must be glibc/ELF.
  13730. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13731. version_type=linux # correct to gnu/linux during the next big refactor
  13732. need_lib_prefix=no
  13733. need_version=no
  13734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13735. soname_spec='$libname$release$shared_ext$major'
  13736. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13737. shlibpath_var=LD_LIBRARY_PATH
  13738. shlibpath_overrides_runpath=no
  13739. # Some binutils ld are patched to set DT_RUNPATH
  13740. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13741. $as_echo_n "(cached) " >&6
  13742. else
  13743. lt_cv_shlibpath_overrides_runpath=no
  13744. save_LDFLAGS=$LDFLAGS
  13745. save_libdir=$libdir
  13746. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13747. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13749. /* end confdefs.h. */
  13750. int
  13751. main ()
  13752. {
  13753. ;
  13754. return 0;
  13755. }
  13756. _ACEOF
  13757. if ac_fn_cxx_try_link "$LINENO"; then :
  13758. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13759. lt_cv_shlibpath_overrides_runpath=yes
  13760. fi
  13761. fi
  13762. rm -f core conftest.err conftest.$ac_objext \
  13763. conftest$ac_exeext conftest.$ac_ext
  13764. LDFLAGS=$save_LDFLAGS
  13765. libdir=$save_libdir
  13766. fi
  13767. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13768. # This implies no fast_install, which is unacceptable.
  13769. # Some rework will be needed to allow for fast_install
  13770. # before this can be enabled.
  13771. hardcode_into_libs=yes
  13772. # Ideally, we could use ldconfig to report *all* directores which are
  13773. # searched for libraries, however this is still not possible. Aside from not
  13774. # being certain /sbin/ldconfig is available, command
  13775. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13776. # even though it is searched at run-time. Try to do the best guess by
  13777. # appending ld.so.conf contents (and includes) to the search path.
  13778. if test -f /etc/ld.so.conf; then
  13779. 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' ' '`
  13780. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13781. fi
  13782. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13783. # powerpc, because MkLinux only supported shared libraries with the
  13784. # GNU dynamic linker. Since this was broken with cross compilers,
  13785. # most powerpc-linux boxes support dynamic linking these days and
  13786. # people can always --disable-shared, the test was removed, and we
  13787. # assume the GNU/Linux dynamic linker is in use.
  13788. dynamic_linker='GNU/Linux ld.so'
  13789. ;;
  13790. netbsdelf*-gnu)
  13791. version_type=linux
  13792. need_lib_prefix=no
  13793. need_version=no
  13794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13795. soname_spec='${libname}${release}${shared_ext}$major'
  13796. shlibpath_var=LD_LIBRARY_PATH
  13797. shlibpath_overrides_runpath=no
  13798. hardcode_into_libs=yes
  13799. dynamic_linker='NetBSD ld.elf_so'
  13800. ;;
  13801. netbsd*)
  13802. version_type=sunos
  13803. need_lib_prefix=no
  13804. need_version=no
  13805. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13806. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13807. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13808. dynamic_linker='NetBSD (a.out) ld.so'
  13809. else
  13810. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13811. soname_spec='$libname$release$shared_ext$major'
  13812. dynamic_linker='NetBSD ld.elf_so'
  13813. fi
  13814. shlibpath_var=LD_LIBRARY_PATH
  13815. shlibpath_overrides_runpath=yes
  13816. hardcode_into_libs=yes
  13817. ;;
  13818. newsos6)
  13819. version_type=linux # correct to gnu/linux during the next big refactor
  13820. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13821. shlibpath_var=LD_LIBRARY_PATH
  13822. shlibpath_overrides_runpath=yes
  13823. ;;
  13824. *nto* | *qnx*)
  13825. version_type=qnx
  13826. need_lib_prefix=no
  13827. need_version=no
  13828. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13829. soname_spec='$libname$release$shared_ext$major'
  13830. shlibpath_var=LD_LIBRARY_PATH
  13831. shlibpath_overrides_runpath=no
  13832. hardcode_into_libs=yes
  13833. dynamic_linker='ldqnx.so'
  13834. ;;
  13835. openbsd* | bitrig*)
  13836. version_type=sunos
  13837. sys_lib_dlsearch_path_spec=/usr/lib
  13838. need_lib_prefix=no
  13839. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13840. need_version=no
  13841. else
  13842. need_version=yes
  13843. fi
  13844. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13845. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13846. shlibpath_var=LD_LIBRARY_PATH
  13847. shlibpath_overrides_runpath=yes
  13848. ;;
  13849. os2*)
  13850. libname_spec='$name'
  13851. version_type=windows
  13852. shrext_cmds=.dll
  13853. need_version=no
  13854. need_lib_prefix=no
  13855. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13856. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13857. v=$($ECHO $release$versuffix | tr -d .-);
  13858. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13859. $ECHO $n$v`$shared_ext'
  13860. library_names_spec='${libname}_dll.$libext'
  13861. dynamic_linker='OS/2 ld.exe'
  13862. shlibpath_var=BEGINLIBPATH
  13863. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13864. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13865. postinstall_cmds='base_file=`basename \$file`~
  13866. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13867. dldir=$destdir/`dirname \$dlpath`~
  13868. test -d \$dldir || mkdir -p \$dldir~
  13869. $install_prog $dir/$dlname \$dldir/$dlname~
  13870. chmod a+x \$dldir/$dlname~
  13871. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13872. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13873. fi'
  13874. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13875. dlpath=$dir/\$dldll~
  13876. $RM \$dlpath'
  13877. ;;
  13878. osf3* | osf4* | osf5*)
  13879. version_type=osf
  13880. need_lib_prefix=no
  13881. need_version=no
  13882. soname_spec='$libname$release$shared_ext$major'
  13883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13884. shlibpath_var=LD_LIBRARY_PATH
  13885. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13886. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13887. ;;
  13888. rdos*)
  13889. dynamic_linker=no
  13890. ;;
  13891. solaris*)
  13892. version_type=linux # correct to gnu/linux during the next big refactor
  13893. need_lib_prefix=no
  13894. need_version=no
  13895. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13896. soname_spec='$libname$release$shared_ext$major'
  13897. shlibpath_var=LD_LIBRARY_PATH
  13898. shlibpath_overrides_runpath=yes
  13899. hardcode_into_libs=yes
  13900. # ldd complains unless libraries are executable
  13901. postinstall_cmds='chmod +x $lib'
  13902. ;;
  13903. sunos4*)
  13904. version_type=sunos
  13905. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13906. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13907. shlibpath_var=LD_LIBRARY_PATH
  13908. shlibpath_overrides_runpath=yes
  13909. if test yes = "$with_gnu_ld"; then
  13910. need_lib_prefix=no
  13911. fi
  13912. need_version=yes
  13913. ;;
  13914. sysv4 | sysv4.3*)
  13915. version_type=linux # correct to gnu/linux during the next big refactor
  13916. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13917. soname_spec='$libname$release$shared_ext$major'
  13918. shlibpath_var=LD_LIBRARY_PATH
  13919. case $host_vendor in
  13920. sni)
  13921. shlibpath_overrides_runpath=no
  13922. need_lib_prefix=no
  13923. runpath_var=LD_RUN_PATH
  13924. ;;
  13925. siemens)
  13926. need_lib_prefix=no
  13927. ;;
  13928. motorola)
  13929. need_lib_prefix=no
  13930. need_version=no
  13931. shlibpath_overrides_runpath=no
  13932. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13933. ;;
  13934. esac
  13935. ;;
  13936. sysv4*MP*)
  13937. if test -d /usr/nec; then
  13938. version_type=linux # correct to gnu/linux during the next big refactor
  13939. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13940. soname_spec='$libname$shared_ext.$major'
  13941. shlibpath_var=LD_LIBRARY_PATH
  13942. fi
  13943. ;;
  13944. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13945. version_type=sco
  13946. need_lib_prefix=no
  13947. need_version=no
  13948. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13949. soname_spec='$libname$release$shared_ext$major'
  13950. shlibpath_var=LD_LIBRARY_PATH
  13951. shlibpath_overrides_runpath=yes
  13952. hardcode_into_libs=yes
  13953. if test yes = "$with_gnu_ld"; then
  13954. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13955. else
  13956. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13957. case $host_os in
  13958. sco3.2v5*)
  13959. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13960. ;;
  13961. esac
  13962. fi
  13963. sys_lib_dlsearch_path_spec='/usr/lib'
  13964. ;;
  13965. tpf*)
  13966. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13967. version_type=linux # correct to gnu/linux during the next big refactor
  13968. need_lib_prefix=no
  13969. need_version=no
  13970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13971. shlibpath_var=LD_LIBRARY_PATH
  13972. shlibpath_overrides_runpath=no
  13973. hardcode_into_libs=yes
  13974. ;;
  13975. uts4*)
  13976. version_type=linux # correct to gnu/linux during the next big refactor
  13977. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13978. soname_spec='$libname$release$shared_ext$major'
  13979. shlibpath_var=LD_LIBRARY_PATH
  13980. ;;
  13981. *)
  13982. dynamic_linker=no
  13983. ;;
  13984. esac
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13986. $as_echo "$dynamic_linker" >&6; }
  13987. test no = "$dynamic_linker" && can_build_shared=no
  13988. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13989. if test yes = "$GCC"; then
  13990. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13991. fi
  13992. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13993. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13994. fi
  13995. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13996. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13997. fi
  13998. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13999. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14000. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14001. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14002. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14003. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14005. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14006. hardcode_action_CXX=
  14007. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14008. test -n "$runpath_var_CXX" ||
  14009. test yes = "$hardcode_automatic_CXX"; then
  14010. # We can hardcode non-existent directories.
  14011. if test no != "$hardcode_direct_CXX" &&
  14012. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14013. # have to relink, otherwise we might link with an installed library
  14014. # when we should be linking with a yet-to-be-installed one
  14015. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14016. test no != "$hardcode_minus_L_CXX"; then
  14017. # Linking always hardcodes the temporary library directory.
  14018. hardcode_action_CXX=relink
  14019. else
  14020. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14021. hardcode_action_CXX=immediate
  14022. fi
  14023. else
  14024. # We cannot hardcode anything, or else we can only hardcode existing
  14025. # directories.
  14026. hardcode_action_CXX=unsupported
  14027. fi
  14028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14029. $as_echo "$hardcode_action_CXX" >&6; }
  14030. if test relink = "$hardcode_action_CXX" ||
  14031. test yes = "$inherit_rpath_CXX"; then
  14032. # Fast installation is not supported
  14033. enable_fast_install=no
  14034. elif test yes = "$shlibpath_overrides_runpath" ||
  14035. test no = "$enable_shared"; then
  14036. # Fast installation is not necessary
  14037. enable_fast_install=needless
  14038. fi
  14039. fi # test -n "$compiler"
  14040. CC=$lt_save_CC
  14041. CFLAGS=$lt_save_CFLAGS
  14042. LDCXX=$LD
  14043. LD=$lt_save_LD
  14044. GCC=$lt_save_GCC
  14045. with_gnu_ld=$lt_save_with_gnu_ld
  14046. lt_cv_path_LDCXX=$lt_cv_path_LD
  14047. lt_cv_path_LD=$lt_save_path_LD
  14048. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14049. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14050. fi # test yes != "$_lt_caught_CXX_error"
  14051. ac_ext=c
  14052. ac_cpp='$CPP $CPPFLAGS'
  14053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14056. ac_config_commands="$ac_config_commands libtool"
  14057. # Only expand once:
  14058. #AM_PROG_LD
  14059. #AC_SUBST(LD)
  14060. #AC_PROG_INSTALL
  14061. #AC_PROG_MAKE_SET
  14062. #AC_PROG_LN_S
  14063. #
  14064. # Tests for Windows
  14065. #
  14066. # Configure libtool
  14067. # Check whether --enable-shared was given.
  14068. if test "${enable_shared+set}" = set; then :
  14069. enableval=$enable_shared; p=${PACKAGE-default}
  14070. case $enableval in
  14071. yes) enable_shared=yes ;;
  14072. no) enable_shared=no ;;
  14073. *)
  14074. enable_shared=no
  14075. # Look at the argument we got. We use all the common list separators.
  14076. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  14077. for pkg in $enableval; do
  14078. IFS=$lt_save_ifs
  14079. if test "X$pkg" = "X$p"; then
  14080. enable_shared=yes
  14081. fi
  14082. done
  14083. IFS=$lt_save_ifs
  14084. ;;
  14085. esac
  14086. else
  14087. enable_shared=yes
  14088. fi
  14089. # Check whether --enable-static was given.
  14090. if test "${enable_static+set}" = set; then :
  14091. enableval=$enable_static; p=${PACKAGE-default}
  14092. case $enableval in
  14093. yes) enable_static=yes ;;
  14094. no) enable_static=no ;;
  14095. *)
  14096. enable_static=no
  14097. # Look at the argument we got. We use all the common list separators.
  14098. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  14099. for pkg in $enableval; do
  14100. IFS=$lt_save_ifs
  14101. if test "X$pkg" = "X$p"; then
  14102. enable_static=yes
  14103. fi
  14104. done
  14105. IFS=$lt_save_ifs
  14106. ;;
  14107. esac
  14108. else
  14109. enable_static=yes
  14110. fi
  14111. enable_win32_dll=yes
  14112. case $host in
  14113. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  14114. if test -n "$ac_tool_prefix"; then
  14115. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  14116. set dummy ${ac_tool_prefix}as; ac_word=$2
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14118. $as_echo_n "checking for $ac_word... " >&6; }
  14119. if ${ac_cv_prog_AS+:} false; then :
  14120. $as_echo_n "(cached) " >&6
  14121. else
  14122. if test -n "$AS"; then
  14123. ac_cv_prog_AS="$AS" # Let the user override the test.
  14124. else
  14125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14126. for as_dir in $PATH
  14127. do
  14128. IFS=$as_save_IFS
  14129. test -z "$as_dir" && as_dir=.
  14130. for ac_exec_ext in '' $ac_executable_extensions; do
  14131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14132. ac_cv_prog_AS="${ac_tool_prefix}as"
  14133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14134. break 2
  14135. fi
  14136. done
  14137. done
  14138. IFS=$as_save_IFS
  14139. fi
  14140. fi
  14141. AS=$ac_cv_prog_AS
  14142. if test -n "$AS"; then
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  14144. $as_echo "$AS" >&6; }
  14145. else
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14147. $as_echo "no" >&6; }
  14148. fi
  14149. fi
  14150. if test -z "$ac_cv_prog_AS"; then
  14151. ac_ct_AS=$AS
  14152. # Extract the first word of "as", so it can be a program name with args.
  14153. set dummy as; ac_word=$2
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14155. $as_echo_n "checking for $ac_word... " >&6; }
  14156. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  14157. $as_echo_n "(cached) " >&6
  14158. else
  14159. if test -n "$ac_ct_AS"; then
  14160. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  14161. else
  14162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14163. for as_dir in $PATH
  14164. do
  14165. IFS=$as_save_IFS
  14166. test -z "$as_dir" && as_dir=.
  14167. for ac_exec_ext in '' $ac_executable_extensions; do
  14168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14169. ac_cv_prog_ac_ct_AS="as"
  14170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14171. break 2
  14172. fi
  14173. done
  14174. done
  14175. IFS=$as_save_IFS
  14176. fi
  14177. fi
  14178. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  14179. if test -n "$ac_ct_AS"; then
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  14181. $as_echo "$ac_ct_AS" >&6; }
  14182. else
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14184. $as_echo "no" >&6; }
  14185. fi
  14186. if test "x$ac_ct_AS" = x; then
  14187. AS="false"
  14188. else
  14189. case $cross_compiling:$ac_tool_warned in
  14190. yes:)
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14193. ac_tool_warned=yes ;;
  14194. esac
  14195. AS=$ac_ct_AS
  14196. fi
  14197. else
  14198. AS="$ac_cv_prog_AS"
  14199. fi
  14200. if test -n "$ac_tool_prefix"; then
  14201. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  14202. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14204. $as_echo_n "checking for $ac_word... " >&6; }
  14205. if ${ac_cv_prog_DLLTOOL+:} false; then :
  14206. $as_echo_n "(cached) " >&6
  14207. else
  14208. if test -n "$DLLTOOL"; then
  14209. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  14210. else
  14211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14212. for as_dir in $PATH
  14213. do
  14214. IFS=$as_save_IFS
  14215. test -z "$as_dir" && as_dir=.
  14216. for ac_exec_ext in '' $ac_executable_extensions; do
  14217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14218. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  14219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14220. break 2
  14221. fi
  14222. done
  14223. done
  14224. IFS=$as_save_IFS
  14225. fi
  14226. fi
  14227. DLLTOOL=$ac_cv_prog_DLLTOOL
  14228. if test -n "$DLLTOOL"; then
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  14230. $as_echo "$DLLTOOL" >&6; }
  14231. else
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14233. $as_echo "no" >&6; }
  14234. fi
  14235. fi
  14236. if test -z "$ac_cv_prog_DLLTOOL"; then
  14237. ac_ct_DLLTOOL=$DLLTOOL
  14238. # Extract the first word of "dlltool", so it can be a program name with args.
  14239. set dummy dlltool; ac_word=$2
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14241. $as_echo_n "checking for $ac_word... " >&6; }
  14242. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  14243. $as_echo_n "(cached) " >&6
  14244. else
  14245. if test -n "$ac_ct_DLLTOOL"; then
  14246. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  14247. else
  14248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14249. for as_dir in $PATH
  14250. do
  14251. IFS=$as_save_IFS
  14252. test -z "$as_dir" && as_dir=.
  14253. for ac_exec_ext in '' $ac_executable_extensions; do
  14254. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14255. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  14256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14257. break 2
  14258. fi
  14259. done
  14260. done
  14261. IFS=$as_save_IFS
  14262. fi
  14263. fi
  14264. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  14265. if test -n "$ac_ct_DLLTOOL"; then
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  14267. $as_echo "$ac_ct_DLLTOOL" >&6; }
  14268. else
  14269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14270. $as_echo "no" >&6; }
  14271. fi
  14272. if test "x$ac_ct_DLLTOOL" = x; then
  14273. DLLTOOL="false"
  14274. else
  14275. case $cross_compiling:$ac_tool_warned in
  14276. yes:)
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14278. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14279. ac_tool_warned=yes ;;
  14280. esac
  14281. DLLTOOL=$ac_ct_DLLTOOL
  14282. fi
  14283. else
  14284. DLLTOOL="$ac_cv_prog_DLLTOOL"
  14285. fi
  14286. if test -n "$ac_tool_prefix"; then
  14287. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  14288. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14290. $as_echo_n "checking for $ac_word... " >&6; }
  14291. if ${ac_cv_prog_OBJDUMP+:} false; then :
  14292. $as_echo_n "(cached) " >&6
  14293. else
  14294. if test -n "$OBJDUMP"; then
  14295. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  14296. else
  14297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14298. for as_dir in $PATH
  14299. do
  14300. IFS=$as_save_IFS
  14301. test -z "$as_dir" && as_dir=.
  14302. for ac_exec_ext in '' $ac_executable_extensions; do
  14303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14304. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  14305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14306. break 2
  14307. fi
  14308. done
  14309. done
  14310. IFS=$as_save_IFS
  14311. fi
  14312. fi
  14313. OBJDUMP=$ac_cv_prog_OBJDUMP
  14314. if test -n "$OBJDUMP"; then
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  14316. $as_echo "$OBJDUMP" >&6; }
  14317. else
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14319. $as_echo "no" >&6; }
  14320. fi
  14321. fi
  14322. if test -z "$ac_cv_prog_OBJDUMP"; then
  14323. ac_ct_OBJDUMP=$OBJDUMP
  14324. # Extract the first word of "objdump", so it can be a program name with args.
  14325. set dummy objdump; ac_word=$2
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14327. $as_echo_n "checking for $ac_word... " >&6; }
  14328. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  14329. $as_echo_n "(cached) " >&6
  14330. else
  14331. if test -n "$ac_ct_OBJDUMP"; then
  14332. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  14333. else
  14334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14335. for as_dir in $PATH
  14336. do
  14337. IFS=$as_save_IFS
  14338. test -z "$as_dir" && as_dir=.
  14339. for ac_exec_ext in '' $ac_executable_extensions; do
  14340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14341. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  14342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14343. break 2
  14344. fi
  14345. done
  14346. done
  14347. IFS=$as_save_IFS
  14348. fi
  14349. fi
  14350. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  14351. if test -n "$ac_ct_OBJDUMP"; then
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  14353. $as_echo "$ac_ct_OBJDUMP" >&6; }
  14354. else
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14356. $as_echo "no" >&6; }
  14357. fi
  14358. if test "x$ac_ct_OBJDUMP" = x; then
  14359. OBJDUMP="false"
  14360. else
  14361. case $cross_compiling:$ac_tool_warned in
  14362. yes:)
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14365. ac_tool_warned=yes ;;
  14366. esac
  14367. OBJDUMP=$ac_ct_OBJDUMP
  14368. fi
  14369. else
  14370. OBJDUMP="$ac_cv_prog_OBJDUMP"
  14371. fi
  14372. ;;
  14373. esac
  14374. test -z "$AS" && AS=as
  14375. test -z "$DLLTOOL" && DLLTOOL=dlltool
  14376. test -z "$OBJDUMP" && OBJDUMP=objdump
  14377. LIB_PLUGINS=''
  14378. # Add configure option --enable-maintainer-mode which enables dependency
  14379. # checking and generation useful to package maintainers. This is made an
  14380. # option to avoid confusing end users.
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  14382. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  14383. # Check whether --enable-maintainer-mode was given.
  14384. if test "${enable_maintainer_mode+set}" = set; then :
  14385. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  14386. else
  14387. USE_MAINTAINER_MODE=no
  14388. fi
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  14390. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  14391. if test $USE_MAINTAINER_MODE = yes; then
  14392. MAINTAINER_MODE_TRUE=
  14393. MAINTAINER_MODE_FALSE='#'
  14394. else
  14395. MAINTAINER_MODE_TRUE='#'
  14396. MAINTAINER_MODE_FALSE=
  14397. fi
  14398. MAINT=$MAINTAINER_MODE_TRUE
  14399. # If the C compiler supports the keyword inline, do nothing. Otherwise
  14400. # define inline to __inline__ or __inline if it accepts one of those,
  14401. # otherwise define inline to be empty.
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14403. $as_echo_n "checking for inline... " >&6; }
  14404. if ${ac_cv_c_inline+:} false; then :
  14405. $as_echo_n "(cached) " >&6
  14406. else
  14407. ac_cv_c_inline=no
  14408. for ac_kw in inline __inline__ __inline; do
  14409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14410. /* end confdefs.h. */
  14411. #ifndef __cplusplus
  14412. typedef int foo_t;
  14413. static $ac_kw foo_t static_foo () {return 0; }
  14414. $ac_kw foo_t foo () {return 0; }
  14415. #endif
  14416. _ACEOF
  14417. if ac_fn_c_try_compile "$LINENO"; then :
  14418. ac_cv_c_inline=$ac_kw
  14419. fi
  14420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14421. test "$ac_cv_c_inline" != no && break
  14422. done
  14423. fi
  14424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14425. $as_echo "$ac_cv_c_inline" >&6; }
  14426. case $ac_cv_c_inline in
  14427. inline | yes) ;;
  14428. *)
  14429. case $ac_cv_c_inline in
  14430. no) ac_val=;;
  14431. *) ac_val=$ac_cv_c_inline;;
  14432. esac
  14433. cat >>confdefs.h <<_ACEOF
  14434. #ifndef __cplusplus
  14435. #define inline $ac_val
  14436. #endif
  14437. _ACEOF
  14438. ;;
  14439. esac
  14440. # Check if the C compiler supports the "visibility" function attribute
  14441. # If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY
  14442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
  14443. $as_echo_n "checking for __attribute__((visibility))... " >&6; }
  14444. if ${ax_cv_have_func_attribute_visibility+:} false; then :
  14445. $as_echo_n "(cached) " >&6
  14446. else
  14447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14448. /* end confdefs.h. */
  14449. int foo_def( void ) __attribute__((visibility("default")));
  14450. int foo_hid( void ) __attribute__((visibility("hidden")));
  14451. int
  14452. main ()
  14453. {
  14454. ;
  14455. return 0;
  14456. }
  14457. _ACEOF
  14458. if ac_fn_c_try_link "$LINENO"; then :
  14459. if test -s conftest.err; then :
  14460. ax_cv_have_func_attribute_visibility=no
  14461. else
  14462. ax_cv_have_func_attribute_visibility=yes
  14463. fi
  14464. else
  14465. ax_cv_have_func_attribute_visibility=no
  14466. fi
  14467. rm -f core conftest.err conftest.$ac_objext \
  14468. conftest$ac_exeext conftest.$ac_ext
  14469. fi
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
  14471. $as_echo "$ax_cv_have_func_attribute_visibility" >&6; }
  14472. if test yes = $ax_cv_have_func_attribute_visibility; then :
  14473. cat >>confdefs.h <<_ACEOF
  14474. #define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1
  14475. _ACEOF
  14476. fi
  14477. # Check if the compiler supports "-fvisibility=hidden" and if yes, add it to CFLAGS
  14478. # This means that symbols that are not marked explicitly for export (CMSAPI)
  14479. # will not be reachable in the shared library.
  14480. for flag in "-fvisibility=hidden"; do
  14481. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  14482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  14483. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  14484. if eval \${$as_CACHEVAR+:} false; then :
  14485. $as_echo_n "(cached) " >&6
  14486. else
  14487. ax_check_save_flags=$CFLAGS
  14488. CFLAGS="$CFLAGS $flag"
  14489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14490. /* end confdefs.h. */
  14491. int
  14492. main ()
  14493. {
  14494. ;
  14495. return 0;
  14496. }
  14497. _ACEOF
  14498. if ac_fn_c_try_compile "$LINENO"; then :
  14499. eval "$as_CACHEVAR=yes"
  14500. else
  14501. eval "$as_CACHEVAR=no"
  14502. fi
  14503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14504. CFLAGS=$ax_check_save_flags
  14505. fi
  14506. eval ac_res=\$$as_CACHEVAR
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14508. $as_echo "$ac_res" >&6; }
  14509. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14510. if ${CFLAGS+:} false; then :
  14511. case " $CFLAGS " in #(
  14512. *" $flag "*) :
  14513. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  14514. (: CFLAGS already contains $flag) 2>&5
  14515. ac_status=$?
  14516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14517. test $ac_status = 0; } ;; #(
  14518. *) :
  14519. as_fn_append CFLAGS " $flag"
  14520. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  14521. (: CFLAGS="$CFLAGS") 2>&5
  14522. ac_status=$?
  14523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14524. test $ac_status = 0; }
  14525. ;;
  14526. esac
  14527. else
  14528. CFLAGS=$flag
  14529. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  14530. (: CFLAGS="$CFLAGS") 2>&5
  14531. ac_status=$?
  14532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14533. test $ac_status = 0; }
  14534. fi
  14535. else
  14536. :
  14537. fi
  14538. done
  14539. # If words are stored with the most significant byte first (like
  14540. # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14542. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14543. if ${ac_cv_c_bigendian+:} false; then :
  14544. $as_echo_n "(cached) " >&6
  14545. else
  14546. ac_cv_c_bigendian=unknown
  14547. # See if we're dealing with a universal compiler.
  14548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14549. /* end confdefs.h. */
  14550. #ifndef __APPLE_CC__
  14551. not a universal capable compiler
  14552. #endif
  14553. typedef int dummy;
  14554. _ACEOF
  14555. if ac_fn_c_try_compile "$LINENO"; then :
  14556. # Check for potential -arch flags. It is not universal unless
  14557. # there are at least two -arch flags with different values.
  14558. ac_arch=
  14559. ac_prev=
  14560. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  14561. if test -n "$ac_prev"; then
  14562. case $ac_word in
  14563. i?86 | x86_64 | ppc | ppc64)
  14564. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  14565. ac_arch=$ac_word
  14566. else
  14567. ac_cv_c_bigendian=universal
  14568. break
  14569. fi
  14570. ;;
  14571. esac
  14572. ac_prev=
  14573. elif test "x$ac_word" = "x-arch"; then
  14574. ac_prev=arch
  14575. fi
  14576. done
  14577. fi
  14578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14579. if test $ac_cv_c_bigendian = unknown; then
  14580. # See if sys/param.h defines the BYTE_ORDER macro.
  14581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14582. /* end confdefs.h. */
  14583. #include <sys/types.h>
  14584. #include <sys/param.h>
  14585. int
  14586. main ()
  14587. {
  14588. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14589. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14590. && LITTLE_ENDIAN)
  14591. bogus endian macros
  14592. #endif
  14593. ;
  14594. return 0;
  14595. }
  14596. _ACEOF
  14597. if ac_fn_c_try_compile "$LINENO"; then :
  14598. # It does; now see whether it defined to BIG_ENDIAN or not.
  14599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14600. /* end confdefs.h. */
  14601. #include <sys/types.h>
  14602. #include <sys/param.h>
  14603. int
  14604. main ()
  14605. {
  14606. #if BYTE_ORDER != BIG_ENDIAN
  14607. not big endian
  14608. #endif
  14609. ;
  14610. return 0;
  14611. }
  14612. _ACEOF
  14613. if ac_fn_c_try_compile "$LINENO"; then :
  14614. ac_cv_c_bigendian=yes
  14615. else
  14616. ac_cv_c_bigendian=no
  14617. fi
  14618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14619. fi
  14620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14621. fi
  14622. if test $ac_cv_c_bigendian = unknown; then
  14623. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14625. /* end confdefs.h. */
  14626. #include <limits.h>
  14627. int
  14628. main ()
  14629. {
  14630. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14631. bogus endian macros
  14632. #endif
  14633. ;
  14634. return 0;
  14635. }
  14636. _ACEOF
  14637. if ac_fn_c_try_compile "$LINENO"; then :
  14638. # It does; now see whether it defined to _BIG_ENDIAN or not.
  14639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14640. /* end confdefs.h. */
  14641. #include <limits.h>
  14642. int
  14643. main ()
  14644. {
  14645. #ifndef _BIG_ENDIAN
  14646. not big endian
  14647. #endif
  14648. ;
  14649. return 0;
  14650. }
  14651. _ACEOF
  14652. if ac_fn_c_try_compile "$LINENO"; then :
  14653. ac_cv_c_bigendian=yes
  14654. else
  14655. ac_cv_c_bigendian=no
  14656. fi
  14657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14658. fi
  14659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14660. fi
  14661. if test $ac_cv_c_bigendian = unknown; then
  14662. # Compile a test program.
  14663. if test "$cross_compiling" = yes; then :
  14664. # Try to guess by grepping values from an object file.
  14665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14666. /* end confdefs.h. */
  14667. short int ascii_mm[] =
  14668. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14669. short int ascii_ii[] =
  14670. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14671. int use_ascii (int i) {
  14672. return ascii_mm[i] + ascii_ii[i];
  14673. }
  14674. short int ebcdic_ii[] =
  14675. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14676. short int ebcdic_mm[] =
  14677. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14678. int use_ebcdic (int i) {
  14679. return ebcdic_mm[i] + ebcdic_ii[i];
  14680. }
  14681. extern int foo;
  14682. int
  14683. main ()
  14684. {
  14685. return use_ascii (foo) == use_ebcdic (foo);
  14686. ;
  14687. return 0;
  14688. }
  14689. _ACEOF
  14690. if ac_fn_c_try_compile "$LINENO"; then :
  14691. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  14692. ac_cv_c_bigendian=yes
  14693. fi
  14694. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  14695. if test "$ac_cv_c_bigendian" = unknown; then
  14696. ac_cv_c_bigendian=no
  14697. else
  14698. # finding both strings is unlikely to happen, but who knows?
  14699. ac_cv_c_bigendian=unknown
  14700. fi
  14701. fi
  14702. fi
  14703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14704. else
  14705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14706. /* end confdefs.h. */
  14707. $ac_includes_default
  14708. int
  14709. main ()
  14710. {
  14711. /* Are we little or big endian? From Harbison&Steele. */
  14712. union
  14713. {
  14714. long int l;
  14715. char c[sizeof (long int)];
  14716. } u;
  14717. u.l = 1;
  14718. return u.c[sizeof (long int) - 1] == 1;
  14719. ;
  14720. return 0;
  14721. }
  14722. _ACEOF
  14723. if ac_fn_c_try_run "$LINENO"; then :
  14724. ac_cv_c_bigendian=no
  14725. else
  14726. ac_cv_c_bigendian=yes
  14727. fi
  14728. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14729. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14730. fi
  14731. fi
  14732. fi
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14734. $as_echo "$ac_cv_c_bigendian" >&6; }
  14735. case $ac_cv_c_bigendian in #(
  14736. yes)
  14737. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14738. ;; #(
  14739. no)
  14740. ;; #(
  14741. universal)
  14742. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14743. ;; #(
  14744. *)
  14745. as_fn_error $? "unknown endianness
  14746. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14747. esac
  14748. # Check for threadsafe variants of gmtime
  14749. # Note: check for gmtime_s is a bit more complex as it is implemented as a macro
  14750. for ac_func in gmtime_r
  14751. do :
  14752. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  14753. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  14754. cat >>confdefs.h <<_ACEOF
  14755. #define HAVE_GMTIME_R 1
  14756. _ACEOF
  14757. else
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
  14759. $as_echo_n "checking for gmtime_s... " >&6; }
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. #include <time.h>
  14763. int
  14764. main ()
  14765. {
  14766. time_t t;
  14767. struct tm m;
  14768. gmtime_s(&m, &t);
  14769. return 0;
  14770. ;
  14771. return 0;
  14772. }
  14773. _ACEOF
  14774. if ac_fn_c_try_link "$LINENO"; then :
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14776. $as_echo "yes" >&6; }
  14777. $as_echo "#define HAVE_GMTIME_S 1" >>confdefs.h
  14778. else
  14779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14780. $as_echo "no" >&6; }
  14781. fi
  14782. rm -f core conftest.err conftest.$ac_objext \
  14783. conftest$ac_exeext conftest.$ac_ext
  14784. fi
  14785. done
  14786. # Point to JPEG installed in DIR or disable JPEG with --without-jpeg.
  14787. # Check whether --with-jpeg was given.
  14788. if test "${with_jpeg+set}" = set; then :
  14789. withval=$with_jpeg;
  14790. if test "x$withval" = "xno" ; then
  14791. with_jpeg='no'
  14792. else
  14793. if test "x$withval" != "xyes" ; then
  14794. with_jpeg=$withval
  14795. JPEG_DIR=$withval
  14796. CPPFLAGS="$CPPFLAGS -I$JPEG_DIR/include"
  14797. LDFLAGS="$LDFLAGS -L$JPEG_DIR/lib"
  14798. fi
  14799. with_jpeg='yes'
  14800. fi
  14801. else
  14802. with_jpeg='yes'
  14803. fi
  14804. # Point to TIFF installed in DIR or disable TIFF with --without-tiff.
  14805. # Check whether --with-tiff was given.
  14806. if test "${with_tiff+set}" = set; then :
  14807. withval=$with_tiff;
  14808. if test "x$withval" = "xno" ; then
  14809. with_tiff='no'
  14810. else
  14811. if test "x$withval" != "xyes" ; then
  14812. with_tiff=$withval
  14813. TIFF_DIR=$withval
  14814. CPPFLAGS="$CPPFLAGS -I$TIFF_DIR/include"
  14815. LDFLAGS="$LDFLAGS -L$TIFF_DIR/lib"
  14816. fi
  14817. with_tiff='yes'
  14818. fi
  14819. else
  14820. with_tiff='yes'
  14821. fi
  14822. # Disable ZLIB
  14823. # Check whether --with-zlib was given.
  14824. if test "${with_zlib+set}" = set; then :
  14825. withval=$with_zlib; with_zlib=$withval
  14826. else
  14827. with_zlib='yes'
  14828. fi
  14829. #fast_float plugin:
  14830. # Check whether --with-fastfloat was given.
  14831. if test "${with_fastfloat+set}" = set; then :
  14832. withval=$with_fastfloat;
  14833. with_fastfloat=$withval
  14834. else
  14835. with_fastfloat='no'
  14836. fi
  14837. if test "x$with_fastfloat" = "xyes"
  14838. then
  14839. LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float"
  14840. fi
  14841. #multi threaded plugin:
  14842. # Check whether --with-threaded was given.
  14843. if test "${with_threaded+set}" = set; then :
  14844. withval=$with_threaded;
  14845. with_threaded=$withval
  14846. else
  14847. with_threaded='no'
  14848. fi
  14849. if test "x$with_threaded" = "xyes"
  14850. then
  14851. LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded"
  14852. fi
  14853. #
  14854. # Determine POSIX threads settings
  14855. #
  14856. # Enable support for POSIX thread APIs
  14857. # Check whether --with-threads was given.
  14858. if test "${with_threads+set}" = set; then :
  14859. withval=$with_threads; with_threads=$withval
  14860. else
  14861. with_threads='yes'
  14862. fi
  14863. have_threads=no
  14864. if test "$with_threads" != 'no'
  14865. then
  14866. ac_ext=c
  14867. ac_cpp='$CPP $CPPFLAGS'
  14868. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14869. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14870. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14871. acx_pthread_ok=no
  14872. # We used to check for pthread.h first, but this fails if pthread.h
  14873. # requires special compiler flags (e.g. on True64 or Sequent).
  14874. # It gets checked for in the link test anyway.
  14875. # First of all, check if the user has set any of the PTHREAD_LIBS,
  14876. # etcetera environment variables, and if threads linking works using
  14877. # them:
  14878. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  14879. save_CFLAGS="$CFLAGS"
  14880. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14881. save_LIBS="$LIBS"
  14882. LIBS="$PTHREAD_LIBS $LIBS"
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  14884. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  14885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14886. /* end confdefs.h. */
  14887. /* Override any GCC internal prototype to avoid an error.
  14888. Use char because int might match the return type of a GCC
  14889. builtin and then its argument prototype would still apply. */
  14890. #ifdef __cplusplus
  14891. extern "C"
  14892. #endif
  14893. char pthread_join ();
  14894. int
  14895. main ()
  14896. {
  14897. return pthread_join ();
  14898. ;
  14899. return 0;
  14900. }
  14901. _ACEOF
  14902. if ac_fn_c_try_link "$LINENO"; then :
  14903. acx_pthread_ok=yes
  14904. fi
  14905. rm -f core conftest.err conftest.$ac_objext \
  14906. conftest$ac_exeext conftest.$ac_ext
  14907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  14908. $as_echo "$acx_pthread_ok" >&6; }
  14909. if test x"$acx_pthread_ok" = xno; then
  14910. PTHREAD_LIBS=""
  14911. PTHREAD_CFLAGS=""
  14912. fi
  14913. LIBS="$save_LIBS"
  14914. CFLAGS="$save_CFLAGS"
  14915. fi
  14916. # We must check for the threads library under a number of different
  14917. # names; the ordering is very important because some systems
  14918. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  14919. # libraries is broken (non-POSIX).
  14920. # Create a list of thread flags to try. Items starting with a "-" are
  14921. # C compiler flags, and other items are library names, except for "none"
  14922. # which indicates that we try without any flags at all, and "pthread-config"
  14923. # which is a program returning the flags for the Pth emulation library.
  14924. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
  14925. # The ordering *is* (sometimes) important. Some notes on the
  14926. # individual items follow:
  14927. # pthreads: AIX (must check this before -lpthread)
  14928. # none: in case threads are in libc; should be tried before -Kthread and
  14929. # other compiler flags to prevent continual compiler warnings
  14930. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  14931. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  14932. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  14933. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  14934. # -pthreads: Solaris/gcc
  14935. # -mthreads: Mingw32/gcc, Lynx/gcc
  14936. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  14937. # doesn't hurt to check since this sometimes defines pthreads too;
  14938. # also defines -D_REENTRANT)
  14939. # ... -mt is also the pthreads flag for HP/aCC
  14940. # pthread: Linux, etcetera
  14941. # --thread-safe: KAI C++
  14942. # pthread-config: use pthread-config program (for GNU Pth library)
  14943. case "${host_cpu}-${host_os}" in
  14944. *solaris*)
  14945. # On Solaris (at least, for some versions), libc contains stubbed
  14946. # (non-functional) versions of the pthreads routines, so link-based
  14947. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  14948. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  14949. # a function called by this macro, so we could check for that, but
  14950. # who knows whether they'll stub that too in a future libc.) So,
  14951. # we'll just look for -pthreads and -lpthread first:
  14952. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  14953. ;;
  14954. # The HP-UX compiler just warns about options it does not understand
  14955. # but it needs -mt.
  14956. *-hpux*)
  14957. acx_pthread_flags="-mt $acx_pthread_flags"
  14958. ;;
  14959. esac
  14960. if test x"$acx_pthread_ok" = xno; then
  14961. for flag in $acx_pthread_flags; do
  14962. case $flag in
  14963. none)
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  14965. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  14966. ;;
  14967. -*)
  14968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  14969. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  14970. PTHREAD_CFLAGS="$flag"
  14971. ;;
  14972. pthread-config)
  14973. # Extract the first word of "pthread-config", so it can be a program name with args.
  14974. set dummy pthread-config; ac_word=$2
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14976. $as_echo_n "checking for $ac_word... " >&6; }
  14977. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  14978. $as_echo_n "(cached) " >&6
  14979. else
  14980. if test -n "$acx_pthread_config"; then
  14981. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  14982. else
  14983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14984. for as_dir in $PATH
  14985. do
  14986. IFS=$as_save_IFS
  14987. test -z "$as_dir" && as_dir=.
  14988. for ac_exec_ext in '' $ac_executable_extensions; do
  14989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14990. ac_cv_prog_acx_pthread_config="yes"
  14991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14992. break 2
  14993. fi
  14994. done
  14995. done
  14996. IFS=$as_save_IFS
  14997. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  14998. fi
  14999. fi
  15000. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  15001. if test -n "$acx_pthread_config"; then
  15002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  15003. $as_echo "$acx_pthread_config" >&6; }
  15004. else
  15005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15006. $as_echo "no" >&6; }
  15007. fi
  15008. if test x"$acx_pthread_config" = xno; then continue; fi
  15009. PTHREAD_CFLAGS="`pthread-config --cflags`"
  15010. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  15011. ;;
  15012. *)
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  15014. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  15015. PTHREAD_LIBS="-l$flag"
  15016. ;;
  15017. esac
  15018. save_LIBS="$LIBS"
  15019. save_CFLAGS="$CFLAGS"
  15020. LIBS="$PTHREAD_LIBS $LIBS"
  15021. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15022. # Check for various functions. We must include pthread.h,
  15023. # since some functions may be macros. (On the Sequent, we
  15024. # need a special flag -Kthread to make this header compile.)
  15025. # We check for pthread_join because it is in -lpthread on IRIX
  15026. # while pthread_create is in libc. We check for pthread_attr_init
  15027. # due to DEC craziness with -lpthreads. We check for
  15028. # pthread_cleanup_push because it is one of the few pthread
  15029. # functions on Solaris that doesn't have a non-functional libc stub.
  15030. # We try pthread_create on general principles.
  15031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15032. /* end confdefs.h. */
  15033. #include <pthread.h>
  15034. int
  15035. main ()
  15036. {
  15037. pthread_t th; pthread_join(th, 0);
  15038. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  15039. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  15040. ;
  15041. return 0;
  15042. }
  15043. _ACEOF
  15044. if ac_fn_c_try_link "$LINENO"; then :
  15045. acx_pthread_ok=yes
  15046. fi
  15047. rm -f core conftest.err conftest.$ac_objext \
  15048. conftest$ac_exeext conftest.$ac_ext
  15049. LIBS="$save_LIBS"
  15050. CFLAGS="$save_CFLAGS"
  15051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  15052. $as_echo "$acx_pthread_ok" >&6; }
  15053. if test "x$acx_pthread_ok" = xyes; then
  15054. break;
  15055. fi
  15056. PTHREAD_LIBS=""
  15057. PTHREAD_CFLAGS=""
  15058. done
  15059. fi
  15060. # Various other checks:
  15061. if test "x$acx_pthread_ok" = xyes; then
  15062. save_LIBS="$LIBS"
  15063. LIBS="$PTHREAD_LIBS $LIBS"
  15064. save_CFLAGS="$CFLAGS"
  15065. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  15066. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  15067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  15068. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  15069. attr_name=unknown
  15070. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  15071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15072. /* end confdefs.h. */
  15073. #include <pthread.h>
  15074. int
  15075. main ()
  15076. {
  15077. int attr=$attr; return attr;
  15078. ;
  15079. return 0;
  15080. }
  15081. _ACEOF
  15082. if ac_fn_c_try_link "$LINENO"; then :
  15083. attr_name=$attr; break
  15084. fi
  15085. rm -f core conftest.err conftest.$ac_objext \
  15086. conftest$ac_exeext conftest.$ac_ext
  15087. done
  15088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  15089. $as_echo "$attr_name" >&6; }
  15090. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  15091. cat >>confdefs.h <<_ACEOF
  15092. #define PTHREAD_CREATE_JOINABLE $attr_name
  15093. _ACEOF
  15094. fi
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  15096. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  15097. flag=no
  15098. case "${host_cpu}-${host_os}" in
  15099. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  15100. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  15101. esac
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  15103. $as_echo "${flag}" >&6; }
  15104. if test "x$flag" != xno; then
  15105. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  15106. fi
  15107. LIBS="$save_LIBS"
  15108. CFLAGS="$save_CFLAGS"
  15109. # More AIX lossage: must compile with xlc_r or cc_r
  15110. case "${host_os}" in
  15111. aix* )
  15112. if test x"$GCC" != xyes; then
  15113. case "$CC" in
  15114. *xlc )
  15115. # Extract the first word of "xlc_r", so it can be a program name with args.
  15116. set dummy xlc_r; ac_word=$2
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15118. $as_echo_n "checking for $ac_word... " >&6; }
  15119. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  15120. $as_echo_n "(cached) " >&6
  15121. else
  15122. if test -n "$PTHREAD_CC"; then
  15123. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  15124. else
  15125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15126. for as_dir in $PATH
  15127. do
  15128. IFS=$as_save_IFS
  15129. test -z "$as_dir" && as_dir=.
  15130. for ac_exec_ext in '' $ac_executable_extensions; do
  15131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15132. ac_cv_prog_PTHREAD_CC="xlc_r"
  15133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15134. break 2
  15135. fi
  15136. done
  15137. done
  15138. IFS=$as_save_IFS
  15139. test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
  15140. fi
  15141. fi
  15142. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  15143. if test -n "$PTHREAD_CC"; then
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  15145. $as_echo "$PTHREAD_CC" >&6; }
  15146. else
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15148. $as_echo "no" >&6; }
  15149. fi
  15150. ;;
  15151. *cc )
  15152. # Extract the first word of "cc_r", so it can be a program name with args.
  15153. set dummy cc_r; ac_word=$2
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15155. $as_echo_n "checking for $ac_word... " >&6; }
  15156. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  15157. $as_echo_n "(cached) " >&6
  15158. else
  15159. if test -n "$PTHREAD_CC"; then
  15160. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  15161. else
  15162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15163. for as_dir in $PATH
  15164. do
  15165. IFS=$as_save_IFS
  15166. test -z "$as_dir" && as_dir=.
  15167. for ac_exec_ext in '' $ac_executable_extensions; do
  15168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15169. ac_cv_prog_PTHREAD_CC="cc_r"
  15170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15171. break 2
  15172. fi
  15173. done
  15174. done
  15175. IFS=$as_save_IFS
  15176. test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
  15177. fi
  15178. fi
  15179. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  15180. if test -n "$PTHREAD_CC"; then
  15181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  15182. $as_echo "$PTHREAD_CC" >&6; }
  15183. else
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15185. $as_echo "no" >&6; }
  15186. fi
  15187. ;;
  15188. esac
  15189. fi
  15190. case "$CXX" in
  15191. *xlC )
  15192. # Extract the first word of "xlC_r", so it can be a program name with args.
  15193. set dummy xlC_r; ac_word=$2
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15195. $as_echo_n "checking for $ac_word... " >&6; }
  15196. if ${ac_cv_prog_PTHREAD_CXX+:} false; then :
  15197. $as_echo_n "(cached) " >&6
  15198. else
  15199. if test -n "$PTHREAD_CXX"; then
  15200. ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
  15201. else
  15202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15203. for as_dir in $PATH
  15204. do
  15205. IFS=$as_save_IFS
  15206. test -z "$as_dir" && as_dir=.
  15207. for ac_exec_ext in '' $ac_executable_extensions; do
  15208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15209. ac_cv_prog_PTHREAD_CXX="xlC_r"
  15210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15211. break 2
  15212. fi
  15213. done
  15214. done
  15215. IFS=$as_save_IFS
  15216. test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}"
  15217. fi
  15218. fi
  15219. PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
  15220. if test -n "$PTHREAD_CXX"; then
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
  15222. $as_echo "$PTHREAD_CXX" >&6; }
  15223. else
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15225. $as_echo "no" >&6; }
  15226. fi
  15227. ;;
  15228. esac
  15229. ;;
  15230. esac
  15231. fi
  15232. if test "${PTHREAD_CC}x" = "x"
  15233. then
  15234. PTHREAD_CC="$CC"
  15235. fi
  15236. if test "${PTHREAD_CXX}x" = "x"
  15237. then
  15238. PTHREAD_CXX="$CXX"
  15239. fi
  15240. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  15241. if test x"$acx_pthread_ok" = xyes; then
  15242. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  15243. :
  15244. else
  15245. acx_pthread_ok=no
  15246. fi
  15247. ac_ext=c
  15248. ac_cpp='$CPP $CPPFLAGS'
  15249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15252. if test "$acx_pthread_ok" = yes
  15253. then
  15254. have_threads=yes
  15255. DEF_THREAD="$PTHREAD_CFLAGS"
  15256. CFLAGS="$CFLAGS $DEF_THREAD"
  15257. CXXFLAGS="$CXXFLAGS $DEF_THREAD"
  15258. if test "$CC" != "$PTHREAD_CC"
  15259. then
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
  15261. $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
  15262. CC="$PTHREAD_CC"
  15263. fi
  15264. if test "$CXX" != "$PTHREAD_CXX"
  15265. then
  15266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
  15267. $as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
  15268. CXX="$PTHREAD_CXX"
  15269. fi
  15270. fi
  15271. fi
  15272. # check if compiler supports SSE2 intrinsics
  15273. ac_ext=c
  15274. ac_cpp='$CPP $CPPFLAGS'
  15275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports SSE2" >&5
  15279. $as_echo_n "checking whether compiler supports SSE2... " >&6; }
  15280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15281. /* end confdefs.h. */
  15282. #include <emmintrin.h>
  15283. main() { __m128i n = _mm_set1_epi8(42); }
  15284. _ACEOF
  15285. if ac_fn_c_try_compile "$LINENO"; then :
  15286. ac_compiler_supports_sse2=yes
  15287. else
  15288. ac_compiler_supports_sse2=no
  15289. fi
  15290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compiler_supports_sse2" >&5
  15292. $as_echo "$ac_compiler_supports_sse2" >&6; }
  15293. if test "x$ac_compiler_supports_sse2" != "xyes"; then :
  15294. $as_echo "#define CMS_DONT_USE_SSE2 1" >>confdefs.h
  15295. fi
  15296. ac_ext=c
  15297. ac_cpp='$CPP $CPPFLAGS'
  15298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15301. #
  15302. # Find math library
  15303. #
  15304. LIB_MATH=''
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  15306. $as_echo_n "checking for sqrt in -lm... " >&6; }
  15307. if ${ac_cv_lib_m_sqrt+:} false; then :
  15308. $as_echo_n "(cached) " >&6
  15309. else
  15310. ac_check_lib_save_LIBS=$LIBS
  15311. LIBS="-lm $LIBS"
  15312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15313. /* end confdefs.h. */
  15314. /* Override any GCC internal prototype to avoid an error.
  15315. Use char because int might match the return type of a GCC
  15316. builtin and then its argument prototype would still apply. */
  15317. #ifdef __cplusplus
  15318. extern "C"
  15319. #endif
  15320. char sqrt ();
  15321. int
  15322. main ()
  15323. {
  15324. return sqrt ();
  15325. ;
  15326. return 0;
  15327. }
  15328. _ACEOF
  15329. if ac_fn_c_try_link "$LINENO"; then :
  15330. ac_cv_lib_m_sqrt=yes
  15331. else
  15332. ac_cv_lib_m_sqrt=no
  15333. fi
  15334. rm -f core conftest.err conftest.$ac_objext \
  15335. conftest$ac_exeext conftest.$ac_ext
  15336. LIBS=$ac_check_lib_save_LIBS
  15337. fi
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  15339. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  15340. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  15341. LIB_MATH="-lm"
  15342. fi
  15343. LIBS="$LIB_MATH $LIBS"
  15344. #
  15345. # Find Posix threads library
  15346. #
  15347. LIB_THREAD=''
  15348. if test "$with_threads" != 'no' && test "$have_threads" = 'yes'
  15349. then
  15350. for lib in pthread pthreads
  15351. do
  15352. if test "x$PTHREAD_LIBS" = "x" ; then
  15353. as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_pthread_mutex_lock" | $as_tr_sh`
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -l$lib" >&5
  15355. $as_echo_n "checking for pthread_mutex_lock in -l$lib... " >&6; }
  15356. if eval \${$as_ac_Lib+:} false; then :
  15357. $as_echo_n "(cached) " >&6
  15358. else
  15359. ac_check_lib_save_LIBS=$LIBS
  15360. LIBS="-l$lib $LIBS"
  15361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15362. /* end confdefs.h. */
  15363. /* Override any GCC internal prototype to avoid an error.
  15364. Use char because int might match the return type of a GCC
  15365. builtin and then its argument prototype would still apply. */
  15366. #ifdef __cplusplus
  15367. extern "C"
  15368. #endif
  15369. char pthread_mutex_lock ();
  15370. int
  15371. main ()
  15372. {
  15373. return pthread_mutex_lock ();
  15374. ;
  15375. return 0;
  15376. }
  15377. _ACEOF
  15378. if ac_fn_c_try_link "$LINENO"; then :
  15379. eval "$as_ac_Lib=yes"
  15380. else
  15381. eval "$as_ac_Lib=no"
  15382. fi
  15383. rm -f core conftest.err conftest.$ac_objext \
  15384. conftest$ac_exeext conftest.$ac_ext
  15385. LIBS=$ac_check_lib_save_LIBS
  15386. fi
  15387. eval ac_res=\$$as_ac_Lib
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15389. $as_echo "$ac_res" >&6; }
  15390. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15391. PTHREAD_LIBS=-l$lib
  15392. fi
  15393. fi
  15394. done
  15395. LIB_THREAD="$PTHREAD_LIBS"
  15396. LIBS="$LIBS $LIB_THREAD"
  15397. $as_echo "#define HasTHREADS 1" >>confdefs.h
  15398. else
  15399. $as_echo "#define HasTHREADS 0" >>confdefs.h
  15400. fi
  15401. #
  15402. # Check for JPEG
  15403. #
  15404. have_jpeg='no'
  15405. LIB_JPEG=''
  15406. if test ! "$with_jpeg" = 'no'
  15407. then
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support" >&5
  15409. $as_echo_n "checking for JPEG support... " >&6; }
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  15411. $as_echo "" >&6; }
  15412. failed=0;
  15413. passed=0;
  15414. ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
  15415. if test "x$ac_cv_header_jconfig_h" = xyes; then :
  15416. passed=`expr $passed + 1`
  15417. else
  15418. failed=`expr $failed + 1`
  15419. fi
  15420. ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
  15421. if test "x$ac_cv_header_jerror_h" = xyes; then :
  15422. passed=`expr $passed + 1`
  15423. else
  15424. failed=`expr $failed + 1`
  15425. fi
  15426. ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "#include <jconfig.h>
  15427. "
  15428. if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
  15429. passed=`expr $passed + 1`
  15430. else
  15431. failed=`expr $failed + 1`
  15432. fi
  15433. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  15434. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  15435. passed=`expr $passed + 1`
  15436. else
  15437. failed=`expr $failed + 1`
  15438. fi
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
  15440. $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
  15441. if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
  15442. $as_echo_n "(cached) " >&6
  15443. else
  15444. ac_check_lib_save_LIBS=$LIBS
  15445. LIBS="-ljpeg $LIBS"
  15446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15447. /* end confdefs.h. */
  15448. /* Override any GCC internal prototype to avoid an error.
  15449. Use char because int might match the return type of a GCC
  15450. builtin and then its argument prototype would still apply. */
  15451. #ifdef __cplusplus
  15452. extern "C"
  15453. #endif
  15454. char jpeg_read_header ();
  15455. int
  15456. main ()
  15457. {
  15458. return jpeg_read_header ();
  15459. ;
  15460. return 0;
  15461. }
  15462. _ACEOF
  15463. if ac_fn_c_try_link "$LINENO"; then :
  15464. ac_cv_lib_jpeg_jpeg_read_header=yes
  15465. else
  15466. ac_cv_lib_jpeg_jpeg_read_header=no
  15467. fi
  15468. rm -f core conftest.err conftest.$ac_objext \
  15469. conftest$ac_exeext conftest.$ac_ext
  15470. LIBS=$ac_check_lib_save_LIBS
  15471. fi
  15472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
  15473. $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
  15474. if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
  15475. passed=`expr $passed + 1`
  15476. else
  15477. failed=`expr $failed + 1`
  15478. fi
  15479. # Test for compatible JPEG library
  15480. if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
  15482. $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
  15483. if ${ac_cv_jpeg_version_ok+:} false; then :
  15484. $as_echo_n "(cached) " >&6
  15485. else
  15486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15487. /* end confdefs.h. */
  15488. #include <stdio.h>
  15489. #include <stdlib.h>
  15490. #include <jpeglib.h>
  15491. int
  15492. main ()
  15493. {
  15494. #if JPEG_LIB_VERSION < 62
  15495. #error IJG JPEG library must be version 6b or newer!
  15496. #endif
  15497. return 0;
  15498. ;
  15499. return 0;
  15500. }
  15501. _ACEOF
  15502. if ac_fn_c_try_compile "$LINENO"; then :
  15503. ac_cv_jpeg_version_ok='yes'
  15504. else
  15505. ac_cv_jpeg_version_ok='no'
  15506. fi
  15507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15508. fi
  15509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
  15510. $as_echo "$ac_cv_jpeg_version_ok" >&6; }
  15511. if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
  15512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15513. $as_echo "yes" >&6; }
  15514. passed=`expr $passed + 1`
  15515. else
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15517. $as_echo "no" >&6; }
  15518. failed=`expr $failed + 1`
  15519. fi
  15520. fi
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
  15522. $as_echo_n "checking if JPEG package is complete... " >&6; }
  15523. if test $passed -gt 0
  15524. then
  15525. if test $failed -gt 0
  15526. then
  15527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  15528. $as_echo "no -- some components failed test" >&6; }
  15529. have_jpeg='no (failed tests)'
  15530. else
  15531. LIB_JPEG='-ljpeg'
  15532. LIBS="$LIB_JPEG $LIBS"
  15533. $as_echo "#define HasJPEG 1" >>confdefs.h
  15534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15535. $as_echo "yes" >&6; }
  15536. have_jpeg='yes'
  15537. fi
  15538. else
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15540. $as_echo "no" >&6; }
  15541. fi
  15542. fi
  15543. if test "$have_jpeg" = 'yes'; then
  15544. HasJPEG_TRUE=
  15545. HasJPEG_FALSE='#'
  15546. else
  15547. HasJPEG_TRUE='#'
  15548. HasJPEG_FALSE=
  15549. fi
  15550. #
  15551. # Check for ZLIB
  15552. #
  15553. have_zlib='no'
  15554. if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no'
  15555. then
  15556. LIB_ZLIB=''
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
  15558. $as_echo_n "checking for ZLIB support ... " >&6; }
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  15560. $as_echo "" >&6; }
  15561. failed=0;
  15562. passed=0;
  15563. ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
  15564. if test "x$ac_cv_header_zconf_h" = xyes; then :
  15565. passed=`expr $passed + 1`
  15566. else
  15567. failed=`expr $failed + 1`
  15568. fi
  15569. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  15570. if test "x$ac_cv_header_zlib_h" = xyes; then :
  15571. passed=`expr $passed + 1`
  15572. else
  15573. failed=`expr $failed + 1`
  15574. fi
  15575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  15576. $as_echo_n "checking for compress in -lz... " >&6; }
  15577. if ${ac_cv_lib_z_compress+:} false; then :
  15578. $as_echo_n "(cached) " >&6
  15579. else
  15580. ac_check_lib_save_LIBS=$LIBS
  15581. LIBS="-lz $LIBS"
  15582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15583. /* end confdefs.h. */
  15584. /* Override any GCC internal prototype to avoid an error.
  15585. Use char because int might match the return type of a GCC
  15586. builtin and then its argument prototype would still apply. */
  15587. #ifdef __cplusplus
  15588. extern "C"
  15589. #endif
  15590. char compress ();
  15591. int
  15592. main ()
  15593. {
  15594. return compress ();
  15595. ;
  15596. return 0;
  15597. }
  15598. _ACEOF
  15599. if ac_fn_c_try_link "$LINENO"; then :
  15600. ac_cv_lib_z_compress=yes
  15601. else
  15602. ac_cv_lib_z_compress=no
  15603. fi
  15604. rm -f core conftest.err conftest.$ac_objext \
  15605. conftest$ac_exeext conftest.$ac_ext
  15606. LIBS=$ac_check_lib_save_LIBS
  15607. fi
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  15609. $as_echo "$ac_cv_lib_z_compress" >&6; }
  15610. if test "x$ac_cv_lib_z_compress" = xyes; then :
  15611. passed=`expr $passed + 1`
  15612. else
  15613. failed=`expr $failed + 1`
  15614. fi
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
  15616. $as_echo_n "checking for uncompress in -lz... " >&6; }
  15617. if ${ac_cv_lib_z_uncompress+:} false; then :
  15618. $as_echo_n "(cached) " >&6
  15619. else
  15620. ac_check_lib_save_LIBS=$LIBS
  15621. LIBS="-lz $LIBS"
  15622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15623. /* end confdefs.h. */
  15624. /* Override any GCC internal prototype to avoid an error.
  15625. Use char because int might match the return type of a GCC
  15626. builtin and then its argument prototype would still apply. */
  15627. #ifdef __cplusplus
  15628. extern "C"
  15629. #endif
  15630. char uncompress ();
  15631. int
  15632. main ()
  15633. {
  15634. return uncompress ();
  15635. ;
  15636. return 0;
  15637. }
  15638. _ACEOF
  15639. if ac_fn_c_try_link "$LINENO"; then :
  15640. ac_cv_lib_z_uncompress=yes
  15641. else
  15642. ac_cv_lib_z_uncompress=no
  15643. fi
  15644. rm -f core conftest.err conftest.$ac_objext \
  15645. conftest$ac_exeext conftest.$ac_ext
  15646. LIBS=$ac_check_lib_save_LIBS
  15647. fi
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
  15649. $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  15650. if test "x$ac_cv_lib_z_uncompress" = xyes; then :
  15651. passed=`expr $passed + 1`
  15652. else
  15653. failed=`expr $failed + 1`
  15654. fi
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  15656. $as_echo_n "checking for deflate in -lz... " >&6; }
  15657. if ${ac_cv_lib_z_deflate+:} false; then :
  15658. $as_echo_n "(cached) " >&6
  15659. else
  15660. ac_check_lib_save_LIBS=$LIBS
  15661. LIBS="-lz $LIBS"
  15662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15663. /* end confdefs.h. */
  15664. /* Override any GCC internal prototype to avoid an error.
  15665. Use char because int might match the return type of a GCC
  15666. builtin and then its argument prototype would still apply. */
  15667. #ifdef __cplusplus
  15668. extern "C"
  15669. #endif
  15670. char deflate ();
  15671. int
  15672. main ()
  15673. {
  15674. return deflate ();
  15675. ;
  15676. return 0;
  15677. }
  15678. _ACEOF
  15679. if ac_fn_c_try_link "$LINENO"; then :
  15680. ac_cv_lib_z_deflate=yes
  15681. else
  15682. ac_cv_lib_z_deflate=no
  15683. fi
  15684. rm -f core conftest.err conftest.$ac_objext \
  15685. conftest$ac_exeext conftest.$ac_ext
  15686. LIBS=$ac_check_lib_save_LIBS
  15687. fi
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  15689. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  15690. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  15691. passed=`expr $passed + 1`
  15692. else
  15693. failed=`expr $failed + 1`
  15694. fi
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  15696. $as_echo_n "checking for inflate in -lz... " >&6; }
  15697. if ${ac_cv_lib_z_inflate+:} false; then :
  15698. $as_echo_n "(cached) " >&6
  15699. else
  15700. ac_check_lib_save_LIBS=$LIBS
  15701. LIBS="-lz $LIBS"
  15702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15703. /* end confdefs.h. */
  15704. /* Override any GCC internal prototype to avoid an error.
  15705. Use char because int might match the return type of a GCC
  15706. builtin and then its argument prototype would still apply. */
  15707. #ifdef __cplusplus
  15708. extern "C"
  15709. #endif
  15710. char inflate ();
  15711. int
  15712. main ()
  15713. {
  15714. return inflate ();
  15715. ;
  15716. return 0;
  15717. }
  15718. _ACEOF
  15719. if ac_fn_c_try_link "$LINENO"; then :
  15720. ac_cv_lib_z_inflate=yes
  15721. else
  15722. ac_cv_lib_z_inflate=no
  15723. fi
  15724. rm -f core conftest.err conftest.$ac_objext \
  15725. conftest$ac_exeext conftest.$ac_ext
  15726. LIBS=$ac_check_lib_save_LIBS
  15727. fi
  15728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  15729. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  15730. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  15731. passed=`expr $passed + 1`
  15732. else
  15733. failed=`expr $failed + 1`
  15734. fi
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
  15736. $as_echo_n "checking for gzseek in -lz... " >&6; }
  15737. if ${ac_cv_lib_z_gzseek+:} false; then :
  15738. $as_echo_n "(cached) " >&6
  15739. else
  15740. ac_check_lib_save_LIBS=$LIBS
  15741. LIBS="-lz $LIBS"
  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. #ifdef __cplusplus
  15748. extern "C"
  15749. #endif
  15750. char gzseek ();
  15751. int
  15752. main ()
  15753. {
  15754. return gzseek ();
  15755. ;
  15756. return 0;
  15757. }
  15758. _ACEOF
  15759. if ac_fn_c_try_link "$LINENO"; then :
  15760. ac_cv_lib_z_gzseek=yes
  15761. else
  15762. ac_cv_lib_z_gzseek=no
  15763. fi
  15764. rm -f core conftest.err conftest.$ac_objext \
  15765. conftest$ac_exeext conftest.$ac_ext
  15766. LIBS=$ac_check_lib_save_LIBS
  15767. fi
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
  15769. $as_echo "$ac_cv_lib_z_gzseek" >&6; }
  15770. if test "x$ac_cv_lib_z_gzseek" = xyes; then :
  15771. passed=`expr $passed + 1`
  15772. else
  15773. failed=`expr $failed + 1`
  15774. fi
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
  15776. $as_echo_n "checking for gztell in -lz... " >&6; }
  15777. if ${ac_cv_lib_z_gztell+:} false; then :
  15778. $as_echo_n "(cached) " >&6
  15779. else
  15780. ac_check_lib_save_LIBS=$LIBS
  15781. LIBS="-lz $LIBS"
  15782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15783. /* end confdefs.h. */
  15784. /* Override any GCC internal prototype to avoid an error.
  15785. Use char because int might match the return type of a GCC
  15786. builtin and then its argument prototype would still apply. */
  15787. #ifdef __cplusplus
  15788. extern "C"
  15789. #endif
  15790. char gztell ();
  15791. int
  15792. main ()
  15793. {
  15794. return gztell ();
  15795. ;
  15796. return 0;
  15797. }
  15798. _ACEOF
  15799. if ac_fn_c_try_link "$LINENO"; then :
  15800. ac_cv_lib_z_gztell=yes
  15801. else
  15802. ac_cv_lib_z_gztell=no
  15803. fi
  15804. rm -f core conftest.err conftest.$ac_objext \
  15805. conftest$ac_exeext conftest.$ac_ext
  15806. LIBS=$ac_check_lib_save_LIBS
  15807. fi
  15808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
  15809. $as_echo "$ac_cv_lib_z_gztell" >&6; }
  15810. if test "x$ac_cv_lib_z_gztell" = xyes; then :
  15811. passed=`expr $passed + 1`
  15812. else
  15813. failed=`expr $failed + 1`
  15814. fi
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
  15816. $as_echo_n "checking if ZLIB package is complete... " >&6; }
  15817. if test $passed -gt 0
  15818. then
  15819. if test $failed -gt 0
  15820. then
  15821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  15822. $as_echo "no -- some components failed test" >&6; }
  15823. have_zlib='no (failed tests)'
  15824. else
  15825. LIB_ZLIB='-lz'
  15826. LIBS="$LIB_ZLIB $LIBS"
  15827. $as_echo "#define HasZLIB 1" >>confdefs.h
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15829. $as_echo "yes" >&6; }
  15830. have_zlib='yes'
  15831. fi
  15832. else
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15834. $as_echo "no" >&6; }
  15835. fi
  15836. fi
  15837. if test "$have_zlib" = 'yes'; then
  15838. HasZLIB_TRUE=
  15839. HasZLIB_FALSE='#'
  15840. else
  15841. HasZLIB_TRUE='#'
  15842. HasZLIB_FALSE=
  15843. fi
  15844. #
  15845. # Check for TIFF
  15846. #
  15847. have_tiff='no'
  15848. LIB_TIFF=''
  15849. if test ! "$with_tiff" = 'no'
  15850. then
  15851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support" >&5
  15852. $as_echo_n "checking for TIFF support... " >&6; }
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  15854. $as_echo "" >&6; }
  15855. failed=0;
  15856. passed=0;
  15857. ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
  15858. if test "x$ac_cv_header_tiff_h" = xyes; then :
  15859. passed=`expr $passed + 1`
  15860. else
  15861. failed=`expr $failed + 1`
  15862. fi
  15863. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  15864. if test "x$ac_cv_header_tiffio_h" = xyes; then :
  15865. passed=`expr $passed + 1`
  15866. else
  15867. failed=`expr $failed + 1`
  15868. fi
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  15870. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  15871. if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
  15872. $as_echo_n "(cached) " >&6
  15873. else
  15874. ac_check_lib_save_LIBS=$LIBS
  15875. LIBS="-ltiff $LIBS"
  15876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15877. /* end confdefs.h. */
  15878. /* Override any GCC internal prototype to avoid an error.
  15879. Use char because int might match the return type of a GCC
  15880. builtin and then its argument prototype would still apply. */
  15881. #ifdef __cplusplus
  15882. extern "C"
  15883. #endif
  15884. char TIFFOpen ();
  15885. int
  15886. main ()
  15887. {
  15888. return TIFFOpen ();
  15889. ;
  15890. return 0;
  15891. }
  15892. _ACEOF
  15893. if ac_fn_c_try_link "$LINENO"; then :
  15894. ac_cv_lib_tiff_TIFFOpen=yes
  15895. else
  15896. ac_cv_lib_tiff_TIFFOpen=no
  15897. fi
  15898. rm -f core conftest.err conftest.$ac_objext \
  15899. conftest$ac_exeext conftest.$ac_ext
  15900. LIBS=$ac_check_lib_save_LIBS
  15901. fi
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  15903. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  15904. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  15905. passed=`expr $passed + 1`
  15906. else
  15907. failed=`expr $failed + 1`
  15908. fi
  15909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
  15910. $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
  15911. if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
  15912. $as_echo_n "(cached) " >&6
  15913. else
  15914. ac_check_lib_save_LIBS=$LIBS
  15915. LIBS="-ltiff $LIBS"
  15916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15917. /* end confdefs.h. */
  15918. /* Override any GCC internal prototype to avoid an error.
  15919. Use char because int might match the return type of a GCC
  15920. builtin and then its argument prototype would still apply. */
  15921. #ifdef __cplusplus
  15922. extern "C"
  15923. #endif
  15924. char TIFFClientOpen ();
  15925. int
  15926. main ()
  15927. {
  15928. return TIFFClientOpen ();
  15929. ;
  15930. return 0;
  15931. }
  15932. _ACEOF
  15933. if ac_fn_c_try_link "$LINENO"; then :
  15934. ac_cv_lib_tiff_TIFFClientOpen=yes
  15935. else
  15936. ac_cv_lib_tiff_TIFFClientOpen=no
  15937. fi
  15938. rm -f core conftest.err conftest.$ac_objext \
  15939. conftest$ac_exeext conftest.$ac_ext
  15940. LIBS=$ac_check_lib_save_LIBS
  15941. fi
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
  15943. $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
  15944. if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
  15945. passed=`expr $passed + 1`
  15946. else
  15947. failed=`expr $failed + 1`
  15948. fi
  15949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
  15950. $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
  15951. if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
  15952. $as_echo_n "(cached) " >&6
  15953. else
  15954. ac_check_lib_save_LIBS=$LIBS
  15955. LIBS="-ltiff $LIBS"
  15956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15957. /* end confdefs.h. */
  15958. /* Override any GCC internal prototype to avoid an error.
  15959. Use char because int might match the return type of a GCC
  15960. builtin and then its argument prototype would still apply. */
  15961. #ifdef __cplusplus
  15962. extern "C"
  15963. #endif
  15964. char TIFFIsByteSwapped ();
  15965. int
  15966. main ()
  15967. {
  15968. return TIFFIsByteSwapped ();
  15969. ;
  15970. return 0;
  15971. }
  15972. _ACEOF
  15973. if ac_fn_c_try_link "$LINENO"; then :
  15974. ac_cv_lib_tiff_TIFFIsByteSwapped=yes
  15975. else
  15976. ac_cv_lib_tiff_TIFFIsByteSwapped=no
  15977. fi
  15978. rm -f core conftest.err conftest.$ac_objext \
  15979. conftest$ac_exeext conftest.$ac_ext
  15980. LIBS=$ac_check_lib_save_LIBS
  15981. fi
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
  15983. $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
  15984. if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
  15985. passed=`expr $passed + 1`
  15986. else
  15987. failed=`expr $failed + 1`
  15988. fi
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
  15990. $as_echo_n "checking if TIFF package is complete... " >&6; }
  15991. if test $passed -gt 0
  15992. then
  15993. if test $failed -gt 0
  15994. then
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  15996. $as_echo "no -- some components failed test" >&6; }
  15997. have_tiff='no (failed tests)'
  15998. else
  15999. LIB_TIFF='-ltiff'
  16000. LIBS="$LIB_TIFF $LIBS"
  16001. $as_echo "#define HasTIFF 1" >>confdefs.h
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16003. $as_echo "yes" >&6; }
  16004. have_tiff='yes'
  16005. for ac_header in tiffconf.h
  16006. do :
  16007. ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
  16008. if test "x$ac_cv_header_tiffconf_h" = xyes; then :
  16009. cat >>confdefs.h <<_ACEOF
  16010. #define HAVE_TIFFCONF_H 1
  16011. _ACEOF
  16012. fi
  16013. done
  16014. fi
  16015. else
  16016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16017. $as_echo "no" >&6; }
  16018. fi
  16019. fi
  16020. if test "$have_tiff" = 'yes'; then
  16021. HasTIFF_TRUE=
  16022. HasTIFF_FALSE='#'
  16023. else
  16024. HasTIFF_TRUE='#'
  16025. HasTIFF_FALSE=
  16026. fi
  16027. # Libraries that the LCMS library depends on
  16028. LCMS_LIB_DEPLIBS="$LIB_MATH $LIB_THREAD"
  16029. LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
  16030. # Libraries that the jpegicc program depends on
  16031. JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH $LIB_THREAD"
  16032. JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
  16033. # Libraries that the tifficc program depends on
  16034. TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH $LIB_THREAD"
  16035. TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
  16036. LIBS=''
  16037. #
  16038. # Perform substitutions
  16039. #
  16040. ac_config_files="$ac_config_files Makefile"
  16041. ac_config_files="$ac_config_files lcms2.pc"
  16042. ac_config_files="$ac_config_files include/Makefile"
  16043. ac_config_files="$ac_config_files src/Makefile"
  16044. ac_config_files="$ac_config_files utils/tificc/Makefile"
  16045. ac_config_files="$ac_config_files utils/transicc/Makefile"
  16046. ac_config_files="$ac_config_files utils/linkicc/Makefile"
  16047. ac_config_files="$ac_config_files utils/jpgicc/Makefile"
  16048. ac_config_files="$ac_config_files utils/psicc/Makefile"
  16049. ac_config_files="$ac_config_files testbed/Makefile"
  16050. if test "x$with_fastfloat" = "xyes" ; then
  16051. COND_FASTFLOAT_TRUE=
  16052. COND_FASTFLOAT_FALSE='#'
  16053. else
  16054. COND_FASTFLOAT_TRUE='#'
  16055. COND_FASTFLOAT_FALSE=
  16056. fi
  16057. if test "x$with_threaded" = "xyes" ; then
  16058. COND_THREADED_TRUE=
  16059. COND_THREADED_FALSE='#'
  16060. else
  16061. COND_THREADED_TRUE='#'
  16062. COND_THREADED_FALSE=
  16063. fi
  16064. ac_config_files="$ac_config_files plugins/Makefile"
  16065. ac_config_files="$ac_config_files plugins/fast_float/Makefile"
  16066. ac_config_files="$ac_config_files plugins/fast_float/src/Makefile"
  16067. ac_config_files="$ac_config_files plugins/fast_float/include/Makefile"
  16068. ac_config_files="$ac_config_files plugins/fast_float/testbed/Makefile"
  16069. ac_config_files="$ac_config_files plugins/threaded/Makefile"
  16070. ac_config_files="$ac_config_files plugins/threaded/src/Makefile"
  16071. ac_config_files="$ac_config_files plugins/threaded/include/Makefile"
  16072. ac_config_files="$ac_config_files plugins/threaded/testbed/Makefile"
  16073. cat >confcache <<\_ACEOF
  16074. # This file is a shell script that caches the results of configure
  16075. # tests run on this system so they can be shared between configure
  16076. # scripts and configure runs, see configure's option --config-cache.
  16077. # It is not useful on other systems. If it contains results you don't
  16078. # want to keep, you may remove or edit it.
  16079. #
  16080. # config.status only pays attention to the cache file if you give it
  16081. # the --recheck option to rerun configure.
  16082. #
  16083. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16084. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16085. # following values.
  16086. _ACEOF
  16087. # The following way of writing the cache mishandles newlines in values,
  16088. # but we know of no workaround that is simple, portable, and efficient.
  16089. # So, we kill variables containing newlines.
  16090. # Ultrix sh set writes to stderr and can't be redirected directly,
  16091. # and sets the high bit in the cache file unless we assign to the vars.
  16092. (
  16093. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16094. eval ac_val=\$$ac_var
  16095. case $ac_val in #(
  16096. *${as_nl}*)
  16097. case $ac_var in #(
  16098. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16099. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16100. esac
  16101. case $ac_var in #(
  16102. _ | IFS | as_nl) ;; #(
  16103. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16104. *) { eval $ac_var=; unset $ac_var;} ;;
  16105. esac ;;
  16106. esac
  16107. done
  16108. (set) 2>&1 |
  16109. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16110. *${as_nl}ac_space=\ *)
  16111. # `set' does not quote correctly, so add quotes: double-quote
  16112. # substitution turns \\\\ into \\, and sed turns \\ into \.
  16113. sed -n \
  16114. "s/'/'\\\\''/g;
  16115. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16116. ;; #(
  16117. *)
  16118. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16119. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16120. ;;
  16121. esac |
  16122. sort
  16123. ) |
  16124. sed '
  16125. /^ac_cv_env_/b end
  16126. t clear
  16127. :clear
  16128. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16129. t end
  16130. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16131. :end' >>confcache
  16132. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16133. if test -w "$cache_file"; then
  16134. if test "x$cache_file" != "x/dev/null"; then
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16136. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16137. if test ! -f "$cache_file" || test -h "$cache_file"; then
  16138. cat confcache >"$cache_file"
  16139. else
  16140. case $cache_file in #(
  16141. */* | ?:*)
  16142. mv -f confcache "$cache_file"$$ &&
  16143. mv -f "$cache_file"$$ "$cache_file" ;; #(
  16144. *)
  16145. mv -f confcache "$cache_file" ;;
  16146. esac
  16147. fi
  16148. fi
  16149. else
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16151. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16152. fi
  16153. fi
  16154. rm -f confcache
  16155. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16156. # Let make expand exec_prefix.
  16157. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16158. # Transform confdefs.h into DEFS.
  16159. # Protect against shell expansion while executing Makefile rules.
  16160. # Protect against Makefile macro expansion.
  16161. #
  16162. # If the first sed substitution is executed (which looks for macros that
  16163. # take arguments), then branch to the quote section. Otherwise,
  16164. # look for a macro that doesn't take arguments.
  16165. ac_script='
  16166. :mline
  16167. /\\$/{
  16168. N
  16169. s,\\\n,,
  16170. b mline
  16171. }
  16172. t clear
  16173. :clear
  16174. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  16175. t quote
  16176. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  16177. t quote
  16178. b any
  16179. :quote
  16180. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  16181. s/\[/\\&/g
  16182. s/\]/\\&/g
  16183. s/\$/$$/g
  16184. H
  16185. :any
  16186. ${
  16187. g
  16188. s/^\n//
  16189. s/\n/ /g
  16190. p
  16191. }
  16192. '
  16193. DEFS=`sed -n "$ac_script" confdefs.h`
  16194. ac_libobjs=
  16195. ac_ltlibobjs=
  16196. U=
  16197. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16198. # 1. Remove the extension, and $U if already installed.
  16199. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16200. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16201. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16202. # will be set to the directory where LIBOBJS objects are built.
  16203. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16204. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16205. done
  16206. LIBOBJS=$ac_libobjs
  16207. LTLIBOBJS=$ac_ltlibobjs
  16208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  16209. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  16210. if test -n "$am_sleep_pid"; then
  16211. # Hide warnings about reused PIDs.
  16212. wait $am_sleep_pid 2>/dev/null
  16213. fi
  16214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  16215. $as_echo "done" >&6; }
  16216. if test -n "$EXEEXT"; then
  16217. am__EXEEXT_TRUE=
  16218. am__EXEEXT_FALSE='#'
  16219. else
  16220. am__EXEEXT_TRUE='#'
  16221. am__EXEEXT_FALSE=
  16222. fi
  16223. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16224. as_fn_error $? "conditional \"AMDEP\" was never defined.
  16225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16226. fi
  16227. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16228. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16230. fi
  16231. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16232. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  16233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16234. fi
  16235. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  16236. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  16237. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16238. fi
  16239. if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
  16240. as_fn_error $? "conditional \"HasJPEG\" was never defined.
  16241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16242. fi
  16243. if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
  16244. as_fn_error $? "conditional \"HasZLIB\" was never defined.
  16245. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16246. fi
  16247. if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
  16248. as_fn_error $? "conditional \"HasTIFF\" was never defined.
  16249. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16250. fi
  16251. if test -z "${COND_FASTFLOAT_TRUE}" && test -z "${COND_FASTFLOAT_FALSE}"; then
  16252. as_fn_error $? "conditional \"COND_FASTFLOAT\" was never defined.
  16253. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16254. fi
  16255. if test -z "${COND_THREADED_TRUE}" && test -z "${COND_THREADED_FALSE}"; then
  16256. as_fn_error $? "conditional \"COND_THREADED\" was never defined.
  16257. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16258. fi
  16259. : "${CONFIG_STATUS=./config.status}"
  16260. ac_write_fail=0
  16261. ac_clean_files_save=$ac_clean_files
  16262. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16264. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16265. as_write_fail=0
  16266. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16267. #! $SHELL
  16268. # Generated by $as_me.
  16269. # Run this file to recreate the current configuration.
  16270. # Compiler output produced by configure, useful for debugging
  16271. # configure, is in config.log if it exists.
  16272. debug=false
  16273. ac_cs_recheck=false
  16274. ac_cs_silent=false
  16275. SHELL=\${CONFIG_SHELL-$SHELL}
  16276. export SHELL
  16277. _ASEOF
  16278. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16279. ## -------------------- ##
  16280. ## M4sh Initialization. ##
  16281. ## -------------------- ##
  16282. # Be more Bourne compatible
  16283. DUALCASE=1; export DUALCASE # for MKS sh
  16284. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16285. emulate sh
  16286. NULLCMD=:
  16287. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16288. # is contrary to our usage. Disable this feature.
  16289. alias -g '${1+"$@"}'='"$@"'
  16290. setopt NO_GLOB_SUBST
  16291. else
  16292. case `(set -o) 2>/dev/null` in #(
  16293. *posix*) :
  16294. set -o posix ;; #(
  16295. *) :
  16296. ;;
  16297. esac
  16298. fi
  16299. as_nl='
  16300. '
  16301. export as_nl
  16302. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16303. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16304. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16305. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16306. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16307. # but without wasting forks for bash or zsh.
  16308. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16309. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16310. as_echo='print -r --'
  16311. as_echo_n='print -rn --'
  16312. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16313. as_echo='printf %s\n'
  16314. as_echo_n='printf %s'
  16315. else
  16316. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16317. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16318. as_echo_n='/usr/ucb/echo -n'
  16319. else
  16320. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16321. as_echo_n_body='eval
  16322. arg=$1;
  16323. case $arg in #(
  16324. *"$as_nl"*)
  16325. expr "X$arg" : "X\\(.*\\)$as_nl";
  16326. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16327. esac;
  16328. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16329. '
  16330. export as_echo_n_body
  16331. as_echo_n='sh -c $as_echo_n_body as_echo'
  16332. fi
  16333. export as_echo_body
  16334. as_echo='sh -c $as_echo_body as_echo'
  16335. fi
  16336. # The user is always right.
  16337. if test "${PATH_SEPARATOR+set}" != set; then
  16338. PATH_SEPARATOR=:
  16339. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16340. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16341. PATH_SEPARATOR=';'
  16342. }
  16343. fi
  16344. # IFS
  16345. # We need space, tab and new line, in precisely that order. Quoting is
  16346. # there to prevent editors from complaining about space-tab.
  16347. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16348. # splitting by setting IFS to empty value.)
  16349. IFS=" "" $as_nl"
  16350. # Find who we are. Look in the path if we contain no directory separator.
  16351. as_myself=
  16352. case $0 in #((
  16353. *[\\/]* ) as_myself=$0 ;;
  16354. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16355. for as_dir in $PATH
  16356. do
  16357. IFS=$as_save_IFS
  16358. test -z "$as_dir" && as_dir=.
  16359. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16360. done
  16361. IFS=$as_save_IFS
  16362. ;;
  16363. esac
  16364. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16365. # in which case we are not to be found in the path.
  16366. if test "x$as_myself" = x; then
  16367. as_myself=$0
  16368. fi
  16369. if test ! -f "$as_myself"; then
  16370. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16371. exit 1
  16372. fi
  16373. # Unset variables that we do not need and which cause bugs (e.g. in
  16374. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16375. # suppresses any "Segmentation fault" message there. '((' could
  16376. # trigger a bug in pdksh 5.2.14.
  16377. for as_var in BASH_ENV ENV MAIL MAILPATH
  16378. do eval test x\${$as_var+set} = xset \
  16379. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16380. done
  16381. PS1='$ '
  16382. PS2='> '
  16383. PS4='+ '
  16384. # NLS nuisances.
  16385. LC_ALL=C
  16386. export LC_ALL
  16387. LANGUAGE=C
  16388. export LANGUAGE
  16389. # CDPATH.
  16390. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16392. # ----------------------------------------
  16393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16395. # script with STATUS, using 1 if that was 0.
  16396. as_fn_error ()
  16397. {
  16398. as_status=$1; test $as_status -eq 0 && as_status=1
  16399. if test "$4"; then
  16400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16401. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16402. fi
  16403. $as_echo "$as_me: error: $2" >&2
  16404. as_fn_exit $as_status
  16405. } # as_fn_error
  16406. # as_fn_set_status STATUS
  16407. # -----------------------
  16408. # Set $? to STATUS, without forking.
  16409. as_fn_set_status ()
  16410. {
  16411. return $1
  16412. } # as_fn_set_status
  16413. # as_fn_exit STATUS
  16414. # -----------------
  16415. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16416. as_fn_exit ()
  16417. {
  16418. set +e
  16419. as_fn_set_status $1
  16420. exit $1
  16421. } # as_fn_exit
  16422. # as_fn_unset VAR
  16423. # ---------------
  16424. # Portably unset VAR.
  16425. as_fn_unset ()
  16426. {
  16427. { eval $1=; unset $1;}
  16428. }
  16429. as_unset=as_fn_unset
  16430. # as_fn_append VAR VALUE
  16431. # ----------------------
  16432. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16433. # advantage of any shell optimizations that allow amortized linear growth over
  16434. # repeated appends, instead of the typical quadratic growth present in naive
  16435. # implementations.
  16436. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16437. eval 'as_fn_append ()
  16438. {
  16439. eval $1+=\$2
  16440. }'
  16441. else
  16442. as_fn_append ()
  16443. {
  16444. eval $1=\$$1\$2
  16445. }
  16446. fi # as_fn_append
  16447. # as_fn_arith ARG...
  16448. # ------------------
  16449. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16450. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16451. # must be portable across $(()) and expr.
  16452. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16453. eval 'as_fn_arith ()
  16454. {
  16455. as_val=$(( $* ))
  16456. }'
  16457. else
  16458. as_fn_arith ()
  16459. {
  16460. as_val=`expr "$@" || test $? -eq 1`
  16461. }
  16462. fi # as_fn_arith
  16463. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16464. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16465. as_expr=expr
  16466. else
  16467. as_expr=false
  16468. fi
  16469. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16470. as_basename=basename
  16471. else
  16472. as_basename=false
  16473. fi
  16474. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16475. as_dirname=dirname
  16476. else
  16477. as_dirname=false
  16478. fi
  16479. as_me=`$as_basename -- "$0" ||
  16480. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16481. X"$0" : 'X\(//\)$' \| \
  16482. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16483. $as_echo X/"$0" |
  16484. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16485. s//\1/
  16486. q
  16487. }
  16488. /^X\/\(\/\/\)$/{
  16489. s//\1/
  16490. q
  16491. }
  16492. /^X\/\(\/\).*/{
  16493. s//\1/
  16494. q
  16495. }
  16496. s/.*/./; q'`
  16497. # Avoid depending upon Character Ranges.
  16498. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16499. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16500. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16501. as_cr_digits='0123456789'
  16502. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16503. ECHO_C= ECHO_N= ECHO_T=
  16504. case `echo -n x` in #(((((
  16505. -n*)
  16506. case `echo 'xy\c'` in
  16507. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16508. xy) ECHO_C='\c';;
  16509. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16510. ECHO_T=' ';;
  16511. esac;;
  16512. *)
  16513. ECHO_N='-n';;
  16514. esac
  16515. rm -f conf$$ conf$$.exe conf$$.file
  16516. if test -d conf$$.dir; then
  16517. rm -f conf$$.dir/conf$$.file
  16518. else
  16519. rm -f conf$$.dir
  16520. mkdir conf$$.dir 2>/dev/null
  16521. fi
  16522. if (echo >conf$$.file) 2>/dev/null; then
  16523. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16524. as_ln_s='ln -s'
  16525. # ... but there are two gotchas:
  16526. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16527. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16528. # In both cases, we have to default to `cp -pR'.
  16529. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16530. as_ln_s='cp -pR'
  16531. elif ln conf$$.file conf$$ 2>/dev/null; then
  16532. as_ln_s=ln
  16533. else
  16534. as_ln_s='cp -pR'
  16535. fi
  16536. else
  16537. as_ln_s='cp -pR'
  16538. fi
  16539. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16540. rmdir conf$$.dir 2>/dev/null
  16541. # as_fn_mkdir_p
  16542. # -------------
  16543. # Create "$as_dir" as a directory, including parents if necessary.
  16544. as_fn_mkdir_p ()
  16545. {
  16546. case $as_dir in #(
  16547. -*) as_dir=./$as_dir;;
  16548. esac
  16549. test -d "$as_dir" || eval $as_mkdir_p || {
  16550. as_dirs=
  16551. while :; do
  16552. case $as_dir in #(
  16553. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16554. *) as_qdir=$as_dir;;
  16555. esac
  16556. as_dirs="'$as_qdir' $as_dirs"
  16557. as_dir=`$as_dirname -- "$as_dir" ||
  16558. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16559. X"$as_dir" : 'X\(//\)[^/]' \| \
  16560. X"$as_dir" : 'X\(//\)$' \| \
  16561. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16562. $as_echo X"$as_dir" |
  16563. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16564. s//\1/
  16565. q
  16566. }
  16567. /^X\(\/\/\)[^/].*/{
  16568. s//\1/
  16569. q
  16570. }
  16571. /^X\(\/\/\)$/{
  16572. s//\1/
  16573. q
  16574. }
  16575. /^X\(\/\).*/{
  16576. s//\1/
  16577. q
  16578. }
  16579. s/.*/./; q'`
  16580. test -d "$as_dir" && break
  16581. done
  16582. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16583. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16584. } # as_fn_mkdir_p
  16585. if mkdir -p . 2>/dev/null; then
  16586. as_mkdir_p='mkdir -p "$as_dir"'
  16587. else
  16588. test -d ./-p && rmdir ./-p
  16589. as_mkdir_p=false
  16590. fi
  16591. # as_fn_executable_p FILE
  16592. # -----------------------
  16593. # Test if FILE is an executable regular file.
  16594. as_fn_executable_p ()
  16595. {
  16596. test -f "$1" && test -x "$1"
  16597. } # as_fn_executable_p
  16598. as_test_x='test -x'
  16599. as_executable_p=as_fn_executable_p
  16600. # Sed expression to map a string onto a valid CPP name.
  16601. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16602. # Sed expression to map a string onto a valid variable name.
  16603. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16604. exec 6>&1
  16605. ## ----------------------------------- ##
  16606. ## Main body of $CONFIG_STATUS script. ##
  16607. ## ----------------------------------- ##
  16608. _ASEOF
  16609. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16610. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16611. # Save the log message, to keep $0 and so on meaningful, and to
  16612. # report actual input values of CONFIG_FILES etc. instead of their
  16613. # values after options handling.
  16614. ac_log="
  16615. This file was extended by lcms2 $as_me 2.13, which was
  16616. generated by GNU Autoconf 2.69. Invocation command line was
  16617. CONFIG_FILES = $CONFIG_FILES
  16618. CONFIG_HEADERS = $CONFIG_HEADERS
  16619. CONFIG_LINKS = $CONFIG_LINKS
  16620. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16621. $ $0 $@
  16622. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16623. "
  16624. _ACEOF
  16625. case $ac_config_files in *"
  16626. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16627. esac
  16628. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16629. # Files that config.status was made for.
  16630. config_files="$ac_config_files"
  16631. config_commands="$ac_config_commands"
  16632. _ACEOF
  16633. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16634. ac_cs_usage="\
  16635. \`$as_me' instantiates files and other configuration actions
  16636. from templates according to the current configuration. Unless the files
  16637. and actions are specified as TAGs, all are instantiated by default.
  16638. Usage: $0 [OPTION]... [TAG]...
  16639. -h, --help print this help, then exit
  16640. -V, --version print version number and configuration settings, then exit
  16641. --config print configuration, then exit
  16642. -q, --quiet, --silent
  16643. do not print progress messages
  16644. -d, --debug don't remove temporary files
  16645. --recheck update $as_me by reconfiguring in the same conditions
  16646. --file=FILE[:TEMPLATE]
  16647. instantiate the configuration file FILE
  16648. Configuration files:
  16649. $config_files
  16650. Configuration commands:
  16651. $config_commands
  16652. Report bugs to the package provider."
  16653. _ACEOF
  16654. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16655. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16656. ac_cs_version="\\
  16657. lcms2 config.status 2.13
  16658. configured by $0, generated by GNU Autoconf 2.69,
  16659. with options \\"\$ac_cs_config\\"
  16660. Copyright (C) 2012 Free Software Foundation, Inc.
  16661. This config.status script is free software; the Free Software Foundation
  16662. gives unlimited permission to copy, distribute and modify it."
  16663. ac_pwd='$ac_pwd'
  16664. srcdir='$srcdir'
  16665. INSTALL='$INSTALL'
  16666. MKDIR_P='$MKDIR_P'
  16667. AWK='$AWK'
  16668. test -n "\$AWK" || AWK=awk
  16669. _ACEOF
  16670. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16671. # The default lists apply if the user does not specify any file.
  16672. ac_need_defaults=:
  16673. while test $# != 0
  16674. do
  16675. case $1 in
  16676. --*=?*)
  16677. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16678. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16679. ac_shift=:
  16680. ;;
  16681. --*=)
  16682. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16683. ac_optarg=
  16684. ac_shift=:
  16685. ;;
  16686. *)
  16687. ac_option=$1
  16688. ac_optarg=$2
  16689. ac_shift=shift
  16690. ;;
  16691. esac
  16692. case $ac_option in
  16693. # Handling of the options.
  16694. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16695. ac_cs_recheck=: ;;
  16696. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16697. $as_echo "$ac_cs_version"; exit ;;
  16698. --config | --confi | --conf | --con | --co | --c )
  16699. $as_echo "$ac_cs_config"; exit ;;
  16700. --debug | --debu | --deb | --de | --d | -d )
  16701. debug=: ;;
  16702. --file | --fil | --fi | --f )
  16703. $ac_shift
  16704. case $ac_optarg in
  16705. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16706. '') as_fn_error $? "missing file argument" ;;
  16707. esac
  16708. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16709. ac_need_defaults=false;;
  16710. --he | --h | --help | --hel | -h )
  16711. $as_echo "$ac_cs_usage"; exit ;;
  16712. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16713. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16714. ac_cs_silent=: ;;
  16715. # This is an error.
  16716. -*) as_fn_error $? "unrecognized option: \`$1'
  16717. Try \`$0 --help' for more information." ;;
  16718. *) as_fn_append ac_config_targets " $1"
  16719. ac_need_defaults=false ;;
  16720. esac
  16721. shift
  16722. done
  16723. ac_configure_extra_args=
  16724. if $ac_cs_silent; then
  16725. exec 6>/dev/null
  16726. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16727. fi
  16728. _ACEOF
  16729. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16730. if \$ac_cs_recheck; then
  16731. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16732. shift
  16733. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16734. CONFIG_SHELL='$SHELL'
  16735. export CONFIG_SHELL
  16736. exec "\$@"
  16737. fi
  16738. _ACEOF
  16739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16740. exec 5>>config.log
  16741. {
  16742. echo
  16743. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16744. ## Running $as_me. ##
  16745. _ASBOX
  16746. $as_echo "$ac_log"
  16747. } >&5
  16748. _ACEOF
  16749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16750. #
  16751. # INIT-COMMANDS
  16752. #
  16753. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  16754. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16755. # if CDPATH is set.
  16756. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16757. sed_quote_subst='$sed_quote_subst'
  16758. double_quote_subst='$double_quote_subst'
  16759. delay_variable_subst='$delay_variable_subst'
  16760. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16761. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16762. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16763. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16764. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16765. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16766. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16767. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16768. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16769. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16770. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16771. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16772. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16773. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16774. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16775. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16776. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16777. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16778. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16779. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16780. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16781. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16782. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16783. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16784. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16785. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16786. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16787. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16788. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16789. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16790. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16791. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16792. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16793. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16794. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16795. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16796. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16797. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16798. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16799. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16800. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16801. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16802. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16803. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16804. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16805. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16806. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16807. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16808. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16809. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16810. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16811. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16812. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16813. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16814. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16815. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16816. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16817. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16818. 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"`'
  16819. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16820. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16821. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16822. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16823. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16824. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16825. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16826. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16827. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16828. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16829. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16830. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16831. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16832. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16833. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16834. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16835. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16836. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16837. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16838. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16839. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16840. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16841. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16842. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16843. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16844. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16845. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16846. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16847. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16848. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16849. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16850. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16851. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16852. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16853. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16854. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16855. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16856. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16857. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16858. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16859. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16860. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16861. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16862. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16863. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16864. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16865. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16866. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16867. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16868. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16869. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16870. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16871. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16872. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16873. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16874. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16875. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16876. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16877. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16878. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16879. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16880. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16881. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16882. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16883. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16884. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16885. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16886. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16887. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16888. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16889. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16890. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16891. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16892. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16893. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16894. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16895. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16896. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16897. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16898. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16899. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16900. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16901. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16902. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16903. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16904. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16905. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16906. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16907. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16908. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16909. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16910. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16911. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16912. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16913. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16914. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16915. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16916. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16917. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16918. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16919. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16920. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16921. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16922. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16923. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16924. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16925. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16926. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16927. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16928. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16929. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16930. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16931. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16932. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16933. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16934. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16935. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16936. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16937. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16938. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16939. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16940. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16941. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16942. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16943. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16944. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16945. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16946. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16947. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16948. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16949. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16950. LTCC='$LTCC'
  16951. LTCFLAGS='$LTCFLAGS'
  16952. compiler='$compiler_DEFAULT'
  16953. # A function that is used when there is no print builtin or printf.
  16954. func_fallback_echo ()
  16955. {
  16956. eval 'cat <<_LTECHO_EOF
  16957. \$1
  16958. _LTECHO_EOF'
  16959. }
  16960. # Quote evaled strings.
  16961. for var in SHELL \
  16962. ECHO \
  16963. PATH_SEPARATOR \
  16964. SED \
  16965. GREP \
  16966. EGREP \
  16967. FGREP \
  16968. LD \
  16969. NM \
  16970. LN_S \
  16971. lt_SP2NL \
  16972. lt_NL2SP \
  16973. reload_flag \
  16974. OBJDUMP \
  16975. deplibs_check_method \
  16976. file_magic_cmd \
  16977. file_magic_glob \
  16978. want_nocaseglob \
  16979. DLLTOOL \
  16980. sharedlib_from_linklib_cmd \
  16981. AR \
  16982. AR_FLAGS \
  16983. archiver_list_spec \
  16984. STRIP \
  16985. RANLIB \
  16986. CC \
  16987. CFLAGS \
  16988. compiler \
  16989. lt_cv_sys_global_symbol_pipe \
  16990. lt_cv_sys_global_symbol_to_cdecl \
  16991. lt_cv_sys_global_symbol_to_import \
  16992. lt_cv_sys_global_symbol_to_c_name_address \
  16993. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16994. lt_cv_nm_interface \
  16995. nm_file_list_spec \
  16996. lt_cv_truncate_bin \
  16997. lt_prog_compiler_no_builtin_flag \
  16998. lt_prog_compiler_pic \
  16999. lt_prog_compiler_wl \
  17000. lt_prog_compiler_static \
  17001. lt_cv_prog_compiler_c_o \
  17002. need_locks \
  17003. MANIFEST_TOOL \
  17004. DSYMUTIL \
  17005. NMEDIT \
  17006. LIPO \
  17007. OTOOL \
  17008. OTOOL64 \
  17009. shrext_cmds \
  17010. export_dynamic_flag_spec \
  17011. whole_archive_flag_spec \
  17012. compiler_needs_object \
  17013. with_gnu_ld \
  17014. allow_undefined_flag \
  17015. no_undefined_flag \
  17016. hardcode_libdir_flag_spec \
  17017. hardcode_libdir_separator \
  17018. exclude_expsyms \
  17019. include_expsyms \
  17020. file_list_spec \
  17021. variables_saved_for_relink \
  17022. libname_spec \
  17023. library_names_spec \
  17024. soname_spec \
  17025. install_override_mode \
  17026. finish_eval \
  17027. old_striplib \
  17028. striplib \
  17029. compiler_lib_search_dirs \
  17030. predep_objects \
  17031. postdep_objects \
  17032. predeps \
  17033. postdeps \
  17034. compiler_lib_search_path \
  17035. AS \
  17036. LD_CXX \
  17037. reload_flag_CXX \
  17038. compiler_CXX \
  17039. lt_prog_compiler_no_builtin_flag_CXX \
  17040. lt_prog_compiler_pic_CXX \
  17041. lt_prog_compiler_wl_CXX \
  17042. lt_prog_compiler_static_CXX \
  17043. lt_cv_prog_compiler_c_o_CXX \
  17044. export_dynamic_flag_spec_CXX \
  17045. whole_archive_flag_spec_CXX \
  17046. compiler_needs_object_CXX \
  17047. with_gnu_ld_CXX \
  17048. allow_undefined_flag_CXX \
  17049. no_undefined_flag_CXX \
  17050. hardcode_libdir_flag_spec_CXX \
  17051. hardcode_libdir_separator_CXX \
  17052. exclude_expsyms_CXX \
  17053. include_expsyms_CXX \
  17054. file_list_spec_CXX \
  17055. compiler_lib_search_dirs_CXX \
  17056. predep_objects_CXX \
  17057. postdep_objects_CXX \
  17058. predeps_CXX \
  17059. postdeps_CXX \
  17060. compiler_lib_search_path_CXX; do
  17061. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17062. *[\\\\\\\`\\"\\\$]*)
  17063. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  17064. ;;
  17065. *)
  17066. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17067. ;;
  17068. esac
  17069. done
  17070. # Double-quote double-evaled strings.
  17071. for var in reload_cmds \
  17072. old_postinstall_cmds \
  17073. old_postuninstall_cmds \
  17074. old_archive_cmds \
  17075. extract_expsyms_cmds \
  17076. old_archive_from_new_cmds \
  17077. old_archive_from_expsyms_cmds \
  17078. archive_cmds \
  17079. archive_expsym_cmds \
  17080. module_cmds \
  17081. module_expsym_cmds \
  17082. export_symbols_cmds \
  17083. prelink_cmds \
  17084. postlink_cmds \
  17085. postinstall_cmds \
  17086. postuninstall_cmds \
  17087. finish_cmds \
  17088. sys_lib_search_path_spec \
  17089. configure_time_dlsearch_path \
  17090. configure_time_lt_sys_library_path \
  17091. reload_cmds_CXX \
  17092. old_archive_cmds_CXX \
  17093. old_archive_from_new_cmds_CXX \
  17094. old_archive_from_expsyms_cmds_CXX \
  17095. archive_cmds_CXX \
  17096. archive_expsym_cmds_CXX \
  17097. module_cmds_CXX \
  17098. module_expsym_cmds_CXX \
  17099. export_symbols_cmds_CXX \
  17100. prelink_cmds_CXX \
  17101. postlink_cmds_CXX; do
  17102. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17103. *[\\\\\\\`\\"\\\$]*)
  17104. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  17105. ;;
  17106. *)
  17107. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17108. ;;
  17109. esac
  17110. done
  17111. ac_aux_dir='$ac_aux_dir'
  17112. # See if we are running on zsh, and set the options that allow our
  17113. # commands through without removal of \ escapes INIT.
  17114. if test -n "\${ZSH_VERSION+set}"; then
  17115. setopt NO_GLOB_SUBST
  17116. fi
  17117. PACKAGE='$PACKAGE'
  17118. VERSION='$VERSION'
  17119. RM='$RM'
  17120. ofile='$ofile'
  17121. _ACEOF
  17122. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17123. # Handling of arguments.
  17124. for ac_config_target in $ac_config_targets
  17125. do
  17126. case $ac_config_target in
  17127. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17128. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  17129. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17130. "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
  17131. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  17132. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  17133. "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
  17134. "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
  17135. "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
  17136. "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
  17137. "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
  17138. "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
  17139. "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
  17140. "plugins/fast_float/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/Makefile" ;;
  17141. "plugins/fast_float/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/src/Makefile" ;;
  17142. "plugins/fast_float/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/include/Makefile" ;;
  17143. "plugins/fast_float/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/testbed/Makefile" ;;
  17144. "plugins/threaded/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/Makefile" ;;
  17145. "plugins/threaded/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/src/Makefile" ;;
  17146. "plugins/threaded/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/include/Makefile" ;;
  17147. "plugins/threaded/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/testbed/Makefile" ;;
  17148. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  17149. esac
  17150. done
  17151. # If the user did not use the arguments to specify the items to instantiate,
  17152. # then the envvar interface is used. Set only those that are not.
  17153. # We use the long form for the default assignment because of an extremely
  17154. # bizarre bug on SunOS 4.1.3.
  17155. if $ac_need_defaults; then
  17156. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17157. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17158. fi
  17159. # Have a temporary directory for convenience. Make it in the build tree
  17160. # simply because there is no reason against having it here, and in addition,
  17161. # creating and moving files from /tmp can sometimes cause problems.
  17162. # Hook for its removal unless debugging.
  17163. # Note that there is a small window in which the directory will not be cleaned:
  17164. # after its creation but before its name has been assigned to `$tmp'.
  17165. $debug ||
  17166. {
  17167. tmp= ac_tmp=
  17168. trap 'exit_status=$?
  17169. : "${ac_tmp:=$tmp}"
  17170. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  17171. ' 0
  17172. trap 'as_fn_exit 1' 1 2 13 15
  17173. }
  17174. # Create a (secure) tmp directory for tmp files.
  17175. {
  17176. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17177. test -d "$tmp"
  17178. } ||
  17179. {
  17180. tmp=./conf$$-$RANDOM
  17181. (umask 077 && mkdir "$tmp")
  17182. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  17183. ac_tmp=$tmp
  17184. # Set up the scripts for CONFIG_FILES section.
  17185. # No need to generate them if there are no CONFIG_FILES.
  17186. # This happens for instance with `./config.status config.h'.
  17187. if test -n "$CONFIG_FILES"; then
  17188. ac_cr=`echo X | tr X '\015'`
  17189. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17190. # But we know of no other shell where ac_cr would be empty at this
  17191. # point, so we can use a bashism as a fallback.
  17192. if test "x$ac_cr" = x; then
  17193. eval ac_cr=\$\'\\r\'
  17194. fi
  17195. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17196. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17197. ac_cs_awk_cr='\\r'
  17198. else
  17199. ac_cs_awk_cr=$ac_cr
  17200. fi
  17201. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  17202. _ACEOF
  17203. {
  17204. echo "cat >conf$$subs.awk <<_ACEOF" &&
  17205. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17206. echo "_ACEOF"
  17207. } >conf$$subs.sh ||
  17208. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17209. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  17210. ac_delim='%!_!# '
  17211. for ac_last_try in false false false false false :; do
  17212. . ./conf$$subs.sh ||
  17213. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17214. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17215. if test $ac_delim_n = $ac_delim_num; then
  17216. break
  17217. elif $ac_last_try; then
  17218. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17219. else
  17220. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17221. fi
  17222. done
  17223. rm -f conf$$subs.sh
  17224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17225. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  17226. _ACEOF
  17227. sed -n '
  17228. h
  17229. s/^/S["/; s/!.*/"]=/
  17230. p
  17231. g
  17232. s/^[^!]*!//
  17233. :repl
  17234. t repl
  17235. s/'"$ac_delim"'$//
  17236. t delim
  17237. :nl
  17238. h
  17239. s/\(.\{148\}\)..*/\1/
  17240. t more1
  17241. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17242. p
  17243. n
  17244. b repl
  17245. :more1
  17246. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17247. p
  17248. g
  17249. s/.\{148\}//
  17250. t nl
  17251. :delim
  17252. h
  17253. s/\(.\{148\}\)..*/\1/
  17254. t more2
  17255. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17256. p
  17257. b
  17258. :more2
  17259. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17260. p
  17261. g
  17262. s/.\{148\}//
  17263. t delim
  17264. ' <conf$$subs.awk | sed '
  17265. /^[^""]/{
  17266. N
  17267. s/\n//
  17268. }
  17269. ' >>$CONFIG_STATUS || ac_write_fail=1
  17270. rm -f conf$$subs.awk
  17271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17272. _ACAWK
  17273. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  17274. for (key in S) S_is_set[key] = 1
  17275. FS = ""
  17276. }
  17277. {
  17278. line = $ 0
  17279. nfields = split(line, field, "@")
  17280. substed = 0
  17281. len = length(field[1])
  17282. for (i = 2; i < nfields; i++) {
  17283. key = field[i]
  17284. keylen = length(key)
  17285. if (S_is_set[key]) {
  17286. value = S[key]
  17287. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17288. len += length(value) + length(field[++i])
  17289. substed = 1
  17290. } else
  17291. len += 1 + keylen
  17292. }
  17293. print line
  17294. }
  17295. _ACAWK
  17296. _ACEOF
  17297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17298. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17299. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17300. else
  17301. cat
  17302. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17303. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17304. _ACEOF
  17305. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17306. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17307. # trailing colons and then remove the whole line if VPATH becomes empty
  17308. # (actually we leave an empty line to preserve line numbers).
  17309. if test "x$srcdir" = x.; then
  17310. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17311. h
  17312. s///
  17313. s/^/:/
  17314. s/[ ]*$/:/
  17315. s/:\$(srcdir):/:/g
  17316. s/:\${srcdir}:/:/g
  17317. s/:@srcdir@:/:/g
  17318. s/^:*//
  17319. s/:*$//
  17320. x
  17321. s/\(=[ ]*\).*/\1/
  17322. G
  17323. s/\n//
  17324. s/^[^=]*=[ ]*$//
  17325. }'
  17326. fi
  17327. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17328. fi # test -n "$CONFIG_FILES"
  17329. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  17330. shift
  17331. for ac_tag
  17332. do
  17333. case $ac_tag in
  17334. :[FHLC]) ac_mode=$ac_tag; continue;;
  17335. esac
  17336. case $ac_mode$ac_tag in
  17337. :[FHL]*:*);;
  17338. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17339. :[FH]-) ac_tag=-:-;;
  17340. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17341. esac
  17342. ac_save_IFS=$IFS
  17343. IFS=:
  17344. set x $ac_tag
  17345. IFS=$ac_save_IFS
  17346. shift
  17347. ac_file=$1
  17348. shift
  17349. case $ac_mode in
  17350. :L) ac_source=$1;;
  17351. :[FH])
  17352. ac_file_inputs=
  17353. for ac_f
  17354. do
  17355. case $ac_f in
  17356. -) ac_f="$ac_tmp/stdin";;
  17357. *) # Look for the file first in the build tree, then in the source tree
  17358. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17359. # because $ac_f cannot contain `:'.
  17360. test -f "$ac_f" ||
  17361. case $ac_f in
  17362. [\\/$]*) false;;
  17363. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17364. esac ||
  17365. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17366. esac
  17367. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17368. as_fn_append ac_file_inputs " '$ac_f'"
  17369. done
  17370. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17371. # use $as_me), people would be surprised to read:
  17372. # /* config.h. Generated by config.status. */
  17373. configure_input='Generated from '`
  17374. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17375. `' by configure.'
  17376. if test x"$ac_file" != x-; then
  17377. configure_input="$ac_file. $configure_input"
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17379. $as_echo "$as_me: creating $ac_file" >&6;}
  17380. fi
  17381. # Neutralize special characters interpreted by sed in replacement strings.
  17382. case $configure_input in #(
  17383. *\&* | *\|* | *\\* )
  17384. ac_sed_conf_input=`$as_echo "$configure_input" |
  17385. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17386. *) ac_sed_conf_input=$configure_input;;
  17387. esac
  17388. case $ac_tag in
  17389. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17390. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17391. esac
  17392. ;;
  17393. esac
  17394. ac_dir=`$as_dirname -- "$ac_file" ||
  17395. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17396. X"$ac_file" : 'X\(//\)[^/]' \| \
  17397. X"$ac_file" : 'X\(//\)$' \| \
  17398. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17399. $as_echo X"$ac_file" |
  17400. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17401. s//\1/
  17402. q
  17403. }
  17404. /^X\(\/\/\)[^/].*/{
  17405. s//\1/
  17406. q
  17407. }
  17408. /^X\(\/\/\)$/{
  17409. s//\1/
  17410. q
  17411. }
  17412. /^X\(\/\).*/{
  17413. s//\1/
  17414. q
  17415. }
  17416. s/.*/./; q'`
  17417. as_dir="$ac_dir"; as_fn_mkdir_p
  17418. ac_builddir=.
  17419. case "$ac_dir" in
  17420. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17421. *)
  17422. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17423. # A ".." for each directory in $ac_dir_suffix.
  17424. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17425. case $ac_top_builddir_sub in
  17426. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17427. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17428. esac ;;
  17429. esac
  17430. ac_abs_top_builddir=$ac_pwd
  17431. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17432. # for backward compatibility:
  17433. ac_top_builddir=$ac_top_build_prefix
  17434. case $srcdir in
  17435. .) # We are building in place.
  17436. ac_srcdir=.
  17437. ac_top_srcdir=$ac_top_builddir_sub
  17438. ac_abs_top_srcdir=$ac_pwd ;;
  17439. [\\/]* | ?:[\\/]* ) # Absolute name.
  17440. ac_srcdir=$srcdir$ac_dir_suffix;
  17441. ac_top_srcdir=$srcdir
  17442. ac_abs_top_srcdir=$srcdir ;;
  17443. *) # Relative name.
  17444. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17445. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17446. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17447. esac
  17448. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17449. case $ac_mode in
  17450. :F)
  17451. #
  17452. # CONFIG_FILE
  17453. #
  17454. case $INSTALL in
  17455. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17456. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17457. esac
  17458. ac_MKDIR_P=$MKDIR_P
  17459. case $MKDIR_P in
  17460. [\\/$]* | ?:[\\/]* ) ;;
  17461. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17462. esac
  17463. _ACEOF
  17464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17465. # If the template does not know about datarootdir, expand it.
  17466. # FIXME: This hack should be removed a few years after 2.60.
  17467. ac_datarootdir_hack=; ac_datarootdir_seen=
  17468. ac_sed_dataroot='
  17469. /datarootdir/ {
  17470. p
  17471. q
  17472. }
  17473. /@datadir@/p
  17474. /@docdir@/p
  17475. /@infodir@/p
  17476. /@localedir@/p
  17477. /@mandir@/p'
  17478. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17479. *datarootdir*) ac_datarootdir_seen=yes;;
  17480. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17482. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17483. _ACEOF
  17484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17485. ac_datarootdir_hack='
  17486. s&@datadir@&$datadir&g
  17487. s&@docdir@&$docdir&g
  17488. s&@infodir@&$infodir&g
  17489. s&@localedir@&$localedir&g
  17490. s&@mandir@&$mandir&g
  17491. s&\\\${datarootdir}&$datarootdir&g' ;;
  17492. esac
  17493. _ACEOF
  17494. # Neutralize VPATH when `$srcdir' = `.'.
  17495. # Shell code in configure.ac might set extrasub.
  17496. # FIXME: do we really want to maintain this feature?
  17497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17498. ac_sed_extra="$ac_vpsub
  17499. $extrasub
  17500. _ACEOF
  17501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17502. :t
  17503. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17504. s|@configure_input@|$ac_sed_conf_input|;t t
  17505. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17506. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17507. s&@srcdir@&$ac_srcdir&;t t
  17508. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17509. s&@top_srcdir@&$ac_top_srcdir&;t t
  17510. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17511. s&@builddir@&$ac_builddir&;t t
  17512. s&@abs_builddir@&$ac_abs_builddir&;t t
  17513. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17514. s&@INSTALL@&$ac_INSTALL&;t t
  17515. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17516. $ac_datarootdir_hack
  17517. "
  17518. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17519. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17520. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17521. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17522. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17523. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17525. which seems to be undefined. Please make sure it is defined" >&5
  17526. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17527. which seems to be undefined. Please make sure it is defined" >&2;}
  17528. rm -f "$ac_tmp/stdin"
  17529. case $ac_file in
  17530. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17531. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17532. esac \
  17533. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17534. ;;
  17535. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17536. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17537. ;;
  17538. esac
  17539. case $ac_file$ac_mode in
  17540. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17541. # Older Autoconf quotes --file arguments for eval, but not when files
  17542. # are listed without --file. Let's play safe and only enable the eval
  17543. # if we detect the quoting.
  17544. # TODO: see whether this extra hack can be removed once we start
  17545. # requiring Autoconf 2.70 or later.
  17546. case $CONFIG_FILES in #(
  17547. *\'*) :
  17548. eval set x "$CONFIG_FILES" ;; #(
  17549. *) :
  17550. set x $CONFIG_FILES ;; #(
  17551. *) :
  17552. ;;
  17553. esac
  17554. shift
  17555. # Used to flag and report bootstrapping failures.
  17556. am_rc=0
  17557. for am_mf
  17558. do
  17559. # Strip MF so we end up with the name of the file.
  17560. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  17561. # Check whether this is an Automake generated Makefile which includes
  17562. # dependency-tracking related rules and includes.
  17563. # Grep'ing the whole file directly is not great: AIX grep has a line
  17564. # limit of 2048, but all sed's we know have understand at least 4000.
  17565. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  17566. || continue
  17567. am_dirpart=`$as_dirname -- "$am_mf" ||
  17568. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17569. X"$am_mf" : 'X\(//\)[^/]' \| \
  17570. X"$am_mf" : 'X\(//\)$' \| \
  17571. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17572. $as_echo X"$am_mf" |
  17573. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17574. s//\1/
  17575. q
  17576. }
  17577. /^X\(\/\/\)[^/].*/{
  17578. s//\1/
  17579. q
  17580. }
  17581. /^X\(\/\/\)$/{
  17582. s//\1/
  17583. q
  17584. }
  17585. /^X\(\/\).*/{
  17586. s//\1/
  17587. q
  17588. }
  17589. s/.*/./; q'`
  17590. am_filepart=`$as_basename -- "$am_mf" ||
  17591. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  17592. X"$am_mf" : 'X\(//\)$' \| \
  17593. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17594. $as_echo X/"$am_mf" |
  17595. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17596. s//\1/
  17597. q
  17598. }
  17599. /^X\/\(\/\/\)$/{
  17600. s//\1/
  17601. q
  17602. }
  17603. /^X\/\(\/\).*/{
  17604. s//\1/
  17605. q
  17606. }
  17607. s/.*/./; q'`
  17608. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  17609. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17610. | $MAKE -f - am--depfiles" >&5
  17611. (cd "$am_dirpart" \
  17612. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17613. | $MAKE -f - am--depfiles) >&5 2>&5
  17614. ac_status=$?
  17615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17616. (exit $ac_status); } || am_rc=$?
  17617. done
  17618. if test $am_rc -ne 0; then
  17619. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17621. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  17622. for automatic dependency tracking. If GNU make was not used, consider
  17623. re-running the configure script with MAKE=\"gmake\" (or whatever is
  17624. necessary). You can also try re-running configure with the
  17625. '--disable-dependency-tracking' option to at least be able to build
  17626. the package (albeit without support for automatic dependency tracking).
  17627. See \`config.log' for more details" "$LINENO" 5; }
  17628. fi
  17629. { am_dirpart=; unset am_dirpart;}
  17630. { am_filepart=; unset am_filepart;}
  17631. { am_mf=; unset am_mf;}
  17632. { am_rc=; unset am_rc;}
  17633. rm -f conftest-deps.mk
  17634. }
  17635. ;;
  17636. "libtool":C)
  17637. # See if we are running on zsh, and set the options that allow our
  17638. # commands through without removal of \ escapes.
  17639. if test -n "${ZSH_VERSION+set}"; then
  17640. setopt NO_GLOB_SUBST
  17641. fi
  17642. cfgfile=${ofile}T
  17643. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17644. $RM "$cfgfile"
  17645. cat <<_LT_EOF >> "$cfgfile"
  17646. #! $SHELL
  17647. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17648. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17649. # Provide generalized library-building support services.
  17650. # Written by Gordon Matzigkeit, 1996
  17651. # Copyright (C) 2014 Free Software Foundation, Inc.
  17652. # This is free software; see the source for copying conditions. There is NO
  17653. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17654. # GNU Libtool is free software; you can redistribute it and/or modify
  17655. # it under the terms of the GNU General Public License as published by
  17656. # the Free Software Foundation; either version 2 of of the License, or
  17657. # (at your option) any later version.
  17658. #
  17659. # As a special exception to the GNU General Public License, if you
  17660. # distribute this file as part of a program or library that is built
  17661. # using GNU Libtool, you may include this file under the same
  17662. # distribution terms that you use for the rest of that program.
  17663. #
  17664. # GNU Libtool is distributed in the hope that it will be useful, but
  17665. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17666. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17667. # GNU General Public License for more details.
  17668. #
  17669. # You should have received a copy of the GNU General Public License
  17670. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17671. # The names of the tagged configurations supported by this script.
  17672. available_tags='CXX '
  17673. # Configured defaults for sys_lib_dlsearch_path munging.
  17674. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17675. # ### BEGIN LIBTOOL CONFIG
  17676. # Which release of libtool.m4 was used?
  17677. macro_version=$macro_version
  17678. macro_revision=$macro_revision
  17679. # Whether or not to build shared libraries.
  17680. build_libtool_libs=$enable_shared
  17681. # Whether or not to build static libraries.
  17682. build_old_libs=$enable_static
  17683. # What type of objects to build.
  17684. pic_mode=$pic_mode
  17685. # Whether or not to optimize for fast installation.
  17686. fast_install=$enable_fast_install
  17687. # Shared archive member basename,for filename based shared library versioning on AIX.
  17688. shared_archive_member_spec=$shared_archive_member_spec
  17689. # Shell to use when invoking shell scripts.
  17690. SHELL=$lt_SHELL
  17691. # An echo program that protects backslashes.
  17692. ECHO=$lt_ECHO
  17693. # The PATH separator for the build system.
  17694. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17695. # The host system.
  17696. host_alias=$host_alias
  17697. host=$host
  17698. host_os=$host_os
  17699. # The build system.
  17700. build_alias=$build_alias
  17701. build=$build
  17702. build_os=$build_os
  17703. # A sed program that does not truncate output.
  17704. SED=$lt_SED
  17705. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17706. Xsed="\$SED -e 1s/^X//"
  17707. # A grep program that handles long lines.
  17708. GREP=$lt_GREP
  17709. # An ERE matcher.
  17710. EGREP=$lt_EGREP
  17711. # A literal string matcher.
  17712. FGREP=$lt_FGREP
  17713. # A BSD- or MS-compatible name lister.
  17714. NM=$lt_NM
  17715. # Whether we need soft or hard links.
  17716. LN_S=$lt_LN_S
  17717. # What is the maximum length of a command?
  17718. max_cmd_len=$max_cmd_len
  17719. # Object file suffix (normally "o").
  17720. objext=$ac_objext
  17721. # Executable file suffix (normally "").
  17722. exeext=$exeext
  17723. # whether the shell understands "unset".
  17724. lt_unset=$lt_unset
  17725. # turn spaces into newlines.
  17726. SP2NL=$lt_lt_SP2NL
  17727. # turn newlines into spaces.
  17728. NL2SP=$lt_lt_NL2SP
  17729. # convert \$build file names to \$host format.
  17730. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17731. # convert \$build files to toolchain format.
  17732. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17733. # An object symbol dumper.
  17734. OBJDUMP=$lt_OBJDUMP
  17735. # Method to check whether dependent libraries are shared objects.
  17736. deplibs_check_method=$lt_deplibs_check_method
  17737. # Command to use when deplibs_check_method = "file_magic".
  17738. file_magic_cmd=$lt_file_magic_cmd
  17739. # How to find potential files when deplibs_check_method = "file_magic".
  17740. file_magic_glob=$lt_file_magic_glob
  17741. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17742. want_nocaseglob=$lt_want_nocaseglob
  17743. # DLL creation program.
  17744. DLLTOOL=$lt_DLLTOOL
  17745. # Command to associate shared and link libraries.
  17746. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17747. # The archiver.
  17748. AR=$lt_AR
  17749. # Flags to create an archive.
  17750. AR_FLAGS=$lt_AR_FLAGS
  17751. # How to feed a file listing to the archiver.
  17752. archiver_list_spec=$lt_archiver_list_spec
  17753. # A symbol stripping program.
  17754. STRIP=$lt_STRIP
  17755. # Commands used to install an old-style archive.
  17756. RANLIB=$lt_RANLIB
  17757. old_postinstall_cmds=$lt_old_postinstall_cmds
  17758. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17759. # Whether to use a lock for old archive extraction.
  17760. lock_old_archive_extraction=$lock_old_archive_extraction
  17761. # A C compiler.
  17762. LTCC=$lt_CC
  17763. # LTCC compiler flags.
  17764. LTCFLAGS=$lt_CFLAGS
  17765. # Take the output of nm and produce a listing of raw symbols and C names.
  17766. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17767. # Transform the output of nm in a proper C declaration.
  17768. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17769. # Transform the output of nm into a list of symbols to manually relocate.
  17770. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17771. # Transform the output of nm in a C name address pair.
  17772. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17773. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17774. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17775. # The name lister interface.
  17776. nm_interface=$lt_lt_cv_nm_interface
  17777. # Specify filename containing input files for \$NM.
  17778. nm_file_list_spec=$lt_nm_file_list_spec
  17779. # The root where to search for dependent libraries,and where our libraries should be installed.
  17780. lt_sysroot=$lt_sysroot
  17781. # Command to truncate a binary pipe.
  17782. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17783. # The name of the directory that contains temporary libtool files.
  17784. objdir=$objdir
  17785. # Used to examine libraries when file_magic_cmd begins with "file".
  17786. MAGIC_CMD=$MAGIC_CMD
  17787. # Must we lock files when doing compilation?
  17788. need_locks=$lt_need_locks
  17789. # Manifest tool.
  17790. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17791. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17792. DSYMUTIL=$lt_DSYMUTIL
  17793. # Tool to change global to local symbols on Mac OS X.
  17794. NMEDIT=$lt_NMEDIT
  17795. # Tool to manipulate fat objects and archives on Mac OS X.
  17796. LIPO=$lt_LIPO
  17797. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17798. OTOOL=$lt_OTOOL
  17799. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17800. OTOOL64=$lt_OTOOL64
  17801. # Old archive suffix (normally "a").
  17802. libext=$libext
  17803. # Shared library suffix (normally ".so").
  17804. shrext_cmds=$lt_shrext_cmds
  17805. # The commands to extract the exported symbol list from a shared archive.
  17806. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17807. # Variables whose values should be saved in libtool wrapper scripts and
  17808. # restored at link time.
  17809. variables_saved_for_relink=$lt_variables_saved_for_relink
  17810. # Do we need the "lib" prefix for modules?
  17811. need_lib_prefix=$need_lib_prefix
  17812. # Do we need a version for libraries?
  17813. need_version=$need_version
  17814. # Library versioning type.
  17815. version_type=$version_type
  17816. # Shared library runtime path variable.
  17817. runpath_var=$runpath_var
  17818. # Shared library path variable.
  17819. shlibpath_var=$shlibpath_var
  17820. # Is shlibpath searched before the hard-coded library search path?
  17821. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17822. # Format of library name prefix.
  17823. libname_spec=$lt_libname_spec
  17824. # List of archive names. First name is the real one, the rest are links.
  17825. # The last name is the one that the linker finds with -lNAME
  17826. library_names_spec=$lt_library_names_spec
  17827. # The coded name of the library, if different from the real name.
  17828. soname_spec=$lt_soname_spec
  17829. # Permission mode override for installation of shared libraries.
  17830. install_override_mode=$lt_install_override_mode
  17831. # Command to use after installation of a shared archive.
  17832. postinstall_cmds=$lt_postinstall_cmds
  17833. # Command to use after uninstallation of a shared archive.
  17834. postuninstall_cmds=$lt_postuninstall_cmds
  17835. # Commands used to finish a libtool library installation in a directory.
  17836. finish_cmds=$lt_finish_cmds
  17837. # As "finish_cmds", except a single script fragment to be evaled but
  17838. # not shown.
  17839. finish_eval=$lt_finish_eval
  17840. # Whether we should hardcode library paths into libraries.
  17841. hardcode_into_libs=$hardcode_into_libs
  17842. # Compile-time system search path for libraries.
  17843. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17844. # Detected run-time system search path for libraries.
  17845. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17846. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17847. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17848. # Whether dlopen is supported.
  17849. dlopen_support=$enable_dlopen
  17850. # Whether dlopen of programs is supported.
  17851. dlopen_self=$enable_dlopen_self
  17852. # Whether dlopen of statically linked programs is supported.
  17853. dlopen_self_static=$enable_dlopen_self_static
  17854. # Commands to strip libraries.
  17855. old_striplib=$lt_old_striplib
  17856. striplib=$lt_striplib
  17857. # Assembler program.
  17858. AS=$lt_AS
  17859. # The linker used to build libraries.
  17860. LD=$lt_LD
  17861. # How to create reloadable object files.
  17862. reload_flag=$lt_reload_flag
  17863. reload_cmds=$lt_reload_cmds
  17864. # Commands used to build an old-style archive.
  17865. old_archive_cmds=$lt_old_archive_cmds
  17866. # A language specific compiler.
  17867. CC=$lt_compiler
  17868. # Is the compiler the GNU compiler?
  17869. with_gcc=$GCC
  17870. # Compiler flag to turn off builtin functions.
  17871. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17872. # Additional compiler flags for building library objects.
  17873. pic_flag=$lt_lt_prog_compiler_pic
  17874. # How to pass a linker flag through the compiler.
  17875. wl=$lt_lt_prog_compiler_wl
  17876. # Compiler flag to prevent dynamic linking.
  17877. link_static_flag=$lt_lt_prog_compiler_static
  17878. # Does compiler simultaneously support -c and -o options?
  17879. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17880. # Whether or not to add -lc for building shared libraries.
  17881. build_libtool_need_lc=$archive_cmds_need_lc
  17882. # Whether or not to disallow shared libs when runtime libs are static.
  17883. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17884. # Compiler flag to allow reflexive dlopens.
  17885. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17886. # Compiler flag to generate shared objects directly from archives.
  17887. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17888. # Whether the compiler copes with passing no objects directly.
  17889. compiler_needs_object=$lt_compiler_needs_object
  17890. # Create an old-style archive from a shared archive.
  17891. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17892. # Create a temporary old-style archive to link instead of a shared archive.
  17893. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17894. # Commands used to build a shared archive.
  17895. archive_cmds=$lt_archive_cmds
  17896. archive_expsym_cmds=$lt_archive_expsym_cmds
  17897. # Commands used to build a loadable module if different from building
  17898. # a shared archive.
  17899. module_cmds=$lt_module_cmds
  17900. module_expsym_cmds=$lt_module_expsym_cmds
  17901. # Whether we are building with GNU ld or not.
  17902. with_gnu_ld=$lt_with_gnu_ld
  17903. # Flag that allows shared libraries with undefined symbols to be built.
  17904. allow_undefined_flag=$lt_allow_undefined_flag
  17905. # Flag that enforces no undefined symbols.
  17906. no_undefined_flag=$lt_no_undefined_flag
  17907. # Flag to hardcode \$libdir into a binary during linking.
  17908. # This must work even if \$libdir does not exist
  17909. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17910. # Whether we need a single "-rpath" flag with a separated argument.
  17911. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17912. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17913. # DIR into the resulting binary.
  17914. hardcode_direct=$hardcode_direct
  17915. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17916. # DIR into the resulting binary and the resulting library dependency is
  17917. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17918. # library is relocated.
  17919. hardcode_direct_absolute=$hardcode_direct_absolute
  17920. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17921. # into the resulting binary.
  17922. hardcode_minus_L=$hardcode_minus_L
  17923. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17924. # into the resulting binary.
  17925. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17926. # Set to "yes" if building a shared library automatically hardcodes DIR
  17927. # into the library and all subsequent libraries and executables linked
  17928. # against it.
  17929. hardcode_automatic=$hardcode_automatic
  17930. # Set to yes if linker adds runtime paths of dependent libraries
  17931. # to runtime path list.
  17932. inherit_rpath=$inherit_rpath
  17933. # Whether libtool must link a program against all its dependency libraries.
  17934. link_all_deplibs=$link_all_deplibs
  17935. # Set to "yes" if exported symbols are required.
  17936. always_export_symbols=$always_export_symbols
  17937. # The commands to list exported symbols.
  17938. export_symbols_cmds=$lt_export_symbols_cmds
  17939. # Symbols that should not be listed in the preloaded symbols.
  17940. exclude_expsyms=$lt_exclude_expsyms
  17941. # Symbols that must always be exported.
  17942. include_expsyms=$lt_include_expsyms
  17943. # Commands necessary for linking programs (against libraries) with templates.
  17944. prelink_cmds=$lt_prelink_cmds
  17945. # Commands necessary for finishing linking programs.
  17946. postlink_cmds=$lt_postlink_cmds
  17947. # Specify filename containing input files.
  17948. file_list_spec=$lt_file_list_spec
  17949. # How to hardcode a shared library path into an executable.
  17950. hardcode_action=$hardcode_action
  17951. # The directories searched by this compiler when creating a shared library.
  17952. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17953. # Dependencies to place before and after the objects being linked to
  17954. # create a shared library.
  17955. predep_objects=$lt_predep_objects
  17956. postdep_objects=$lt_postdep_objects
  17957. predeps=$lt_predeps
  17958. postdeps=$lt_postdeps
  17959. # The library search path used internally by the compiler when linking
  17960. # a shared library.
  17961. compiler_lib_search_path=$lt_compiler_lib_search_path
  17962. # ### END LIBTOOL CONFIG
  17963. _LT_EOF
  17964. cat <<'_LT_EOF' >> "$cfgfile"
  17965. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17966. # func_munge_path_list VARIABLE PATH
  17967. # -----------------------------------
  17968. # VARIABLE is name of variable containing _space_ separated list of
  17969. # directories to be munged by the contents of PATH, which is string
  17970. # having a format:
  17971. # "DIR[:DIR]:"
  17972. # string "DIR[ DIR]" will be prepended to VARIABLE
  17973. # ":DIR[:DIR]"
  17974. # string "DIR[ DIR]" will be appended to VARIABLE
  17975. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17976. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17977. # "DIRA[ DIRA]" will be appended to VARIABLE
  17978. # "DIR[:DIR]"
  17979. # VARIABLE will be replaced by "DIR[ DIR]"
  17980. func_munge_path_list ()
  17981. {
  17982. case x$2 in
  17983. x)
  17984. ;;
  17985. *:)
  17986. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17987. ;;
  17988. x:*)
  17989. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17990. ;;
  17991. *::*)
  17992. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17993. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17994. ;;
  17995. *)
  17996. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17997. ;;
  17998. esac
  17999. }
  18000. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  18001. func_cc_basename ()
  18002. {
  18003. for cc_temp in $*""; do
  18004. case $cc_temp in
  18005. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18006. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18007. \-*) ;;
  18008. *) break;;
  18009. esac
  18010. done
  18011. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  18012. }
  18013. # ### END FUNCTIONS SHARED WITH CONFIGURE
  18014. _LT_EOF
  18015. case $host_os in
  18016. aix3*)
  18017. cat <<\_LT_EOF >> "$cfgfile"
  18018. # AIX sometimes has problems with the GCC collect2 program. For some
  18019. # reason, if we set the COLLECT_NAMES environment variable, the problems
  18020. # vanish in a puff of smoke.
  18021. if test set != "${COLLECT_NAMES+set}"; then
  18022. COLLECT_NAMES=
  18023. export COLLECT_NAMES
  18024. fi
  18025. _LT_EOF
  18026. ;;
  18027. esac
  18028. ltmain=$ac_aux_dir/ltmain.sh
  18029. # We use sed instead of cat because bash on DJGPP gets confused if
  18030. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  18031. # text mode, it properly converts lines to CR/LF. This bash problem
  18032. # is reportedly fixed, but why not run on old versions too?
  18033. sed '$q' "$ltmain" >> "$cfgfile" \
  18034. || (rm -f "$cfgfile"; exit 1)
  18035. mv -f "$cfgfile" "$ofile" ||
  18036. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  18037. chmod +x "$ofile"
  18038. cat <<_LT_EOF >> "$ofile"
  18039. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  18040. # The linker used to build libraries.
  18041. LD=$lt_LD_CXX
  18042. # How to create reloadable object files.
  18043. reload_flag=$lt_reload_flag_CXX
  18044. reload_cmds=$lt_reload_cmds_CXX
  18045. # Commands used to build an old-style archive.
  18046. old_archive_cmds=$lt_old_archive_cmds_CXX
  18047. # A language specific compiler.
  18048. CC=$lt_compiler_CXX
  18049. # Is the compiler the GNU compiler?
  18050. with_gcc=$GCC_CXX
  18051. # Compiler flag to turn off builtin functions.
  18052. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  18053. # Additional compiler flags for building library objects.
  18054. pic_flag=$lt_lt_prog_compiler_pic_CXX
  18055. # How to pass a linker flag through the compiler.
  18056. wl=$lt_lt_prog_compiler_wl_CXX
  18057. # Compiler flag to prevent dynamic linking.
  18058. link_static_flag=$lt_lt_prog_compiler_static_CXX
  18059. # Does compiler simultaneously support -c and -o options?
  18060. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  18061. # Whether or not to add -lc for building shared libraries.
  18062. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  18063. # Whether or not to disallow shared libs when runtime libs are static.
  18064. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  18065. # Compiler flag to allow reflexive dlopens.
  18066. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  18067. # Compiler flag to generate shared objects directly from archives.
  18068. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  18069. # Whether the compiler copes with passing no objects directly.
  18070. compiler_needs_object=$lt_compiler_needs_object_CXX
  18071. # Create an old-style archive from a shared archive.
  18072. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  18073. # Create a temporary old-style archive to link instead of a shared archive.
  18074. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  18075. # Commands used to build a shared archive.
  18076. archive_cmds=$lt_archive_cmds_CXX
  18077. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  18078. # Commands used to build a loadable module if different from building
  18079. # a shared archive.
  18080. module_cmds=$lt_module_cmds_CXX
  18081. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  18082. # Whether we are building with GNU ld or not.
  18083. with_gnu_ld=$lt_with_gnu_ld_CXX
  18084. # Flag that allows shared libraries with undefined symbols to be built.
  18085. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  18086. # Flag that enforces no undefined symbols.
  18087. no_undefined_flag=$lt_no_undefined_flag_CXX
  18088. # Flag to hardcode \$libdir into a binary during linking.
  18089. # This must work even if \$libdir does not exist
  18090. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  18091. # Whether we need a single "-rpath" flag with a separated argument.
  18092. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  18093. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18094. # DIR into the resulting binary.
  18095. hardcode_direct=$hardcode_direct_CXX
  18096. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18097. # DIR into the resulting binary and the resulting library dependency is
  18098. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  18099. # library is relocated.
  18100. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  18101. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18102. # into the resulting binary.
  18103. hardcode_minus_L=$hardcode_minus_L_CXX
  18104. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18105. # into the resulting binary.
  18106. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  18107. # Set to "yes" if building a shared library automatically hardcodes DIR
  18108. # into the library and all subsequent libraries and executables linked
  18109. # against it.
  18110. hardcode_automatic=$hardcode_automatic_CXX
  18111. # Set to yes if linker adds runtime paths of dependent libraries
  18112. # to runtime path list.
  18113. inherit_rpath=$inherit_rpath_CXX
  18114. # Whether libtool must link a program against all its dependency libraries.
  18115. link_all_deplibs=$link_all_deplibs_CXX
  18116. # Set to "yes" if exported symbols are required.
  18117. always_export_symbols=$always_export_symbols_CXX
  18118. # The commands to list exported symbols.
  18119. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  18120. # Symbols that should not be listed in the preloaded symbols.
  18121. exclude_expsyms=$lt_exclude_expsyms_CXX
  18122. # Symbols that must always be exported.
  18123. include_expsyms=$lt_include_expsyms_CXX
  18124. # Commands necessary for linking programs (against libraries) with templates.
  18125. prelink_cmds=$lt_prelink_cmds_CXX
  18126. # Commands necessary for finishing linking programs.
  18127. postlink_cmds=$lt_postlink_cmds_CXX
  18128. # Specify filename containing input files.
  18129. file_list_spec=$lt_file_list_spec_CXX
  18130. # How to hardcode a shared library path into an executable.
  18131. hardcode_action=$hardcode_action_CXX
  18132. # The directories searched by this compiler when creating a shared library.
  18133. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  18134. # Dependencies to place before and after the objects being linked to
  18135. # create a shared library.
  18136. predep_objects=$lt_predep_objects_CXX
  18137. postdep_objects=$lt_postdep_objects_CXX
  18138. predeps=$lt_predeps_CXX
  18139. postdeps=$lt_postdeps_CXX
  18140. # The library search path used internally by the compiler when linking
  18141. # a shared library.
  18142. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  18143. # ### END LIBTOOL TAG CONFIG: CXX
  18144. _LT_EOF
  18145. ;;
  18146. esac
  18147. done # for ac_tag
  18148. as_fn_exit 0
  18149. _ACEOF
  18150. ac_clean_files=$ac_clean_files_save
  18151. test $ac_write_fail = 0 ||
  18152. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18153. # configure is writing to config.log, and then calls config.status.
  18154. # config.status does its own redirection, appending to config.log.
  18155. # Unfortunately, on DOS this fails, as config.log is still kept open
  18156. # by configure, so config.status won't be able to write to it; its
  18157. # output is simply discarded. So we exec the FD to /dev/null,
  18158. # effectively closing config.log, so it can be properly (re)opened and
  18159. # appended to by config.status. When coming back to configure, we
  18160. # need to make the FD available again.
  18161. if test "$no_create" != yes; then
  18162. ac_cs_success=:
  18163. ac_config_status_args=
  18164. test "$silent" = yes &&
  18165. ac_config_status_args="$ac_config_status_args --quiet"
  18166. exec 5>/dev/null
  18167. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18168. exec 5>>config.log
  18169. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18170. # would make configure fail if this is the last instruction.
  18171. $ac_cs_success || as_fn_exit 1
  18172. fi
  18173. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18175. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18176. fi