configure 508 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for Intel MIC Offload Plugin 1.0.
  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 bug-autoconf@gnu.org 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='Intel MIC Offload Plugin'
  539. PACKAGE_TARNAME='libgomp-plugin-intelmic'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='Intel MIC Offload Plugin 1.0'
  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. get_gcc_base_ver
  584. toolexeclibdir
  585. toolexecdir
  586. CXXCPP
  587. CPP
  588. OTOOL64
  589. OTOOL
  590. LIPO
  591. NMEDIT
  592. DSYMUTIL
  593. RANLIB
  594. AR
  595. OBJDUMP
  596. LN_S
  597. NM
  598. ac_ct_DUMPBIN
  599. DUMPBIN
  600. LD
  601. FGREP
  602. EGREP
  603. GREP
  604. SED
  605. LIBTOOL
  606. accel_target
  607. accel_search_dir
  608. PLUGIN_HOST_FALSE
  609. PLUGIN_HOST_TRUE
  610. multi_basedir
  611. am__fastdepCXX_FALSE
  612. am__fastdepCXX_TRUE
  613. CXXDEPMODE
  614. ac_ct_CXX
  615. CXXFLAGS
  616. CXX
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. MAINT
  635. MAINTAINER_MODE_FALSE
  636. MAINTAINER_MODE_TRUE
  637. AM_BACKSLASH
  638. AM_DEFAULT_VERBOSITY
  639. AM_DEFAULT_V
  640. AM_V
  641. am__untar
  642. am__tar
  643. AMTAR
  644. am__leading_dot
  645. SET_MAKE
  646. AWK
  647. mkdir_p
  648. MKDIR_P
  649. INSTALL_STRIP_PROGRAM
  650. STRIP
  651. install_sh
  652. MAKEINFO
  653. AUTOHEADER
  654. AUTOMAKE
  655. AUTOCONF
  656. ACLOCAL
  657. VERSION
  658. PACKAGE
  659. CYGPATH_W
  660. am__isrc
  661. INSTALL_DATA
  662. INSTALL_SCRIPT
  663. INSTALL_PROGRAM
  664. target_os
  665. target_vendor
  666. target_cpu
  667. target
  668. host_os
  669. host_vendor
  670. host_cpu
  671. host
  672. build_os
  673. build_vendor
  674. build_cpu
  675. build
  676. target_alias
  677. host_alias
  678. build_alias
  679. LIBS
  680. ECHO_T
  681. ECHO_N
  682. ECHO_C
  683. DEFS
  684. mandir
  685. localedir
  686. libdir
  687. psdir
  688. pdfdir
  689. dvidir
  690. htmldir
  691. infodir
  692. docdir
  693. oldincludedir
  694. includedir
  695. localstatedir
  696. sharedstatedir
  697. sysconfdir
  698. datadir
  699. datarootdir
  700. libexecdir
  701. sbindir
  702. bindir
  703. program_transform_name
  704. prefix
  705. exec_prefix
  706. PACKAGE_URL
  707. PACKAGE_BUGREPORT
  708. PACKAGE_STRING
  709. PACKAGE_VERSION
  710. PACKAGE_TARNAME
  711. PACKAGE_NAME
  712. PATH_SEPARATOR
  713. SHELL'
  714. ac_subst_files=''
  715. ac_user_opts='
  716. enable_option_checking
  717. enable_silent_rules
  718. enable_maintainer_mode
  719. enable_dependency_tracking
  720. enable_multilib
  721. enable_version_specific_runtime_libs
  722. with_toolexeclibdir
  723. enable_shared
  724. enable_static
  725. with_pic
  726. enable_fast_install
  727. with_gnu_ld
  728. enable_libtool_lock
  729. with_gcc_major_version_only
  730. '
  731. ac_precious_vars='build_alias
  732. host_alias
  733. target_alias
  734. CC
  735. CFLAGS
  736. LDFLAGS
  737. LIBS
  738. CPPFLAGS
  739. CXX
  740. CXXFLAGS
  741. CCC
  742. CPP
  743. CXXCPP'
  744. # Initialize some variables set by options.
  745. ac_init_help=
  746. ac_init_version=false
  747. ac_unrecognized_opts=
  748. ac_unrecognized_sep=
  749. # The variables have the same names as the options, with
  750. # dashes changed to underlines.
  751. cache_file=/dev/null
  752. exec_prefix=NONE
  753. no_create=
  754. no_recursion=
  755. prefix=NONE
  756. program_prefix=NONE
  757. program_suffix=NONE
  758. program_transform_name=s,x,x,
  759. silent=
  760. site=
  761. srcdir=
  762. verbose=
  763. x_includes=NONE
  764. x_libraries=NONE
  765. # Installation directory options.
  766. # These are left unexpanded so users can "make install exec_prefix=/foo"
  767. # and all the variables that are supposed to be based on exec_prefix
  768. # by default will actually change.
  769. # Use braces instead of parens because sh, perl, etc. also accept them.
  770. # (The list follows the same order as the GNU Coding Standards.)
  771. bindir='${exec_prefix}/bin'
  772. sbindir='${exec_prefix}/sbin'
  773. libexecdir='${exec_prefix}/libexec'
  774. datarootdir='${prefix}/share'
  775. datadir='${datarootdir}'
  776. sysconfdir='${prefix}/etc'
  777. sharedstatedir='${prefix}/com'
  778. localstatedir='${prefix}/var'
  779. includedir='${prefix}/include'
  780. oldincludedir='/usr/include'
  781. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  782. infodir='${datarootdir}/info'
  783. htmldir='${docdir}'
  784. dvidir='${docdir}'
  785. pdfdir='${docdir}'
  786. psdir='${docdir}'
  787. libdir='${exec_prefix}/lib'
  788. localedir='${datarootdir}/locale'
  789. mandir='${datarootdir}/man'
  790. ac_prev=
  791. ac_dashdash=
  792. for ac_option
  793. do
  794. # If the previous option needs an argument, assign it.
  795. if test -n "$ac_prev"; then
  796. eval $ac_prev=\$ac_option
  797. ac_prev=
  798. continue
  799. fi
  800. case $ac_option in
  801. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  802. *=) ac_optarg= ;;
  803. *) ac_optarg=yes ;;
  804. esac
  805. # Accept the important Cygnus configure options, so we can diagnose typos.
  806. case $ac_dashdash$ac_option in
  807. --)
  808. ac_dashdash=yes ;;
  809. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  810. ac_prev=bindir ;;
  811. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  812. bindir=$ac_optarg ;;
  813. -build | --build | --buil | --bui | --bu)
  814. ac_prev=build_alias ;;
  815. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  816. build_alias=$ac_optarg ;;
  817. -cache-file | --cache-file | --cache-fil | --cache-fi \
  818. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  819. ac_prev=cache_file ;;
  820. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  821. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  822. cache_file=$ac_optarg ;;
  823. --config-cache | -C)
  824. cache_file=config.cache ;;
  825. -datadir | --datadir | --datadi | --datad)
  826. ac_prev=datadir ;;
  827. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  828. datadir=$ac_optarg ;;
  829. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  830. | --dataroo | --dataro | --datar)
  831. ac_prev=datarootdir ;;
  832. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  833. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  834. datarootdir=$ac_optarg ;;
  835. -disable-* | --disable-*)
  836. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  837. # Reject names that are not valid shell variable names.
  838. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  839. as_fn_error $? "invalid feature name: $ac_useropt"
  840. ac_useropt_orig=$ac_useropt
  841. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  842. case $ac_user_opts in
  843. *"
  844. "enable_$ac_useropt"
  845. "*) ;;
  846. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  847. ac_unrecognized_sep=', ';;
  848. esac
  849. eval enable_$ac_useropt=no ;;
  850. -docdir | --docdir | --docdi | --doc | --do)
  851. ac_prev=docdir ;;
  852. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  853. docdir=$ac_optarg ;;
  854. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  855. ac_prev=dvidir ;;
  856. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  857. dvidir=$ac_optarg ;;
  858. -enable-* | --enable-*)
  859. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  860. # Reject names that are not valid shell variable names.
  861. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  862. as_fn_error $? "invalid feature name: $ac_useropt"
  863. ac_useropt_orig=$ac_useropt
  864. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  865. case $ac_user_opts in
  866. *"
  867. "enable_$ac_useropt"
  868. "*) ;;
  869. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  870. ac_unrecognized_sep=', ';;
  871. esac
  872. eval enable_$ac_useropt=\$ac_optarg ;;
  873. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  874. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  875. | --exec | --exe | --ex)
  876. ac_prev=exec_prefix ;;
  877. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  878. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  879. | --exec=* | --exe=* | --ex=*)
  880. exec_prefix=$ac_optarg ;;
  881. -gas | --gas | --ga | --g)
  882. # Obsolete; use --with-gas.
  883. with_gas=yes ;;
  884. -help | --help | --hel | --he | -h)
  885. ac_init_help=long ;;
  886. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  887. ac_init_help=recursive ;;
  888. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  889. ac_init_help=short ;;
  890. -host | --host | --hos | --ho)
  891. ac_prev=host_alias ;;
  892. -host=* | --host=* | --hos=* | --ho=*)
  893. host_alias=$ac_optarg ;;
  894. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  895. ac_prev=htmldir ;;
  896. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  897. | --ht=*)
  898. htmldir=$ac_optarg ;;
  899. -includedir | --includedir | --includedi | --included | --include \
  900. | --includ | --inclu | --incl | --inc)
  901. ac_prev=includedir ;;
  902. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  903. | --includ=* | --inclu=* | --incl=* | --inc=*)
  904. includedir=$ac_optarg ;;
  905. -infodir | --infodir | --infodi | --infod | --info | --inf)
  906. ac_prev=infodir ;;
  907. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  908. infodir=$ac_optarg ;;
  909. -libdir | --libdir | --libdi | --libd)
  910. ac_prev=libdir ;;
  911. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  912. libdir=$ac_optarg ;;
  913. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  914. | --libexe | --libex | --libe)
  915. ac_prev=libexecdir ;;
  916. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  917. | --libexe=* | --libex=* | --libe=*)
  918. libexecdir=$ac_optarg ;;
  919. -localedir | --localedir | --localedi | --localed | --locale)
  920. ac_prev=localedir ;;
  921. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  922. localedir=$ac_optarg ;;
  923. -localstatedir | --localstatedir | --localstatedi | --localstated \
  924. | --localstate | --localstat | --localsta | --localst | --locals)
  925. ac_prev=localstatedir ;;
  926. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  927. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  928. localstatedir=$ac_optarg ;;
  929. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  930. ac_prev=mandir ;;
  931. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  932. mandir=$ac_optarg ;;
  933. -nfp | --nfp | --nf)
  934. # Obsolete; use --without-fp.
  935. with_fp=no ;;
  936. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  937. | --no-cr | --no-c | -n)
  938. no_create=yes ;;
  939. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  940. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  941. no_recursion=yes ;;
  942. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  943. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  944. | --oldin | --oldi | --old | --ol | --o)
  945. ac_prev=oldincludedir ;;
  946. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  947. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  948. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  949. oldincludedir=$ac_optarg ;;
  950. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  951. ac_prev=prefix ;;
  952. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  953. prefix=$ac_optarg ;;
  954. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  955. | --program-pre | --program-pr | --program-p)
  956. ac_prev=program_prefix ;;
  957. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  958. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  959. program_prefix=$ac_optarg ;;
  960. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  961. | --program-suf | --program-su | --program-s)
  962. ac_prev=program_suffix ;;
  963. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  964. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  965. program_suffix=$ac_optarg ;;
  966. -program-transform-name | --program-transform-name \
  967. | --program-transform-nam | --program-transform-na \
  968. | --program-transform-n | --program-transform- \
  969. | --program-transform | --program-transfor \
  970. | --program-transfo | --program-transf \
  971. | --program-trans | --program-tran \
  972. | --progr-tra | --program-tr | --program-t)
  973. ac_prev=program_transform_name ;;
  974. -program-transform-name=* | --program-transform-name=* \
  975. | --program-transform-nam=* | --program-transform-na=* \
  976. | --program-transform-n=* | --program-transform-=* \
  977. | --program-transform=* | --program-transfor=* \
  978. | --program-transfo=* | --program-transf=* \
  979. | --program-trans=* | --program-tran=* \
  980. | --progr-tra=* | --program-tr=* | --program-t=*)
  981. program_transform_name=$ac_optarg ;;
  982. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  983. ac_prev=pdfdir ;;
  984. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  985. pdfdir=$ac_optarg ;;
  986. -psdir | --psdir | --psdi | --psd | --ps)
  987. ac_prev=psdir ;;
  988. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  989. psdir=$ac_optarg ;;
  990. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  991. | -silent | --silent | --silen | --sile | --sil)
  992. silent=yes ;;
  993. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  994. ac_prev=sbindir ;;
  995. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  996. | --sbi=* | --sb=*)
  997. sbindir=$ac_optarg ;;
  998. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  999. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1000. | --sharedst | --shareds | --shared | --share | --shar \
  1001. | --sha | --sh)
  1002. ac_prev=sharedstatedir ;;
  1003. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1004. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1005. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1006. | --sha=* | --sh=*)
  1007. sharedstatedir=$ac_optarg ;;
  1008. -site | --site | --sit)
  1009. ac_prev=site ;;
  1010. -site=* | --site=* | --sit=*)
  1011. site=$ac_optarg ;;
  1012. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1013. ac_prev=srcdir ;;
  1014. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1015. srcdir=$ac_optarg ;;
  1016. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1017. | --syscon | --sysco | --sysc | --sys | --sy)
  1018. ac_prev=sysconfdir ;;
  1019. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1020. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1021. sysconfdir=$ac_optarg ;;
  1022. -target | --target | --targe | --targ | --tar | --ta | --t)
  1023. ac_prev=target_alias ;;
  1024. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1025. target_alias=$ac_optarg ;;
  1026. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1027. verbose=yes ;;
  1028. -version | --version | --versio | --versi | --vers | -V)
  1029. ac_init_version=: ;;
  1030. -with-* | --with-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error $? "invalid package name: $ac_useropt"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "with_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval with_$ac_useropt=\$ac_optarg ;;
  1045. -without-* | --without-*)
  1046. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1047. # Reject names that are not valid shell variable names.
  1048. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1049. as_fn_error $? "invalid package name: $ac_useropt"
  1050. ac_useropt_orig=$ac_useropt
  1051. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1052. case $ac_user_opts in
  1053. *"
  1054. "with_$ac_useropt"
  1055. "*) ;;
  1056. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1057. ac_unrecognized_sep=', ';;
  1058. esac
  1059. eval with_$ac_useropt=no ;;
  1060. --x)
  1061. # Obsolete; use --with-x.
  1062. with_x=yes ;;
  1063. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1064. | --x-incl | --x-inc | --x-in | --x-i)
  1065. ac_prev=x_includes ;;
  1066. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1067. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1068. x_includes=$ac_optarg ;;
  1069. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1070. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1071. ac_prev=x_libraries ;;
  1072. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1073. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1074. x_libraries=$ac_optarg ;;
  1075. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1076. Try \`$0 --help' for more information"
  1077. ;;
  1078. *=*)
  1079. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1080. # Reject names that are not valid shell variable names.
  1081. case $ac_envvar in #(
  1082. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1083. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1084. esac
  1085. eval $ac_envvar=\$ac_optarg
  1086. export $ac_envvar ;;
  1087. *)
  1088. # FIXME: should be removed in autoconf 3.0.
  1089. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1090. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1091. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1092. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1093. ;;
  1094. esac
  1095. done
  1096. if test -n "$ac_prev"; then
  1097. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1098. as_fn_error $? "missing argument to $ac_option"
  1099. fi
  1100. if test -n "$ac_unrecognized_opts"; then
  1101. case $enable_option_checking in
  1102. no) ;;
  1103. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1104. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1105. esac
  1106. fi
  1107. # Check all directory arguments for consistency.
  1108. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1109. datadir sysconfdir sharedstatedir localstatedir includedir \
  1110. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1111. libdir localedir mandir
  1112. do
  1113. eval ac_val=\$$ac_var
  1114. # Remove trailing slashes.
  1115. case $ac_val in
  1116. */ )
  1117. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1118. eval $ac_var=\$ac_val;;
  1119. esac
  1120. # Be sure to have absolute directory names.
  1121. case $ac_val in
  1122. [\\/$]* | ?:[\\/]* ) continue;;
  1123. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1124. esac
  1125. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1126. done
  1127. # There might be people who depend on the old broken behavior: `$host'
  1128. # used to hold the argument of --host etc.
  1129. # FIXME: To remove some day.
  1130. build=$build_alias
  1131. host=$host_alias
  1132. target=$target_alias
  1133. # FIXME: To remove some day.
  1134. if test "x$host_alias" != x; then
  1135. if test "x$build_alias" = x; then
  1136. cross_compiling=maybe
  1137. elif test "x$build_alias" != "x$host_alias"; then
  1138. cross_compiling=yes
  1139. fi
  1140. fi
  1141. ac_tool_prefix=
  1142. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1143. test "$silent" = yes && exec 6>/dev/null
  1144. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1145. ac_ls_di=`ls -di .` &&
  1146. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1147. as_fn_error $? "working directory cannot be determined"
  1148. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1149. as_fn_error $? "pwd does not report name of working directory"
  1150. # Find the source files, if location was not specified.
  1151. if test -z "$srcdir"; then
  1152. ac_srcdir_defaulted=yes
  1153. # Try the directory containing this script, then the parent directory.
  1154. ac_confdir=`$as_dirname -- "$as_myself" ||
  1155. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1156. X"$as_myself" : 'X\(//\)[^/]' \| \
  1157. X"$as_myself" : 'X\(//\)$' \| \
  1158. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1159. $as_echo X"$as_myself" |
  1160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)[^/].*/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\/\)$/{
  1169. s//\1/
  1170. q
  1171. }
  1172. /^X\(\/\).*/{
  1173. s//\1/
  1174. q
  1175. }
  1176. s/.*/./; q'`
  1177. srcdir=$ac_confdir
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. srcdir=..
  1180. fi
  1181. else
  1182. ac_srcdir_defaulted=no
  1183. fi
  1184. if test ! -r "$srcdir/$ac_unique_file"; then
  1185. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1186. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1187. fi
  1188. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1189. ac_abs_confdir=`(
  1190. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1191. pwd)`
  1192. # When building in place, set srcdir=.
  1193. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1194. srcdir=.
  1195. fi
  1196. # Remove unnecessary trailing slashes from srcdir.
  1197. # Double slashes in file names in object file debugging info
  1198. # mess up M-x gdb in Emacs.
  1199. case $srcdir in
  1200. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1201. esac
  1202. for ac_var in $ac_precious_vars; do
  1203. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1204. eval ac_env_${ac_var}_value=\$${ac_var}
  1205. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1206. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1207. done
  1208. #
  1209. # Report the --help message.
  1210. #
  1211. if test "$ac_init_help" = "long"; then
  1212. # Omit some internal or obsolete options to make the list less imposing.
  1213. # This message is too long to be a string in the A/UX 3.1 sh.
  1214. cat <<_ACEOF
  1215. \`configure' configures Intel MIC Offload Plugin 1.0 to adapt to many kinds of systems.
  1216. Usage: $0 [OPTION]... [VAR=VALUE]...
  1217. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1218. VAR=VALUE. See below for descriptions of some of the useful variables.
  1219. Defaults for the options are specified in brackets.
  1220. Configuration:
  1221. -h, --help display this help and exit
  1222. --help=short display options specific to this package
  1223. --help=recursive display the short help of all the included packages
  1224. -V, --version display version information and exit
  1225. -q, --quiet, --silent do not print \`checking ...' messages
  1226. --cache-file=FILE cache test results in FILE [disabled]
  1227. -C, --config-cache alias for \`--cache-file=config.cache'
  1228. -n, --no-create do not create output files
  1229. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1230. Installation directories:
  1231. --prefix=PREFIX install architecture-independent files in PREFIX
  1232. [$ac_default_prefix]
  1233. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1234. [PREFIX]
  1235. By default, \`make install' will install all the files in
  1236. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1237. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1238. for instance \`--prefix=\$HOME'.
  1239. For better control, use the options below.
  1240. Fine tuning of the installation directories:
  1241. --bindir=DIR user executables [EPREFIX/bin]
  1242. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1243. --libexecdir=DIR program executables [EPREFIX/libexec]
  1244. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1245. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1246. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1247. --libdir=DIR object code libraries [EPREFIX/lib]
  1248. --includedir=DIR C header files [PREFIX/include]
  1249. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1250. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1251. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1252. --infodir=DIR info documentation [DATAROOTDIR/info]
  1253. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1254. --mandir=DIR man documentation [DATAROOTDIR/man]
  1255. --docdir=DIR documentation root
  1256. [DATAROOTDIR/doc/libgomp-plugin-intelmic]
  1257. --htmldir=DIR html documentation [DOCDIR]
  1258. --dvidir=DIR dvi documentation [DOCDIR]
  1259. --pdfdir=DIR pdf documentation [DOCDIR]
  1260. --psdir=DIR ps documentation [DOCDIR]
  1261. _ACEOF
  1262. cat <<\_ACEOF
  1263. Program names:
  1264. --program-prefix=PREFIX prepend PREFIX to installed program names
  1265. --program-suffix=SUFFIX append SUFFIX to installed program names
  1266. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1267. System types:
  1268. --build=BUILD configure for building on BUILD [guessed]
  1269. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1270. --target=TARGET configure for building compilers for TARGET [HOST]
  1271. _ACEOF
  1272. fi
  1273. if test -n "$ac_init_help"; then
  1274. case $ac_init_help in
  1275. short | recursive ) echo "Configuration of Intel MIC Offload Plugin 1.0:";;
  1276. esac
  1277. cat <<\_ACEOF
  1278. Optional Features:
  1279. --disable-option-checking ignore unrecognized --enable/--with options
  1280. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1281. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1282. --enable-silent-rules less verbose build output (undo: "make V=1")
  1283. --disable-silent-rules verbose build output (undo: "make V=0")
  1284. --enable-maintainer-mode
  1285. enable make rules and dependencies not useful (and
  1286. sometimes confusing) to the casual installer
  1287. --enable-dependency-tracking
  1288. do not reject slow dependency extractors
  1289. --disable-dependency-tracking
  1290. speeds up one-time build
  1291. --enable-multilib build many library versions (default)
  1292. --enable-version-specific-runtime-libs
  1293. Specify that runtime libraries should be installed
  1294. in a compiler-specific directory
  1295. --enable-shared[=PKGS] build shared libraries [default=yes]
  1296. --enable-static[=PKGS] build static libraries [default=yes]
  1297. --enable-fast-install[=PKGS]
  1298. optimize for fast installation [default=yes]
  1299. --disable-libtool-lock avoid locking (might break parallel builds)
  1300. Optional Packages:
  1301. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1302. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1303. --with-toolexeclibdir=DIR
  1304. install libraries built with a cross compiler within
  1305. DIR
  1306. --with-pic try to use only PIC/non-PIC objects [default=use
  1307. both]
  1308. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1309. --with-gcc-major-version-only
  1310. use only GCC major number in filesystem paths
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CXX C++ compiler command
  1320. CXXFLAGS C++ compiler flags
  1321. CPP C preprocessor
  1322. CXXCPP C++ preprocessor
  1323. Use these variables to override the choices made by `configure' or to help
  1324. it to find libraries and programs with nonstandard names/locations.
  1325. Report bugs to the package provider.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" ||
  1333. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1334. continue
  1335. ac_builddir=.
  1336. case "$ac_dir" in
  1337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *)
  1339. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1340. # A ".." for each directory in $ac_dir_suffix.
  1341. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1342. case $ac_top_builddir_sub in
  1343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1345. esac ;;
  1346. esac
  1347. ac_abs_top_builddir=$ac_pwd
  1348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1349. # for backward compatibility:
  1350. ac_top_builddir=$ac_top_build_prefix
  1351. case $srcdir in
  1352. .) # We are building in place.
  1353. ac_srcdir=.
  1354. ac_top_srcdir=$ac_top_builddir_sub
  1355. ac_abs_top_srcdir=$ac_pwd ;;
  1356. [\\/]* | ?:[\\/]* ) # Absolute name.
  1357. ac_srcdir=$srcdir$ac_dir_suffix;
  1358. ac_top_srcdir=$srcdir
  1359. ac_abs_top_srcdir=$srcdir ;;
  1360. *) # Relative name.
  1361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364. esac
  1365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1366. cd "$ac_dir" || { ac_status=$?; continue; }
  1367. # Check for guested configure.
  1368. if test -f "$ac_srcdir/configure.gnu"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1371. elif test -f "$ac_srcdir/configure"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure" --help=recursive
  1374. else
  1375. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1376. fi || ac_status=$?
  1377. cd "$ac_pwd" || { ac_status=$?; break; }
  1378. done
  1379. fi
  1380. test -n "$ac_init_help" && exit $ac_status
  1381. if $ac_init_version; then
  1382. cat <<\_ACEOF
  1383. Intel MIC Offload Plugin configure 1.0
  1384. generated by GNU Autoconf 2.69
  1385. Copyright (C) 2012 Free Software Foundation, Inc.
  1386. This configure script is free software; the Free Software Foundation
  1387. gives unlimited permission to copy, distribute and modify it.
  1388. _ACEOF
  1389. exit
  1390. fi
  1391. ## ------------------------ ##
  1392. ## Autoconf initialization. ##
  1393. ## ------------------------ ##
  1394. # ac_fn_c_try_compile LINENO
  1395. # --------------------------
  1396. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1397. ac_fn_c_try_compile ()
  1398. {
  1399. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1400. rm -f conftest.$ac_objext
  1401. if { { ac_try="$ac_compile"
  1402. case "(($ac_try" in
  1403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1404. *) ac_try_echo=$ac_try;;
  1405. esac
  1406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1407. $as_echo "$ac_try_echo"; } >&5
  1408. (eval "$ac_compile") 2>conftest.err
  1409. ac_status=$?
  1410. if test -s conftest.err; then
  1411. grep -v '^ *+' conftest.err >conftest.er1
  1412. cat conftest.er1 >&5
  1413. mv -f conftest.er1 conftest.err
  1414. fi
  1415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1416. test $ac_status = 0; } && {
  1417. test -z "$ac_c_werror_flag" ||
  1418. test ! -s conftest.err
  1419. } && test -s conftest.$ac_objext; then :
  1420. ac_retval=0
  1421. else
  1422. $as_echo "$as_me: failed program was:" >&5
  1423. sed 's/^/| /' conftest.$ac_ext >&5
  1424. ac_retval=1
  1425. fi
  1426. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1427. as_fn_set_status $ac_retval
  1428. } # ac_fn_c_try_compile
  1429. # ac_fn_cxx_try_compile LINENO
  1430. # ----------------------------
  1431. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1432. ac_fn_cxx_try_compile ()
  1433. {
  1434. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1435. rm -f conftest.$ac_objext
  1436. if { { ac_try="$ac_compile"
  1437. case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. $as_echo "$ac_try_echo"; } >&5
  1443. (eval "$ac_compile") 2>conftest.err
  1444. ac_status=$?
  1445. if test -s conftest.err; then
  1446. grep -v '^ *+' conftest.err >conftest.er1
  1447. cat conftest.er1 >&5
  1448. mv -f conftest.er1 conftest.err
  1449. fi
  1450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1451. test $ac_status = 0; } && {
  1452. test -z "$ac_cxx_werror_flag" ||
  1453. test ! -s conftest.err
  1454. } && test -s conftest.$ac_objext; then :
  1455. ac_retval=0
  1456. else
  1457. $as_echo "$as_me: failed program was:" >&5
  1458. sed 's/^/| /' conftest.$ac_ext >&5
  1459. ac_retval=1
  1460. fi
  1461. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1462. as_fn_set_status $ac_retval
  1463. } # ac_fn_cxx_try_compile
  1464. # ac_fn_c_try_link LINENO
  1465. # -----------------------
  1466. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1467. ac_fn_c_try_link ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. rm -f conftest.$ac_objext conftest$ac_exeext
  1471. if { { ac_try="$ac_link"
  1472. case "(($ac_try" in
  1473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1474. *) ac_try_echo=$ac_try;;
  1475. esac
  1476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1477. $as_echo "$ac_try_echo"; } >&5
  1478. (eval "$ac_link") 2>conftest.err
  1479. ac_status=$?
  1480. if test -s conftest.err; then
  1481. grep -v '^ *+' conftest.err >conftest.er1
  1482. cat conftest.er1 >&5
  1483. mv -f conftest.er1 conftest.err
  1484. fi
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } && {
  1487. test -z "$ac_c_werror_flag" ||
  1488. test ! -s conftest.err
  1489. } && test -s conftest$ac_exeext && {
  1490. test "$cross_compiling" = yes ||
  1491. test -x conftest$ac_exeext
  1492. }; then :
  1493. ac_retval=0
  1494. else
  1495. $as_echo "$as_me: failed program was:" >&5
  1496. sed 's/^/| /' conftest.$ac_ext >&5
  1497. ac_retval=1
  1498. fi
  1499. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1500. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1501. # interfere with the next link command; also delete a directory that is
  1502. # left behind by Apple's compiler. We do this before executing the actions.
  1503. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1504. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1505. as_fn_set_status $ac_retval
  1506. } # ac_fn_c_try_link
  1507. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1508. # -------------------------------------------------------
  1509. # Tests whether HEADER exists and can be compiled using the include files in
  1510. # INCLUDES, setting the cache variable VAR accordingly.
  1511. ac_fn_c_check_header_compile ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1515. $as_echo_n "checking for $2... " >&6; }
  1516. if eval \${$3+:} false; then :
  1517. $as_echo_n "(cached) " >&6
  1518. else
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. $4
  1522. #include <$2>
  1523. _ACEOF
  1524. if ac_fn_c_try_compile "$LINENO"; then :
  1525. eval "$3=yes"
  1526. else
  1527. eval "$3=no"
  1528. fi
  1529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1530. fi
  1531. eval ac_res=\$$3
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1533. $as_echo "$ac_res" >&6; }
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. } # ac_fn_c_check_header_compile
  1536. # ac_fn_c_try_cpp LINENO
  1537. # ----------------------
  1538. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1539. ac_fn_c_try_cpp ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } > conftest.i && {
  1558. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. }; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: failed program was:" >&5
  1564. sed 's/^/| /' conftest.$ac_ext >&5
  1565. ac_retval=1
  1566. fi
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_cpp
  1570. # ac_fn_c_try_run LINENO
  1571. # ----------------------
  1572. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1573. # that executables *can* be run.
  1574. ac_fn_c_try_run ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. if { { ac_try="$ac_link"
  1578. case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584. (eval "$ac_link") 2>&5
  1585. ac_status=$?
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1588. { { case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_try") 2>&5
  1595. ac_status=$?
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; }; }; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: program exited with status $ac_status" >&5
  1601. $as_echo "$as_me: failed program was:" >&5
  1602. sed 's/^/| /' conftest.$ac_ext >&5
  1603. ac_retval=$ac_status
  1604. fi
  1605. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } # ac_fn_c_try_run
  1609. # ac_fn_c_check_func LINENO FUNC VAR
  1610. # ----------------------------------
  1611. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1612. ac_fn_c_check_func ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if eval \${$3+:} false; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1621. /* end confdefs.h. */
  1622. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1623. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1624. #define $2 innocuous_$2
  1625. /* System header to define __stub macros and hopefully few prototypes,
  1626. which can conflict with char $2 (); below.
  1627. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1628. <limits.h> exists even on freestanding compilers. */
  1629. #ifdef __STDC__
  1630. # include <limits.h>
  1631. #else
  1632. # include <assert.h>
  1633. #endif
  1634. #undef $2
  1635. /* Override any GCC internal prototype to avoid an error.
  1636. Use char because int might match the return type of a GCC
  1637. builtin and then its argument prototype would still apply. */
  1638. #ifdef __cplusplus
  1639. extern "C"
  1640. #endif
  1641. char $2 ();
  1642. /* The GNU C library defines this for functions which it implements
  1643. to always fail with ENOSYS. Some functions are actually named
  1644. something starting with __ and the normal name is an alias. */
  1645. #if defined __stub_$2 || defined __stub___$2
  1646. choke me
  1647. #endif
  1648. int
  1649. main ()
  1650. {
  1651. return $2 ();
  1652. ;
  1653. return 0;
  1654. }
  1655. _ACEOF
  1656. if ac_fn_c_try_link "$LINENO"; then :
  1657. eval "$3=yes"
  1658. else
  1659. eval "$3=no"
  1660. fi
  1661. rm -f core conftest.err conftest.$ac_objext \
  1662. conftest$ac_exeext conftest.$ac_ext
  1663. fi
  1664. eval ac_res=\$$3
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1666. $as_echo "$ac_res" >&6; }
  1667. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1668. } # ac_fn_c_check_func
  1669. # ac_fn_cxx_try_cpp LINENO
  1670. # ------------------------
  1671. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1672. ac_fn_cxx_try_cpp ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1676. case "(($ac_try" in
  1677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1678. *) ac_try_echo=$ac_try;;
  1679. esac
  1680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1681. $as_echo "$ac_try_echo"; } >&5
  1682. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1683. ac_status=$?
  1684. if test -s conftest.err; then
  1685. grep -v '^ *+' conftest.err >conftest.er1
  1686. cat conftest.er1 >&5
  1687. mv -f conftest.er1 conftest.err
  1688. fi
  1689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1690. test $ac_status = 0; } > conftest.i && {
  1691. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1692. test ! -s conftest.err
  1693. }; then :
  1694. ac_retval=0
  1695. else
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=1
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. as_fn_set_status $ac_retval
  1702. } # ac_fn_cxx_try_cpp
  1703. # ac_fn_cxx_try_link LINENO
  1704. # -------------------------
  1705. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1706. ac_fn_cxx_try_link ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. rm -f conftest.$ac_objext conftest$ac_exeext
  1710. if { { ac_try="$ac_link"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_link") 2>conftest.err
  1718. ac_status=$?
  1719. if test -s conftest.err; then
  1720. grep -v '^ *+' conftest.err >conftest.er1
  1721. cat conftest.er1 >&5
  1722. mv -f conftest.er1 conftest.err
  1723. fi
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } && {
  1726. test -z "$ac_cxx_werror_flag" ||
  1727. test ! -s conftest.err
  1728. } && test -s conftest$ac_exeext && {
  1729. test "$cross_compiling" = yes ||
  1730. test -x conftest$ac_exeext
  1731. }; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: failed program was:" >&5
  1735. sed 's/^/| /' conftest.$ac_ext >&5
  1736. ac_retval=1
  1737. fi
  1738. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1739. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1740. # interfere with the next link command; also delete a directory that is
  1741. # left behind by Apple's compiler. We do this before executing the actions.
  1742. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1743. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1744. as_fn_set_status $ac_retval
  1745. } # ac_fn_cxx_try_link
  1746. cat >config.log <<_ACEOF
  1747. This file contains any messages produced by compilers while
  1748. running configure, to aid debugging if configure makes a mistake.
  1749. It was created by Intel MIC Offload Plugin $as_me 1.0, which was
  1750. generated by GNU Autoconf 2.69. Invocation command line was
  1751. $ $0 $@
  1752. _ACEOF
  1753. exec 5>>config.log
  1754. {
  1755. cat <<_ASUNAME
  1756. ## --------- ##
  1757. ## Platform. ##
  1758. ## --------- ##
  1759. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1760. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1761. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1762. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1763. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1764. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1765. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1766. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1767. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1768. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1769. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1770. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1771. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1772. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1773. _ASUNAME
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. $as_echo "PATH: $as_dir"
  1780. done
  1781. IFS=$as_save_IFS
  1782. } >&5
  1783. cat >&5 <<_ACEOF
  1784. ## ----------- ##
  1785. ## Core tests. ##
  1786. ## ----------- ##
  1787. _ACEOF
  1788. # Keep a trace of the command line.
  1789. # Strip out --no-create and --no-recursion so they do not pile up.
  1790. # Strip out --silent because we don't want to record it for future runs.
  1791. # Also quote any args containing shell meta-characters.
  1792. # Make two passes to allow for proper duplicate-argument suppression.
  1793. ac_configure_args=
  1794. ac_configure_args0=
  1795. ac_configure_args1=
  1796. ac_must_keep_next=false
  1797. for ac_pass in 1 2
  1798. do
  1799. for ac_arg
  1800. do
  1801. case $ac_arg in
  1802. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1803. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1804. | -silent | --silent | --silen | --sile | --sil)
  1805. continue ;;
  1806. *\'*)
  1807. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1808. esac
  1809. case $ac_pass in
  1810. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1811. 2)
  1812. as_fn_append ac_configure_args1 " '$ac_arg'"
  1813. if test $ac_must_keep_next = true; then
  1814. ac_must_keep_next=false # Got value, back to normal.
  1815. else
  1816. case $ac_arg in
  1817. *=* | --config-cache | -C | -disable-* | --disable-* \
  1818. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1819. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1820. | -with-* | --with-* | -without-* | --without-* | --x)
  1821. case "$ac_configure_args0 " in
  1822. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1823. esac
  1824. ;;
  1825. -* ) ac_must_keep_next=true ;;
  1826. esac
  1827. fi
  1828. as_fn_append ac_configure_args " '$ac_arg'"
  1829. ;;
  1830. esac
  1831. done
  1832. done
  1833. { ac_configure_args0=; unset ac_configure_args0;}
  1834. { ac_configure_args1=; unset ac_configure_args1;}
  1835. # When interrupted or exit'd, cleanup temporary files, and complete
  1836. # config.log. We remove comments because anyway the quotes in there
  1837. # would cause problems or look ugly.
  1838. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1839. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1840. trap 'exit_status=$?
  1841. # Save into config.log some information that might help in debugging.
  1842. {
  1843. echo
  1844. $as_echo "## ---------------- ##
  1845. ## Cache variables. ##
  1846. ## ---------------- ##"
  1847. echo
  1848. # The following way of writing the cache mishandles newlines in values,
  1849. (
  1850. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1851. eval ac_val=\$$ac_var
  1852. case $ac_val in #(
  1853. *${as_nl}*)
  1854. case $ac_var in #(
  1855. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1856. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1857. esac
  1858. case $ac_var in #(
  1859. _ | IFS | as_nl) ;; #(
  1860. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1861. *) { eval $ac_var=; unset $ac_var;} ;;
  1862. esac ;;
  1863. esac
  1864. done
  1865. (set) 2>&1 |
  1866. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1867. *${as_nl}ac_space=\ *)
  1868. sed -n \
  1869. "s/'\''/'\''\\\\'\'''\''/g;
  1870. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1871. ;; #(
  1872. *)
  1873. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1874. ;;
  1875. esac |
  1876. sort
  1877. )
  1878. echo
  1879. $as_echo "## ----------------- ##
  1880. ## Output variables. ##
  1881. ## ----------------- ##"
  1882. echo
  1883. for ac_var in $ac_subst_vars
  1884. do
  1885. eval ac_val=\$$ac_var
  1886. case $ac_val in
  1887. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1888. esac
  1889. $as_echo "$ac_var='\''$ac_val'\''"
  1890. done | sort
  1891. echo
  1892. if test -n "$ac_subst_files"; then
  1893. $as_echo "## ------------------- ##
  1894. ## File substitutions. ##
  1895. ## ------------------- ##"
  1896. echo
  1897. for ac_var in $ac_subst_files
  1898. do
  1899. eval ac_val=\$$ac_var
  1900. case $ac_val in
  1901. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1902. esac
  1903. $as_echo "$ac_var='\''$ac_val'\''"
  1904. done | sort
  1905. echo
  1906. fi
  1907. if test -s confdefs.h; then
  1908. $as_echo "## ----------- ##
  1909. ## confdefs.h. ##
  1910. ## ----------- ##"
  1911. echo
  1912. cat confdefs.h
  1913. echo
  1914. fi
  1915. test "$ac_signal" != 0 &&
  1916. $as_echo "$as_me: caught signal $ac_signal"
  1917. $as_echo "$as_me: exit $exit_status"
  1918. } >&5
  1919. rm -f core *.core core.conftest.* &&
  1920. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1921. exit $exit_status
  1922. ' 0
  1923. for ac_signal in 1 2 13 15; do
  1924. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1925. done
  1926. ac_signal=0
  1927. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1928. rm -f -r conftest* confdefs.h
  1929. $as_echo "/* confdefs.h */" > confdefs.h
  1930. # Predefined preprocessor variables.
  1931. cat >>confdefs.h <<_ACEOF
  1932. #define PACKAGE_NAME "$PACKAGE_NAME"
  1933. _ACEOF
  1934. cat >>confdefs.h <<_ACEOF
  1935. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1936. _ACEOF
  1937. cat >>confdefs.h <<_ACEOF
  1938. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1939. _ACEOF
  1940. cat >>confdefs.h <<_ACEOF
  1941. #define PACKAGE_STRING "$PACKAGE_STRING"
  1942. _ACEOF
  1943. cat >>confdefs.h <<_ACEOF
  1944. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1945. _ACEOF
  1946. cat >>confdefs.h <<_ACEOF
  1947. #define PACKAGE_URL "$PACKAGE_URL"
  1948. _ACEOF
  1949. # Let the site file select an alternate cache file if it wants to.
  1950. # Prefer an explicitly selected file to automatically selected ones.
  1951. ac_site_file1=NONE
  1952. ac_site_file2=NONE
  1953. if test -n "$CONFIG_SITE"; then
  1954. # We do not want a PATH search for config.site.
  1955. case $CONFIG_SITE in #((
  1956. -*) ac_site_file1=./$CONFIG_SITE;;
  1957. */*) ac_site_file1=$CONFIG_SITE;;
  1958. *) ac_site_file1=./$CONFIG_SITE;;
  1959. esac
  1960. elif test "x$prefix" != xNONE; then
  1961. ac_site_file1=$prefix/share/config.site
  1962. ac_site_file2=$prefix/etc/config.site
  1963. else
  1964. ac_site_file1=$ac_default_prefix/share/config.site
  1965. ac_site_file2=$ac_default_prefix/etc/config.site
  1966. fi
  1967. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1968. do
  1969. test "x$ac_site_file" = xNONE && continue
  1970. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1972. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1973. sed 's/^/| /' "$ac_site_file" >&5
  1974. . "$ac_site_file" \
  1975. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1977. as_fn_error $? "failed to load site script $ac_site_file
  1978. See \`config.log' for more details" "$LINENO" 5; }
  1979. fi
  1980. done
  1981. if test -r "$cache_file"; then
  1982. # Some versions of bash will fail to source /dev/null (special files
  1983. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1984. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1986. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1987. case $cache_file in
  1988. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1989. *) . "./$cache_file";;
  1990. esac
  1991. fi
  1992. else
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1994. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1995. >$cache_file
  1996. fi
  1997. # Check that the precious variables saved in the cache have kept the same
  1998. # value.
  1999. ac_cache_corrupted=false
  2000. for ac_var in $ac_precious_vars; do
  2001. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2002. eval ac_new_set=\$ac_env_${ac_var}_set
  2003. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2004. eval ac_new_val=\$ac_env_${ac_var}_value
  2005. case $ac_old_set,$ac_new_set in
  2006. set,)
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2008. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2009. ac_cache_corrupted=: ;;
  2010. ,set)
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2012. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2013. ac_cache_corrupted=: ;;
  2014. ,);;
  2015. *)
  2016. if test "x$ac_old_val" != "x$ac_new_val"; then
  2017. # differences in whitespace do not lead to failure.
  2018. ac_old_val_w=`echo x $ac_old_val`
  2019. ac_new_val_w=`echo x $ac_new_val`
  2020. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2022. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2023. ac_cache_corrupted=:
  2024. else
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2026. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2027. eval $ac_var=\$ac_old_val
  2028. fi
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2030. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2032. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2033. fi;;
  2034. esac
  2035. # Pass precious variables to config.status.
  2036. if test "$ac_new_set" = set; then
  2037. case $ac_new_val in
  2038. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2039. *) ac_arg=$ac_var=$ac_new_val ;;
  2040. esac
  2041. case " $ac_configure_args " in
  2042. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2043. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2044. esac
  2045. fi
  2046. done
  2047. if $ac_cache_corrupted; then
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2051. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2052. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2053. fi
  2054. ## -------------------- ##
  2055. ## Main body of script. ##
  2056. ## -------------------- ##
  2057. ac_ext=c
  2058. ac_cpp='$CPP $CPPFLAGS'
  2059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2062. ac_aux_dir=
  2063. for ac_dir in ../.. "$srcdir"/../..; do
  2064. if test -f "$ac_dir/install-sh"; then
  2065. ac_aux_dir=$ac_dir
  2066. ac_install_sh="$ac_aux_dir/install-sh -c"
  2067. break
  2068. elif test -f "$ac_dir/install.sh"; then
  2069. ac_aux_dir=$ac_dir
  2070. ac_install_sh="$ac_aux_dir/install.sh -c"
  2071. break
  2072. elif test -f "$ac_dir/shtool"; then
  2073. ac_aux_dir=$ac_dir
  2074. ac_install_sh="$ac_aux_dir/shtool install -c"
  2075. break
  2076. fi
  2077. done
  2078. if test -z "$ac_aux_dir"; then
  2079. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
  2080. fi
  2081. # These three variables are undocumented and unsupported,
  2082. # and are intended to be withdrawn in a future Autoconf release.
  2083. # They can cause serious problems if a builder's source tree is in a directory
  2084. # whose full name contains unusual characters.
  2085. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2086. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2087. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2088. # Make sure we can run config.sub.
  2089. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2090. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2092. $as_echo_n "checking build system type... " >&6; }
  2093. if ${ac_cv_build+:} false; then :
  2094. $as_echo_n "(cached) " >&6
  2095. else
  2096. ac_build_alias=$build_alias
  2097. test "x$ac_build_alias" = x &&
  2098. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2099. test "x$ac_build_alias" = x &&
  2100. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2101. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2102. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2103. fi
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2105. $as_echo "$ac_cv_build" >&6; }
  2106. case $ac_cv_build in
  2107. *-*-*) ;;
  2108. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2109. esac
  2110. build=$ac_cv_build
  2111. ac_save_IFS=$IFS; IFS='-'
  2112. set x $ac_cv_build
  2113. shift
  2114. build_cpu=$1
  2115. build_vendor=$2
  2116. shift; shift
  2117. # Remember, the first character of IFS is used to create $*,
  2118. # except with old shells:
  2119. build_os=$*
  2120. IFS=$ac_save_IFS
  2121. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2123. $as_echo_n "checking host system type... " >&6; }
  2124. if ${ac_cv_host+:} false; then :
  2125. $as_echo_n "(cached) " >&6
  2126. else
  2127. if test "x$host_alias" = x; then
  2128. ac_cv_host=$ac_cv_build
  2129. else
  2130. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2131. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2132. fi
  2133. fi
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2135. $as_echo "$ac_cv_host" >&6; }
  2136. case $ac_cv_host in
  2137. *-*-*) ;;
  2138. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2139. esac
  2140. host=$ac_cv_host
  2141. ac_save_IFS=$IFS; IFS='-'
  2142. set x $ac_cv_host
  2143. shift
  2144. host_cpu=$1
  2145. host_vendor=$2
  2146. shift; shift
  2147. # Remember, the first character of IFS is used to create $*,
  2148. # except with old shells:
  2149. host_os=$*
  2150. IFS=$ac_save_IFS
  2151. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2153. $as_echo_n "checking target system type... " >&6; }
  2154. if ${ac_cv_target+:} false; then :
  2155. $as_echo_n "(cached) " >&6
  2156. else
  2157. if test "x$target_alias" = x; then
  2158. ac_cv_target=$ac_cv_host
  2159. else
  2160. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2161. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2162. fi
  2163. fi
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2165. $as_echo "$ac_cv_target" >&6; }
  2166. case $ac_cv_target in
  2167. *-*-*) ;;
  2168. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2169. esac
  2170. target=$ac_cv_target
  2171. ac_save_IFS=$IFS; IFS='-'
  2172. set x $ac_cv_target
  2173. shift
  2174. target_cpu=$1
  2175. target_vendor=$2
  2176. shift; shift
  2177. # Remember, the first character of IFS is used to create $*,
  2178. # except with old shells:
  2179. target_os=$*
  2180. IFS=$ac_save_IFS
  2181. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2182. # The aliases save the names the user supplied, while $host etc.
  2183. # will get canonicalized.
  2184. test -n "$target_alias" &&
  2185. test "$program_prefix$program_suffix$program_transform_name" = \
  2186. NONENONEs,x,x, &&
  2187. program_prefix=${target_alias}-
  2188. target_alias=${target_alias-$host_alias}
  2189. am__api_version='1.15'
  2190. # Find a good install program. We prefer a C program (faster),
  2191. # so one script is as good as another. But avoid the broken or
  2192. # incompatible versions:
  2193. # SysV /etc/install, /usr/sbin/install
  2194. # SunOS /usr/etc/install
  2195. # IRIX /sbin/install
  2196. # AIX /bin/install
  2197. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2198. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2199. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2200. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2201. # OS/2's system install, which has a completely different semantic
  2202. # ./install, which can be erroneously created by make from ./install.sh.
  2203. # Reject install programs that cannot install multiple files.
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2205. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2206. if test -z "$INSTALL"; then
  2207. if ${ac_cv_path_install+:} false; then :
  2208. $as_echo_n "(cached) " >&6
  2209. else
  2210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2211. for as_dir in $PATH
  2212. do
  2213. IFS=$as_save_IFS
  2214. test -z "$as_dir" && as_dir=.
  2215. # Account for people who put trailing slashes in PATH elements.
  2216. case $as_dir/ in #((
  2217. ./ | .// | /[cC]/* | \
  2218. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2219. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2220. /usr/ucb/* ) ;;
  2221. *)
  2222. # OSF1 and SCO ODT 3.0 have their own names for install.
  2223. # Don't use installbsd from OSF since it installs stuff as root
  2224. # by default.
  2225. for ac_prog in ginstall scoinst install; do
  2226. for ac_exec_ext in '' $ac_executable_extensions; do
  2227. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2228. if test $ac_prog = install &&
  2229. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2230. # AIX install. It has an incompatible calling convention.
  2231. :
  2232. elif test $ac_prog = install &&
  2233. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2234. # program-specific install script used by HP pwplus--don't use.
  2235. :
  2236. else
  2237. rm -rf conftest.one conftest.two conftest.dir
  2238. echo one > conftest.one
  2239. echo two > conftest.two
  2240. mkdir conftest.dir
  2241. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2242. test -s conftest.one && test -s conftest.two &&
  2243. test -s conftest.dir/conftest.one &&
  2244. test -s conftest.dir/conftest.two
  2245. then
  2246. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2247. break 3
  2248. fi
  2249. fi
  2250. fi
  2251. done
  2252. done
  2253. ;;
  2254. esac
  2255. done
  2256. IFS=$as_save_IFS
  2257. rm -rf conftest.one conftest.two conftest.dir
  2258. fi
  2259. if test "${ac_cv_path_install+set}" = set; then
  2260. INSTALL=$ac_cv_path_install
  2261. else
  2262. # As a last resort, use the slow shell script. Don't cache a
  2263. # value for INSTALL within a source directory, because that will
  2264. # break other packages using the cache if that directory is
  2265. # removed, or if the value is a relative name.
  2266. INSTALL=$ac_install_sh
  2267. fi
  2268. fi
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2270. $as_echo "$INSTALL" >&6; }
  2271. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2272. # It thinks the first close brace ends the variable substitution.
  2273. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2274. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2275. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2277. $as_echo_n "checking whether build environment is sane... " >&6; }
  2278. # Reject unsafe characters in $srcdir or the absolute working directory
  2279. # name. Accept space and tab only in the latter.
  2280. am_lf='
  2281. '
  2282. case `pwd` in
  2283. *[\\\"\#\$\&\'\`$am_lf]*)
  2284. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2285. esac
  2286. case $srcdir in
  2287. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2288. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2289. esac
  2290. # Do 'set' in a subshell so we don't clobber the current shell's
  2291. # arguments. Must try -L first in case configure is actually a
  2292. # symlink; some systems play weird games with the mod time of symlinks
  2293. # (eg FreeBSD returns the mod time of the symlink's containing
  2294. # directory).
  2295. if (
  2296. am_has_slept=no
  2297. for am_try in 1 2; do
  2298. echo "timestamp, slept: $am_has_slept" > conftest.file
  2299. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2300. if test "$*" = "X"; then
  2301. # -L didn't work.
  2302. set X `ls -t "$srcdir/configure" conftest.file`
  2303. fi
  2304. if test "$*" != "X $srcdir/configure conftest.file" \
  2305. && test "$*" != "X conftest.file $srcdir/configure"; then
  2306. # If neither matched, then we have a broken ls. This can happen
  2307. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2308. # broken ls alias from the environment. This has actually
  2309. # happened. Such a system could not be considered "sane".
  2310. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2311. alias in your environment" "$LINENO" 5
  2312. fi
  2313. if test "$2" = conftest.file || test $am_try -eq 2; then
  2314. break
  2315. fi
  2316. # Just in case.
  2317. sleep 1
  2318. am_has_slept=yes
  2319. done
  2320. test "$2" = conftest.file
  2321. )
  2322. then
  2323. # Ok.
  2324. :
  2325. else
  2326. as_fn_error $? "newly created file is older than distributed files!
  2327. Check your system clock" "$LINENO" 5
  2328. fi
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2330. $as_echo "yes" >&6; }
  2331. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2332. # generated files are strictly newer.
  2333. am_sleep_pid=
  2334. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2335. ( sleep 1 ) &
  2336. am_sleep_pid=$!
  2337. fi
  2338. rm -f conftest.file
  2339. test "$program_prefix" != NONE &&
  2340. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2341. # Use a double $ so make ignores it.
  2342. test "$program_suffix" != NONE &&
  2343. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2344. # Double any \ or $.
  2345. # By default was `s,x,x', remove it if useless.
  2346. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2347. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2348. # Expand $ac_aux_dir to an absolute path.
  2349. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2350. if test x"${MISSING+set}" != xset; then
  2351. case $am_aux_dir in
  2352. *\ * | *\ *)
  2353. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2354. *)
  2355. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2356. esac
  2357. fi
  2358. # Use eval to expand $SHELL
  2359. if eval "$MISSING --is-lightweight"; then
  2360. am_missing_run="$MISSING "
  2361. else
  2362. am_missing_run=
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2364. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2365. fi
  2366. if test x"${install_sh+set}" != xset; then
  2367. case $am_aux_dir in
  2368. *\ * | *\ *)
  2369. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2370. *)
  2371. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2372. esac
  2373. fi
  2374. # Installed binaries are usually stripped using 'strip' when the user
  2375. # run "make install-strip". However 'strip' might not be the right
  2376. # tool to use in cross-compilation environments, therefore Automake
  2377. # will honor the 'STRIP' environment variable to overrule this program.
  2378. if test "$cross_compiling" != no; then
  2379. if test -n "$ac_tool_prefix"; then
  2380. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2381. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2383. $as_echo_n "checking for $ac_word... " >&6; }
  2384. if ${ac_cv_prog_STRIP+:} false; then :
  2385. $as_echo_n "(cached) " >&6
  2386. else
  2387. if test -n "$STRIP"; then
  2388. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2389. else
  2390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2391. for as_dir in $PATH
  2392. do
  2393. IFS=$as_save_IFS
  2394. test -z "$as_dir" && as_dir=.
  2395. for ac_exec_ext in '' $ac_executable_extensions; do
  2396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2397. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2399. break 2
  2400. fi
  2401. done
  2402. done
  2403. IFS=$as_save_IFS
  2404. fi
  2405. fi
  2406. STRIP=$ac_cv_prog_STRIP
  2407. if test -n "$STRIP"; then
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2409. $as_echo "$STRIP" >&6; }
  2410. else
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2412. $as_echo "no" >&6; }
  2413. fi
  2414. fi
  2415. if test -z "$ac_cv_prog_STRIP"; then
  2416. ac_ct_STRIP=$STRIP
  2417. # Extract the first word of "strip", so it can be a program name with args.
  2418. set dummy strip; ac_word=$2
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2420. $as_echo_n "checking for $ac_word... " >&6; }
  2421. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2422. $as_echo_n "(cached) " >&6
  2423. else
  2424. if test -n "$ac_ct_STRIP"; then
  2425. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2426. else
  2427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2428. for as_dir in $PATH
  2429. do
  2430. IFS=$as_save_IFS
  2431. test -z "$as_dir" && as_dir=.
  2432. for ac_exec_ext in '' $ac_executable_extensions; do
  2433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2434. ac_cv_prog_ac_ct_STRIP="strip"
  2435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2436. break 2
  2437. fi
  2438. done
  2439. done
  2440. IFS=$as_save_IFS
  2441. fi
  2442. fi
  2443. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2444. if test -n "$ac_ct_STRIP"; then
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2446. $as_echo "$ac_ct_STRIP" >&6; }
  2447. else
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2449. $as_echo "no" >&6; }
  2450. fi
  2451. if test "x$ac_ct_STRIP" = x; then
  2452. STRIP=":"
  2453. else
  2454. case $cross_compiling:$ac_tool_warned in
  2455. yes:)
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2458. ac_tool_warned=yes ;;
  2459. esac
  2460. STRIP=$ac_ct_STRIP
  2461. fi
  2462. else
  2463. STRIP="$ac_cv_prog_STRIP"
  2464. fi
  2465. fi
  2466. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2468. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2469. if test -z "$MKDIR_P"; then
  2470. if ${ac_cv_path_mkdir+:} false; then :
  2471. $as_echo_n "(cached) " >&6
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. for ac_prog in mkdir gmkdir; do
  2479. for ac_exec_ext in '' $ac_executable_extensions; do
  2480. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2481. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2482. 'mkdir (GNU coreutils) '* | \
  2483. 'mkdir (coreutils) '* | \
  2484. 'mkdir (fileutils) '4.1*)
  2485. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2486. break 3;;
  2487. esac
  2488. done
  2489. done
  2490. done
  2491. IFS=$as_save_IFS
  2492. fi
  2493. test -d ./--version && rmdir ./--version
  2494. if test "${ac_cv_path_mkdir+set}" = set; then
  2495. MKDIR_P="$ac_cv_path_mkdir -p"
  2496. else
  2497. # As a last resort, use the slow shell script. Don't cache a
  2498. # value for MKDIR_P within a source directory, because that will
  2499. # break other packages using the cache if that directory is
  2500. # removed, or if the value is a relative name.
  2501. MKDIR_P="$ac_install_sh -d"
  2502. fi
  2503. fi
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2505. $as_echo "$MKDIR_P" >&6; }
  2506. for ac_prog in gawk mawk nawk awk
  2507. do
  2508. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2509. set dummy $ac_prog; 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_AWK+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test -n "$AWK"; then
  2516. ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
  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. AWK=$ac_cv_prog_AWK
  2535. if test -n "$AWK"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2537. $as_echo "$AWK" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. test -n "$AWK" && break
  2543. done
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2545. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2546. set x ${MAKE-make}
  2547. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2548. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. cat >conftest.make <<\_ACEOF
  2552. SHELL = /bin/sh
  2553. all:
  2554. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2555. _ACEOF
  2556. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2557. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2558. *@@@%%%=?*=@@@%%%*)
  2559. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2560. *)
  2561. eval ac_cv_prog_make_${ac_make}_set=no;;
  2562. esac
  2563. rm -f conftest.make
  2564. fi
  2565. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2567. $as_echo "yes" >&6; }
  2568. SET_MAKE=
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. SET_MAKE="MAKE=${MAKE-make}"
  2573. fi
  2574. rm -rf .tst 2>/dev/null
  2575. mkdir .tst 2>/dev/null
  2576. if test -d .tst; then
  2577. am__leading_dot=.
  2578. else
  2579. am__leading_dot=_
  2580. fi
  2581. rmdir .tst 2>/dev/null
  2582. # Check whether --enable-silent-rules was given.
  2583. if test "${enable_silent_rules+set}" = set; then :
  2584. enableval=$enable_silent_rules;
  2585. fi
  2586. case $enable_silent_rules in # (((
  2587. yes) AM_DEFAULT_VERBOSITY=0;;
  2588. no) AM_DEFAULT_VERBOSITY=1;;
  2589. *) AM_DEFAULT_VERBOSITY=1;;
  2590. esac
  2591. am_make=${MAKE-make}
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2593. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2594. if ${am_cv_make_support_nested_variables+:} false; then :
  2595. $as_echo_n "(cached) " >&6
  2596. else
  2597. if $as_echo 'TRUE=$(BAR$(V))
  2598. BAR0=false
  2599. BAR1=true
  2600. V=1
  2601. am__doit:
  2602. @$(TRUE)
  2603. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2604. am_cv_make_support_nested_variables=yes
  2605. else
  2606. am_cv_make_support_nested_variables=no
  2607. fi
  2608. fi
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2610. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2611. if test $am_cv_make_support_nested_variables = yes; then
  2612. AM_V='$(V)'
  2613. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2614. else
  2615. AM_V=$AM_DEFAULT_VERBOSITY
  2616. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2617. fi
  2618. AM_BACKSLASH='\'
  2619. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2620. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2621. # is not polluted with repeated "-I."
  2622. am__isrc=' -I$(srcdir)'
  2623. # test to see if srcdir already configured
  2624. if test -f $srcdir/config.status; then
  2625. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2626. fi
  2627. fi
  2628. # test whether we have cygpath
  2629. if test -z "$CYGPATH_W"; then
  2630. if (cygpath --version) >/dev/null 2>/dev/null; then
  2631. CYGPATH_W='cygpath -w'
  2632. else
  2633. CYGPATH_W=echo
  2634. fi
  2635. fi
  2636. # Define the identity of the package.
  2637. PACKAGE='libgomp-plugin-intelmic'
  2638. VERSION='1.0'
  2639. cat >>confdefs.h <<_ACEOF
  2640. #define PACKAGE "$PACKAGE"
  2641. _ACEOF
  2642. cat >>confdefs.h <<_ACEOF
  2643. #define VERSION "$VERSION"
  2644. _ACEOF
  2645. # Some tools Automake needs.
  2646. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2647. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2648. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2649. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2650. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2651. # For better backward compatibility. To be removed once Automake 1.9.x
  2652. # dies out for good. For more background, see:
  2653. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2654. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2655. mkdir_p='$(MKDIR_P)'
  2656. # We need awk for the "check" target (and possibly the TAP driver). The
  2657. # system "awk" is bad on some platforms.
  2658. # Always define AMTAR for backward compatibility. Yes, it's still used
  2659. # in the wild :-( We should find a proper way to deprecate it ...
  2660. AMTAR='$${TAR-tar}'
  2661. # We'll loop over all known methods to create a tar archive until one works.
  2662. _am_tools='gnutar pax cpio none'
  2663. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2664. # POSIX will say in a future version that running "rm -f" with no argument
  2665. # is OK; and we want to be able to make that assumption in our Makefile
  2666. # recipes. So use an aggressive probe to check that the usage we want is
  2667. # actually supported "in the wild" to an acceptable degree.
  2668. # See automake bug#10828.
  2669. # To make any issue more visible, cause the running configure to be aborted
  2670. # by default if the 'rm' program in use doesn't match our expectations; the
  2671. # user can still override this though.
  2672. if rm -f && rm -fr && rm -rf; then : OK; else
  2673. cat >&2 <<'END'
  2674. Oops!
  2675. Your 'rm' program seems unable to run without file operands specified
  2676. on the command line, even when the '-f' option is present. This is contrary
  2677. to the behaviour of most rm programs out there, and not conforming with
  2678. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2679. Please tell bug-automake@gnu.org about your system, including the value
  2680. of your $PATH and any error possibly output before this message. This
  2681. can help us improve future automake versions.
  2682. END
  2683. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2684. echo 'Configuration will proceed anyway, since you have set the' >&2
  2685. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2686. echo >&2
  2687. else
  2688. cat >&2 <<'END'
  2689. Aborting the configuration process, to ensure you take notice of the issue.
  2690. You can download and install GNU coreutils to get an 'rm' implementation
  2691. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2692. If you want to complete the configuration process using your problematic
  2693. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2694. to "yes", and re-run configure.
  2695. END
  2696. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2697. fi
  2698. fi
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2700. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2701. # Check whether --enable-maintainer-mode was given.
  2702. if test "${enable_maintainer_mode+set}" = set; then :
  2703. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2704. else
  2705. USE_MAINTAINER_MODE=no
  2706. fi
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2708. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2709. if test $USE_MAINTAINER_MODE = yes; then
  2710. MAINTAINER_MODE_TRUE=
  2711. MAINTAINER_MODE_FALSE='#'
  2712. else
  2713. MAINTAINER_MODE_TRUE='#'
  2714. MAINTAINER_MODE_FALSE=
  2715. fi
  2716. MAINT=$MAINTAINER_MODE_TRUE
  2717. ac_ext=c
  2718. ac_cpp='$CPP $CPPFLAGS'
  2719. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2720. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2721. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2722. if test -n "$ac_tool_prefix"; then
  2723. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2724. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2726. $as_echo_n "checking for $ac_word... " >&6; }
  2727. if ${ac_cv_prog_CC+:} false; then :
  2728. $as_echo_n "(cached) " >&6
  2729. else
  2730. if test -n "$CC"; then
  2731. ac_cv_prog_CC="$CC" # Let the user override the test.
  2732. else
  2733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2734. for as_dir in $PATH
  2735. do
  2736. IFS=$as_save_IFS
  2737. test -z "$as_dir" && as_dir=.
  2738. for ac_exec_ext in '' $ac_executable_extensions; do
  2739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2740. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2742. break 2
  2743. fi
  2744. done
  2745. done
  2746. IFS=$as_save_IFS
  2747. fi
  2748. fi
  2749. CC=$ac_cv_prog_CC
  2750. if test -n "$CC"; then
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2752. $as_echo "$CC" >&6; }
  2753. else
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2755. $as_echo "no" >&6; }
  2756. fi
  2757. fi
  2758. if test -z "$ac_cv_prog_CC"; then
  2759. ac_ct_CC=$CC
  2760. # Extract the first word of "gcc", so it can be a program name with args.
  2761. set dummy gcc; ac_word=$2
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2763. $as_echo_n "checking for $ac_word... " >&6; }
  2764. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2765. $as_echo_n "(cached) " >&6
  2766. else
  2767. if test -n "$ac_ct_CC"; then
  2768. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2769. else
  2770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2771. for as_dir in $PATH
  2772. do
  2773. IFS=$as_save_IFS
  2774. test -z "$as_dir" && as_dir=.
  2775. for ac_exec_ext in '' $ac_executable_extensions; do
  2776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2777. ac_cv_prog_ac_ct_CC="gcc"
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. break 2
  2780. fi
  2781. done
  2782. done
  2783. IFS=$as_save_IFS
  2784. fi
  2785. fi
  2786. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2787. if test -n "$ac_ct_CC"; then
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2789. $as_echo "$ac_ct_CC" >&6; }
  2790. else
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2792. $as_echo "no" >&6; }
  2793. fi
  2794. if test "x$ac_ct_CC" = x; then
  2795. CC=""
  2796. else
  2797. case $cross_compiling:$ac_tool_warned in
  2798. yes:)
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2800. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2801. ac_tool_warned=yes ;;
  2802. esac
  2803. CC=$ac_ct_CC
  2804. fi
  2805. else
  2806. CC="$ac_cv_prog_CC"
  2807. fi
  2808. if test -z "$CC"; then
  2809. if test -n "$ac_tool_prefix"; then
  2810. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2811. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2813. $as_echo_n "checking for $ac_word... " >&6; }
  2814. if ${ac_cv_prog_CC+:} false; then :
  2815. $as_echo_n "(cached) " >&6
  2816. else
  2817. if test -n "$CC"; then
  2818. ac_cv_prog_CC="$CC" # Let the user override the test.
  2819. else
  2820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2821. for as_dir in $PATH
  2822. do
  2823. IFS=$as_save_IFS
  2824. test -z "$as_dir" && as_dir=.
  2825. for ac_exec_ext in '' $ac_executable_extensions; do
  2826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2827. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2829. break 2
  2830. fi
  2831. done
  2832. done
  2833. IFS=$as_save_IFS
  2834. fi
  2835. fi
  2836. CC=$ac_cv_prog_CC
  2837. if test -n "$CC"; then
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2839. $as_echo "$CC" >&6; }
  2840. else
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2842. $as_echo "no" >&6; }
  2843. fi
  2844. fi
  2845. fi
  2846. if test -z "$CC"; then
  2847. # Extract the first word of "cc", so it can be a program name with args.
  2848. set dummy cc; ac_word=$2
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2850. $as_echo_n "checking for $ac_word... " >&6; }
  2851. if ${ac_cv_prog_CC+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. if test -n "$CC"; then
  2855. ac_cv_prog_CC="$CC" # Let the user override the test.
  2856. else
  2857. ac_prog_rejected=no
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2865. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2866. ac_prog_rejected=yes
  2867. continue
  2868. fi
  2869. ac_cv_prog_CC="cc"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. if test $ac_prog_rejected = yes; then
  2877. # We found a bogon in the path, so make sure we never use it.
  2878. set dummy $ac_cv_prog_CC
  2879. shift
  2880. if test $# != 0; then
  2881. # We chose a different compiler from the bogus one.
  2882. # However, it has the same basename, so the bogon will be chosen
  2883. # first if we set CC to just the basename; use the full file name.
  2884. shift
  2885. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2886. fi
  2887. fi
  2888. fi
  2889. fi
  2890. CC=$ac_cv_prog_CC
  2891. if test -n "$CC"; then
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2893. $as_echo "$CC" >&6; }
  2894. else
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2896. $as_echo "no" >&6; }
  2897. fi
  2898. fi
  2899. if test -z "$CC"; then
  2900. if test -n "$ac_tool_prefix"; then
  2901. for ac_prog in cl.exe
  2902. do
  2903. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2904. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2906. $as_echo_n "checking for $ac_word... " >&6; }
  2907. if ${ac_cv_prog_CC+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. if test -n "$CC"; then
  2911. ac_cv_prog_CC="$CC" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. test -z "$as_dir" && as_dir=.
  2918. for ac_exec_ext in '' $ac_executable_extensions; do
  2919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2920. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2922. break 2
  2923. fi
  2924. done
  2925. done
  2926. IFS=$as_save_IFS
  2927. fi
  2928. fi
  2929. CC=$ac_cv_prog_CC
  2930. if test -n "$CC"; then
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2932. $as_echo "$CC" >&6; }
  2933. else
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. fi
  2937. test -n "$CC" && break
  2938. done
  2939. fi
  2940. if test -z "$CC"; then
  2941. ac_ct_CC=$CC
  2942. for ac_prog in cl.exe
  2943. do
  2944. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2945. set dummy $ac_prog; ac_word=$2
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2947. $as_echo_n "checking for $ac_word... " >&6; }
  2948. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2949. $as_echo_n "(cached) " >&6
  2950. else
  2951. if test -n "$ac_ct_CC"; then
  2952. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2953. else
  2954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2955. for as_dir in $PATH
  2956. do
  2957. IFS=$as_save_IFS
  2958. test -z "$as_dir" && as_dir=.
  2959. for ac_exec_ext in '' $ac_executable_extensions; do
  2960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2961. ac_cv_prog_ac_ct_CC="$ac_prog"
  2962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2963. break 2
  2964. fi
  2965. done
  2966. done
  2967. IFS=$as_save_IFS
  2968. fi
  2969. fi
  2970. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2971. if test -n "$ac_ct_CC"; then
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2973. $as_echo "$ac_ct_CC" >&6; }
  2974. else
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. fi
  2978. test -n "$ac_ct_CC" && break
  2979. done
  2980. if test "x$ac_ct_CC" = x; then
  2981. CC=""
  2982. else
  2983. case $cross_compiling:$ac_tool_warned in
  2984. yes:)
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2987. ac_tool_warned=yes ;;
  2988. esac
  2989. CC=$ac_ct_CC
  2990. fi
  2991. fi
  2992. fi
  2993. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2994. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2995. as_fn_error $? "no acceptable C compiler found in \$PATH
  2996. See \`config.log' for more details" "$LINENO" 5; }
  2997. # Provide some information about the compiler.
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2999. set X $ac_compile
  3000. ac_compiler=$2
  3001. for ac_option in --version -v -V -qversion; do
  3002. { { ac_try="$ac_compiler $ac_option >&5"
  3003. case "(($ac_try" in
  3004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005. *) ac_try_echo=$ac_try;;
  3006. esac
  3007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3008. $as_echo "$ac_try_echo"; } >&5
  3009. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3010. ac_status=$?
  3011. if test -s conftest.err; then
  3012. sed '10a\
  3013. ... rest of stderr output deleted ...
  3014. 10q' conftest.err >conftest.er1
  3015. cat conftest.er1 >&5
  3016. fi
  3017. rm -f conftest.er1 conftest.err
  3018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3019. test $ac_status = 0; }
  3020. done
  3021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3022. /* end confdefs.h. */
  3023. int
  3024. main ()
  3025. {
  3026. ;
  3027. return 0;
  3028. }
  3029. _ACEOF
  3030. ac_clean_files_save=$ac_clean_files
  3031. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3032. # Try to create an executable without -o first, disregard a.out.
  3033. # It will help us diagnose broken compilers, and finding out an intuition
  3034. # of exeext.
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3036. $as_echo_n "checking whether the C compiler works... " >&6; }
  3037. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3038. # The possible output files:
  3039. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3040. ac_rmfiles=
  3041. for ac_file in $ac_files
  3042. do
  3043. case $ac_file in
  3044. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3045. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3046. esac
  3047. done
  3048. rm -f $ac_rmfiles
  3049. if { { ac_try="$ac_link_default"
  3050. case "(($ac_try" in
  3051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3052. *) ac_try_echo=$ac_try;;
  3053. esac
  3054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3055. $as_echo "$ac_try_echo"; } >&5
  3056. (eval "$ac_link_default") 2>&5
  3057. ac_status=$?
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3059. test $ac_status = 0; }; then :
  3060. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3061. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3062. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3063. # so that the user can short-circuit this test for compilers unknown to
  3064. # Autoconf.
  3065. for ac_file in $ac_files ''
  3066. do
  3067. test -f "$ac_file" || continue
  3068. case $ac_file in
  3069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3070. ;;
  3071. [ab].out )
  3072. # We found the default executable, but exeext='' is most
  3073. # certainly right.
  3074. break;;
  3075. *.* )
  3076. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3077. then :; else
  3078. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3079. fi
  3080. # We set ac_cv_exeext here because the later test for it is not
  3081. # safe: cross compilers may not add the suffix if given an `-o'
  3082. # argument, so we may need to know it at that point already.
  3083. # Even if this section looks crufty: it has the advantage of
  3084. # actually working.
  3085. break;;
  3086. * )
  3087. break;;
  3088. esac
  3089. done
  3090. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3091. else
  3092. ac_file=''
  3093. fi
  3094. if test -z "$ac_file"; then :
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3096. $as_echo "no" >&6; }
  3097. $as_echo "$as_me: failed program was:" >&5
  3098. sed 's/^/| /' conftest.$ac_ext >&5
  3099. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3100. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3101. as_fn_error 77 "C compiler cannot create executables
  3102. See \`config.log' for more details" "$LINENO" 5; }
  3103. else
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3105. $as_echo "yes" >&6; }
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3108. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3110. $as_echo "$ac_file" >&6; }
  3111. ac_exeext=$ac_cv_exeext
  3112. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3113. ac_clean_files=$ac_clean_files_save
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3115. $as_echo_n "checking for suffix of executables... " >&6; }
  3116. if { { ac_try="$ac_link"
  3117. case "(($ac_try" in
  3118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3119. *) ac_try_echo=$ac_try;;
  3120. esac
  3121. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3122. $as_echo "$ac_try_echo"; } >&5
  3123. (eval "$ac_link") 2>&5
  3124. ac_status=$?
  3125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3126. test $ac_status = 0; }; then :
  3127. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3128. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3129. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3130. # `rm'.
  3131. for ac_file in conftest.exe conftest conftest.*; do
  3132. test -f "$ac_file" || continue
  3133. case $ac_file in
  3134. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3135. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3136. break;;
  3137. * ) break;;
  3138. esac
  3139. done
  3140. else
  3141. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3143. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3144. See \`config.log' for more details" "$LINENO" 5; }
  3145. fi
  3146. rm -f conftest conftest$ac_cv_exeext
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3148. $as_echo "$ac_cv_exeext" >&6; }
  3149. rm -f conftest.$ac_ext
  3150. EXEEXT=$ac_cv_exeext
  3151. ac_exeext=$EXEEXT
  3152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3153. /* end confdefs.h. */
  3154. #include <stdio.h>
  3155. int
  3156. main ()
  3157. {
  3158. FILE *f = fopen ("conftest.out", "w");
  3159. return ferror (f) || fclose (f) != 0;
  3160. ;
  3161. return 0;
  3162. }
  3163. _ACEOF
  3164. ac_clean_files="$ac_clean_files conftest.out"
  3165. # Check that the compiler produces executables we can run. If not, either
  3166. # the compiler is broken, or we cross compile.
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3168. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3169. if test "$cross_compiling" != yes; then
  3170. { { ac_try="$ac_link"
  3171. case "(($ac_try" in
  3172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3173. *) ac_try_echo=$ac_try;;
  3174. esac
  3175. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3176. $as_echo "$ac_try_echo"; } >&5
  3177. (eval "$ac_link") 2>&5
  3178. ac_status=$?
  3179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3180. test $ac_status = 0; }
  3181. if { ac_try='./conftest$ac_cv_exeext'
  3182. { { case "(($ac_try" in
  3183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3184. *) ac_try_echo=$ac_try;;
  3185. esac
  3186. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3187. $as_echo "$ac_try_echo"; } >&5
  3188. (eval "$ac_try") 2>&5
  3189. ac_status=$?
  3190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3191. test $ac_status = 0; }; }; then
  3192. cross_compiling=no
  3193. else
  3194. if test "$cross_compiling" = maybe; then
  3195. cross_compiling=yes
  3196. else
  3197. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3199. as_fn_error $? "cannot run C compiled programs.
  3200. If you meant to cross compile, use \`--host'.
  3201. See \`config.log' for more details" "$LINENO" 5; }
  3202. fi
  3203. fi
  3204. fi
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3206. $as_echo "$cross_compiling" >&6; }
  3207. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3208. ac_clean_files=$ac_clean_files_save
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3210. $as_echo_n "checking for suffix of object files... " >&6; }
  3211. if ${ac_cv_objext+:} false; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. rm -f conftest.o conftest.obj
  3224. if { { ac_try="$ac_compile"
  3225. case "(($ac_try" in
  3226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3227. *) ac_try_echo=$ac_try;;
  3228. esac
  3229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3230. $as_echo "$ac_try_echo"; } >&5
  3231. (eval "$ac_compile") 2>&5
  3232. ac_status=$?
  3233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3234. test $ac_status = 0; }; then :
  3235. for ac_file in conftest.o conftest.obj conftest.*; do
  3236. test -f "$ac_file" || continue;
  3237. case $ac_file in
  3238. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3239. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3240. break;;
  3241. esac
  3242. done
  3243. else
  3244. $as_echo "$as_me: failed program was:" >&5
  3245. sed 's/^/| /' conftest.$ac_ext >&5
  3246. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3247. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3248. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3249. See \`config.log' for more details" "$LINENO" 5; }
  3250. fi
  3251. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3254. $as_echo "$ac_cv_objext" >&6; }
  3255. OBJEXT=$ac_cv_objext
  3256. ac_objext=$OBJEXT
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3258. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3259. if ${ac_cv_c_compiler_gnu+:} false; then :
  3260. $as_echo_n "(cached) " >&6
  3261. else
  3262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3263. /* end confdefs.h. */
  3264. int
  3265. main ()
  3266. {
  3267. #ifndef __GNUC__
  3268. choke me
  3269. #endif
  3270. ;
  3271. return 0;
  3272. }
  3273. _ACEOF
  3274. if ac_fn_c_try_compile "$LINENO"; then :
  3275. ac_compiler_gnu=yes
  3276. else
  3277. ac_compiler_gnu=no
  3278. fi
  3279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3280. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3281. fi
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3283. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3284. if test $ac_compiler_gnu = yes; then
  3285. GCC=yes
  3286. else
  3287. GCC=
  3288. fi
  3289. ac_test_CFLAGS=${CFLAGS+set}
  3290. ac_save_CFLAGS=$CFLAGS
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3292. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3293. if ${ac_cv_prog_cc_g+:} false; then :
  3294. $as_echo_n "(cached) " >&6
  3295. else
  3296. ac_save_c_werror_flag=$ac_c_werror_flag
  3297. ac_c_werror_flag=yes
  3298. ac_cv_prog_cc_g=no
  3299. CFLAGS="-g"
  3300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. if ac_fn_c_try_compile "$LINENO"; then :
  3310. ac_cv_prog_cc_g=yes
  3311. else
  3312. CFLAGS=""
  3313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3314. /* end confdefs.h. */
  3315. int
  3316. main ()
  3317. {
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. else
  3324. ac_c_werror_flag=$ac_save_c_werror_flag
  3325. CFLAGS="-g"
  3326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3327. /* end confdefs.h. */
  3328. int
  3329. main ()
  3330. {
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. if ac_fn_c_try_compile "$LINENO"; then :
  3336. ac_cv_prog_cc_g=yes
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. fi
  3342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3343. ac_c_werror_flag=$ac_save_c_werror_flag
  3344. fi
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3346. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3347. if test "$ac_test_CFLAGS" = set; then
  3348. CFLAGS=$ac_save_CFLAGS
  3349. elif test $ac_cv_prog_cc_g = yes; then
  3350. if test "$GCC" = yes; then
  3351. CFLAGS="-g -O2"
  3352. else
  3353. CFLAGS="-g"
  3354. fi
  3355. else
  3356. if test "$GCC" = yes; then
  3357. CFLAGS="-O2"
  3358. else
  3359. CFLAGS=
  3360. fi
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3363. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3364. if ${ac_cv_prog_cc_c89+:} false; then :
  3365. $as_echo_n "(cached) " >&6
  3366. else
  3367. ac_cv_prog_cc_c89=no
  3368. ac_save_CC=$CC
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. #include <stdarg.h>
  3372. #include <stdio.h>
  3373. struct stat;
  3374. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3375. struct buf { int x; };
  3376. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3377. static char *e (p, i)
  3378. char **p;
  3379. int i;
  3380. {
  3381. return p[i];
  3382. }
  3383. static char *f (char * (*g) (char **, int), char **p, ...)
  3384. {
  3385. char *s;
  3386. va_list v;
  3387. va_start (v,p);
  3388. s = g (p, va_arg (v,int));
  3389. va_end (v);
  3390. return s;
  3391. }
  3392. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3393. function prototypes and stuff, but not '\xHH' hex character constants.
  3394. These don't provoke an error unfortunately, instead are silently treated
  3395. as 'x'. The following induces an error, until -std is added to get
  3396. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3397. array size at least. It's necessary to write '\x00'==0 to get something
  3398. that's true only with -std. */
  3399. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3400. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3401. inside strings and character constants. */
  3402. #define FOO(x) 'x'
  3403. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3404. int test (int i, double x);
  3405. struct s1 {int (*f) (int a);};
  3406. struct s2 {int (*f) (double a);};
  3407. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3408. int argc;
  3409. char **argv;
  3410. int
  3411. main ()
  3412. {
  3413. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3414. ;
  3415. return 0;
  3416. }
  3417. _ACEOF
  3418. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3419. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3420. do
  3421. CC="$ac_save_CC $ac_arg"
  3422. if ac_fn_c_try_compile "$LINENO"; then :
  3423. ac_cv_prog_cc_c89=$ac_arg
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext
  3426. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3427. done
  3428. rm -f conftest.$ac_ext
  3429. CC=$ac_save_CC
  3430. fi
  3431. # AC_CACHE_VAL
  3432. case "x$ac_cv_prog_cc_c89" in
  3433. x)
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3435. $as_echo "none needed" >&6; } ;;
  3436. xno)
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3438. $as_echo "unsupported" >&6; } ;;
  3439. *)
  3440. CC="$CC $ac_cv_prog_cc_c89"
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3442. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3443. esac
  3444. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3445. fi
  3446. ac_ext=c
  3447. ac_cpp='$CPP $CPPFLAGS'
  3448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3451. ac_ext=c
  3452. ac_cpp='$CPP $CPPFLAGS'
  3453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3457. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3458. if ${am_cv_prog_cc_c_o+:} false; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h. */
  3463. int
  3464. main ()
  3465. {
  3466. ;
  3467. return 0;
  3468. }
  3469. _ACEOF
  3470. # Make sure it works both with $CC and with simple cc.
  3471. # Following AC_PROG_CC_C_O, we do the test twice because some
  3472. # compilers refuse to overwrite an existing .o file with -o,
  3473. # though they will create one.
  3474. am_cv_prog_cc_c_o=yes
  3475. for am_i in 1 2; do
  3476. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3477. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3478. ac_status=$?
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); } \
  3481. && test -f conftest2.$ac_objext; then
  3482. : OK
  3483. else
  3484. am_cv_prog_cc_c_o=no
  3485. break
  3486. fi
  3487. done
  3488. rm -f core conftest*
  3489. unset am_i
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3492. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3493. if test "$am_cv_prog_cc_c_o" != yes; then
  3494. # Losing compiler, so override with the script.
  3495. # FIXME: It is wrong to rewrite CC.
  3496. # But if we don't then we get into trouble of one sort or another.
  3497. # A longer-term fix would be to have automake use am__CC in this case,
  3498. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3499. CC="$am_aux_dir/compile $CC"
  3500. fi
  3501. ac_ext=c
  3502. ac_cpp='$CPP $CPPFLAGS'
  3503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3506. DEPDIR="${am__leading_dot}deps"
  3507. ac_config_commands="$ac_config_commands depfiles"
  3508. am_make=${MAKE-make}
  3509. cat > confinc << 'END'
  3510. am__doit:
  3511. @echo this is the am__doit target
  3512. .PHONY: am__doit
  3513. END
  3514. # If we don't find an include directive, just comment out the code.
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3516. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3517. am__include="#"
  3518. am__quote=
  3519. _am_result=none
  3520. # First try GNU make style include.
  3521. echo "include confinc" > confmf
  3522. # Ignore all kinds of additional output from 'make'.
  3523. case `$am_make -s -f confmf 2> /dev/null` in #(
  3524. *the\ am__doit\ target*)
  3525. am__include=include
  3526. am__quote=
  3527. _am_result=GNU
  3528. ;;
  3529. esac
  3530. # Now try BSD make style include.
  3531. if test "$am__include" = "#"; then
  3532. echo '.include "confinc"' > confmf
  3533. case `$am_make -s -f confmf 2> /dev/null` in #(
  3534. *the\ am__doit\ target*)
  3535. am__include=.include
  3536. am__quote="\""
  3537. _am_result=BSD
  3538. ;;
  3539. esac
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3542. $as_echo "$_am_result" >&6; }
  3543. rm -f confinc confmf
  3544. # Check whether --enable-dependency-tracking was given.
  3545. if test "${enable_dependency_tracking+set}" = set; then :
  3546. enableval=$enable_dependency_tracking;
  3547. fi
  3548. if test "x$enable_dependency_tracking" != xno; then
  3549. am_depcomp="$ac_aux_dir/depcomp"
  3550. AMDEPBACKSLASH='\'
  3551. am__nodep='_no'
  3552. fi
  3553. if test "x$enable_dependency_tracking" != xno; then
  3554. AMDEP_TRUE=
  3555. AMDEP_FALSE='#'
  3556. else
  3557. AMDEP_TRUE='#'
  3558. AMDEP_FALSE=
  3559. fi
  3560. depcc="$CC" am_compiler_list=
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3562. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3563. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3567. # We make a subdir and do the tests there. Otherwise we can end up
  3568. # making bogus files that we don't know about and never remove. For
  3569. # instance it was reported that on HP-UX the gcc test will end up
  3570. # making a dummy file named 'D' -- because '-MD' means "put the output
  3571. # in D".
  3572. rm -rf conftest.dir
  3573. mkdir conftest.dir
  3574. # Copy depcomp to subdir because otherwise we won't find it if we're
  3575. # using a relative directory.
  3576. cp "$am_depcomp" conftest.dir
  3577. cd conftest.dir
  3578. # We will build objects and dependencies in a subdirectory because
  3579. # it helps to detect inapplicable dependency modes. For instance
  3580. # both Tru64's cc and ICC support -MD to output dependencies as a
  3581. # side effect of compilation, but ICC will put the dependencies in
  3582. # the current directory while Tru64 will put them in the object
  3583. # directory.
  3584. mkdir sub
  3585. am_cv_CC_dependencies_compiler_type=none
  3586. if test "$am_compiler_list" = ""; then
  3587. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3588. fi
  3589. am__universal=false
  3590. case " $depcc " in #(
  3591. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3592. esac
  3593. for depmode in $am_compiler_list; do
  3594. # Setup a source with many dependencies, because some compilers
  3595. # like to wrap large dependency lists on column 80 (with \), and
  3596. # we should not choose a depcomp mode which is confused by this.
  3597. #
  3598. # We need to recreate these files for each test, as the compiler may
  3599. # overwrite some of them when testing with obscure command lines.
  3600. # This happens at least with the AIX C compiler.
  3601. : > sub/conftest.c
  3602. for i in 1 2 3 4 5 6; do
  3603. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3604. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3605. # Solaris 10 /bin/sh.
  3606. echo '/* dummy */' > sub/conftst$i.h
  3607. done
  3608. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3609. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3610. # mode. It turns out that the SunPro C++ compiler does not properly
  3611. # handle '-M -o', and we need to detect this. Also, some Intel
  3612. # versions had trouble with output in subdirs.
  3613. am__obj=sub/conftest.${OBJEXT-o}
  3614. am__minus_obj="-o $am__obj"
  3615. case $depmode in
  3616. gcc)
  3617. # This depmode causes a compiler race in universal mode.
  3618. test "$am__universal" = false || continue
  3619. ;;
  3620. nosideeffect)
  3621. # After this tag, mechanisms are not by side-effect, so they'll
  3622. # only be used when explicitly requested.
  3623. if test "x$enable_dependency_tracking" = xyes; then
  3624. continue
  3625. else
  3626. break
  3627. fi
  3628. ;;
  3629. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3630. # This compiler won't grok '-c -o', but also, the minuso test has
  3631. # not run yet. These depmodes are late enough in the game, and
  3632. # so weak that their functioning should not be impacted.
  3633. am__obj=conftest.${OBJEXT-o}
  3634. am__minus_obj=
  3635. ;;
  3636. none) break ;;
  3637. esac
  3638. if depmode=$depmode \
  3639. source=sub/conftest.c object=$am__obj \
  3640. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3641. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3642. >/dev/null 2>conftest.err &&
  3643. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3644. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3645. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3646. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3647. # icc doesn't choke on unknown options, it will just issue warnings
  3648. # or remarks (even with -Werror). So we grep stderr for any message
  3649. # that says an option was ignored or not supported.
  3650. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3651. # icc: Command line warning: ignoring option '-M'; no argument required
  3652. # The diagnosis changed in icc 8.0:
  3653. # icc: Command line remark: option '-MP' not supported
  3654. if (grep 'ignoring option' conftest.err ||
  3655. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3656. am_cv_CC_dependencies_compiler_type=$depmode
  3657. break
  3658. fi
  3659. fi
  3660. done
  3661. cd ..
  3662. rm -rf conftest.dir
  3663. else
  3664. am_cv_CC_dependencies_compiler_type=none
  3665. fi
  3666. fi
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3668. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3669. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3670. if
  3671. test "x$enable_dependency_tracking" != xno \
  3672. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3673. am__fastdepCC_TRUE=
  3674. am__fastdepCC_FALSE='#'
  3675. else
  3676. am__fastdepCC_TRUE='#'
  3677. am__fastdepCC_FALSE=
  3678. fi
  3679. ac_ext=cpp
  3680. ac_cpp='$CXXCPP $CPPFLAGS'
  3681. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3682. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3683. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3684. if test -z "$CXX"; then
  3685. if test -n "$CCC"; then
  3686. CXX=$CCC
  3687. else
  3688. if test -n "$ac_tool_prefix"; then
  3689. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3690. do
  3691. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3692. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. $as_echo_n "checking for $ac_word... " >&6; }
  3695. if ${ac_cv_prog_CXX+:} false; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. if test -n "$CXX"; then
  3699. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3700. else
  3701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3702. for as_dir in $PATH
  3703. do
  3704. IFS=$as_save_IFS
  3705. test -z "$as_dir" && as_dir=.
  3706. for ac_exec_ext in '' $ac_executable_extensions; do
  3707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3708. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3710. break 2
  3711. fi
  3712. done
  3713. done
  3714. IFS=$as_save_IFS
  3715. fi
  3716. fi
  3717. CXX=$ac_cv_prog_CXX
  3718. if test -n "$CXX"; then
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3720. $as_echo "$CXX" >&6; }
  3721. else
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3723. $as_echo "no" >&6; }
  3724. fi
  3725. test -n "$CXX" && break
  3726. done
  3727. fi
  3728. if test -z "$CXX"; then
  3729. ac_ct_CXX=$CXX
  3730. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3731. do
  3732. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3733. set dummy $ac_prog; ac_word=$2
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3735. $as_echo_n "checking for $ac_word... " >&6; }
  3736. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3737. $as_echo_n "(cached) " >&6
  3738. else
  3739. if test -n "$ac_ct_CXX"; then
  3740. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3741. else
  3742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3743. for as_dir in $PATH
  3744. do
  3745. IFS=$as_save_IFS
  3746. test -z "$as_dir" && as_dir=.
  3747. for ac_exec_ext in '' $ac_executable_extensions; do
  3748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3749. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3751. break 2
  3752. fi
  3753. done
  3754. done
  3755. IFS=$as_save_IFS
  3756. fi
  3757. fi
  3758. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3759. if test -n "$ac_ct_CXX"; then
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3761. $as_echo "$ac_ct_CXX" >&6; }
  3762. else
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3764. $as_echo "no" >&6; }
  3765. fi
  3766. test -n "$ac_ct_CXX" && break
  3767. done
  3768. if test "x$ac_ct_CXX" = x; then
  3769. CXX="g++"
  3770. else
  3771. case $cross_compiling:$ac_tool_warned in
  3772. yes:)
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3775. ac_tool_warned=yes ;;
  3776. esac
  3777. CXX=$ac_ct_CXX
  3778. fi
  3779. fi
  3780. fi
  3781. fi
  3782. # Provide some information about the compiler.
  3783. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3784. set X $ac_compile
  3785. ac_compiler=$2
  3786. for ac_option in --version -v -V -qversion; do
  3787. { { ac_try="$ac_compiler $ac_option >&5"
  3788. case "(($ac_try" in
  3789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3790. *) ac_try_echo=$ac_try;;
  3791. esac
  3792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3793. $as_echo "$ac_try_echo"; } >&5
  3794. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3795. ac_status=$?
  3796. if test -s conftest.err; then
  3797. sed '10a\
  3798. ... rest of stderr output deleted ...
  3799. 10q' conftest.err >conftest.er1
  3800. cat conftest.er1 >&5
  3801. fi
  3802. rm -f conftest.er1 conftest.err
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3804. test $ac_status = 0; }
  3805. done
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3807. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3808. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3812. /* end confdefs.h. */
  3813. int
  3814. main ()
  3815. {
  3816. #ifndef __GNUC__
  3817. choke me
  3818. #endif
  3819. ;
  3820. return 0;
  3821. }
  3822. _ACEOF
  3823. if ac_fn_cxx_try_compile "$LINENO"; then :
  3824. ac_compiler_gnu=yes
  3825. else
  3826. ac_compiler_gnu=no
  3827. fi
  3828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3829. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3830. fi
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3832. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3833. if test $ac_compiler_gnu = yes; then
  3834. GXX=yes
  3835. else
  3836. GXX=
  3837. fi
  3838. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3839. ac_save_CXXFLAGS=$CXXFLAGS
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3841. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3842. if ${ac_cv_prog_cxx_g+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3846. ac_cxx_werror_flag=yes
  3847. ac_cv_prog_cxx_g=no
  3848. CXXFLAGS="-g"
  3849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3850. /* end confdefs.h. */
  3851. int
  3852. main ()
  3853. {
  3854. ;
  3855. return 0;
  3856. }
  3857. _ACEOF
  3858. if ac_fn_cxx_try_compile "$LINENO"; then :
  3859. ac_cv_prog_cxx_g=yes
  3860. else
  3861. CXXFLAGS=""
  3862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3863. /* end confdefs.h. */
  3864. int
  3865. main ()
  3866. {
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. if ac_fn_cxx_try_compile "$LINENO"; then :
  3872. else
  3873. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3874. CXXFLAGS="-g"
  3875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3876. /* end confdefs.h. */
  3877. int
  3878. main ()
  3879. {
  3880. ;
  3881. return 0;
  3882. }
  3883. _ACEOF
  3884. if ac_fn_cxx_try_compile "$LINENO"; then :
  3885. ac_cv_prog_cxx_g=yes
  3886. fi
  3887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3888. fi
  3889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3890. fi
  3891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3892. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3893. fi
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3895. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3896. if test "$ac_test_CXXFLAGS" = set; then
  3897. CXXFLAGS=$ac_save_CXXFLAGS
  3898. elif test $ac_cv_prog_cxx_g = yes; then
  3899. if test "$GXX" = yes; then
  3900. CXXFLAGS="-g -O2"
  3901. else
  3902. CXXFLAGS="-g"
  3903. fi
  3904. else
  3905. if test "$GXX" = yes; then
  3906. CXXFLAGS="-O2"
  3907. else
  3908. CXXFLAGS=
  3909. fi
  3910. fi
  3911. ac_ext=c
  3912. ac_cpp='$CPP $CPPFLAGS'
  3913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3916. depcc="$CXX" am_compiler_list=
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3918. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3919. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3923. # We make a subdir and do the tests there. Otherwise we can end up
  3924. # making bogus files that we don't know about and never remove. For
  3925. # instance it was reported that on HP-UX the gcc test will end up
  3926. # making a dummy file named 'D' -- because '-MD' means "put the output
  3927. # in D".
  3928. rm -rf conftest.dir
  3929. mkdir conftest.dir
  3930. # Copy depcomp to subdir because otherwise we won't find it if we're
  3931. # using a relative directory.
  3932. cp "$am_depcomp" conftest.dir
  3933. cd conftest.dir
  3934. # We will build objects and dependencies in a subdirectory because
  3935. # it helps to detect inapplicable dependency modes. For instance
  3936. # both Tru64's cc and ICC support -MD to output dependencies as a
  3937. # side effect of compilation, but ICC will put the dependencies in
  3938. # the current directory while Tru64 will put them in the object
  3939. # directory.
  3940. mkdir sub
  3941. am_cv_CXX_dependencies_compiler_type=none
  3942. if test "$am_compiler_list" = ""; then
  3943. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3944. fi
  3945. am__universal=false
  3946. case " $depcc " in #(
  3947. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3948. esac
  3949. for depmode in $am_compiler_list; do
  3950. # Setup a source with many dependencies, because some compilers
  3951. # like to wrap large dependency lists on column 80 (with \), and
  3952. # we should not choose a depcomp mode which is confused by this.
  3953. #
  3954. # We need to recreate these files for each test, as the compiler may
  3955. # overwrite some of them when testing with obscure command lines.
  3956. # This happens at least with the AIX C compiler.
  3957. : > sub/conftest.c
  3958. for i in 1 2 3 4 5 6; do
  3959. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3960. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3961. # Solaris 10 /bin/sh.
  3962. echo '/* dummy */' > sub/conftst$i.h
  3963. done
  3964. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3965. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3966. # mode. It turns out that the SunPro C++ compiler does not properly
  3967. # handle '-M -o', and we need to detect this. Also, some Intel
  3968. # versions had trouble with output in subdirs.
  3969. am__obj=sub/conftest.${OBJEXT-o}
  3970. am__minus_obj="-o $am__obj"
  3971. case $depmode in
  3972. gcc)
  3973. # This depmode causes a compiler race in universal mode.
  3974. test "$am__universal" = false || continue
  3975. ;;
  3976. nosideeffect)
  3977. # After this tag, mechanisms are not by side-effect, so they'll
  3978. # only be used when explicitly requested.
  3979. if test "x$enable_dependency_tracking" = xyes; then
  3980. continue
  3981. else
  3982. break
  3983. fi
  3984. ;;
  3985. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3986. # This compiler won't grok '-c -o', but also, the minuso test has
  3987. # not run yet. These depmodes are late enough in the game, and
  3988. # so weak that their functioning should not be impacted.
  3989. am__obj=conftest.${OBJEXT-o}
  3990. am__minus_obj=
  3991. ;;
  3992. none) break ;;
  3993. esac
  3994. if depmode=$depmode \
  3995. source=sub/conftest.c object=$am__obj \
  3996. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3997. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3998. >/dev/null 2>conftest.err &&
  3999. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4000. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4001. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4002. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4003. # icc doesn't choke on unknown options, it will just issue warnings
  4004. # or remarks (even with -Werror). So we grep stderr for any message
  4005. # that says an option was ignored or not supported.
  4006. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4007. # icc: Command line warning: ignoring option '-M'; no argument required
  4008. # The diagnosis changed in icc 8.0:
  4009. # icc: Command line remark: option '-MP' not supported
  4010. if (grep 'ignoring option' conftest.err ||
  4011. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4012. am_cv_CXX_dependencies_compiler_type=$depmode
  4013. break
  4014. fi
  4015. fi
  4016. done
  4017. cd ..
  4018. rm -rf conftest.dir
  4019. else
  4020. am_cv_CXX_dependencies_compiler_type=none
  4021. fi
  4022. fi
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4024. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4025. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4026. if
  4027. test "x$enable_dependency_tracking" != xno \
  4028. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4029. am__fastdepCXX_TRUE=
  4030. am__fastdepCXX_FALSE='#'
  4031. else
  4032. am__fastdepCXX_TRUE='#'
  4033. am__fastdepCXX_FALSE=
  4034. fi
  4035. ac_config_files="$ac_config_files Makefile"
  4036. # Default to --enable-multilib
  4037. # Check whether --enable-multilib was given.
  4038. if test "${enable_multilib+set}" = set; then :
  4039. enableval=$enable_multilib; case "$enableval" in
  4040. yes) multilib=yes ;;
  4041. no) multilib=no ;;
  4042. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  4043. esac
  4044. else
  4045. multilib=yes
  4046. fi
  4047. # We may get other options which we leave undocumented:
  4048. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  4049. # See config-ml.in if you want the gory details.
  4050. if test "$srcdir" = "."; then
  4051. if test "$with_target_subdir" != "."; then
  4052. multi_basedir="$srcdir/$with_multisrctop../../.."
  4053. else
  4054. multi_basedir="$srcdir/$with_multisrctop../.."
  4055. fi
  4056. else
  4057. multi_basedir="$srcdir/../.."
  4058. fi
  4059. # Even if the default multilib is not a cross compilation,
  4060. # it may be that some of the other multilibs are.
  4061. if test $cross_compiling = no && test $multilib = yes \
  4062. && test "x${with_multisubdir}" != x ; then
  4063. cross_compiling=maybe
  4064. fi
  4065. ac_config_commands="$ac_config_commands default-1"
  4066. if test "${multilib}" = "yes"; then
  4067. multilib_arg="--enable-multilib"
  4068. else
  4069. multilib_arg=
  4070. fi
  4071. # Make sure liboffloadmic is enabled
  4072. case "$enable_liboffloadmic" in
  4073. host | target)
  4074. ;;
  4075. *)
  4076. as_fn_error $? "Liboffloadmic is disabled" "$LINENO" 5 ;;
  4077. esac
  4078. if test x"$enable_liboffloadmic" = xhost; then
  4079. PLUGIN_HOST_TRUE=
  4080. PLUGIN_HOST_FALSE='#'
  4081. else
  4082. PLUGIN_HOST_TRUE='#'
  4083. PLUGIN_HOST_FALSE=
  4084. fi
  4085. # Get accel target and path to build or install tree of accel compiler
  4086. accel_search_dir=
  4087. accel_target=
  4088. if test x"$enable_liboffloadmic" = xhost; then
  4089. for accel in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
  4090. accel_name=`echo $accel | sed 's/=.*//'`
  4091. accel_dir=`echo $accel | grep '=' | sed 's/.*=//'`
  4092. case "$accel_name" in
  4093. *-intelmic-* | *-intelmicemul-*)
  4094. accel_target=$accel_name
  4095. accel_search_dir=$accel_dir
  4096. ;;
  4097. esac
  4098. done
  4099. if test x"$accel_target" = x; then
  4100. as_fn_error $? "--enable-offload-targets does not contain intelmic target" "$LINENO" 5
  4101. fi
  4102. fi
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  4104. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  4105. # Check whether --enable-version-specific-runtime-libs was given.
  4106. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  4107. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  4108. yes) enable_version_specific_runtime_libs=yes ;;
  4109. no) enable_version_specific_runtime_libs=no ;;
  4110. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  4111. esac
  4112. else
  4113. enable_version_specific_runtime_libs=no
  4114. fi
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  4116. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  4117. # Check whether --with-toolexeclibdir was given.
  4118. if test "${with_toolexeclibdir+set}" = set; then :
  4119. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  4120. /)
  4121. ;;
  4122. */)
  4123. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  4124. ;;
  4125. esac
  4126. else
  4127. with_toolexeclibdir=no
  4128. fi
  4129. # Calculate toolexeclibdir.
  4130. # Also toolexecdir, though it's only used in toolexeclibdir.
  4131. case ${enable_version_specific_runtime_libs} in
  4132. yes)
  4133. # Need the gcc compiler version to know where to install libraries
  4134. # and header files if --enable-version-specific-runtime-libs option
  4135. # is selected.
  4136. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4137. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4138. ;;
  4139. no)
  4140. if test -n "$with_cross_host" &&
  4141. test x"$with_cross_host" != x"no"; then
  4142. # Install a library built with a cross compiler in tooldir, not libdir.
  4143. toolexecdir='$(exec_prefix)/$(target_alias)'
  4144. case ${with_toolexeclibdir} in
  4145. no)
  4146. toolexeclibdir='$(toolexecdir)/lib'
  4147. ;;
  4148. *)
  4149. toolexeclibdir=${with_toolexeclibdir}
  4150. ;;
  4151. esac
  4152. else
  4153. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4154. toolexeclibdir='$(libdir)'
  4155. fi
  4156. multi_os_directory=`$CC -print-multi-os-directory`
  4157. case $multi_os_directory in
  4158. .) ;; # Avoid trailing /.
  4159. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4160. esac
  4161. ;;
  4162. esac
  4163. enable_dlopen=yes
  4164. case `pwd` in
  4165. *\ * | *\ *)
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4167. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4168. esac
  4169. macro_version='2.2.7a'
  4170. macro_revision='1.3134'
  4171. ltmain="$ac_aux_dir/ltmain.sh"
  4172. # Backslashify metacharacters that are still active within
  4173. # double-quoted strings.
  4174. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4175. # Same as above, but do not quote variable references.
  4176. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4177. # Sed substitution to delay expansion of an escaped shell variable in a
  4178. # double_quote_subst'ed string.
  4179. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4180. # Sed substitution to delay expansion of an escaped single quote.
  4181. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4182. # Sed substitution to avoid accidental globbing in evaled expressions
  4183. no_glob_subst='s/\*/\\\*/g'
  4184. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4185. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4186. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4188. $as_echo_n "checking how to print strings... " >&6; }
  4189. # Test print first, because it will be a builtin if present.
  4190. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4191. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4192. ECHO='print -r --'
  4193. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4194. ECHO='printf %s\n'
  4195. else
  4196. # Use this function as a fallback that always works.
  4197. func_fallback_echo ()
  4198. {
  4199. eval 'cat <<_LTECHO_EOF
  4200. $1
  4201. _LTECHO_EOF'
  4202. }
  4203. ECHO='func_fallback_echo'
  4204. fi
  4205. # func_echo_all arg...
  4206. # Invoke $ECHO with all args, space-separated.
  4207. func_echo_all ()
  4208. {
  4209. $ECHO ""
  4210. }
  4211. case "$ECHO" in
  4212. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4213. $as_echo "printf" >&6; } ;;
  4214. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4215. $as_echo "print -r" >&6; } ;;
  4216. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4217. $as_echo "cat" >&6; } ;;
  4218. esac
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4220. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4221. if ${ac_cv_path_SED+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4225. for ac_i in 1 2 3 4 5 6 7; do
  4226. ac_script="$ac_script$as_nl$ac_script"
  4227. done
  4228. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4229. { ac_script=; unset ac_script;}
  4230. if test -z "$SED"; then
  4231. ac_path_SED_found=false
  4232. # Loop through the user's path and test for each of PROGNAME-LIST
  4233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4234. for as_dir in $PATH
  4235. do
  4236. IFS=$as_save_IFS
  4237. test -z "$as_dir" && as_dir=.
  4238. for ac_prog in sed gsed; do
  4239. for ac_exec_ext in '' $ac_executable_extensions; do
  4240. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4241. as_fn_executable_p "$ac_path_SED" || continue
  4242. # Check for GNU ac_path_SED and select it if it is found.
  4243. # Check for GNU $ac_path_SED
  4244. case `"$ac_path_SED" --version 2>&1` in
  4245. *GNU*)
  4246. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4247. *)
  4248. ac_count=0
  4249. $as_echo_n 0123456789 >"conftest.in"
  4250. while :
  4251. do
  4252. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4253. mv "conftest.tmp" "conftest.in"
  4254. cp "conftest.in" "conftest.nl"
  4255. $as_echo '' >> "conftest.nl"
  4256. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4257. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4258. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4259. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4260. # Best one so far, save it but keep looking for a better one
  4261. ac_cv_path_SED="$ac_path_SED"
  4262. ac_path_SED_max=$ac_count
  4263. fi
  4264. # 10*(2^10) chars as input seems more than enough
  4265. test $ac_count -gt 10 && break
  4266. done
  4267. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4268. esac
  4269. $ac_path_SED_found && break 3
  4270. done
  4271. done
  4272. done
  4273. IFS=$as_save_IFS
  4274. if test -z "$ac_cv_path_SED"; then
  4275. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4276. fi
  4277. else
  4278. ac_cv_path_SED=$SED
  4279. fi
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4282. $as_echo "$ac_cv_path_SED" >&6; }
  4283. SED="$ac_cv_path_SED"
  4284. rm -f conftest.sed
  4285. test -z "$SED" && SED=sed
  4286. Xsed="$SED -e 1s/^X//"
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4288. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4289. if ${ac_cv_path_GREP+:} false; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. if test -z "$GREP"; then
  4293. ac_path_GREP_found=false
  4294. # Loop through the user's path and test for each of PROGNAME-LIST
  4295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4296. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4297. do
  4298. IFS=$as_save_IFS
  4299. test -z "$as_dir" && as_dir=.
  4300. for ac_prog in grep ggrep; do
  4301. for ac_exec_ext in '' $ac_executable_extensions; do
  4302. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4303. as_fn_executable_p "$ac_path_GREP" || continue
  4304. # Check for GNU ac_path_GREP and select it if it is found.
  4305. # Check for GNU $ac_path_GREP
  4306. case `"$ac_path_GREP" --version 2>&1` in
  4307. *GNU*)
  4308. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4309. *)
  4310. ac_count=0
  4311. $as_echo_n 0123456789 >"conftest.in"
  4312. while :
  4313. do
  4314. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4315. mv "conftest.tmp" "conftest.in"
  4316. cp "conftest.in" "conftest.nl"
  4317. $as_echo 'GREP' >> "conftest.nl"
  4318. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4319. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4320. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4321. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4322. # Best one so far, save it but keep looking for a better one
  4323. ac_cv_path_GREP="$ac_path_GREP"
  4324. ac_path_GREP_max=$ac_count
  4325. fi
  4326. # 10*(2^10) chars as input seems more than enough
  4327. test $ac_count -gt 10 && break
  4328. done
  4329. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4330. esac
  4331. $ac_path_GREP_found && break 3
  4332. done
  4333. done
  4334. done
  4335. IFS=$as_save_IFS
  4336. if test -z "$ac_cv_path_GREP"; then
  4337. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4338. fi
  4339. else
  4340. ac_cv_path_GREP=$GREP
  4341. fi
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4344. $as_echo "$ac_cv_path_GREP" >&6; }
  4345. GREP="$ac_cv_path_GREP"
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4347. $as_echo_n "checking for egrep... " >&6; }
  4348. if ${ac_cv_path_EGREP+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4352. then ac_cv_path_EGREP="$GREP -E"
  4353. else
  4354. if test -z "$EGREP"; then
  4355. ac_path_EGREP_found=false
  4356. # Loop through the user's path and test for each of PROGNAME-LIST
  4357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4358. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4359. do
  4360. IFS=$as_save_IFS
  4361. test -z "$as_dir" && as_dir=.
  4362. for ac_prog in egrep; do
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4365. as_fn_executable_p "$ac_path_EGREP" || continue
  4366. # Check for GNU ac_path_EGREP and select it if it is found.
  4367. # Check for GNU $ac_path_EGREP
  4368. case `"$ac_path_EGREP" --version 2>&1` in
  4369. *GNU*)
  4370. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4371. *)
  4372. ac_count=0
  4373. $as_echo_n 0123456789 >"conftest.in"
  4374. while :
  4375. do
  4376. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4377. mv "conftest.tmp" "conftest.in"
  4378. cp "conftest.in" "conftest.nl"
  4379. $as_echo 'EGREP' >> "conftest.nl"
  4380. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4381. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4382. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4383. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4384. # Best one so far, save it but keep looking for a better one
  4385. ac_cv_path_EGREP="$ac_path_EGREP"
  4386. ac_path_EGREP_max=$ac_count
  4387. fi
  4388. # 10*(2^10) chars as input seems more than enough
  4389. test $ac_count -gt 10 && break
  4390. done
  4391. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4392. esac
  4393. $ac_path_EGREP_found && break 3
  4394. done
  4395. done
  4396. done
  4397. IFS=$as_save_IFS
  4398. if test -z "$ac_cv_path_EGREP"; then
  4399. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4400. fi
  4401. else
  4402. ac_cv_path_EGREP=$EGREP
  4403. fi
  4404. fi
  4405. fi
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4407. $as_echo "$ac_cv_path_EGREP" >&6; }
  4408. EGREP="$ac_cv_path_EGREP"
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4410. $as_echo_n "checking for fgrep... " >&6; }
  4411. if ${ac_cv_path_FGREP+:} false; then :
  4412. $as_echo_n "(cached) " >&6
  4413. else
  4414. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4415. then ac_cv_path_FGREP="$GREP -F"
  4416. else
  4417. if test -z "$FGREP"; then
  4418. ac_path_FGREP_found=false
  4419. # Loop through the user's path and test for each of PROGNAME-LIST
  4420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4421. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4422. do
  4423. IFS=$as_save_IFS
  4424. test -z "$as_dir" && as_dir=.
  4425. for ac_prog in fgrep; do
  4426. for ac_exec_ext in '' $ac_executable_extensions; do
  4427. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4428. as_fn_executable_p "$ac_path_FGREP" || continue
  4429. # Check for GNU ac_path_FGREP and select it if it is found.
  4430. # Check for GNU $ac_path_FGREP
  4431. case `"$ac_path_FGREP" --version 2>&1` in
  4432. *GNU*)
  4433. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4434. *)
  4435. ac_count=0
  4436. $as_echo_n 0123456789 >"conftest.in"
  4437. while :
  4438. do
  4439. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4440. mv "conftest.tmp" "conftest.in"
  4441. cp "conftest.in" "conftest.nl"
  4442. $as_echo 'FGREP' >> "conftest.nl"
  4443. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4444. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4445. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4446. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4447. # Best one so far, save it but keep looking for a better one
  4448. ac_cv_path_FGREP="$ac_path_FGREP"
  4449. ac_path_FGREP_max=$ac_count
  4450. fi
  4451. # 10*(2^10) chars as input seems more than enough
  4452. test $ac_count -gt 10 && break
  4453. done
  4454. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4455. esac
  4456. $ac_path_FGREP_found && break 3
  4457. done
  4458. done
  4459. done
  4460. IFS=$as_save_IFS
  4461. if test -z "$ac_cv_path_FGREP"; then
  4462. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4463. fi
  4464. else
  4465. ac_cv_path_FGREP=$FGREP
  4466. fi
  4467. fi
  4468. fi
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4470. $as_echo "$ac_cv_path_FGREP" >&6; }
  4471. FGREP="$ac_cv_path_FGREP"
  4472. test -z "$GREP" && GREP=grep
  4473. # Check whether --with-gnu-ld was given.
  4474. if test "${with_gnu_ld+set}" = set; then :
  4475. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4476. else
  4477. with_gnu_ld=no
  4478. fi
  4479. ac_prog=ld
  4480. if test "$GCC" = yes; then
  4481. # Check if gcc -print-prog-name=ld gives a path.
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4483. $as_echo_n "checking for ld used by $CC... " >&6; }
  4484. case $host in
  4485. *-*-mingw*)
  4486. # gcc leaves a trailing carriage return which upsets mingw
  4487. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4488. *)
  4489. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4490. esac
  4491. case $ac_prog in
  4492. # Accept absolute paths.
  4493. [\\/]* | ?:[\\/]*)
  4494. re_direlt='/[^/][^/]*/\.\./'
  4495. # Canonicalize the pathname of ld
  4496. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4497. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4498. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4499. done
  4500. test -z "$LD" && LD="$ac_prog"
  4501. ;;
  4502. "")
  4503. # If it fails, then pretend we aren't using GCC.
  4504. ac_prog=ld
  4505. ;;
  4506. *)
  4507. # If it is relative, then search for the first ld in PATH.
  4508. with_gnu_ld=unknown
  4509. ;;
  4510. esac
  4511. elif test "$with_gnu_ld" = yes; then
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4513. $as_echo_n "checking for GNU ld... " >&6; }
  4514. else
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4516. $as_echo_n "checking for non-GNU ld... " >&6; }
  4517. fi
  4518. if ${lt_cv_path_LD+:} false; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. if test -z "$LD"; then
  4522. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4523. for ac_dir in $PATH; do
  4524. IFS="$lt_save_ifs"
  4525. test -z "$ac_dir" && ac_dir=.
  4526. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4527. lt_cv_path_LD="$ac_dir/$ac_prog"
  4528. # Check to see if the program is GNU ld. I'd rather use --version,
  4529. # but apparently some variants of GNU ld only accept -v.
  4530. # Break only if it was the GNU/non-GNU ld that we prefer.
  4531. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4532. *GNU* | *'with BFD'*)
  4533. test "$with_gnu_ld" != no && break
  4534. ;;
  4535. *)
  4536. test "$with_gnu_ld" != yes && break
  4537. ;;
  4538. esac
  4539. fi
  4540. done
  4541. IFS="$lt_save_ifs"
  4542. else
  4543. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4544. fi
  4545. fi
  4546. LD="$lt_cv_path_LD"
  4547. if test -n "$LD"; then
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4549. $as_echo "$LD" >&6; }
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4552. $as_echo "no" >&6; }
  4553. fi
  4554. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4556. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4557. if ${lt_cv_prog_gnu_ld+:} false; then :
  4558. $as_echo_n "(cached) " >&6
  4559. else
  4560. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4561. case `$LD -v 2>&1 </dev/null` in
  4562. *GNU* | *'with BFD'*)
  4563. lt_cv_prog_gnu_ld=yes
  4564. ;;
  4565. *)
  4566. lt_cv_prog_gnu_ld=no
  4567. ;;
  4568. esac
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4571. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4572. with_gnu_ld=$lt_cv_prog_gnu_ld
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4574. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4575. if ${lt_cv_path_NM+:} false; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. if test -n "$NM"; then
  4579. # Let the user override the test.
  4580. lt_cv_path_NM="$NM"
  4581. else
  4582. lt_nm_to_check="${ac_tool_prefix}nm"
  4583. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4584. lt_nm_to_check="$lt_nm_to_check nm"
  4585. fi
  4586. for lt_tmp_nm in $lt_nm_to_check; do
  4587. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4588. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4589. IFS="$lt_save_ifs"
  4590. test -z "$ac_dir" && ac_dir=.
  4591. tmp_nm="$ac_dir/$lt_tmp_nm"
  4592. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4593. # Check to see if the nm accepts a BSD-compat flag.
  4594. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4595. # nm: unknown option "B" ignored
  4596. # Tru64's nm complains that /dev/null is an invalid object file
  4597. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4598. */dev/null* | *'Invalid file or object type'*)
  4599. lt_cv_path_NM="$tmp_nm -B"
  4600. break
  4601. ;;
  4602. *)
  4603. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4604. */dev/null*)
  4605. lt_cv_path_NM="$tmp_nm -p"
  4606. break
  4607. ;;
  4608. *)
  4609. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4610. continue # so that we can try to find one that supports BSD flags
  4611. ;;
  4612. esac
  4613. ;;
  4614. esac
  4615. fi
  4616. done
  4617. IFS="$lt_save_ifs"
  4618. done
  4619. : ${lt_cv_path_NM=no}
  4620. fi
  4621. fi
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4623. $as_echo "$lt_cv_path_NM" >&6; }
  4624. if test "$lt_cv_path_NM" != "no"; then
  4625. NM="$lt_cv_path_NM"
  4626. else
  4627. # Didn't find any BSD compatible name lister, look for dumpbin.
  4628. if test -n "$DUMPBIN"; then :
  4629. # Let the user override the test.
  4630. else
  4631. if test -n "$ac_tool_prefix"; then
  4632. for ac_prog in dumpbin "link -dump"
  4633. do
  4634. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4635. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$DUMPBIN"; then
  4642. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4651. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. DUMPBIN=$ac_cv_prog_DUMPBIN
  4661. if test -n "$DUMPBIN"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4663. $as_echo "$DUMPBIN" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. test -n "$DUMPBIN" && break
  4669. done
  4670. fi
  4671. if test -z "$DUMPBIN"; then
  4672. ac_ct_DUMPBIN=$DUMPBIN
  4673. for ac_prog in dumpbin "link -dump"
  4674. do
  4675. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4676. set dummy $ac_prog; ac_word=$2
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4678. $as_echo_n "checking for $ac_word... " >&6; }
  4679. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. if test -n "$ac_ct_DUMPBIN"; then
  4683. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4684. else
  4685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4686. for as_dir in $PATH
  4687. do
  4688. IFS=$as_save_IFS
  4689. test -z "$as_dir" && as_dir=.
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4692. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4694. break 2
  4695. fi
  4696. done
  4697. done
  4698. IFS=$as_save_IFS
  4699. fi
  4700. fi
  4701. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4702. if test -n "$ac_ct_DUMPBIN"; then
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4704. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4705. else
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4707. $as_echo "no" >&6; }
  4708. fi
  4709. test -n "$ac_ct_DUMPBIN" && break
  4710. done
  4711. if test "x$ac_ct_DUMPBIN" = x; then
  4712. DUMPBIN=":"
  4713. else
  4714. case $cross_compiling:$ac_tool_warned in
  4715. yes:)
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4718. ac_tool_warned=yes ;;
  4719. esac
  4720. DUMPBIN=$ac_ct_DUMPBIN
  4721. fi
  4722. fi
  4723. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4724. *COFF*)
  4725. DUMPBIN="$DUMPBIN -symbols"
  4726. ;;
  4727. *)
  4728. DUMPBIN=:
  4729. ;;
  4730. esac
  4731. fi
  4732. if test "$DUMPBIN" != ":"; then
  4733. NM="$DUMPBIN"
  4734. fi
  4735. fi
  4736. test -z "$NM" && NM=nm
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4738. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4739. if ${lt_cv_nm_interface+:} false; then :
  4740. $as_echo_n "(cached) " >&6
  4741. else
  4742. lt_cv_nm_interface="BSD nm"
  4743. echo "int some_variable = 0;" > conftest.$ac_ext
  4744. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4745. (eval "$ac_compile" 2>conftest.err)
  4746. cat conftest.err >&5
  4747. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4748. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4749. cat conftest.err >&5
  4750. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4751. cat conftest.out >&5
  4752. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4753. lt_cv_nm_interface="MS dumpbin"
  4754. fi
  4755. rm -f conftest*
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4758. $as_echo "$lt_cv_nm_interface" >&6; }
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4760. $as_echo_n "checking whether ln -s works... " >&6; }
  4761. LN_S=$as_ln_s
  4762. if test "$LN_S" = "ln -s"; then
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4764. $as_echo "yes" >&6; }
  4765. else
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4767. $as_echo "no, using $LN_S" >&6; }
  4768. fi
  4769. # find the maximum length of command line arguments
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4771. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4772. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4773. $as_echo_n "(cached) " >&6
  4774. else
  4775. i=0
  4776. teststring="ABCD"
  4777. case $build_os in
  4778. msdosdjgpp*)
  4779. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4780. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4781. # during glob expansion). Even if it were fixed, the result of this
  4782. # check would be larger than it should be.
  4783. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4784. ;;
  4785. gnu*)
  4786. # Under GNU Hurd, this test is not required because there is
  4787. # no limit to the length of command line arguments.
  4788. # Libtool will interpret -1 as no limit whatsoever
  4789. lt_cv_sys_max_cmd_len=-1;
  4790. ;;
  4791. cygwin* | mingw* | cegcc*)
  4792. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4793. # about 5 minutes as the teststring grows exponentially.
  4794. # Worse, since 9x/ME are not pre-emptively multitasking,
  4795. # you end up with a "frozen" computer, even though with patience
  4796. # the test eventually succeeds (with a max line length of 256k).
  4797. # Instead, let's just punt: use the minimum linelength reported by
  4798. # all of the supported platforms: 8192 (on NT/2K/XP).
  4799. lt_cv_sys_max_cmd_len=8192;
  4800. ;;
  4801. mint*)
  4802. # On MiNT this can take a long time and run out of memory.
  4803. lt_cv_sys_max_cmd_len=8192;
  4804. ;;
  4805. amigaos*)
  4806. # On AmigaOS with pdksh, this test takes hours, literally.
  4807. # So we just punt and use a minimum line length of 8192.
  4808. lt_cv_sys_max_cmd_len=8192;
  4809. ;;
  4810. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4811. # This has been around since 386BSD, at least. Likely further.
  4812. if test -x /sbin/sysctl; then
  4813. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4814. elif test -x /usr/sbin/sysctl; then
  4815. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4816. else
  4817. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4818. fi
  4819. # And add a safety zone
  4820. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4821. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4822. ;;
  4823. interix*)
  4824. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4825. lt_cv_sys_max_cmd_len=196608
  4826. ;;
  4827. osf*)
  4828. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4829. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4830. # nice to cause kernel panics so lets avoid the loop below.
  4831. # First set a reasonable default.
  4832. lt_cv_sys_max_cmd_len=16384
  4833. #
  4834. if test -x /sbin/sysconfig; then
  4835. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4836. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4837. esac
  4838. fi
  4839. ;;
  4840. sco3.2v5*)
  4841. lt_cv_sys_max_cmd_len=102400
  4842. ;;
  4843. sysv5* | sco5v6* | sysv4.2uw2*)
  4844. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4845. if test -n "$kargmax"; then
  4846. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4847. else
  4848. lt_cv_sys_max_cmd_len=32768
  4849. fi
  4850. ;;
  4851. *)
  4852. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4853. if test -n "$lt_cv_sys_max_cmd_len"; then
  4854. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4855. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4856. else
  4857. # Make teststring a little bigger before we do anything with it.
  4858. # a 1K string should be a reasonable start.
  4859. for i in 1 2 3 4 5 6 7 8 ; do
  4860. teststring=$teststring$teststring
  4861. done
  4862. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4863. # If test is not a shell built-in, we'll probably end up computing a
  4864. # maximum length that is only half of the actual maximum length, but
  4865. # we can't tell.
  4866. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4867. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4868. test $i != 17 # 1/2 MB should be enough
  4869. do
  4870. i=`expr $i + 1`
  4871. teststring=$teststring$teststring
  4872. done
  4873. # Only check the string length outside the loop.
  4874. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4875. teststring=
  4876. # Add a significant safety factor because C++ compilers can tack on
  4877. # massive amounts of additional arguments before passing them to the
  4878. # linker. It appears as though 1/2 is a usable value.
  4879. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4880. fi
  4881. ;;
  4882. esac
  4883. fi
  4884. if test -n $lt_cv_sys_max_cmd_len ; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4886. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4889. $as_echo "none" >&6; }
  4890. fi
  4891. max_cmd_len=$lt_cv_sys_max_cmd_len
  4892. : ${CP="cp -f"}
  4893. : ${MV="mv -f"}
  4894. : ${RM="rm -f"}
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4896. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4897. # Try some XSI features
  4898. xsi_shell=no
  4899. ( _lt_dummy="a/b/c"
  4900. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4901. = c,a/b,, \
  4902. && eval 'test $(( 1 + 1 )) -eq 2 \
  4903. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4904. && xsi_shell=yes
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4906. $as_echo "$xsi_shell" >&6; }
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4908. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4909. lt_shell_append=no
  4910. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4911. >/dev/null 2>&1 \
  4912. && lt_shell_append=yes
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4914. $as_echo "$lt_shell_append" >&6; }
  4915. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4916. lt_unset=unset
  4917. else
  4918. lt_unset=false
  4919. fi
  4920. # test EBCDIC or ASCII
  4921. case `echo X|tr X '\101'` in
  4922. A) # ASCII based system
  4923. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4924. lt_SP2NL='tr \040 \012'
  4925. lt_NL2SP='tr \015\012 \040\040'
  4926. ;;
  4927. *) # EBCDIC based system
  4928. lt_SP2NL='tr \100 \n'
  4929. lt_NL2SP='tr \r\n \100\100'
  4930. ;;
  4931. esac
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4933. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4934. if ${lt_cv_ld_reload_flag+:} false; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. lt_cv_ld_reload_flag='-r'
  4938. fi
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4940. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4941. reload_flag=$lt_cv_ld_reload_flag
  4942. case $reload_flag in
  4943. "" | " "*) ;;
  4944. *) reload_flag=" $reload_flag" ;;
  4945. esac
  4946. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4947. case $host_os in
  4948. darwin*)
  4949. if test "$GCC" = yes; then
  4950. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4951. else
  4952. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4953. fi
  4954. ;;
  4955. esac
  4956. if test -n "$ac_tool_prefix"; then
  4957. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4958. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4960. $as_echo_n "checking for $ac_word... " >&6; }
  4961. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4962. $as_echo_n "(cached) " >&6
  4963. else
  4964. if test -n "$OBJDUMP"; then
  4965. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4966. else
  4967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4968. for as_dir in $PATH
  4969. do
  4970. IFS=$as_save_IFS
  4971. test -z "$as_dir" && as_dir=.
  4972. for ac_exec_ext in '' $ac_executable_extensions; do
  4973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4974. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4976. break 2
  4977. fi
  4978. done
  4979. done
  4980. IFS=$as_save_IFS
  4981. fi
  4982. fi
  4983. OBJDUMP=$ac_cv_prog_OBJDUMP
  4984. if test -n "$OBJDUMP"; then
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4986. $as_echo "$OBJDUMP" >&6; }
  4987. else
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4989. $as_echo "no" >&6; }
  4990. fi
  4991. fi
  4992. if test -z "$ac_cv_prog_OBJDUMP"; then
  4993. ac_ct_OBJDUMP=$OBJDUMP
  4994. # Extract the first word of "objdump", so it can be a program name with args.
  4995. set dummy objdump; ac_word=$2
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4997. $as_echo_n "checking for $ac_word... " >&6; }
  4998. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. if test -n "$ac_ct_OBJDUMP"; then
  5002. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5003. else
  5004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005. for as_dir in $PATH
  5006. do
  5007. IFS=$as_save_IFS
  5008. test -z "$as_dir" && as_dir=.
  5009. for ac_exec_ext in '' $ac_executable_extensions; do
  5010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5011. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5013. break 2
  5014. fi
  5015. done
  5016. done
  5017. IFS=$as_save_IFS
  5018. fi
  5019. fi
  5020. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5021. if test -n "$ac_ct_OBJDUMP"; then
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5023. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5024. else
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5026. $as_echo "no" >&6; }
  5027. fi
  5028. if test "x$ac_ct_OBJDUMP" = x; then
  5029. OBJDUMP="false"
  5030. else
  5031. case $cross_compiling:$ac_tool_warned in
  5032. yes:)
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5035. ac_tool_warned=yes ;;
  5036. esac
  5037. OBJDUMP=$ac_ct_OBJDUMP
  5038. fi
  5039. else
  5040. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5041. fi
  5042. test -z "$OBJDUMP" && OBJDUMP=objdump
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5044. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5045. if ${lt_cv_deplibs_check_method+:} false; then :
  5046. $as_echo_n "(cached) " >&6
  5047. else
  5048. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5049. lt_cv_file_magic_test_file=
  5050. lt_cv_deplibs_check_method='unknown'
  5051. # Need to set the preceding variable on all platforms that support
  5052. # interlibrary dependencies.
  5053. # 'none' -- dependencies not supported.
  5054. # `unknown' -- same as none, but documents that we really don't know.
  5055. # 'pass_all' -- all dependencies passed with no checks.
  5056. # 'test_compile' -- check by making test program.
  5057. # 'file_magic [[regex]]' -- check by looking for files in library path
  5058. # which responds to the $file_magic_cmd with a given extended regex.
  5059. # If you have `file' or equivalent on your system and you're not sure
  5060. # whether `pass_all' will *always* work, you probably want this one.
  5061. case $host_os in
  5062. aix[4-9]*)
  5063. lt_cv_deplibs_check_method=pass_all
  5064. ;;
  5065. beos*)
  5066. lt_cv_deplibs_check_method=pass_all
  5067. ;;
  5068. bsdi[45]*)
  5069. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5070. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5071. lt_cv_file_magic_test_file=/shlib/libc.so
  5072. ;;
  5073. cygwin*)
  5074. # func_win32_libid is a shell function defined in ltmain.sh
  5075. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5076. lt_cv_file_magic_cmd='func_win32_libid'
  5077. ;;
  5078. mingw* | pw32*)
  5079. # Base MSYS/MinGW do not provide the 'file' command needed by
  5080. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5081. # unless we find 'file', for example because we are cross-compiling.
  5082. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5083. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5084. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5085. lt_cv_file_magic_cmd='func_win32_libid'
  5086. else
  5087. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5088. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5089. fi
  5090. ;;
  5091. cegcc*)
  5092. # use the weaker test based on 'objdump'. See mingw*.
  5093. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5094. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5095. ;;
  5096. darwin* | rhapsody*)
  5097. lt_cv_deplibs_check_method=pass_all
  5098. ;;
  5099. freebsd* | dragonfly*)
  5100. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5101. case $host_cpu in
  5102. i*86 )
  5103. # Not sure whether the presence of OpenBSD here was a mistake.
  5104. # Let's accept both of them until this is cleared up.
  5105. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5106. lt_cv_file_magic_cmd=/usr/bin/file
  5107. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5108. ;;
  5109. esac
  5110. else
  5111. lt_cv_deplibs_check_method=pass_all
  5112. fi
  5113. ;;
  5114. gnu*)
  5115. lt_cv_deplibs_check_method=pass_all
  5116. ;;
  5117. haiku*)
  5118. lt_cv_deplibs_check_method=pass_all
  5119. ;;
  5120. hpux10.20* | hpux11*)
  5121. lt_cv_file_magic_cmd=/usr/bin/file
  5122. case $host_cpu in
  5123. ia64*)
  5124. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5125. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5126. ;;
  5127. hppa*64*)
  5128. 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]'
  5129. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5130. ;;
  5131. *)
  5132. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5133. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5134. ;;
  5135. esac
  5136. ;;
  5137. interix[3-9]*)
  5138. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5139. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5140. ;;
  5141. irix5* | irix6* | nonstopux*)
  5142. case $LD in
  5143. *-32|*"-32 ") libmagic=32-bit;;
  5144. *-n32|*"-n32 ") libmagic=N32;;
  5145. *-64|*"-64 ") libmagic=64-bit;;
  5146. *) libmagic=never-match;;
  5147. esac
  5148. lt_cv_deplibs_check_method=pass_all
  5149. ;;
  5150. # This must be Linux ELF.
  5151. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5152. lt_cv_deplibs_check_method=pass_all
  5153. ;;
  5154. netbsd*)
  5155. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5156. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5157. else
  5158. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5159. fi
  5160. ;;
  5161. newos6*)
  5162. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5163. lt_cv_file_magic_cmd=/usr/bin/file
  5164. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5165. ;;
  5166. *nto* | *qnx*)
  5167. lt_cv_deplibs_check_method=pass_all
  5168. ;;
  5169. openbsd*)
  5170. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5171. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5172. else
  5173. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5174. fi
  5175. ;;
  5176. osf3* | osf4* | osf5*)
  5177. lt_cv_deplibs_check_method=pass_all
  5178. ;;
  5179. rdos*)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. solaris*)
  5183. lt_cv_deplibs_check_method=pass_all
  5184. ;;
  5185. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5186. lt_cv_deplibs_check_method=pass_all
  5187. ;;
  5188. sysv4 | sysv4.3*)
  5189. case $host_vendor in
  5190. motorola)
  5191. 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]'
  5192. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5193. ;;
  5194. ncr)
  5195. lt_cv_deplibs_check_method=pass_all
  5196. ;;
  5197. sequent)
  5198. lt_cv_file_magic_cmd='/bin/file'
  5199. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5200. ;;
  5201. sni)
  5202. lt_cv_file_magic_cmd='/bin/file'
  5203. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5204. lt_cv_file_magic_test_file=/lib/libc.so
  5205. ;;
  5206. siemens)
  5207. lt_cv_deplibs_check_method=pass_all
  5208. ;;
  5209. pc)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. esac
  5213. ;;
  5214. tpf*)
  5215. lt_cv_deplibs_check_method=pass_all
  5216. ;;
  5217. esac
  5218. fi
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5220. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5221. file_magic_cmd=$lt_cv_file_magic_cmd
  5222. deplibs_check_method=$lt_cv_deplibs_check_method
  5223. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5224. if test -n "$ac_tool_prefix"; then
  5225. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5226. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5228. $as_echo_n "checking for $ac_word... " >&6; }
  5229. if ${ac_cv_prog_AR+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. if test -n "$AR"; then
  5233. ac_cv_prog_AR="$AR" # Let the user override the test.
  5234. else
  5235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5236. for as_dir in $PATH
  5237. do
  5238. IFS=$as_save_IFS
  5239. test -z "$as_dir" && as_dir=.
  5240. for ac_exec_ext in '' $ac_executable_extensions; do
  5241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5242. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5244. break 2
  5245. fi
  5246. done
  5247. done
  5248. IFS=$as_save_IFS
  5249. fi
  5250. fi
  5251. AR=$ac_cv_prog_AR
  5252. if test -n "$AR"; then
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5254. $as_echo "$AR" >&6; }
  5255. else
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5257. $as_echo "no" >&6; }
  5258. fi
  5259. fi
  5260. if test -z "$ac_cv_prog_AR"; then
  5261. ac_ct_AR=$AR
  5262. # Extract the first word of "ar", so it can be a program name with args.
  5263. set dummy ar; ac_word=$2
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5265. $as_echo_n "checking for $ac_word... " >&6; }
  5266. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. if test -n "$ac_ct_AR"; then
  5270. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5271. else
  5272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5273. for as_dir in $PATH
  5274. do
  5275. IFS=$as_save_IFS
  5276. test -z "$as_dir" && as_dir=.
  5277. for ac_exec_ext in '' $ac_executable_extensions; do
  5278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5279. ac_cv_prog_ac_ct_AR="ar"
  5280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5281. break 2
  5282. fi
  5283. done
  5284. done
  5285. IFS=$as_save_IFS
  5286. fi
  5287. fi
  5288. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5289. if test -n "$ac_ct_AR"; then
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5291. $as_echo "$ac_ct_AR" >&6; }
  5292. else
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5294. $as_echo "no" >&6; }
  5295. fi
  5296. if test "x$ac_ct_AR" = x; then
  5297. AR="false"
  5298. else
  5299. case $cross_compiling:$ac_tool_warned in
  5300. yes:)
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5303. ac_tool_warned=yes ;;
  5304. esac
  5305. AR=$ac_ct_AR
  5306. fi
  5307. else
  5308. AR="$ac_cv_prog_AR"
  5309. fi
  5310. test -z "$AR" && AR=ar
  5311. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5312. if test -n "$ac_tool_prefix"; then
  5313. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5314. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5316. $as_echo_n "checking for $ac_word... " >&6; }
  5317. if ${ac_cv_prog_STRIP+:} false; then :
  5318. $as_echo_n "(cached) " >&6
  5319. else
  5320. if test -n "$STRIP"; then
  5321. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5322. else
  5323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5324. for as_dir in $PATH
  5325. do
  5326. IFS=$as_save_IFS
  5327. test -z "$as_dir" && as_dir=.
  5328. for ac_exec_ext in '' $ac_executable_extensions; do
  5329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5330. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5332. break 2
  5333. fi
  5334. done
  5335. done
  5336. IFS=$as_save_IFS
  5337. fi
  5338. fi
  5339. STRIP=$ac_cv_prog_STRIP
  5340. if test -n "$STRIP"; then
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5342. $as_echo "$STRIP" >&6; }
  5343. else
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5345. $as_echo "no" >&6; }
  5346. fi
  5347. fi
  5348. if test -z "$ac_cv_prog_STRIP"; then
  5349. ac_ct_STRIP=$STRIP
  5350. # Extract the first word of "strip", so it can be a program name with args.
  5351. set dummy strip; ac_word=$2
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5353. $as_echo_n "checking for $ac_word... " >&6; }
  5354. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. if test -n "$ac_ct_STRIP"; then
  5358. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5359. else
  5360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5361. for as_dir in $PATH
  5362. do
  5363. IFS=$as_save_IFS
  5364. test -z "$as_dir" && as_dir=.
  5365. for ac_exec_ext in '' $ac_executable_extensions; do
  5366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5367. ac_cv_prog_ac_ct_STRIP="strip"
  5368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5369. break 2
  5370. fi
  5371. done
  5372. done
  5373. IFS=$as_save_IFS
  5374. fi
  5375. fi
  5376. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5377. if test -n "$ac_ct_STRIP"; then
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5379. $as_echo "$ac_ct_STRIP" >&6; }
  5380. else
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5382. $as_echo "no" >&6; }
  5383. fi
  5384. if test "x$ac_ct_STRIP" = x; then
  5385. STRIP=":"
  5386. else
  5387. case $cross_compiling:$ac_tool_warned in
  5388. yes:)
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5390. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5391. ac_tool_warned=yes ;;
  5392. esac
  5393. STRIP=$ac_ct_STRIP
  5394. fi
  5395. else
  5396. STRIP="$ac_cv_prog_STRIP"
  5397. fi
  5398. test -z "$STRIP" && STRIP=:
  5399. if test -n "$ac_tool_prefix"; then
  5400. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5401. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5403. $as_echo_n "checking for $ac_word... " >&6; }
  5404. if ${ac_cv_prog_RANLIB+:} false; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. if test -n "$RANLIB"; then
  5408. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5409. else
  5410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5411. for as_dir in $PATH
  5412. do
  5413. IFS=$as_save_IFS
  5414. test -z "$as_dir" && as_dir=.
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5417. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5419. break 2
  5420. fi
  5421. done
  5422. done
  5423. IFS=$as_save_IFS
  5424. fi
  5425. fi
  5426. RANLIB=$ac_cv_prog_RANLIB
  5427. if test -n "$RANLIB"; then
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5429. $as_echo "$RANLIB" >&6; }
  5430. else
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5432. $as_echo "no" >&6; }
  5433. fi
  5434. fi
  5435. if test -z "$ac_cv_prog_RANLIB"; then
  5436. ac_ct_RANLIB=$RANLIB
  5437. # Extract the first word of "ranlib", so it can be a program name with args.
  5438. set dummy ranlib; ac_word=$2
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5440. $as_echo_n "checking for $ac_word... " >&6; }
  5441. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5442. $as_echo_n "(cached) " >&6
  5443. else
  5444. if test -n "$ac_ct_RANLIB"; then
  5445. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5446. else
  5447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5448. for as_dir in $PATH
  5449. do
  5450. IFS=$as_save_IFS
  5451. test -z "$as_dir" && as_dir=.
  5452. for ac_exec_ext in '' $ac_executable_extensions; do
  5453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5454. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5456. break 2
  5457. fi
  5458. done
  5459. done
  5460. IFS=$as_save_IFS
  5461. fi
  5462. fi
  5463. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5464. if test -n "$ac_ct_RANLIB"; then
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5466. $as_echo "$ac_ct_RANLIB" >&6; }
  5467. else
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5469. $as_echo "no" >&6; }
  5470. fi
  5471. if test "x$ac_ct_RANLIB" = x; then
  5472. RANLIB=":"
  5473. else
  5474. case $cross_compiling:$ac_tool_warned in
  5475. yes:)
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5478. ac_tool_warned=yes ;;
  5479. esac
  5480. RANLIB=$ac_ct_RANLIB
  5481. fi
  5482. else
  5483. RANLIB="$ac_cv_prog_RANLIB"
  5484. fi
  5485. test -z "$RANLIB" && RANLIB=:
  5486. # Determine commands to create old-style static archives.
  5487. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5488. old_postinstall_cmds='chmod 644 $oldlib'
  5489. old_postuninstall_cmds=
  5490. if test -n "$RANLIB"; then
  5491. case $host_os in
  5492. openbsd*)
  5493. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5494. ;;
  5495. *)
  5496. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5497. ;;
  5498. esac
  5499. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5500. fi
  5501. case $host_os in
  5502. darwin*)
  5503. lock_old_archive_extraction=yes ;;
  5504. *)
  5505. lock_old_archive_extraction=no ;;
  5506. esac
  5507. # If no C compiler was specified, use CC.
  5508. LTCC=${LTCC-"$CC"}
  5509. # If no C compiler flags were specified, use CFLAGS.
  5510. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5511. # Allow CC to be a program name with arguments.
  5512. compiler=$CC
  5513. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5515. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5516. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. # These are sane defaults that work on at least a few old systems.
  5520. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5521. # Character class describing NM global symbol codes.
  5522. symcode='[BCDEGRST]'
  5523. # Regexp to match symbols that can be accessed directly from C.
  5524. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5525. # Define system-specific variables.
  5526. case $host_os in
  5527. aix*)
  5528. symcode='[BCDT]'
  5529. ;;
  5530. cygwin* | mingw* | pw32* | cegcc*)
  5531. symcode='[ABCDGISTW]'
  5532. ;;
  5533. hpux*)
  5534. if test "$host_cpu" = ia64; then
  5535. symcode='[ABCDEGRST]'
  5536. fi
  5537. ;;
  5538. irix* | nonstopux*)
  5539. symcode='[BCDEGRST]'
  5540. ;;
  5541. osf*)
  5542. symcode='[BCDEGQRST]'
  5543. ;;
  5544. solaris*)
  5545. symcode='[BDRT]'
  5546. ;;
  5547. sco3.2v5*)
  5548. symcode='[DT]'
  5549. ;;
  5550. sysv4.2uw2*)
  5551. symcode='[DT]'
  5552. ;;
  5553. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5554. symcode='[ABDT]'
  5555. ;;
  5556. sysv4)
  5557. symcode='[DFNSTU]'
  5558. ;;
  5559. esac
  5560. # If we're using GNU nm, then use its standard symbol codes.
  5561. case `$NM -V 2>&1` in
  5562. *GNU* | *'with BFD'*)
  5563. symcode='[ABCDGIRSTW]' ;;
  5564. esac
  5565. # Transform an extracted symbol line into a proper C declaration.
  5566. # Some systems (esp. on ia64) link data and code symbols differently,
  5567. # so use this general approach.
  5568. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5569. # Transform an extracted symbol line into symbol name and symbol address
  5570. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5571. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5572. # Handle CRLF in mingw tool chain
  5573. opt_cr=
  5574. case $build_os in
  5575. mingw*)
  5576. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5577. ;;
  5578. esac
  5579. # Try without a prefix underscore, then with it.
  5580. for ac_symprfx in "" "_"; do
  5581. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5582. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5583. # Write the raw and C identifiers.
  5584. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5585. # Fake it for dumpbin and say T for any non-static function
  5586. # and D for any global variable.
  5587. # Also find C++ and __fastcall symbols from MSVC++,
  5588. # which start with @ or ?.
  5589. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5590. " {last_section=section; section=\$ 3};"\
  5591. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5592. " \$ 0!~/External *\|/{next};"\
  5593. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5594. " {if(hide[section]) next};"\
  5595. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5596. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5597. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5598. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5599. " ' prfx=^$ac_symprfx"
  5600. else
  5601. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5602. fi
  5603. # Check to see that the pipe works correctly.
  5604. pipe_works=no
  5605. rm -f conftest*
  5606. cat > conftest.$ac_ext <<_LT_EOF
  5607. #ifdef __cplusplus
  5608. extern "C" {
  5609. #endif
  5610. char nm_test_var;
  5611. void nm_test_func(void);
  5612. void nm_test_func(void){}
  5613. #ifdef __cplusplus
  5614. }
  5615. #endif
  5616. int main(){nm_test_var='a';nm_test_func();return(0);}
  5617. _LT_EOF
  5618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5619. (eval $ac_compile) 2>&5
  5620. ac_status=$?
  5621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5622. test $ac_status = 0; }; then
  5623. # Now try to grab the symbols.
  5624. nlist=conftest.nm
  5625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5626. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5627. ac_status=$?
  5628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5629. test $ac_status = 0; } && test -s "$nlist"; then
  5630. # Try sorting and uniquifying the output.
  5631. if sort "$nlist" | uniq > "$nlist"T; then
  5632. mv -f "$nlist"T "$nlist"
  5633. else
  5634. rm -f "$nlist"T
  5635. fi
  5636. # Make sure that we snagged all the symbols we need.
  5637. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5638. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5639. cat <<_LT_EOF > conftest.$ac_ext
  5640. #ifdef __cplusplus
  5641. extern "C" {
  5642. #endif
  5643. _LT_EOF
  5644. # Now generate the symbol file.
  5645. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5646. cat <<_LT_EOF >> conftest.$ac_ext
  5647. /* The mapping between symbol names and symbols. */
  5648. const struct {
  5649. const char *name;
  5650. void *address;
  5651. }
  5652. lt__PROGRAM__LTX_preloaded_symbols[] =
  5653. {
  5654. { "@PROGRAM@", (void *) 0 },
  5655. _LT_EOF
  5656. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5657. cat <<\_LT_EOF >> conftest.$ac_ext
  5658. {0, (void *) 0}
  5659. };
  5660. /* This works around a problem in FreeBSD linker */
  5661. #ifdef FREEBSD_WORKAROUND
  5662. static const void *lt_preloaded_setup() {
  5663. return lt__PROGRAM__LTX_preloaded_symbols;
  5664. }
  5665. #endif
  5666. #ifdef __cplusplus
  5667. }
  5668. #endif
  5669. _LT_EOF
  5670. # Now try linking the two files.
  5671. mv conftest.$ac_objext conftstm.$ac_objext
  5672. lt_save_LIBS="$LIBS"
  5673. lt_save_CFLAGS="$CFLAGS"
  5674. LIBS="conftstm.$ac_objext"
  5675. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5677. (eval $ac_link) 2>&5
  5678. ac_status=$?
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5680. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5681. pipe_works=yes
  5682. fi
  5683. LIBS="$lt_save_LIBS"
  5684. CFLAGS="$lt_save_CFLAGS"
  5685. else
  5686. echo "cannot find nm_test_func in $nlist" >&5
  5687. fi
  5688. else
  5689. echo "cannot find nm_test_var in $nlist" >&5
  5690. fi
  5691. else
  5692. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5693. fi
  5694. else
  5695. echo "$progname: failed program was:" >&5
  5696. cat conftest.$ac_ext >&5
  5697. fi
  5698. rm -rf conftest* conftst*
  5699. # Do not use the global_symbol_pipe unless it works.
  5700. if test "$pipe_works" = yes; then
  5701. break
  5702. else
  5703. lt_cv_sys_global_symbol_pipe=
  5704. fi
  5705. done
  5706. fi
  5707. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5708. lt_cv_sys_global_symbol_to_cdecl=
  5709. fi
  5710. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5712. $as_echo "failed" >&6; }
  5713. else
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5715. $as_echo "ok" >&6; }
  5716. fi
  5717. # Check whether --enable-libtool-lock was given.
  5718. if test "${enable_libtool_lock+set}" = set; then :
  5719. enableval=$enable_libtool_lock;
  5720. fi
  5721. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5722. # Some flags need to be propagated to the compiler or linker for good
  5723. # libtool support.
  5724. case $host in
  5725. ia64-*-hpux*)
  5726. # Find out which ABI we are using.
  5727. echo 'int i;' > conftest.$ac_ext
  5728. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5729. (eval $ac_compile) 2>&5
  5730. ac_status=$?
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5732. test $ac_status = 0; }; then
  5733. case `/usr/bin/file conftest.$ac_objext` in
  5734. *ELF-32*)
  5735. HPUX_IA64_MODE="32"
  5736. ;;
  5737. *ELF-64*)
  5738. HPUX_IA64_MODE="64"
  5739. ;;
  5740. esac
  5741. fi
  5742. rm -rf conftest*
  5743. ;;
  5744. *-*-irix6*)
  5745. # Find out which ABI we are using.
  5746. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5747. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5748. (eval $ac_compile) 2>&5
  5749. ac_status=$?
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5751. test $ac_status = 0; }; then
  5752. if test "$lt_cv_prog_gnu_ld" = yes; then
  5753. case `/usr/bin/file conftest.$ac_objext` in
  5754. *32-bit*)
  5755. LD="${LD-ld} -melf32bsmip"
  5756. ;;
  5757. *N32*)
  5758. LD="${LD-ld} -melf32bmipn32"
  5759. ;;
  5760. *64-bit*)
  5761. LD="${LD-ld} -melf64bmip"
  5762. ;;
  5763. esac
  5764. else
  5765. case `/usr/bin/file conftest.$ac_objext` in
  5766. *32-bit*)
  5767. LD="${LD-ld} -32"
  5768. ;;
  5769. *N32*)
  5770. LD="${LD-ld} -n32"
  5771. ;;
  5772. *64-bit*)
  5773. LD="${LD-ld} -64"
  5774. ;;
  5775. esac
  5776. fi
  5777. fi
  5778. rm -rf conftest*
  5779. ;;
  5780. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5781. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5782. # Find out which ABI we are using.
  5783. echo 'int i;' > conftest.$ac_ext
  5784. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5785. (eval $ac_compile) 2>&5
  5786. ac_status=$?
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5788. test $ac_status = 0; }; then
  5789. case `/usr/bin/file conftest.o` in
  5790. *32-bit*)
  5791. case $host in
  5792. x86_64-*kfreebsd*-gnu)
  5793. LD="${LD-ld} -m elf_i386_fbsd"
  5794. ;;
  5795. x86_64-*linux*)
  5796. case `/usr/bin/file conftest.o` in
  5797. *x86-64*)
  5798. LD="${LD-ld} -m elf32_x86_64"
  5799. ;;
  5800. *)
  5801. LD="${LD-ld} -m elf_i386"
  5802. ;;
  5803. esac
  5804. ;;
  5805. powerpc64le-*linux*)
  5806. LD="${LD-ld} -m elf32lppclinux"
  5807. ;;
  5808. powerpc64-*linux*)
  5809. LD="${LD-ld} -m elf32ppclinux"
  5810. ;;
  5811. s390x-*linux*)
  5812. LD="${LD-ld} -m elf_s390"
  5813. ;;
  5814. sparc64-*linux*)
  5815. LD="${LD-ld} -m elf32_sparc"
  5816. ;;
  5817. esac
  5818. ;;
  5819. *64-bit*)
  5820. case $host in
  5821. x86_64-*kfreebsd*-gnu)
  5822. LD="${LD-ld} -m elf_x86_64_fbsd"
  5823. ;;
  5824. x86_64-*linux*)
  5825. LD="${LD-ld} -m elf_x86_64"
  5826. ;;
  5827. powerpcle-*linux*)
  5828. LD="${LD-ld} -m elf64lppc"
  5829. ;;
  5830. powerpc-*linux*)
  5831. LD="${LD-ld} -m elf64ppc"
  5832. ;;
  5833. s390*-*linux*|s390*-*tpf*)
  5834. LD="${LD-ld} -m elf64_s390"
  5835. ;;
  5836. sparc*-*linux*)
  5837. LD="${LD-ld} -m elf64_sparc"
  5838. ;;
  5839. esac
  5840. ;;
  5841. esac
  5842. fi
  5843. rm -rf conftest*
  5844. ;;
  5845. *-*-sco3.2v5*)
  5846. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5847. SAVE_CFLAGS="$CFLAGS"
  5848. CFLAGS="$CFLAGS -belf"
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5850. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5851. if ${lt_cv_cc_needs_belf+:} false; then :
  5852. $as_echo_n "(cached) " >&6
  5853. else
  5854. ac_ext=c
  5855. ac_cpp='$CPP $CPPFLAGS'
  5856. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5857. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5858. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5860. /* end confdefs.h. */
  5861. int
  5862. main ()
  5863. {
  5864. ;
  5865. return 0;
  5866. }
  5867. _ACEOF
  5868. if ac_fn_c_try_link "$LINENO"; then :
  5869. lt_cv_cc_needs_belf=yes
  5870. else
  5871. lt_cv_cc_needs_belf=no
  5872. fi
  5873. rm -f core conftest.err conftest.$ac_objext \
  5874. conftest$ac_exeext conftest.$ac_ext
  5875. ac_ext=c
  5876. ac_cpp='$CPP $CPPFLAGS'
  5877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5882. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5883. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5884. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5885. CFLAGS="$SAVE_CFLAGS"
  5886. fi
  5887. ;;
  5888. sparc*-*solaris*)
  5889. # Find out which ABI we are using.
  5890. echo 'int i;' > conftest.$ac_ext
  5891. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5892. (eval $ac_compile) 2>&5
  5893. ac_status=$?
  5894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5895. test $ac_status = 0; }; then
  5896. case `/usr/bin/file conftest.o` in
  5897. *64-bit*)
  5898. case $lt_cv_prog_gnu_ld in
  5899. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5900. *)
  5901. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5902. LD="${LD-ld} -64"
  5903. fi
  5904. ;;
  5905. esac
  5906. ;;
  5907. esac
  5908. fi
  5909. rm -rf conftest*
  5910. ;;
  5911. esac
  5912. need_locks="$enable_libtool_lock"
  5913. case $host_os in
  5914. rhapsody* | darwin*)
  5915. if test -n "$ac_tool_prefix"; then
  5916. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5917. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5919. $as_echo_n "checking for $ac_word... " >&6; }
  5920. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. if test -n "$DSYMUTIL"; then
  5924. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5925. else
  5926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5927. for as_dir in $PATH
  5928. do
  5929. IFS=$as_save_IFS
  5930. test -z "$as_dir" && as_dir=.
  5931. for ac_exec_ext in '' $ac_executable_extensions; do
  5932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5933. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5935. break 2
  5936. fi
  5937. done
  5938. done
  5939. IFS=$as_save_IFS
  5940. fi
  5941. fi
  5942. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5943. if test -n "$DSYMUTIL"; then
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5945. $as_echo "$DSYMUTIL" >&6; }
  5946. else
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5948. $as_echo "no" >&6; }
  5949. fi
  5950. fi
  5951. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5952. ac_ct_DSYMUTIL=$DSYMUTIL
  5953. # Extract the first word of "dsymutil", so it can be a program name with args.
  5954. set dummy dsymutil; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$ac_ct_DSYMUTIL"; then
  5961. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5980. if test -n "$ac_ct_DSYMUTIL"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5982. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. if test "x$ac_ct_DSYMUTIL" = x; then
  5988. DSYMUTIL=":"
  5989. else
  5990. case $cross_compiling:$ac_tool_warned in
  5991. yes:)
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5994. ac_tool_warned=yes ;;
  5995. esac
  5996. DSYMUTIL=$ac_ct_DSYMUTIL
  5997. fi
  5998. else
  5999. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6000. fi
  6001. if test -n "$ac_tool_prefix"; then
  6002. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6003. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if ${ac_cv_prog_NMEDIT+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$NMEDIT"; then
  6010. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6019. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. NMEDIT=$ac_cv_prog_NMEDIT
  6029. if test -n "$NMEDIT"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6031. $as_echo "$NMEDIT" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. fi
  6037. if test -z "$ac_cv_prog_NMEDIT"; then
  6038. ac_ct_NMEDIT=$NMEDIT
  6039. # Extract the first word of "nmedit", so it can be a program name with args.
  6040. set dummy nmedit; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$ac_ct_NMEDIT"; then
  6047. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6066. if test -n "$ac_ct_NMEDIT"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6068. $as_echo "$ac_ct_NMEDIT" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. if test "x$ac_ct_NMEDIT" = x; then
  6074. NMEDIT=":"
  6075. else
  6076. case $cross_compiling:$ac_tool_warned in
  6077. yes:)
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6080. ac_tool_warned=yes ;;
  6081. esac
  6082. NMEDIT=$ac_ct_NMEDIT
  6083. fi
  6084. else
  6085. NMEDIT="$ac_cv_prog_NMEDIT"
  6086. fi
  6087. if test -n "$ac_tool_prefix"; then
  6088. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6089. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6091. $as_echo_n "checking for $ac_word... " >&6; }
  6092. if ${ac_cv_prog_LIPO+:} false; then :
  6093. $as_echo_n "(cached) " >&6
  6094. else
  6095. if test -n "$LIPO"; then
  6096. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6097. else
  6098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6099. for as_dir in $PATH
  6100. do
  6101. IFS=$as_save_IFS
  6102. test -z "$as_dir" && as_dir=.
  6103. for ac_exec_ext in '' $ac_executable_extensions; do
  6104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6105. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6107. break 2
  6108. fi
  6109. done
  6110. done
  6111. IFS=$as_save_IFS
  6112. fi
  6113. fi
  6114. LIPO=$ac_cv_prog_LIPO
  6115. if test -n "$LIPO"; then
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6117. $as_echo "$LIPO" >&6; }
  6118. else
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6120. $as_echo "no" >&6; }
  6121. fi
  6122. fi
  6123. if test -z "$ac_cv_prog_LIPO"; then
  6124. ac_ct_LIPO=$LIPO
  6125. # Extract the first word of "lipo", so it can be a program name with args.
  6126. set dummy lipo; ac_word=$2
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6128. $as_echo_n "checking for $ac_word... " >&6; }
  6129. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6130. $as_echo_n "(cached) " >&6
  6131. else
  6132. if test -n "$ac_ct_LIPO"; then
  6133. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6134. else
  6135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6136. for as_dir in $PATH
  6137. do
  6138. IFS=$as_save_IFS
  6139. test -z "$as_dir" && as_dir=.
  6140. for ac_exec_ext in '' $ac_executable_extensions; do
  6141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6142. ac_cv_prog_ac_ct_LIPO="lipo"
  6143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6144. break 2
  6145. fi
  6146. done
  6147. done
  6148. IFS=$as_save_IFS
  6149. fi
  6150. fi
  6151. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6152. if test -n "$ac_ct_LIPO"; then
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6154. $as_echo "$ac_ct_LIPO" >&6; }
  6155. else
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6157. $as_echo "no" >&6; }
  6158. fi
  6159. if test "x$ac_ct_LIPO" = x; then
  6160. LIPO=":"
  6161. else
  6162. case $cross_compiling:$ac_tool_warned in
  6163. yes:)
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6165. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6166. ac_tool_warned=yes ;;
  6167. esac
  6168. LIPO=$ac_ct_LIPO
  6169. fi
  6170. else
  6171. LIPO="$ac_cv_prog_LIPO"
  6172. fi
  6173. if test -n "$ac_tool_prefix"; then
  6174. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6175. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6177. $as_echo_n "checking for $ac_word... " >&6; }
  6178. if ${ac_cv_prog_OTOOL+:} false; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. if test -n "$OTOOL"; then
  6182. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6183. else
  6184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6185. for as_dir in $PATH
  6186. do
  6187. IFS=$as_save_IFS
  6188. test -z "$as_dir" && as_dir=.
  6189. for ac_exec_ext in '' $ac_executable_extensions; do
  6190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6191. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6193. break 2
  6194. fi
  6195. done
  6196. done
  6197. IFS=$as_save_IFS
  6198. fi
  6199. fi
  6200. OTOOL=$ac_cv_prog_OTOOL
  6201. if test -n "$OTOOL"; then
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6203. $as_echo "$OTOOL" >&6; }
  6204. else
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6206. $as_echo "no" >&6; }
  6207. fi
  6208. fi
  6209. if test -z "$ac_cv_prog_OTOOL"; then
  6210. ac_ct_OTOOL=$OTOOL
  6211. # Extract the first word of "otool", so it can be a program name with args.
  6212. set dummy otool; ac_word=$2
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6214. $as_echo_n "checking for $ac_word... " >&6; }
  6215. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. if test -n "$ac_ct_OTOOL"; then
  6219. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_ac_ct_OTOOL="otool"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6238. if test -n "$ac_ct_OTOOL"; then
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6240. $as_echo "$ac_ct_OTOOL" >&6; }
  6241. else
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. $as_echo "no" >&6; }
  6244. fi
  6245. if test "x$ac_ct_OTOOL" = x; then
  6246. OTOOL=":"
  6247. else
  6248. case $cross_compiling:$ac_tool_warned in
  6249. yes:)
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6252. ac_tool_warned=yes ;;
  6253. esac
  6254. OTOOL=$ac_ct_OTOOL
  6255. fi
  6256. else
  6257. OTOOL="$ac_cv_prog_OTOOL"
  6258. fi
  6259. if test -n "$ac_tool_prefix"; then
  6260. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6261. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6263. $as_echo_n "checking for $ac_word... " >&6; }
  6264. if ${ac_cv_prog_OTOOL64+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. if test -n "$OTOOL64"; then
  6268. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6269. else
  6270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6271. for as_dir in $PATH
  6272. do
  6273. IFS=$as_save_IFS
  6274. test -z "$as_dir" && as_dir=.
  6275. for ac_exec_ext in '' $ac_executable_extensions; do
  6276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6277. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6279. break 2
  6280. fi
  6281. done
  6282. done
  6283. IFS=$as_save_IFS
  6284. fi
  6285. fi
  6286. OTOOL64=$ac_cv_prog_OTOOL64
  6287. if test -n "$OTOOL64"; then
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6289. $as_echo "$OTOOL64" >&6; }
  6290. else
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6292. $as_echo "no" >&6; }
  6293. fi
  6294. fi
  6295. if test -z "$ac_cv_prog_OTOOL64"; then
  6296. ac_ct_OTOOL64=$OTOOL64
  6297. # Extract the first word of "otool64", so it can be a program name with args.
  6298. set dummy otool64; ac_word=$2
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6300. $as_echo_n "checking for $ac_word... " >&6; }
  6301. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. if test -n "$ac_ct_OTOOL64"; then
  6305. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6306. else
  6307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6308. for as_dir in $PATH
  6309. do
  6310. IFS=$as_save_IFS
  6311. test -z "$as_dir" && as_dir=.
  6312. for ac_exec_ext in '' $ac_executable_extensions; do
  6313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6314. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6316. break 2
  6317. fi
  6318. done
  6319. done
  6320. IFS=$as_save_IFS
  6321. fi
  6322. fi
  6323. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6324. if test -n "$ac_ct_OTOOL64"; then
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6326. $as_echo "$ac_ct_OTOOL64" >&6; }
  6327. else
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6329. $as_echo "no" >&6; }
  6330. fi
  6331. if test "x$ac_ct_OTOOL64" = x; then
  6332. OTOOL64=":"
  6333. else
  6334. case $cross_compiling:$ac_tool_warned in
  6335. yes:)
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6338. ac_tool_warned=yes ;;
  6339. esac
  6340. OTOOL64=$ac_ct_OTOOL64
  6341. fi
  6342. else
  6343. OTOOL64="$ac_cv_prog_OTOOL64"
  6344. fi
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6346. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6347. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6348. $as_echo_n "(cached) " >&6
  6349. else
  6350. lt_cv_apple_cc_single_mod=no
  6351. if test -z "${LT_MULTI_MODULE}"; then
  6352. # By default we will add the -single_module flag. You can override
  6353. # by either setting the environment variable LT_MULTI_MODULE
  6354. # non-empty at configure time, or by adding -multi_module to the
  6355. # link flags.
  6356. rm -rf libconftest.dylib*
  6357. echo "int foo(void){return 1;}" > conftest.c
  6358. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6359. -dynamiclib -Wl,-single_module conftest.c" >&5
  6360. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6361. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6362. _lt_result=$?
  6363. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6364. lt_cv_apple_cc_single_mod=yes
  6365. else
  6366. cat conftest.err >&5
  6367. fi
  6368. rm -rf libconftest.dylib*
  6369. rm -f conftest.*
  6370. fi
  6371. fi
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6373. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6375. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6376. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. lt_cv_ld_exported_symbols_list=no
  6380. save_LDFLAGS=$LDFLAGS
  6381. echo "_main" > conftest.sym
  6382. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6384. /* end confdefs.h. */
  6385. int
  6386. main ()
  6387. {
  6388. ;
  6389. return 0;
  6390. }
  6391. _ACEOF
  6392. if ac_fn_c_try_link "$LINENO"; then :
  6393. lt_cv_ld_exported_symbols_list=yes
  6394. else
  6395. lt_cv_ld_exported_symbols_list=no
  6396. fi
  6397. rm -f core conftest.err conftest.$ac_objext \
  6398. conftest$ac_exeext conftest.$ac_ext
  6399. LDFLAGS="$save_LDFLAGS"
  6400. fi
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6402. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6404. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6405. if ${lt_cv_ld_force_load+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. lt_cv_ld_force_load=no
  6409. cat > conftest.c << _LT_EOF
  6410. int forced_loaded() { return 2;}
  6411. _LT_EOF
  6412. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6413. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6414. echo "$AR cru libconftest.a conftest.o" >&5
  6415. $AR cru libconftest.a conftest.o 2>&5
  6416. cat > conftest.c << _LT_EOF
  6417. int main() { return 0;}
  6418. _LT_EOF
  6419. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6420. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6421. _lt_result=$?
  6422. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6423. lt_cv_ld_force_load=yes
  6424. else
  6425. cat conftest.err >&5
  6426. fi
  6427. rm -f conftest.err libconftest.a conftest conftest.c
  6428. rm -rf conftest.dSYM
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6431. $as_echo "$lt_cv_ld_force_load" >&6; }
  6432. case $host_os in
  6433. rhapsody* | darwin1.[012])
  6434. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6435. darwin1.*)
  6436. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6437. darwin*) # darwin 5.x on
  6438. # if running on 10.5 or later, the deployment target defaults
  6439. # to the OS version, if on x86, and 10.4, the deployment
  6440. # target defaults to 10.4. Don't you love it?
  6441. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6442. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6443. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6444. 10.[012][,.]*)
  6445. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6446. 10.*)
  6447. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6448. esac
  6449. ;;
  6450. esac
  6451. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6452. _lt_dar_single_mod='$single_module'
  6453. fi
  6454. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6455. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6456. else
  6457. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6458. fi
  6459. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6460. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6461. else
  6462. _lt_dsymutil=
  6463. fi
  6464. ;;
  6465. esac
  6466. ac_ext=c
  6467. ac_cpp='$CPP $CPPFLAGS'
  6468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6472. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6473. # On Suns, sometimes $CPP names a directory.
  6474. if test -n "$CPP" && test -d "$CPP"; then
  6475. CPP=
  6476. fi
  6477. if test -z "$CPP"; then
  6478. if ${ac_cv_prog_CPP+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. # Double quotes because CPP needs to be expanded
  6482. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6483. do
  6484. ac_preproc_ok=false
  6485. for ac_c_preproc_warn_flag in '' yes
  6486. do
  6487. # Use a header file that comes with gcc, so configuring glibc
  6488. # with a fresh cross-compiler works.
  6489. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6490. # <limits.h> exists even on freestanding compilers.
  6491. # On the NeXT, cc -E runs the code through the compiler's parser,
  6492. # not just through cpp. "Syntax error" is here to catch this case.
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. #ifdef __STDC__
  6496. # include <limits.h>
  6497. #else
  6498. # include <assert.h>
  6499. #endif
  6500. Syntax error
  6501. _ACEOF
  6502. if ac_fn_c_try_cpp "$LINENO"; then :
  6503. else
  6504. # Broken: fails on valid input.
  6505. continue
  6506. fi
  6507. rm -f conftest.err conftest.i conftest.$ac_ext
  6508. # OK, works on sane cases. Now check whether nonexistent headers
  6509. # can be detected and how.
  6510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6511. /* end confdefs.h. */
  6512. #include <ac_nonexistent.h>
  6513. _ACEOF
  6514. if ac_fn_c_try_cpp "$LINENO"; then :
  6515. # Broken: success on invalid input.
  6516. continue
  6517. else
  6518. # Passes both tests.
  6519. ac_preproc_ok=:
  6520. break
  6521. fi
  6522. rm -f conftest.err conftest.i conftest.$ac_ext
  6523. done
  6524. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6525. rm -f conftest.i conftest.err conftest.$ac_ext
  6526. if $ac_preproc_ok; then :
  6527. break
  6528. fi
  6529. done
  6530. ac_cv_prog_CPP=$CPP
  6531. fi
  6532. CPP=$ac_cv_prog_CPP
  6533. else
  6534. ac_cv_prog_CPP=$CPP
  6535. fi
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6537. $as_echo "$CPP" >&6; }
  6538. ac_preproc_ok=false
  6539. for ac_c_preproc_warn_flag in '' yes
  6540. do
  6541. # Use a header file that comes with gcc, so configuring glibc
  6542. # with a fresh cross-compiler works.
  6543. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6544. # <limits.h> exists even on freestanding compilers.
  6545. # On the NeXT, cc -E runs the code through the compiler's parser,
  6546. # not just through cpp. "Syntax error" is here to catch this case.
  6547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6548. /* end confdefs.h. */
  6549. #ifdef __STDC__
  6550. # include <limits.h>
  6551. #else
  6552. # include <assert.h>
  6553. #endif
  6554. Syntax error
  6555. _ACEOF
  6556. if ac_fn_c_try_cpp "$LINENO"; then :
  6557. else
  6558. # Broken: fails on valid input.
  6559. continue
  6560. fi
  6561. rm -f conftest.err conftest.i conftest.$ac_ext
  6562. # OK, works on sane cases. Now check whether nonexistent headers
  6563. # can be detected and how.
  6564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6565. /* end confdefs.h. */
  6566. #include <ac_nonexistent.h>
  6567. _ACEOF
  6568. if ac_fn_c_try_cpp "$LINENO"; then :
  6569. # Broken: success on invalid input.
  6570. continue
  6571. else
  6572. # Passes both tests.
  6573. ac_preproc_ok=:
  6574. break
  6575. fi
  6576. rm -f conftest.err conftest.i conftest.$ac_ext
  6577. done
  6578. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6579. rm -f conftest.i conftest.err conftest.$ac_ext
  6580. if $ac_preproc_ok; then :
  6581. else
  6582. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6584. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6585. See \`config.log' for more details" "$LINENO" 5; }
  6586. fi
  6587. ac_ext=c
  6588. ac_cpp='$CPP $CPPFLAGS'
  6589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6593. $as_echo_n "checking for ANSI C header files... " >&6; }
  6594. if ${ac_cv_header_stdc+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6598. /* end confdefs.h. */
  6599. #include <stdlib.h>
  6600. #include <stdarg.h>
  6601. #include <string.h>
  6602. #include <float.h>
  6603. int
  6604. main ()
  6605. {
  6606. ;
  6607. return 0;
  6608. }
  6609. _ACEOF
  6610. if ac_fn_c_try_compile "$LINENO"; then :
  6611. ac_cv_header_stdc=yes
  6612. else
  6613. ac_cv_header_stdc=no
  6614. fi
  6615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6616. if test $ac_cv_header_stdc = yes; then
  6617. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6619. /* end confdefs.h. */
  6620. #include <string.h>
  6621. _ACEOF
  6622. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6623. $EGREP "memchr" >/dev/null 2>&1; then :
  6624. else
  6625. ac_cv_header_stdc=no
  6626. fi
  6627. rm -f conftest*
  6628. fi
  6629. if test $ac_cv_header_stdc = yes; then
  6630. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6632. /* end confdefs.h. */
  6633. #include <stdlib.h>
  6634. _ACEOF
  6635. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6636. $EGREP "free" >/dev/null 2>&1; then :
  6637. else
  6638. ac_cv_header_stdc=no
  6639. fi
  6640. rm -f conftest*
  6641. fi
  6642. if test $ac_cv_header_stdc = yes; then
  6643. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6644. if test "$cross_compiling" = yes; then :
  6645. :
  6646. else
  6647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6648. /* end confdefs.h. */
  6649. #include <ctype.h>
  6650. #include <stdlib.h>
  6651. #if ((' ' & 0x0FF) == 0x020)
  6652. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6653. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6654. #else
  6655. # define ISLOWER(c) \
  6656. (('a' <= (c) && (c) <= 'i') \
  6657. || ('j' <= (c) && (c) <= 'r') \
  6658. || ('s' <= (c) && (c) <= 'z'))
  6659. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6660. #endif
  6661. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6662. int
  6663. main ()
  6664. {
  6665. int i;
  6666. for (i = 0; i < 256; i++)
  6667. if (XOR (islower (i), ISLOWER (i))
  6668. || toupper (i) != TOUPPER (i))
  6669. return 2;
  6670. return 0;
  6671. }
  6672. _ACEOF
  6673. if ac_fn_c_try_run "$LINENO"; then :
  6674. else
  6675. ac_cv_header_stdc=no
  6676. fi
  6677. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6678. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6679. fi
  6680. fi
  6681. fi
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6683. $as_echo "$ac_cv_header_stdc" >&6; }
  6684. if test $ac_cv_header_stdc = yes; then
  6685. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6686. fi
  6687. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6688. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6689. inttypes.h stdint.h unistd.h
  6690. do :
  6691. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6692. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6693. "
  6694. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6695. cat >>confdefs.h <<_ACEOF
  6696. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6697. _ACEOF
  6698. fi
  6699. done
  6700. for ac_header in dlfcn.h
  6701. do :
  6702. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6703. "
  6704. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6705. cat >>confdefs.h <<_ACEOF
  6706. #define HAVE_DLFCN_H 1
  6707. _ACEOF
  6708. fi
  6709. done
  6710. # Set options
  6711. enable_win32_dll=no
  6712. # Check whether --enable-shared was given.
  6713. if test "${enable_shared+set}" = set; then :
  6714. enableval=$enable_shared; p=${PACKAGE-default}
  6715. case $enableval in
  6716. yes) enable_shared=yes ;;
  6717. no) enable_shared=no ;;
  6718. *)
  6719. enable_shared=no
  6720. # Look at the argument we got. We use all the common list separators.
  6721. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6722. for pkg in $enableval; do
  6723. IFS="$lt_save_ifs"
  6724. if test "X$pkg" = "X$p"; then
  6725. enable_shared=yes
  6726. fi
  6727. done
  6728. IFS="$lt_save_ifs"
  6729. ;;
  6730. esac
  6731. else
  6732. enable_shared=yes
  6733. fi
  6734. # Check whether --enable-static was given.
  6735. if test "${enable_static+set}" = set; then :
  6736. enableval=$enable_static; p=${PACKAGE-default}
  6737. case $enableval in
  6738. yes) enable_static=yes ;;
  6739. no) enable_static=no ;;
  6740. *)
  6741. enable_static=no
  6742. # Look at the argument we got. We use all the common list separators.
  6743. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6744. for pkg in $enableval; do
  6745. IFS="$lt_save_ifs"
  6746. if test "X$pkg" = "X$p"; then
  6747. enable_static=yes
  6748. fi
  6749. done
  6750. IFS="$lt_save_ifs"
  6751. ;;
  6752. esac
  6753. else
  6754. enable_static=yes
  6755. fi
  6756. # Check whether --with-pic was given.
  6757. if test "${with_pic+set}" = set; then :
  6758. withval=$with_pic; pic_mode="$withval"
  6759. else
  6760. pic_mode=default
  6761. fi
  6762. test -z "$pic_mode" && pic_mode=default
  6763. # Check whether --enable-fast-install was given.
  6764. if test "${enable_fast_install+set}" = set; then :
  6765. enableval=$enable_fast_install; p=${PACKAGE-default}
  6766. case $enableval in
  6767. yes) enable_fast_install=yes ;;
  6768. no) enable_fast_install=no ;;
  6769. *)
  6770. enable_fast_install=no
  6771. # Look at the argument we got. We use all the common list separators.
  6772. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6773. for pkg in $enableval; do
  6774. IFS="$lt_save_ifs"
  6775. if test "X$pkg" = "X$p"; then
  6776. enable_fast_install=yes
  6777. fi
  6778. done
  6779. IFS="$lt_save_ifs"
  6780. ;;
  6781. esac
  6782. else
  6783. enable_fast_install=yes
  6784. fi
  6785. # This can be used to rebuild libtool when needed
  6786. LIBTOOL_DEPS="$ltmain"
  6787. # Always use our own libtool.
  6788. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6789. test -z "$LN_S" && LN_S="ln -s"
  6790. if test -n "${ZSH_VERSION+set}" ; then
  6791. setopt NO_GLOB_SUBST
  6792. fi
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6794. $as_echo_n "checking for objdir... " >&6; }
  6795. if ${lt_cv_objdir+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. rm -f .libs 2>/dev/null
  6799. mkdir .libs 2>/dev/null
  6800. if test -d .libs; then
  6801. lt_cv_objdir=.libs
  6802. else
  6803. # MS-DOS does not allow filenames that begin with a dot.
  6804. lt_cv_objdir=_libs
  6805. fi
  6806. rmdir .libs 2>/dev/null
  6807. fi
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6809. $as_echo "$lt_cv_objdir" >&6; }
  6810. objdir=$lt_cv_objdir
  6811. cat >>confdefs.h <<_ACEOF
  6812. #define LT_OBJDIR "$lt_cv_objdir/"
  6813. _ACEOF
  6814. case $host_os in
  6815. aix3*)
  6816. # AIX sometimes has problems with the GCC collect2 program. For some
  6817. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6818. # vanish in a puff of smoke.
  6819. if test "X${COLLECT_NAMES+set}" != Xset; then
  6820. COLLECT_NAMES=
  6821. export COLLECT_NAMES
  6822. fi
  6823. ;;
  6824. esac
  6825. # Global variables:
  6826. ofile=libtool
  6827. can_build_shared=yes
  6828. # All known linkers require a `.a' archive for static linking (except MSVC,
  6829. # which needs '.lib').
  6830. libext=a
  6831. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6832. old_CC="$CC"
  6833. old_CFLAGS="$CFLAGS"
  6834. # Set sane defaults for various variables
  6835. test -z "$CC" && CC=cc
  6836. test -z "$LTCC" && LTCC=$CC
  6837. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6838. test -z "$LD" && LD=ld
  6839. test -z "$ac_objext" && ac_objext=o
  6840. for cc_temp in $compiler""; do
  6841. case $cc_temp in
  6842. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6843. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6844. \-*) ;;
  6845. *) break;;
  6846. esac
  6847. done
  6848. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6849. # Only perform the check for file, if the check method requires it
  6850. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6851. case $deplibs_check_method in
  6852. file_magic*)
  6853. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6855. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6856. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. case $MAGIC_CMD in
  6860. [\\/*] | ?:[\\/]*)
  6861. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6862. ;;
  6863. *)
  6864. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6865. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6866. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6867. for ac_dir in $ac_dummy; do
  6868. IFS="$lt_save_ifs"
  6869. test -z "$ac_dir" && ac_dir=.
  6870. if test -f $ac_dir/${ac_tool_prefix}file; then
  6871. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6872. if test -n "$file_magic_test_file"; then
  6873. case $deplibs_check_method in
  6874. "file_magic "*)
  6875. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6876. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6877. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6878. $EGREP "$file_magic_regex" > /dev/null; then
  6879. :
  6880. else
  6881. cat <<_LT_EOF 1>&2
  6882. *** Warning: the command libtool uses to detect shared libraries,
  6883. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6884. *** The result is that libtool may fail to recognize shared libraries
  6885. *** as such. This will affect the creation of libtool libraries that
  6886. *** depend on shared libraries, but programs linked with such libtool
  6887. *** libraries will work regardless of this problem. Nevertheless, you
  6888. *** may want to report the problem to your system manager and/or to
  6889. *** bug-libtool@gnu.org
  6890. _LT_EOF
  6891. fi ;;
  6892. esac
  6893. fi
  6894. break
  6895. fi
  6896. done
  6897. IFS="$lt_save_ifs"
  6898. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6899. ;;
  6900. esac
  6901. fi
  6902. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6903. if test -n "$MAGIC_CMD"; then
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6905. $as_echo "$MAGIC_CMD" >&6; }
  6906. else
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6908. $as_echo "no" >&6; }
  6909. fi
  6910. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6911. if test -n "$ac_tool_prefix"; then
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6913. $as_echo_n "checking for file... " >&6; }
  6914. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. case $MAGIC_CMD in
  6918. [\\/*] | ?:[\\/]*)
  6919. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6920. ;;
  6921. *)
  6922. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6923. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6924. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6925. for ac_dir in $ac_dummy; do
  6926. IFS="$lt_save_ifs"
  6927. test -z "$ac_dir" && ac_dir=.
  6928. if test -f $ac_dir/file; then
  6929. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6930. if test -n "$file_magic_test_file"; then
  6931. case $deplibs_check_method in
  6932. "file_magic "*)
  6933. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6934. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6935. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6936. $EGREP "$file_magic_regex" > /dev/null; then
  6937. :
  6938. else
  6939. cat <<_LT_EOF 1>&2
  6940. *** Warning: the command libtool uses to detect shared libraries,
  6941. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6942. *** The result is that libtool may fail to recognize shared libraries
  6943. *** as such. This will affect the creation of libtool libraries that
  6944. *** depend on shared libraries, but programs linked with such libtool
  6945. *** libraries will work regardless of this problem. Nevertheless, you
  6946. *** may want to report the problem to your system manager and/or to
  6947. *** bug-libtool@gnu.org
  6948. _LT_EOF
  6949. fi ;;
  6950. esac
  6951. fi
  6952. break
  6953. fi
  6954. done
  6955. IFS="$lt_save_ifs"
  6956. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6957. ;;
  6958. esac
  6959. fi
  6960. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6961. if test -n "$MAGIC_CMD"; then
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6963. $as_echo "$MAGIC_CMD" >&6; }
  6964. else
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6966. $as_echo "no" >&6; }
  6967. fi
  6968. else
  6969. MAGIC_CMD=:
  6970. fi
  6971. fi
  6972. fi
  6973. ;;
  6974. esac
  6975. # Use C for the default configuration in the libtool script
  6976. lt_save_CC="$CC"
  6977. ac_ext=c
  6978. ac_cpp='$CPP $CPPFLAGS'
  6979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6982. # Source file extension for C test sources.
  6983. ac_ext=c
  6984. # Object file extension for compiled C test sources.
  6985. objext=o
  6986. objext=$objext
  6987. # Code to be used in simple compile tests
  6988. lt_simple_compile_test_code="int some_variable = 0;"
  6989. # Code to be used in simple link tests
  6990. lt_simple_link_test_code='int main(){return(0);}'
  6991. # If no C compiler was specified, use CC.
  6992. LTCC=${LTCC-"$CC"}
  6993. # If no C compiler flags were specified, use CFLAGS.
  6994. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6995. # Allow CC to be a program name with arguments.
  6996. compiler=$CC
  6997. # Save the default compiler, since it gets overwritten when the other
  6998. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6999. compiler_DEFAULT=$CC
  7000. # save warnings/boilerplate of simple test code
  7001. ac_outfile=conftest.$ac_objext
  7002. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7003. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7004. _lt_compiler_boilerplate=`cat conftest.err`
  7005. $RM conftest*
  7006. ac_outfile=conftest.$ac_objext
  7007. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7008. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7009. _lt_linker_boilerplate=`cat conftest.err`
  7010. $RM -r conftest*
  7011. ## CAVEAT EMPTOR:
  7012. ## There is no encapsulation within the following macros, do not change
  7013. ## the running order or otherwise move them around unless you know exactly
  7014. ## what you are doing...
  7015. if test -n "$compiler"; then
  7016. lt_prog_compiler_no_builtin_flag=
  7017. if test "$GCC" = yes; then
  7018. case $cc_basename in
  7019. nvcc*)
  7020. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7021. *)
  7022. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7023. esac
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7025. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7026. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. lt_cv_prog_compiler_rtti_exceptions=no
  7030. ac_outfile=conftest.$ac_objext
  7031. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7032. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7033. # Insert the option either (1) after the last *FLAGS variable, or
  7034. # (2) before a word containing "conftest.", or (3) at the end.
  7035. # Note that $ac_compile itself does not contain backslashes and begins
  7036. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7037. # The option is referenced via a variable to avoid confusing sed.
  7038. lt_compile=`echo "$ac_compile" | $SED \
  7039. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7040. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7041. -e 's:$: $lt_compiler_flag:'`
  7042. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7043. (eval "$lt_compile" 2>conftest.err)
  7044. ac_status=$?
  7045. cat conftest.err >&5
  7046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7047. if (exit $ac_status) && test -s "$ac_outfile"; then
  7048. # The compiler can only warn and ignore the option if not recognized
  7049. # So say no if there are warnings other than the usual output.
  7050. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7051. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7052. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7053. lt_cv_prog_compiler_rtti_exceptions=yes
  7054. fi
  7055. fi
  7056. $RM conftest*
  7057. fi
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7059. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7060. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7061. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7062. else
  7063. :
  7064. fi
  7065. fi
  7066. lt_prog_compiler_wl=
  7067. lt_prog_compiler_pic=
  7068. lt_prog_compiler_static=
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7070. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7071. if test "$GCC" = yes; then
  7072. lt_prog_compiler_wl='-Wl,'
  7073. lt_prog_compiler_static='-static'
  7074. case $host_os in
  7075. aix*)
  7076. # All AIX code is PIC.
  7077. if test "$host_cpu" = ia64; then
  7078. # AIX 5 now supports IA64 processor
  7079. lt_prog_compiler_static='-Bstatic'
  7080. fi
  7081. lt_prog_compiler_pic='-fPIC'
  7082. ;;
  7083. amigaos*)
  7084. case $host_cpu in
  7085. powerpc)
  7086. # see comment about AmigaOS4 .so support
  7087. lt_prog_compiler_pic='-fPIC'
  7088. ;;
  7089. m68k)
  7090. # FIXME: we need at least 68020 code to build shared libraries, but
  7091. # adding the `-m68020' flag to GCC prevents building anything better,
  7092. # like `-m68040'.
  7093. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7094. ;;
  7095. esac
  7096. ;;
  7097. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7098. # PIC is the default for these OSes.
  7099. ;;
  7100. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7101. # This hack is so that the source file can tell whether it is being
  7102. # built for inclusion in a dll (and should export symbols for example).
  7103. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7104. # (--disable-auto-import) libraries
  7105. lt_prog_compiler_pic='-DDLL_EXPORT'
  7106. ;;
  7107. darwin* | rhapsody*)
  7108. # PIC is the default on this platform
  7109. # Common symbols not allowed in MH_DYLIB files
  7110. lt_prog_compiler_pic='-fno-common'
  7111. ;;
  7112. haiku*)
  7113. # PIC is the default for Haiku.
  7114. # The "-static" flag exists, but is broken.
  7115. lt_prog_compiler_static=
  7116. ;;
  7117. hpux*)
  7118. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7119. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7120. # sets the default TLS model and affects inlining.
  7121. case $host_cpu in
  7122. hppa*64*)
  7123. # +Z the default
  7124. ;;
  7125. *)
  7126. lt_prog_compiler_pic='-fPIC'
  7127. ;;
  7128. esac
  7129. ;;
  7130. interix[3-9]*)
  7131. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7132. # Instead, we relocate shared libraries at runtime.
  7133. ;;
  7134. msdosdjgpp*)
  7135. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7136. # on systems that don't support them.
  7137. lt_prog_compiler_can_build_shared=no
  7138. enable_shared=no
  7139. ;;
  7140. *nto* | *qnx*)
  7141. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7142. # it will coredump.
  7143. lt_prog_compiler_pic='-fPIC -shared'
  7144. ;;
  7145. sysv4*MP*)
  7146. if test -d /usr/nec; then
  7147. lt_prog_compiler_pic=-Kconform_pic
  7148. fi
  7149. ;;
  7150. *)
  7151. lt_prog_compiler_pic='-fPIC'
  7152. ;;
  7153. esac
  7154. case $cc_basename in
  7155. nvcc*) # Cuda Compiler Driver 2.2
  7156. lt_prog_compiler_wl='-Xlinker '
  7157. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7158. ;;
  7159. esac
  7160. else
  7161. # PORTME Check for flag to pass linker flags through the system compiler.
  7162. case $host_os in
  7163. aix*)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. if test "$host_cpu" = ia64; then
  7166. # AIX 5 now supports IA64 processor
  7167. lt_prog_compiler_static='-Bstatic'
  7168. else
  7169. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7170. fi
  7171. ;;
  7172. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7173. # This hack is so that the source file can tell whether it is being
  7174. # built for inclusion in a dll (and should export symbols for example).
  7175. lt_prog_compiler_pic='-DDLL_EXPORT'
  7176. ;;
  7177. hpux9* | hpux10* | hpux11*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7180. # not for PA HP-UX.
  7181. case $host_cpu in
  7182. hppa*64*|ia64*)
  7183. # +Z the default
  7184. ;;
  7185. *)
  7186. lt_prog_compiler_pic='+Z'
  7187. ;;
  7188. esac
  7189. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7190. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7191. ;;
  7192. irix5* | irix6* | nonstopux*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. # PIC (with -KPIC) is the default.
  7195. lt_prog_compiler_static='-non_shared'
  7196. ;;
  7197. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7198. case $cc_basename in
  7199. # old Intel for x86_64 which still supported -KPIC.
  7200. ecc*)
  7201. lt_prog_compiler_wl='-Wl,'
  7202. lt_prog_compiler_pic='-KPIC'
  7203. lt_prog_compiler_static='-static'
  7204. ;;
  7205. # icc used to be incompatible with GCC.
  7206. # ICC 10 doesn't accept -KPIC any more.
  7207. icc* | ifort*)
  7208. lt_prog_compiler_wl='-Wl,'
  7209. lt_prog_compiler_pic='-fPIC'
  7210. lt_prog_compiler_static='-static'
  7211. ;;
  7212. # Lahey Fortran 8.1.
  7213. lf95*)
  7214. lt_prog_compiler_wl='-Wl,'
  7215. lt_prog_compiler_pic='--shared'
  7216. lt_prog_compiler_static='--static'
  7217. ;;
  7218. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7219. # Portland Group compilers (*not* the Pentium gcc compiler,
  7220. # which looks to be a dead project)
  7221. lt_prog_compiler_wl='-Wl,'
  7222. lt_prog_compiler_pic='-fpic'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. ;;
  7225. ccc*)
  7226. lt_prog_compiler_wl='-Wl,'
  7227. # All Alpha code is PIC.
  7228. lt_prog_compiler_static='-non_shared'
  7229. ;;
  7230. xl* | bgxl* | bgf* | mpixl*)
  7231. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7232. lt_prog_compiler_wl='-Wl,'
  7233. lt_prog_compiler_pic='-qpic'
  7234. lt_prog_compiler_static='-qstaticlink'
  7235. ;;
  7236. *)
  7237. case `$CC -V 2>&1 | sed 5q` in
  7238. *Sun\ F* | *Sun*Fortran*)
  7239. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7240. lt_prog_compiler_pic='-KPIC'
  7241. lt_prog_compiler_static='-Bstatic'
  7242. lt_prog_compiler_wl=''
  7243. ;;
  7244. *Sun\ C*)
  7245. # Sun C 5.9
  7246. lt_prog_compiler_pic='-KPIC'
  7247. lt_prog_compiler_static='-Bstatic'
  7248. lt_prog_compiler_wl='-Wl,'
  7249. ;;
  7250. esac
  7251. ;;
  7252. esac
  7253. ;;
  7254. newsos6)
  7255. lt_prog_compiler_pic='-KPIC'
  7256. lt_prog_compiler_static='-Bstatic'
  7257. ;;
  7258. *nto* | *qnx*)
  7259. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7260. # it will coredump.
  7261. lt_prog_compiler_pic='-fPIC -shared'
  7262. ;;
  7263. osf3* | osf4* | osf5*)
  7264. lt_prog_compiler_wl='-Wl,'
  7265. # All OSF/1 code is PIC.
  7266. lt_prog_compiler_static='-non_shared'
  7267. ;;
  7268. rdos*)
  7269. lt_prog_compiler_static='-non_shared'
  7270. ;;
  7271. solaris*)
  7272. lt_prog_compiler_pic='-KPIC'
  7273. lt_prog_compiler_static='-Bstatic'
  7274. case $cc_basename in
  7275. f77* | f90* | f95*)
  7276. lt_prog_compiler_wl='-Qoption ld ';;
  7277. *)
  7278. lt_prog_compiler_wl='-Wl,';;
  7279. esac
  7280. ;;
  7281. sunos4*)
  7282. lt_prog_compiler_wl='-Qoption ld '
  7283. lt_prog_compiler_pic='-PIC'
  7284. lt_prog_compiler_static='-Bstatic'
  7285. ;;
  7286. sysv4 | sysv4.2uw2* | sysv4.3*)
  7287. lt_prog_compiler_wl='-Wl,'
  7288. lt_prog_compiler_pic='-KPIC'
  7289. lt_prog_compiler_static='-Bstatic'
  7290. ;;
  7291. sysv4*MP*)
  7292. if test -d /usr/nec ;then
  7293. lt_prog_compiler_pic='-Kconform_pic'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. fi
  7296. ;;
  7297. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7298. lt_prog_compiler_wl='-Wl,'
  7299. lt_prog_compiler_pic='-KPIC'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. ;;
  7302. unicos*)
  7303. lt_prog_compiler_wl='-Wl,'
  7304. lt_prog_compiler_can_build_shared=no
  7305. ;;
  7306. uts4*)
  7307. lt_prog_compiler_pic='-pic'
  7308. lt_prog_compiler_static='-Bstatic'
  7309. ;;
  7310. *)
  7311. lt_prog_compiler_can_build_shared=no
  7312. ;;
  7313. esac
  7314. fi
  7315. case $host_os in
  7316. # For platforms which do not support PIC, -DPIC is meaningless:
  7317. *djgpp*)
  7318. lt_prog_compiler_pic=
  7319. ;;
  7320. *)
  7321. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7322. ;;
  7323. esac
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7325. $as_echo "$lt_prog_compiler_pic" >&6; }
  7326. #
  7327. # Check to make sure the PIC flag actually works.
  7328. #
  7329. if test -n "$lt_prog_compiler_pic"; then
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7331. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7332. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. lt_cv_prog_compiler_pic_works=no
  7336. ac_outfile=conftest.$ac_objext
  7337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7338. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7339. # Insert the option either (1) after the last *FLAGS variable, or
  7340. # (2) before a word containing "conftest.", or (3) at the end.
  7341. # Note that $ac_compile itself does not contain backslashes and begins
  7342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7343. # The option is referenced via a variable to avoid confusing sed.
  7344. lt_compile=`echo "$ac_compile" | $SED \
  7345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7347. -e 's:$: $lt_compiler_flag:'`
  7348. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7349. (eval "$lt_compile" 2>conftest.err)
  7350. ac_status=$?
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. if (exit $ac_status) && test -s "$ac_outfile"; then
  7354. # The compiler can only warn and ignore the option if not recognized
  7355. # So say no if there are warnings other than the usual output.
  7356. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7357. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7358. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7359. lt_cv_prog_compiler_pic_works=yes
  7360. fi
  7361. fi
  7362. $RM conftest*
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7365. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7366. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7367. case $lt_prog_compiler_pic in
  7368. "" | " "*) ;;
  7369. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7370. esac
  7371. else
  7372. lt_prog_compiler_pic=
  7373. lt_prog_compiler_can_build_shared=no
  7374. fi
  7375. fi
  7376. #
  7377. # Check to make sure the static flag actually works.
  7378. #
  7379. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7381. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7382. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7383. $as_echo_n "(cached) " >&6
  7384. else
  7385. lt_cv_prog_compiler_static_works=no
  7386. save_LDFLAGS="$LDFLAGS"
  7387. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7388. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7389. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7390. # The linker can only warn and ignore the option if not recognized
  7391. # So say no if there are warnings
  7392. if test -s conftest.err; then
  7393. # Append any errors to the config.log.
  7394. cat conftest.err 1>&5
  7395. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7397. if diff conftest.exp conftest.er2 >/dev/null; then
  7398. lt_cv_prog_compiler_static_works=yes
  7399. fi
  7400. else
  7401. lt_cv_prog_compiler_static_works=yes
  7402. fi
  7403. fi
  7404. $RM -r conftest*
  7405. LDFLAGS="$save_LDFLAGS"
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7408. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7409. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7410. :
  7411. else
  7412. lt_prog_compiler_static=
  7413. fi
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7415. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7416. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. lt_cv_prog_compiler_c_o=no
  7420. $RM -r conftest 2>/dev/null
  7421. mkdir conftest
  7422. cd conftest
  7423. mkdir out
  7424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7425. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7426. # Insert the option either (1) after the last *FLAGS variable, or
  7427. # (2) before a word containing "conftest.", or (3) at the end.
  7428. # Note that $ac_compile itself does not contain backslashes and begins
  7429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7430. lt_compile=`echo "$ac_compile" | $SED \
  7431. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7432. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7433. -e 's:$: $lt_compiler_flag:'`
  7434. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7435. (eval "$lt_compile" 2>out/conftest.err)
  7436. ac_status=$?
  7437. cat out/conftest.err >&5
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7440. then
  7441. # The compiler can only warn and ignore the option if not recognized
  7442. # So say no if there are warnings
  7443. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7444. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7445. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7446. lt_cv_prog_compiler_c_o=yes
  7447. fi
  7448. fi
  7449. chmod u+w . 2>&5
  7450. $RM conftest*
  7451. # SGI C++ compiler will create directory out/ii_files/ for
  7452. # template instantiation
  7453. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7454. $RM out/* && rmdir out
  7455. cd ..
  7456. $RM -r conftest
  7457. $RM conftest*
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7460. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7462. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7463. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7464. $as_echo_n "(cached) " >&6
  7465. else
  7466. lt_cv_prog_compiler_c_o=no
  7467. $RM -r conftest 2>/dev/null
  7468. mkdir conftest
  7469. cd conftest
  7470. mkdir out
  7471. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7472. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7473. # Insert the option either (1) after the last *FLAGS variable, or
  7474. # (2) before a word containing "conftest.", or (3) at the end.
  7475. # Note that $ac_compile itself does not contain backslashes and begins
  7476. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7477. lt_compile=`echo "$ac_compile" | $SED \
  7478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7480. -e 's:$: $lt_compiler_flag:'`
  7481. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7482. (eval "$lt_compile" 2>out/conftest.err)
  7483. ac_status=$?
  7484. cat out/conftest.err >&5
  7485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7487. then
  7488. # The compiler can only warn and ignore the option if not recognized
  7489. # So say no if there are warnings
  7490. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7491. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7492. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7493. lt_cv_prog_compiler_c_o=yes
  7494. fi
  7495. fi
  7496. chmod u+w . 2>&5
  7497. $RM conftest*
  7498. # SGI C++ compiler will create directory out/ii_files/ for
  7499. # template instantiation
  7500. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7501. $RM out/* && rmdir out
  7502. cd ..
  7503. $RM -r conftest
  7504. $RM conftest*
  7505. fi
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7507. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7508. hard_links="nottested"
  7509. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7510. # do not overwrite the value of need_locks provided by the user
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7512. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7513. hard_links=yes
  7514. $RM conftest*
  7515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7516. touch conftest.a
  7517. ln conftest.a conftest.b 2>&5 || hard_links=no
  7518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7520. $as_echo "$hard_links" >&6; }
  7521. if test "$hard_links" = no; then
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7523. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7524. need_locks=warn
  7525. fi
  7526. else
  7527. need_locks=no
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7530. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7531. runpath_var=
  7532. allow_undefined_flag=
  7533. always_export_symbols=no
  7534. archive_cmds=
  7535. archive_expsym_cmds=
  7536. compiler_needs_object=no
  7537. enable_shared_with_static_runtimes=no
  7538. export_dynamic_flag_spec=
  7539. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7540. hardcode_automatic=no
  7541. hardcode_direct=no
  7542. hardcode_direct_absolute=no
  7543. hardcode_libdir_flag_spec=
  7544. hardcode_libdir_flag_spec_ld=
  7545. hardcode_libdir_separator=
  7546. hardcode_minus_L=no
  7547. hardcode_shlibpath_var=unsupported
  7548. inherit_rpath=no
  7549. link_all_deplibs=unknown
  7550. module_cmds=
  7551. module_expsym_cmds=
  7552. old_archive_from_new_cmds=
  7553. old_archive_from_expsyms_cmds=
  7554. thread_safe_flag_spec=
  7555. whole_archive_flag_spec=
  7556. # include_expsyms should be a list of space-separated symbols to be *always*
  7557. # included in the symbol list
  7558. include_expsyms=
  7559. # exclude_expsyms can be an extended regexp of symbols to exclude
  7560. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7561. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7562. # as well as any symbol that contains `d'.
  7563. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7564. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7565. # platforms (ab)use it in PIC code, but their linkers get confused if
  7566. # the symbol is explicitly referenced. Since portable code cannot
  7567. # rely on this symbol name, it's probably fine to never include it in
  7568. # preloaded symbol tables.
  7569. # Exclude shared library initialization/finalization symbols.
  7570. extract_expsyms_cmds=
  7571. case $host_os in
  7572. cygwin* | mingw* | pw32* | cegcc*)
  7573. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7574. # When not using gcc, we currently assume that we are using
  7575. # Microsoft Visual C++.
  7576. if test "$GCC" != yes; then
  7577. with_gnu_ld=no
  7578. fi
  7579. ;;
  7580. interix*)
  7581. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7582. with_gnu_ld=yes
  7583. ;;
  7584. openbsd*)
  7585. with_gnu_ld=no
  7586. ;;
  7587. esac
  7588. ld_shlibs=yes
  7589. # On some targets, GNU ld is compatible enough with the native linker
  7590. # that we're better off using the native interface for both.
  7591. lt_use_gnu_ld_interface=no
  7592. if test "$with_gnu_ld" = yes; then
  7593. case $host_os in
  7594. aix*)
  7595. # The AIX port of GNU ld has always aspired to compatibility
  7596. # with the native linker. However, as the warning in the GNU ld
  7597. # block says, versions before 2.19.5* couldn't really create working
  7598. # shared libraries, regardless of the interface used.
  7599. case `$LD -v 2>&1` in
  7600. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7601. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7602. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7603. *)
  7604. lt_use_gnu_ld_interface=yes
  7605. ;;
  7606. esac
  7607. ;;
  7608. *)
  7609. lt_use_gnu_ld_interface=yes
  7610. ;;
  7611. esac
  7612. fi
  7613. if test "$lt_use_gnu_ld_interface" = yes; then
  7614. # If archive_cmds runs LD, not CC, wlarc should be empty
  7615. wlarc='${wl}'
  7616. # Set some defaults for GNU ld with shared library support. These
  7617. # are reset later if shared libraries are not supported. Putting them
  7618. # here allows them to be overridden if necessary.
  7619. runpath_var=LD_RUN_PATH
  7620. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7621. export_dynamic_flag_spec='${wl}--export-dynamic'
  7622. # ancient GNU ld didn't support --whole-archive et. al.
  7623. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7624. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7625. else
  7626. whole_archive_flag_spec=
  7627. fi
  7628. supports_anon_versioning=no
  7629. case `$LD -v 2>&1` in
  7630. *GNU\ gold*) supports_anon_versioning=yes ;;
  7631. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7632. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7633. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7634. *\ 2.11.*) ;; # other 2.11 versions
  7635. *) supports_anon_versioning=yes ;;
  7636. esac
  7637. # See if GNU ld supports shared libraries.
  7638. case $host_os in
  7639. aix[3-9]*)
  7640. # On AIX/PPC, the GNU linker is very broken
  7641. if test "$host_cpu" != ia64; then
  7642. ld_shlibs=no
  7643. cat <<_LT_EOF 1>&2
  7644. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7645. *** to be unable to reliably create shared libraries on AIX.
  7646. *** Therefore, libtool is disabling shared libraries support. If you
  7647. *** really care for shared libraries, you may want to install binutils
  7648. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7649. *** You will then need to restart the configuration process.
  7650. _LT_EOF
  7651. fi
  7652. ;;
  7653. amigaos*)
  7654. case $host_cpu in
  7655. powerpc)
  7656. # see comment about AmigaOS4 .so support
  7657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7658. archive_expsym_cmds=''
  7659. ;;
  7660. m68k)
  7661. 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)'
  7662. hardcode_libdir_flag_spec='-L$libdir'
  7663. hardcode_minus_L=yes
  7664. ;;
  7665. esac
  7666. ;;
  7667. beos*)
  7668. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7669. allow_undefined_flag=unsupported
  7670. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7671. # support --undefined. This deserves some investigation. FIXME
  7672. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7673. else
  7674. ld_shlibs=no
  7675. fi
  7676. ;;
  7677. cygwin* | mingw* | pw32* | cegcc*)
  7678. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7679. # as there is no search path for DLLs.
  7680. hardcode_libdir_flag_spec='-L$libdir'
  7681. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7682. allow_undefined_flag=unsupported
  7683. always_export_symbols=no
  7684. enable_shared_with_static_runtimes=yes
  7685. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7686. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7687. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7688. # If the export-symbols file already is a .def file (1st line
  7689. # is EXPORTS), use it as is; otherwise, prepend...
  7690. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7691. cp $export_symbols $output_objdir/$soname.def;
  7692. else
  7693. echo EXPORTS > $output_objdir/$soname.def;
  7694. cat $export_symbols >> $output_objdir/$soname.def;
  7695. fi~
  7696. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7697. else
  7698. ld_shlibs=no
  7699. fi
  7700. ;;
  7701. haiku*)
  7702. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7703. link_all_deplibs=yes
  7704. ;;
  7705. interix[3-9]*)
  7706. hardcode_direct=no
  7707. hardcode_shlibpath_var=no
  7708. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7709. export_dynamic_flag_spec='${wl}-E'
  7710. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7711. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7712. # default) and relocated if they conflict, which is a slow very memory
  7713. # consuming and fragmenting process. To avoid this, we pick a random,
  7714. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7715. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7716. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7717. 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'
  7718. ;;
  7719. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  7720. tmp_diet=no
  7721. if test "$host_os" = linux-dietlibc; then
  7722. case $cc_basename in
  7723. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7724. esac
  7725. fi
  7726. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7727. && test "$tmp_diet" = no
  7728. then
  7729. tmp_addflag=' $pic_flag'
  7730. tmp_sharedflag='-shared'
  7731. case $cc_basename,$host_cpu in
  7732. pgcc*) # Portland Group C compiler
  7733. 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'
  7734. tmp_addflag=' $pic_flag'
  7735. ;;
  7736. pgf77* | pgf90* | pgf95* | pgfortran*)
  7737. # Portland Group f77 and f90 compilers
  7738. 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'
  7739. tmp_addflag=' $pic_flag -Mnomain' ;;
  7740. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7741. tmp_addflag=' -i_dynamic' ;;
  7742. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7743. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7744. ifc* | ifort*) # Intel Fortran compiler
  7745. tmp_addflag=' -nofor_main' ;;
  7746. lf95*) # Lahey Fortran 8.1
  7747. whole_archive_flag_spec=
  7748. tmp_sharedflag='--shared' ;;
  7749. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7750. tmp_sharedflag='-qmkshrobj'
  7751. tmp_addflag= ;;
  7752. nvcc*) # Cuda Compiler Driver 2.2
  7753. 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'
  7754. compiler_needs_object=yes
  7755. ;;
  7756. esac
  7757. case `$CC -V 2>&1 | sed 5q` in
  7758. *Sun\ C*) # Sun C 5.9
  7759. 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'
  7760. compiler_needs_object=yes
  7761. tmp_sharedflag='-G' ;;
  7762. *Sun\ F*) # Sun Fortran 8.3
  7763. tmp_sharedflag='-G' ;;
  7764. esac
  7765. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7766. if test "x$supports_anon_versioning" = xyes; then
  7767. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7768. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7769. echo "local: *; };" >> $output_objdir/$libname.ver~
  7770. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7771. fi
  7772. case $cc_basename in
  7773. xlf* | bgf* | bgxlf* | mpixlf*)
  7774. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7775. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7776. hardcode_libdir_flag_spec=
  7777. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7778. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7779. if test "x$supports_anon_versioning" = xyes; then
  7780. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7781. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7782. echo "local: *; };" >> $output_objdir/$libname.ver~
  7783. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7784. fi
  7785. ;;
  7786. esac
  7787. else
  7788. ld_shlibs=no
  7789. fi
  7790. ;;
  7791. netbsd*)
  7792. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7793. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7794. wlarc=
  7795. else
  7796. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7797. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7798. fi
  7799. ;;
  7800. solaris*)
  7801. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7802. ld_shlibs=no
  7803. cat <<_LT_EOF 1>&2
  7804. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7805. *** create shared libraries on Solaris systems. Therefore, libtool
  7806. *** is disabling shared libraries support. We urge you to upgrade GNU
  7807. *** binutils to release 2.9.1 or newer. Another option is to modify
  7808. *** your PATH or compiler configuration so that the native linker is
  7809. *** used, and then restart.
  7810. _LT_EOF
  7811. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7812. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7813. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7814. else
  7815. ld_shlibs=no
  7816. fi
  7817. ;;
  7818. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7819. case `$LD -v 2>&1` in
  7820. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7821. ld_shlibs=no
  7822. cat <<_LT_EOF 1>&2
  7823. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7824. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7825. *** is disabling shared libraries support. We urge you to upgrade GNU
  7826. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7827. *** your PATH or compiler configuration so that the native linker is
  7828. *** used, and then restart.
  7829. _LT_EOF
  7830. ;;
  7831. *)
  7832. # For security reasons, it is highly recommended that you always
  7833. # use absolute paths for naming shared libraries, and exclude the
  7834. # DT_RUNPATH tag from executables and libraries. But doing so
  7835. # requires that you compile everything twice, which is a pain.
  7836. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7837. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7839. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7840. else
  7841. ld_shlibs=no
  7842. fi
  7843. ;;
  7844. esac
  7845. ;;
  7846. sunos4*)
  7847. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7848. wlarc=
  7849. hardcode_direct=yes
  7850. hardcode_shlibpath_var=no
  7851. ;;
  7852. *)
  7853. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7854. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7855. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7856. else
  7857. ld_shlibs=no
  7858. fi
  7859. ;;
  7860. esac
  7861. if test "$ld_shlibs" = no; then
  7862. runpath_var=
  7863. hardcode_libdir_flag_spec=
  7864. export_dynamic_flag_spec=
  7865. whole_archive_flag_spec=
  7866. fi
  7867. else
  7868. # PORTME fill in a description of your system's linker (not GNU ld)
  7869. case $host_os in
  7870. aix3*)
  7871. allow_undefined_flag=unsupported
  7872. always_export_symbols=yes
  7873. 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'
  7874. # Note: this linker hardcodes the directories in LIBPATH if there
  7875. # are no directories specified by -L.
  7876. hardcode_minus_L=yes
  7877. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7878. # Neither direct hardcoding nor static linking is supported with a
  7879. # broken collect2.
  7880. hardcode_direct=unsupported
  7881. fi
  7882. ;;
  7883. aix[4-9]*)
  7884. if test "$host_cpu" = ia64; then
  7885. # On IA64, the linker does run time linking by default, so we don't
  7886. # have to do anything special.
  7887. aix_use_runtimelinking=no
  7888. exp_sym_flag='-Bexport'
  7889. no_entry_flag=""
  7890. else
  7891. # If we're using GNU nm, then we don't want the "-C" option.
  7892. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7893. # Also, AIX nm treats weak defined symbols like other global
  7894. # defined symbols, whereas GNU nm marks them as "W".
  7895. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7896. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7897. else
  7898. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7899. fi
  7900. aix_use_runtimelinking=no
  7901. # Test if we are trying to use run time linking or normal
  7902. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7903. # need to do runtime linking.
  7904. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7905. for ld_flag in $LDFLAGS; do
  7906. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7907. aix_use_runtimelinking=yes
  7908. break
  7909. fi
  7910. done
  7911. ;;
  7912. esac
  7913. exp_sym_flag='-bexport'
  7914. no_entry_flag='-bnoentry'
  7915. fi
  7916. # When large executables or shared objects are built, AIX ld can
  7917. # have problems creating the table of contents. If linking a library
  7918. # or program results in "error TOC overflow" add -mminimal-toc to
  7919. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7920. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7921. archive_cmds=''
  7922. hardcode_direct=yes
  7923. hardcode_direct_absolute=yes
  7924. hardcode_libdir_separator=':'
  7925. link_all_deplibs=yes
  7926. file_list_spec='${wl}-f,'
  7927. if test "$GCC" = yes; then
  7928. case $host_os in aix4.[012]|aix4.[012].*)
  7929. # We only want to do this on AIX 4.2 and lower, the check
  7930. # below for broken collect2 doesn't work under 4.3+
  7931. collect2name=`${CC} -print-prog-name=collect2`
  7932. if test -f "$collect2name" &&
  7933. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7934. then
  7935. # We have reworked collect2
  7936. :
  7937. else
  7938. # We have old collect2
  7939. hardcode_direct=unsupported
  7940. # It fails to find uninstalled libraries when the uninstalled
  7941. # path is not listed in the libpath. Setting hardcode_minus_L
  7942. # to unsupported forces relinking
  7943. hardcode_minus_L=yes
  7944. hardcode_libdir_flag_spec='-L$libdir'
  7945. hardcode_libdir_separator=
  7946. fi
  7947. ;;
  7948. esac
  7949. shared_flag='-shared'
  7950. if test "$aix_use_runtimelinking" = yes; then
  7951. shared_flag="$shared_flag "'${wl}-G'
  7952. fi
  7953. else
  7954. # not using gcc
  7955. if test "$host_cpu" = ia64; then
  7956. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7957. # chokes on -Wl,-G. The following line is correct:
  7958. shared_flag='-G'
  7959. else
  7960. if test "$aix_use_runtimelinking" = yes; then
  7961. shared_flag='${wl}-G'
  7962. else
  7963. shared_flag='${wl}-bM:SRE'
  7964. fi
  7965. fi
  7966. fi
  7967. export_dynamic_flag_spec='${wl}-bexpall'
  7968. # It seems that -bexpall does not export symbols beginning with
  7969. # underscore (_), so it is better to generate a list of symbols to export.
  7970. always_export_symbols=yes
  7971. if test "$aix_use_runtimelinking" = yes; then
  7972. # Warning - without using the other runtime loading flags (-brtl),
  7973. # -berok will link without error, but may produce a broken library.
  7974. allow_undefined_flag='-berok'
  7975. # Determine the default libpath from the value encoded in an
  7976. # empty executable.
  7977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7978. /* end confdefs.h. */
  7979. int
  7980. main ()
  7981. {
  7982. ;
  7983. return 0;
  7984. }
  7985. _ACEOF
  7986. if ac_fn_c_try_link "$LINENO"; then :
  7987. lt_aix_libpath_sed='
  7988. /Import File Strings/,/^$/ {
  7989. /^0/ {
  7990. s/^0 *\(.*\)$/\1/
  7991. p
  7992. }
  7993. }'
  7994. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7995. # Check for a 64-bit object if we didn't find anything.
  7996. if test -z "$aix_libpath"; then
  7997. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7998. fi
  7999. fi
  8000. rm -f core conftest.err conftest.$ac_objext \
  8001. conftest$ac_exeext conftest.$ac_ext
  8002. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8003. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8004. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8005. else
  8006. if test "$host_cpu" = ia64; then
  8007. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8008. allow_undefined_flag="-z nodefs"
  8009. 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"
  8010. else
  8011. # Determine the default libpath from the value encoded in an
  8012. # empty executable.
  8013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8014. /* end confdefs.h. */
  8015. int
  8016. main ()
  8017. {
  8018. ;
  8019. return 0;
  8020. }
  8021. _ACEOF
  8022. if ac_fn_c_try_link "$LINENO"; then :
  8023. lt_aix_libpath_sed='
  8024. /Import File Strings/,/^$/ {
  8025. /^0/ {
  8026. s/^0 *\(.*\)$/\1/
  8027. p
  8028. }
  8029. }'
  8030. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8031. # Check for a 64-bit object if we didn't find anything.
  8032. if test -z "$aix_libpath"; then
  8033. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8034. fi
  8035. fi
  8036. rm -f core conftest.err conftest.$ac_objext \
  8037. conftest$ac_exeext conftest.$ac_ext
  8038. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8039. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8040. # Warning - without using the other run time loading flags,
  8041. # -berok will link without error, but may produce a broken library.
  8042. no_undefined_flag=' ${wl}-bernotok'
  8043. allow_undefined_flag=' ${wl}-berok'
  8044. if test "$with_gnu_ld" = yes; then
  8045. # We only use this code for GNU lds that support --whole-archive.
  8046. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8047. else
  8048. # Exported symbols can be pulled into shared objects from archives
  8049. whole_archive_flag_spec='$convenience'
  8050. fi
  8051. archive_cmds_need_lc=yes
  8052. # This is similar to how AIX traditionally builds its shared libraries.
  8053. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8054. fi
  8055. fi
  8056. ;;
  8057. amigaos*)
  8058. case $host_cpu in
  8059. powerpc)
  8060. # see comment about AmigaOS4 .so support
  8061. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8062. archive_expsym_cmds=''
  8063. ;;
  8064. m68k)
  8065. 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)'
  8066. hardcode_libdir_flag_spec='-L$libdir'
  8067. hardcode_minus_L=yes
  8068. ;;
  8069. esac
  8070. ;;
  8071. bsdi[45]*)
  8072. export_dynamic_flag_spec=-rdynamic
  8073. ;;
  8074. cygwin* | mingw* | pw32* | cegcc*)
  8075. # When not using gcc, we currently assume that we are using
  8076. # Microsoft Visual C++.
  8077. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8078. # no search path for DLLs.
  8079. hardcode_libdir_flag_spec=' '
  8080. allow_undefined_flag=unsupported
  8081. # Tell ltmain to make .lib files, not .a files.
  8082. libext=lib
  8083. # Tell ltmain to make .dll files, not .so files.
  8084. shrext_cmds=".dll"
  8085. # FIXME: Setting linknames here is a bad hack.
  8086. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8087. # The linker will automatically build a .lib file if we build a DLL.
  8088. old_archive_from_new_cmds='true'
  8089. # FIXME: Should let the user specify the lib program.
  8090. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8091. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8092. enable_shared_with_static_runtimes=yes
  8093. ;;
  8094. darwin* | rhapsody*)
  8095. archive_cmds_need_lc=no
  8096. hardcode_direct=no
  8097. hardcode_automatic=yes
  8098. hardcode_shlibpath_var=unsupported
  8099. if test "$lt_cv_ld_force_load" = "yes"; then
  8100. 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\"`'
  8101. else
  8102. whole_archive_flag_spec=''
  8103. fi
  8104. link_all_deplibs=yes
  8105. allow_undefined_flag="$_lt_dar_allow_undefined"
  8106. case $cc_basename in
  8107. ifort*) _lt_dar_can_shared=yes ;;
  8108. *) _lt_dar_can_shared=$GCC ;;
  8109. esac
  8110. if test "$_lt_dar_can_shared" = "yes"; then
  8111. output_verbose_link_cmd=func_echo_all
  8112. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8113. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8114. 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}"
  8115. 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}"
  8116. else
  8117. ld_shlibs=no
  8118. fi
  8119. ;;
  8120. dgux*)
  8121. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8122. hardcode_libdir_flag_spec='-L$libdir'
  8123. hardcode_shlibpath_var=no
  8124. ;;
  8125. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8126. # support. Future versions do this automatically, but an explicit c++rt0.o
  8127. # does not break anything, and helps significantly (at the cost of a little
  8128. # extra space).
  8129. freebsd2.2*)
  8130. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8131. hardcode_libdir_flag_spec='-R$libdir'
  8132. hardcode_direct=yes
  8133. hardcode_shlibpath_var=no
  8134. ;;
  8135. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8136. freebsd2.*)
  8137. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8138. hardcode_direct=yes
  8139. hardcode_minus_L=yes
  8140. hardcode_shlibpath_var=no
  8141. ;;
  8142. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8143. freebsd* | dragonfly*)
  8144. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8145. hardcode_libdir_flag_spec='-R$libdir'
  8146. hardcode_direct=yes
  8147. hardcode_shlibpath_var=no
  8148. ;;
  8149. hpux9*)
  8150. if test "$GCC" = yes; then
  8151. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8152. else
  8153. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8154. fi
  8155. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8156. hardcode_libdir_separator=:
  8157. hardcode_direct=yes
  8158. # hardcode_minus_L: Not really in the search PATH,
  8159. # but as the default location of the library.
  8160. hardcode_minus_L=yes
  8161. export_dynamic_flag_spec='${wl}-E'
  8162. ;;
  8163. hpux10*)
  8164. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8165. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8166. else
  8167. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8168. fi
  8169. if test "$with_gnu_ld" = no; then
  8170. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8171. hardcode_libdir_flag_spec_ld='+b $libdir'
  8172. hardcode_libdir_separator=:
  8173. hardcode_direct=yes
  8174. hardcode_direct_absolute=yes
  8175. export_dynamic_flag_spec='${wl}-E'
  8176. # hardcode_minus_L: Not really in the search PATH,
  8177. # but as the default location of the library.
  8178. hardcode_minus_L=yes
  8179. fi
  8180. ;;
  8181. hpux11*)
  8182. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8183. case $host_cpu in
  8184. hppa*64*)
  8185. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8186. ;;
  8187. ia64*)
  8188. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8189. ;;
  8190. *)
  8191. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8192. ;;
  8193. esac
  8194. else
  8195. case $host_cpu in
  8196. hppa*64*)
  8197. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8198. ;;
  8199. ia64*)
  8200. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8201. ;;
  8202. *)
  8203. # Older versions of the 11.00 compiler do not understand -b yet
  8204. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8206. $as_echo_n "checking if $CC understands -b... " >&6; }
  8207. if ${lt_cv_prog_compiler__b+:} false; then :
  8208. $as_echo_n "(cached) " >&6
  8209. else
  8210. lt_cv_prog_compiler__b=no
  8211. save_LDFLAGS="$LDFLAGS"
  8212. LDFLAGS="$LDFLAGS -b"
  8213. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8214. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8215. # The linker can only warn and ignore the option if not recognized
  8216. # So say no if there are warnings
  8217. if test -s conftest.err; then
  8218. # Append any errors to the config.log.
  8219. cat conftest.err 1>&5
  8220. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8221. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8222. if diff conftest.exp conftest.er2 >/dev/null; then
  8223. lt_cv_prog_compiler__b=yes
  8224. fi
  8225. else
  8226. lt_cv_prog_compiler__b=yes
  8227. fi
  8228. fi
  8229. $RM -r conftest*
  8230. LDFLAGS="$save_LDFLAGS"
  8231. fi
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8233. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8234. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8235. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8236. else
  8237. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8238. fi
  8239. ;;
  8240. esac
  8241. fi
  8242. if test "$with_gnu_ld" = no; then
  8243. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8244. hardcode_libdir_separator=:
  8245. case $host_cpu in
  8246. hppa*64*|ia64*)
  8247. hardcode_direct=no
  8248. hardcode_shlibpath_var=no
  8249. ;;
  8250. *)
  8251. hardcode_direct=yes
  8252. hardcode_direct_absolute=yes
  8253. export_dynamic_flag_spec='${wl}-E'
  8254. # hardcode_minus_L: Not really in the search PATH,
  8255. # but as the default location of the library.
  8256. hardcode_minus_L=yes
  8257. ;;
  8258. esac
  8259. fi
  8260. ;;
  8261. irix5* | irix6* | nonstopux*)
  8262. if test "$GCC" = yes; then
  8263. archive_cmds='$CC -shared $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'
  8264. # Try to use the -exported_symbol ld option, if it does not
  8265. # work, assume that -exports_file does not work either and
  8266. # implicitly export all symbols.
  8267. save_LDFLAGS="$LDFLAGS"
  8268. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8270. /* end confdefs.h. */
  8271. int foo(void) {}
  8272. _ACEOF
  8273. if ac_fn_c_try_link "$LINENO"; then :
  8274. archive_expsym_cmds='$CC -shared $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'
  8275. fi
  8276. rm -f core conftest.err conftest.$ac_objext \
  8277. conftest$ac_exeext conftest.$ac_ext
  8278. LDFLAGS="$save_LDFLAGS"
  8279. else
  8280. 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'
  8281. 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'
  8282. fi
  8283. archive_cmds_need_lc='no'
  8284. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8285. hardcode_libdir_separator=:
  8286. inherit_rpath=yes
  8287. link_all_deplibs=yes
  8288. ;;
  8289. netbsd*)
  8290. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8291. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8292. else
  8293. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8294. fi
  8295. hardcode_libdir_flag_spec='-R$libdir'
  8296. hardcode_direct=yes
  8297. hardcode_shlibpath_var=no
  8298. ;;
  8299. newsos6)
  8300. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8301. hardcode_direct=yes
  8302. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8303. hardcode_libdir_separator=:
  8304. hardcode_shlibpath_var=no
  8305. ;;
  8306. *nto* | *qnx*)
  8307. ;;
  8308. openbsd*)
  8309. if test -f /usr/libexec/ld.so; then
  8310. hardcode_direct=yes
  8311. hardcode_shlibpath_var=no
  8312. hardcode_direct_absolute=yes
  8313. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8314. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8315. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8316. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8317. export_dynamic_flag_spec='${wl}-E'
  8318. else
  8319. case $host_os in
  8320. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8321. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8322. hardcode_libdir_flag_spec='-R$libdir'
  8323. ;;
  8324. *)
  8325. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8326. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8327. ;;
  8328. esac
  8329. fi
  8330. else
  8331. ld_shlibs=no
  8332. fi
  8333. ;;
  8334. os2*)
  8335. hardcode_libdir_flag_spec='-L$libdir'
  8336. hardcode_minus_L=yes
  8337. allow_undefined_flag=unsupported
  8338. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8339. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8340. ;;
  8341. osf3*)
  8342. if test "$GCC" = yes; then
  8343. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8344. 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'
  8345. else
  8346. allow_undefined_flag=' -expect_unresolved \*'
  8347. 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'
  8348. fi
  8349. archive_cmds_need_lc='no'
  8350. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8351. hardcode_libdir_separator=:
  8352. ;;
  8353. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8354. if test "$GCC" = yes; then
  8355. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8356. archive_cmds='$CC -shared${allow_undefined_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'
  8357. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8358. else
  8359. allow_undefined_flag=' -expect_unresolved \*'
  8360. 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'
  8361. 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~
  8362. $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'
  8363. # Both c and cxx compiler support -rpath directly
  8364. hardcode_libdir_flag_spec='-rpath $libdir'
  8365. fi
  8366. archive_cmds_need_lc='no'
  8367. hardcode_libdir_separator=:
  8368. ;;
  8369. solaris*)
  8370. no_undefined_flag=' -z defs'
  8371. if test "$GCC" = yes; then
  8372. wlarc='${wl}'
  8373. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8374. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8375. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8376. else
  8377. case `$CC -V 2>&1` in
  8378. *"Compilers 5.0"*)
  8379. wlarc=''
  8380. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8381. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8382. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8383. ;;
  8384. *)
  8385. wlarc='${wl}'
  8386. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8387. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8388. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8389. ;;
  8390. esac
  8391. fi
  8392. hardcode_libdir_flag_spec='-R$libdir'
  8393. hardcode_shlibpath_var=no
  8394. case $host_os in
  8395. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8396. *)
  8397. # The compiler driver will combine and reorder linker options,
  8398. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8399. # but is careful enough not to reorder.
  8400. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8401. if test "$GCC" = yes; then
  8402. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8403. else
  8404. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8405. fi
  8406. ;;
  8407. esac
  8408. link_all_deplibs=yes
  8409. ;;
  8410. sunos4*)
  8411. if test "x$host_vendor" = xsequent; then
  8412. # Use $CC to link under sequent, because it throws in some extra .o
  8413. # files that make .init and .fini sections work.
  8414. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8415. else
  8416. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8417. fi
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_direct=yes
  8420. hardcode_minus_L=yes
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. sysv4)
  8424. case $host_vendor in
  8425. sni)
  8426. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8427. hardcode_direct=yes # is this really true???
  8428. ;;
  8429. siemens)
  8430. ## LD is ld it makes a PLAMLIB
  8431. ## CC just makes a GrossModule.
  8432. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8433. reload_cmds='$CC -r -o $output$reload_objs'
  8434. hardcode_direct=no
  8435. ;;
  8436. motorola)
  8437. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8438. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8439. ;;
  8440. esac
  8441. runpath_var='LD_RUN_PATH'
  8442. hardcode_shlibpath_var=no
  8443. ;;
  8444. sysv4.3*)
  8445. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8446. hardcode_shlibpath_var=no
  8447. export_dynamic_flag_spec='-Bexport'
  8448. ;;
  8449. sysv4*MP*)
  8450. if test -d /usr/nec; then
  8451. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8452. hardcode_shlibpath_var=no
  8453. runpath_var=LD_RUN_PATH
  8454. hardcode_runpath_var=yes
  8455. ld_shlibs=yes
  8456. fi
  8457. ;;
  8458. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8459. no_undefined_flag='${wl}-z,text'
  8460. archive_cmds_need_lc=no
  8461. hardcode_shlibpath_var=no
  8462. runpath_var='LD_RUN_PATH'
  8463. if test "$GCC" = yes; then
  8464. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. else
  8467. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8468. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. fi
  8470. ;;
  8471. sysv5* | sco3.2v5* | sco5v6*)
  8472. # Note: We can NOT use -z defs as we might desire, because we do not
  8473. # link with -lc, and that would cause any symbols used from libc to
  8474. # always be unresolved, which means just about no library would
  8475. # ever link correctly. If we're not using GNU ld we use -z text
  8476. # though, which does catch some bad symbols but isn't as heavy-handed
  8477. # as -z defs.
  8478. no_undefined_flag='${wl}-z,text'
  8479. allow_undefined_flag='${wl}-z,nodefs'
  8480. archive_cmds_need_lc=no
  8481. hardcode_shlibpath_var=no
  8482. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8483. hardcode_libdir_separator=':'
  8484. link_all_deplibs=yes
  8485. export_dynamic_flag_spec='${wl}-Bexport'
  8486. runpath_var='LD_RUN_PATH'
  8487. if test "$GCC" = yes; then
  8488. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8489. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. else
  8491. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8492. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8493. fi
  8494. ;;
  8495. uts4*)
  8496. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8497. hardcode_libdir_flag_spec='-L$libdir'
  8498. hardcode_shlibpath_var=no
  8499. ;;
  8500. *)
  8501. ld_shlibs=no
  8502. ;;
  8503. esac
  8504. if test x$host_vendor = xsni; then
  8505. case $host in
  8506. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8507. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8508. ;;
  8509. esac
  8510. fi
  8511. fi
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8513. $as_echo "$ld_shlibs" >&6; }
  8514. test "$ld_shlibs" = no && can_build_shared=no
  8515. with_gnu_ld=$with_gnu_ld
  8516. #
  8517. # Do we need to explicitly link libc?
  8518. #
  8519. case "x$archive_cmds_need_lc" in
  8520. x|xyes)
  8521. # Assume -lc should be added
  8522. archive_cmds_need_lc=yes
  8523. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8524. case $archive_cmds in
  8525. *'~'*)
  8526. # FIXME: we may have to deal with multi-command sequences.
  8527. ;;
  8528. '$CC '*)
  8529. # Test whether the compiler implicitly links with -lc since on some
  8530. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8531. # to ld, don't add -lc before -lgcc.
  8532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8533. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8534. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8535. $as_echo_n "(cached) " >&6
  8536. else
  8537. $RM conftest*
  8538. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8539. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8540. (eval $ac_compile) 2>&5
  8541. ac_status=$?
  8542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8543. test $ac_status = 0; } 2>conftest.err; then
  8544. soname=conftest
  8545. lib=conftest
  8546. libobjs=conftest.$ac_objext
  8547. deplibs=
  8548. wl=$lt_prog_compiler_wl
  8549. pic_flag=$lt_prog_compiler_pic
  8550. compiler_flags=-v
  8551. linker_flags=-v
  8552. verstring=
  8553. output_objdir=.
  8554. libname=conftest
  8555. lt_save_allow_undefined_flag=$allow_undefined_flag
  8556. allow_undefined_flag=
  8557. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8558. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8559. ac_status=$?
  8560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8561. test $ac_status = 0; }
  8562. then
  8563. lt_cv_archive_cmds_need_lc=no
  8564. else
  8565. lt_cv_archive_cmds_need_lc=yes
  8566. fi
  8567. allow_undefined_flag=$lt_save_allow_undefined_flag
  8568. else
  8569. cat conftest.err 1>&5
  8570. fi
  8571. $RM conftest*
  8572. fi
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8574. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8575. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8576. ;;
  8577. esac
  8578. fi
  8579. ;;
  8580. esac
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8582. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8583. if test "$GCC" = yes; then
  8584. case $host_os in
  8585. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8586. *) lt_awk_arg="/^libraries:/" ;;
  8587. esac
  8588. case $host_os in
  8589. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8590. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8591. esac
  8592. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8593. case $lt_search_path_spec in
  8594. *\;*)
  8595. # if the path contains ";" then we assume it to be the separator
  8596. # otherwise default to the standard path separator (i.e. ":") - it is
  8597. # assumed that no part of a normal pathname contains ";" but that should
  8598. # okay in the real world where ";" in dirpaths is itself problematic.
  8599. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8600. ;;
  8601. *)
  8602. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8603. ;;
  8604. esac
  8605. # Ok, now we have the path, separated by spaces, we can step through it
  8606. # and add multilib dir if necessary.
  8607. lt_tmp_lt_search_path_spec=
  8608. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8609. for lt_sys_path in $lt_search_path_spec; do
  8610. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8611. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8612. else
  8613. test -d "$lt_sys_path" && \
  8614. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8615. fi
  8616. done
  8617. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8618. BEGIN {RS=" "; FS="/|\n";} {
  8619. lt_foo="";
  8620. lt_count=0;
  8621. for (lt_i = NF; lt_i > 0; lt_i--) {
  8622. if ($lt_i != "" && $lt_i != ".") {
  8623. if ($lt_i == "..") {
  8624. lt_count++;
  8625. } else {
  8626. if (lt_count == 0) {
  8627. lt_foo="/" $lt_i lt_foo;
  8628. } else {
  8629. lt_count--;
  8630. }
  8631. }
  8632. }
  8633. }
  8634. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8635. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8636. }'`
  8637. # AWK program above erroneously prepends '/' to C:/dos/paths
  8638. # for these hosts.
  8639. case $host_os in
  8640. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8641. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8642. esac
  8643. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8644. else
  8645. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8646. fi
  8647. library_names_spec=
  8648. libname_spec='lib$name'
  8649. soname_spec=
  8650. shrext_cmds=".so"
  8651. postinstall_cmds=
  8652. postuninstall_cmds=
  8653. finish_cmds=
  8654. finish_eval=
  8655. shlibpath_var=
  8656. shlibpath_overrides_runpath=unknown
  8657. version_type=none
  8658. dynamic_linker="$host_os ld.so"
  8659. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8660. need_lib_prefix=unknown
  8661. hardcode_into_libs=no
  8662. # when you set need_version to no, make sure it does not cause -set_version
  8663. # flags to be left without arguments
  8664. need_version=unknown
  8665. case $host_os in
  8666. aix3*)
  8667. version_type=linux
  8668. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8669. shlibpath_var=LIBPATH
  8670. # AIX 3 has no versioning support, so we append a major version to the name.
  8671. soname_spec='${libname}${release}${shared_ext}$major'
  8672. ;;
  8673. aix[4-9]*)
  8674. version_type=linux
  8675. need_lib_prefix=no
  8676. need_version=no
  8677. hardcode_into_libs=yes
  8678. if test "$host_cpu" = ia64; then
  8679. # AIX 5 supports IA64
  8680. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8681. shlibpath_var=LD_LIBRARY_PATH
  8682. else
  8683. # With GCC up to 2.95.x, collect2 would create an import file
  8684. # for dependence libraries. The import file would start with
  8685. # the line `#! .'. This would cause the generated library to
  8686. # depend on `.', always an invalid library. This was fixed in
  8687. # development snapshots of GCC prior to 3.0.
  8688. case $host_os in
  8689. aix4 | aix4.[01] | aix4.[01].*)
  8690. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8691. echo ' yes '
  8692. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8693. :
  8694. else
  8695. can_build_shared=no
  8696. fi
  8697. ;;
  8698. esac
  8699. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8700. # soname into executable. Probably we can add versioning support to
  8701. # collect2, so additional links can be useful in future.
  8702. if test "$aix_use_runtimelinking" = yes; then
  8703. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8704. # instead of lib<name>.a to let people know that these are not
  8705. # typical AIX shared libraries.
  8706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8707. else
  8708. # We preserve .a as extension for shared libraries through AIX4.2
  8709. # and later when we are not doing run time linking.
  8710. library_names_spec='${libname}${release}.a $libname.a'
  8711. soname_spec='${libname}${release}${shared_ext}$major'
  8712. fi
  8713. shlibpath_var=LIBPATH
  8714. fi
  8715. ;;
  8716. amigaos*)
  8717. case $host_cpu in
  8718. powerpc)
  8719. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8720. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8722. ;;
  8723. m68k)
  8724. library_names_spec='$libname.ixlibrary $libname.a'
  8725. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8726. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8727. ;;
  8728. esac
  8729. ;;
  8730. beos*)
  8731. library_names_spec='${libname}${shared_ext}'
  8732. dynamic_linker="$host_os ld.so"
  8733. shlibpath_var=LIBRARY_PATH
  8734. ;;
  8735. bsdi[45]*)
  8736. version_type=linux
  8737. need_version=no
  8738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8739. soname_spec='${libname}${release}${shared_ext}$major'
  8740. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8741. shlibpath_var=LD_LIBRARY_PATH
  8742. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8743. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8744. # the default ld.so.conf also contains /usr/contrib/lib and
  8745. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8746. # libtool to hard-code these into programs
  8747. ;;
  8748. cygwin* | mingw* | pw32* | cegcc*)
  8749. version_type=windows
  8750. shrext_cmds=".dll"
  8751. need_version=no
  8752. need_lib_prefix=no
  8753. case $GCC,$host_os in
  8754. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8755. library_names_spec='$libname.dll.a'
  8756. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8757. postinstall_cmds='base_file=`basename \${file}`~
  8758. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8759. dldir=$destdir/`dirname \$dlpath`~
  8760. test -d \$dldir || mkdir -p \$dldir~
  8761. $install_prog $dir/$dlname \$dldir/$dlname~
  8762. chmod a+x \$dldir/$dlname~
  8763. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8764. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8765. fi'
  8766. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8767. dlpath=$dir/\$dldll~
  8768. $RM \$dlpath'
  8769. shlibpath_overrides_runpath=yes
  8770. case $host_os in
  8771. cygwin*)
  8772. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8773. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8774. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8775. ;;
  8776. mingw* | cegcc*)
  8777. # MinGW DLLs use traditional 'lib' prefix
  8778. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8779. ;;
  8780. pw32*)
  8781. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8782. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8783. ;;
  8784. esac
  8785. ;;
  8786. *)
  8787. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8788. ;;
  8789. esac
  8790. dynamic_linker='Win32 ld.exe'
  8791. # FIXME: first we should search . and the directory the executable is in
  8792. shlibpath_var=PATH
  8793. ;;
  8794. darwin* | rhapsody*)
  8795. dynamic_linker="$host_os dyld"
  8796. version_type=darwin
  8797. need_lib_prefix=no
  8798. need_version=no
  8799. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8800. soname_spec='${libname}${release}${major}$shared_ext'
  8801. shlibpath_overrides_runpath=yes
  8802. shlibpath_var=DYLD_LIBRARY_PATH
  8803. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8804. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8805. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8806. ;;
  8807. dgux*)
  8808. version_type=linux
  8809. need_lib_prefix=no
  8810. need_version=no
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8812. soname_spec='${libname}${release}${shared_ext}$major'
  8813. shlibpath_var=LD_LIBRARY_PATH
  8814. ;;
  8815. freebsd* | dragonfly*)
  8816. # DragonFly does not have aout. When/if they implement a new
  8817. # versioning mechanism, adjust this.
  8818. if test -x /usr/bin/objformat; then
  8819. objformat=`/usr/bin/objformat`
  8820. else
  8821. case $host_os in
  8822. freebsd[23].*) objformat=aout ;;
  8823. *) objformat=elf ;;
  8824. esac
  8825. fi
  8826. version_type=freebsd-$objformat
  8827. case $version_type in
  8828. freebsd-elf*)
  8829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8830. need_version=no
  8831. need_lib_prefix=no
  8832. ;;
  8833. freebsd-*)
  8834. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8835. need_version=yes
  8836. ;;
  8837. esac
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. case $host_os in
  8840. freebsd2.*)
  8841. shlibpath_overrides_runpath=yes
  8842. ;;
  8843. freebsd3.[01]* | freebsdelf3.[01]*)
  8844. shlibpath_overrides_runpath=yes
  8845. hardcode_into_libs=yes
  8846. ;;
  8847. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8848. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8849. shlibpath_overrides_runpath=no
  8850. hardcode_into_libs=yes
  8851. ;;
  8852. *) # from 4.6 on, and DragonFly
  8853. shlibpath_overrides_runpath=yes
  8854. hardcode_into_libs=yes
  8855. ;;
  8856. esac
  8857. ;;
  8858. haiku*)
  8859. version_type=linux
  8860. need_lib_prefix=no
  8861. need_version=no
  8862. dynamic_linker="$host_os runtime_loader"
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8864. soname_spec='${libname}${release}${shared_ext}$major'
  8865. shlibpath_var=LIBRARY_PATH
  8866. shlibpath_overrides_runpath=yes
  8867. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8868. hardcode_into_libs=yes
  8869. ;;
  8870. hpux9* | hpux10* | hpux11*)
  8871. # Give a soname corresponding to the major version so that dld.sl refuses to
  8872. # link against other versions.
  8873. version_type=sunos
  8874. need_lib_prefix=no
  8875. need_version=no
  8876. case $host_cpu in
  8877. ia64*)
  8878. shrext_cmds='.so'
  8879. hardcode_into_libs=yes
  8880. dynamic_linker="$host_os dld.so"
  8881. shlibpath_var=LD_LIBRARY_PATH
  8882. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8884. soname_spec='${libname}${release}${shared_ext}$major'
  8885. if test "X$HPUX_IA64_MODE" = X32; then
  8886. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8887. else
  8888. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8889. fi
  8890. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8891. ;;
  8892. hppa*64*)
  8893. shrext_cmds='.sl'
  8894. hardcode_into_libs=yes
  8895. dynamic_linker="$host_os dld.sl"
  8896. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8897. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8899. soname_spec='${libname}${release}${shared_ext}$major'
  8900. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8901. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8902. ;;
  8903. *)
  8904. shrext_cmds='.sl'
  8905. dynamic_linker="$host_os dld.sl"
  8906. shlibpath_var=SHLIB_PATH
  8907. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8909. soname_spec='${libname}${release}${shared_ext}$major'
  8910. ;;
  8911. esac
  8912. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8913. postinstall_cmds='chmod 555 $lib'
  8914. # or fails outright, so override atomically:
  8915. install_override_mode=555
  8916. ;;
  8917. interix[3-9]*)
  8918. version_type=linux
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8922. soname_spec='${libname}${release}${shared_ext}$major'
  8923. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8924. shlibpath_var=LD_LIBRARY_PATH
  8925. shlibpath_overrides_runpath=no
  8926. hardcode_into_libs=yes
  8927. ;;
  8928. irix5* | irix6* | nonstopux*)
  8929. case $host_os in
  8930. nonstopux*) version_type=nonstopux ;;
  8931. *)
  8932. if test "$lt_cv_prog_gnu_ld" = yes; then
  8933. version_type=linux
  8934. else
  8935. version_type=irix
  8936. fi ;;
  8937. esac
  8938. need_lib_prefix=no
  8939. need_version=no
  8940. soname_spec='${libname}${release}${shared_ext}$major'
  8941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8942. case $host_os in
  8943. irix5* | nonstopux*)
  8944. libsuff= shlibsuff=
  8945. ;;
  8946. *)
  8947. case $LD in # libtool.m4 will add one of these switches to LD
  8948. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8949. libsuff= shlibsuff= libmagic=32-bit;;
  8950. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8951. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8952. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8953. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8954. *) libsuff= shlibsuff= libmagic=never-match;;
  8955. esac
  8956. ;;
  8957. esac
  8958. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8959. shlibpath_overrides_runpath=no
  8960. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8961. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8962. hardcode_into_libs=yes
  8963. ;;
  8964. # No shared lib support for Linux oldld, aout, or coff.
  8965. linux*oldld* | linux*aout* | linux*coff*)
  8966. dynamic_linker=no
  8967. ;;
  8968. # This must be Linux ELF.
  8969. # uclinux* changes (here and below) have been submitted to the libtool
  8970. # project, but have not yet been accepted: they are GCC-local changes
  8971. # for the time being. (See
  8972. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  8973. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  8974. version_type=linux
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8980. shlibpath_var=LD_LIBRARY_PATH
  8981. shlibpath_overrides_runpath=no
  8982. # Some binutils ld are patched to set DT_RUNPATH
  8983. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. lt_cv_shlibpath_overrides_runpath=no
  8987. save_LDFLAGS=$LDFLAGS
  8988. save_libdir=$libdir
  8989. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8990. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8992. /* end confdefs.h. */
  8993. int
  8994. main ()
  8995. {
  8996. ;
  8997. return 0;
  8998. }
  8999. _ACEOF
  9000. if ac_fn_c_try_link "$LINENO"; then :
  9001. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9002. lt_cv_shlibpath_overrides_runpath=yes
  9003. fi
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext \
  9006. conftest$ac_exeext conftest.$ac_ext
  9007. LDFLAGS=$save_LDFLAGS
  9008. libdir=$save_libdir
  9009. fi
  9010. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9011. # This implies no fast_install, which is unacceptable.
  9012. # Some rework will be needed to allow for fast_install
  9013. # before this can be enabled.
  9014. hardcode_into_libs=yes
  9015. # Append ld.so.conf contents to the search path
  9016. if test -f /etc/ld.so.conf; then
  9017. 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' ' '`
  9018. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9019. fi
  9020. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9021. # powerpc, because MkLinux only supported shared libraries with the
  9022. # GNU dynamic linker. Since this was broken with cross compilers,
  9023. # most powerpc-linux boxes support dynamic linking these days and
  9024. # people can always --disable-shared, the test was removed, and we
  9025. # assume the GNU/Linux dynamic linker is in use.
  9026. dynamic_linker='GNU/Linux ld.so'
  9027. ;;
  9028. netbsd*)
  9029. version_type=sunos
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9034. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9035. dynamic_linker='NetBSD (a.out) ld.so'
  9036. else
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. dynamic_linker='NetBSD ld.elf_so'
  9040. fi
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. shlibpath_overrides_runpath=yes
  9043. hardcode_into_libs=yes
  9044. ;;
  9045. newsos6)
  9046. version_type=linux
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. shlibpath_overrides_runpath=yes
  9050. ;;
  9051. *nto* | *qnx*)
  9052. version_type=qnx
  9053. need_lib_prefix=no
  9054. need_version=no
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. shlibpath_var=LD_LIBRARY_PATH
  9058. shlibpath_overrides_runpath=no
  9059. hardcode_into_libs=yes
  9060. dynamic_linker='ldqnx.so'
  9061. ;;
  9062. openbsd*)
  9063. version_type=sunos
  9064. sys_lib_dlsearch_path_spec="/usr/lib"
  9065. need_lib_prefix=no
  9066. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9067. case $host_os in
  9068. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9069. *) need_version=no ;;
  9070. esac
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9075. case $host_os in
  9076. openbsd2.[89] | openbsd2.[89].*)
  9077. shlibpath_overrides_runpath=no
  9078. ;;
  9079. *)
  9080. shlibpath_overrides_runpath=yes
  9081. ;;
  9082. esac
  9083. else
  9084. shlibpath_overrides_runpath=yes
  9085. fi
  9086. ;;
  9087. os2*)
  9088. libname_spec='$name'
  9089. shrext_cmds=".dll"
  9090. need_lib_prefix=no
  9091. library_names_spec='$libname${shared_ext} $libname.a'
  9092. dynamic_linker='OS/2 ld.exe'
  9093. shlibpath_var=LIBPATH
  9094. ;;
  9095. osf3* | osf4* | osf5*)
  9096. version_type=osf
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. soname_spec='${libname}${release}${shared_ext}$major'
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9103. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9104. ;;
  9105. rdos*)
  9106. dynamic_linker=no
  9107. ;;
  9108. solaris*)
  9109. version_type=linux
  9110. need_lib_prefix=no
  9111. need_version=no
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. soname_spec='${libname}${release}${shared_ext}$major'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes
  9116. hardcode_into_libs=yes
  9117. # ldd complains unless libraries are executable
  9118. postinstall_cmds='chmod +x $lib'
  9119. ;;
  9120. sunos4*)
  9121. version_type=sunos
  9122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9123. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9124. shlibpath_var=LD_LIBRARY_PATH
  9125. shlibpath_overrides_runpath=yes
  9126. if test "$with_gnu_ld" = yes; then
  9127. need_lib_prefix=no
  9128. fi
  9129. need_version=yes
  9130. ;;
  9131. sysv4 | sysv4.3*)
  9132. version_type=linux
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. shlibpath_var=LD_LIBRARY_PATH
  9136. case $host_vendor in
  9137. sni)
  9138. shlibpath_overrides_runpath=no
  9139. need_lib_prefix=no
  9140. runpath_var=LD_RUN_PATH
  9141. ;;
  9142. siemens)
  9143. need_lib_prefix=no
  9144. ;;
  9145. motorola)
  9146. need_lib_prefix=no
  9147. need_version=no
  9148. shlibpath_overrides_runpath=no
  9149. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9150. ;;
  9151. esac
  9152. ;;
  9153. sysv4*MP*)
  9154. if test -d /usr/nec ;then
  9155. version_type=linux
  9156. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9157. soname_spec='$libname${shared_ext}.$major'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. fi
  9160. ;;
  9161. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9162. version_type=freebsd-elf
  9163. need_lib_prefix=no
  9164. need_version=no
  9165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9166. soname_spec='${libname}${release}${shared_ext}$major'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. shlibpath_overrides_runpath=yes
  9169. hardcode_into_libs=yes
  9170. if test "$with_gnu_ld" = yes; then
  9171. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9172. else
  9173. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9174. case $host_os in
  9175. sco3.2v5*)
  9176. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9177. ;;
  9178. esac
  9179. fi
  9180. sys_lib_dlsearch_path_spec='/usr/lib'
  9181. ;;
  9182. tpf*)
  9183. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9184. version_type=linux
  9185. need_lib_prefix=no
  9186. need_version=no
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=no
  9190. hardcode_into_libs=yes
  9191. ;;
  9192. uts4*)
  9193. version_type=linux
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. ;;
  9198. *)
  9199. dynamic_linker=no
  9200. ;;
  9201. esac
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9203. $as_echo "$dynamic_linker" >&6; }
  9204. test "$dynamic_linker" = no && can_build_shared=no
  9205. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9206. if test "$GCC" = yes; then
  9207. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9208. fi
  9209. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9210. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9211. fi
  9212. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9213. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9214. fi
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9216. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9217. hardcode_action=
  9218. if test -n "$hardcode_libdir_flag_spec" ||
  9219. test -n "$runpath_var" ||
  9220. test "X$hardcode_automatic" = "Xyes" ; then
  9221. # We can hardcode non-existent directories.
  9222. if test "$hardcode_direct" != no &&
  9223. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9224. # have to relink, otherwise we might link with an installed library
  9225. # when we should be linking with a yet-to-be-installed one
  9226. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9227. test "$hardcode_minus_L" != no; then
  9228. # Linking always hardcodes the temporary library directory.
  9229. hardcode_action=relink
  9230. else
  9231. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9232. hardcode_action=immediate
  9233. fi
  9234. else
  9235. # We cannot hardcode anything, or else we can only hardcode existing
  9236. # directories.
  9237. hardcode_action=unsupported
  9238. fi
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9240. $as_echo "$hardcode_action" >&6; }
  9241. if test "$hardcode_action" = relink ||
  9242. test "$inherit_rpath" = yes; then
  9243. # Fast installation is not supported
  9244. enable_fast_install=no
  9245. elif test "$shlibpath_overrides_runpath" = yes ||
  9246. test "$enable_shared" = no; then
  9247. # Fast installation is not necessary
  9248. enable_fast_install=needless
  9249. fi
  9250. if test "x$enable_dlopen" != xyes; then
  9251. enable_dlopen=unknown
  9252. enable_dlopen_self=unknown
  9253. enable_dlopen_self_static=unknown
  9254. else
  9255. lt_cv_dlopen=no
  9256. lt_cv_dlopen_libs=
  9257. case $host_os in
  9258. beos*)
  9259. lt_cv_dlopen="load_add_on"
  9260. lt_cv_dlopen_libs=
  9261. lt_cv_dlopen_self=yes
  9262. ;;
  9263. mingw* | pw32* | cegcc*)
  9264. lt_cv_dlopen="LoadLibrary"
  9265. lt_cv_dlopen_libs=
  9266. ;;
  9267. cygwin*)
  9268. lt_cv_dlopen="dlopen"
  9269. lt_cv_dlopen_libs=
  9270. ;;
  9271. darwin*)
  9272. # if libdl is installed we need to link against it
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9274. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9275. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9276. $as_echo_n "(cached) " >&6
  9277. else
  9278. ac_check_lib_save_LIBS=$LIBS
  9279. LIBS="-ldl $LIBS"
  9280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9281. /* end confdefs.h. */
  9282. /* Override any GCC internal prototype to avoid an error.
  9283. Use char because int might match the return type of a GCC
  9284. builtin and then its argument prototype would still apply. */
  9285. #ifdef __cplusplus
  9286. extern "C"
  9287. #endif
  9288. char dlopen ();
  9289. int
  9290. main ()
  9291. {
  9292. return dlopen ();
  9293. ;
  9294. return 0;
  9295. }
  9296. _ACEOF
  9297. if ac_fn_c_try_link "$LINENO"; then :
  9298. ac_cv_lib_dl_dlopen=yes
  9299. else
  9300. ac_cv_lib_dl_dlopen=no
  9301. fi
  9302. rm -f core conftest.err conftest.$ac_objext \
  9303. conftest$ac_exeext conftest.$ac_ext
  9304. LIBS=$ac_check_lib_save_LIBS
  9305. fi
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9307. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9308. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9309. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9310. else
  9311. lt_cv_dlopen="dyld"
  9312. lt_cv_dlopen_libs=
  9313. lt_cv_dlopen_self=yes
  9314. fi
  9315. ;;
  9316. *)
  9317. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9318. if test "x$ac_cv_func_shl_load" = xyes; then :
  9319. lt_cv_dlopen="shl_load"
  9320. else
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9322. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9323. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9324. $as_echo_n "(cached) " >&6
  9325. else
  9326. ac_check_lib_save_LIBS=$LIBS
  9327. LIBS="-ldld $LIBS"
  9328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9329. /* end confdefs.h. */
  9330. /* Override any GCC internal prototype to avoid an error.
  9331. Use char because int might match the return type of a GCC
  9332. builtin and then its argument prototype would still apply. */
  9333. #ifdef __cplusplus
  9334. extern "C"
  9335. #endif
  9336. char shl_load ();
  9337. int
  9338. main ()
  9339. {
  9340. return shl_load ();
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. ac_cv_lib_dld_shl_load=yes
  9347. else
  9348. ac_cv_lib_dld_shl_load=no
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. LIBS=$ac_check_lib_save_LIBS
  9353. fi
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9355. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9356. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9357. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9358. else
  9359. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9360. if test "x$ac_cv_func_dlopen" = xyes; then :
  9361. lt_cv_dlopen="dlopen"
  9362. else
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9364. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9365. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. ac_check_lib_save_LIBS=$LIBS
  9369. LIBS="-ldl $LIBS"
  9370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9371. /* end confdefs.h. */
  9372. /* Override any GCC internal prototype to avoid an error.
  9373. Use char because int might match the return type of a GCC
  9374. builtin and then its argument prototype would still apply. */
  9375. #ifdef __cplusplus
  9376. extern "C"
  9377. #endif
  9378. char dlopen ();
  9379. int
  9380. main ()
  9381. {
  9382. return dlopen ();
  9383. ;
  9384. return 0;
  9385. }
  9386. _ACEOF
  9387. if ac_fn_c_try_link "$LINENO"; then :
  9388. ac_cv_lib_dl_dlopen=yes
  9389. else
  9390. ac_cv_lib_dl_dlopen=no
  9391. fi
  9392. rm -f core conftest.err conftest.$ac_objext \
  9393. conftest$ac_exeext conftest.$ac_ext
  9394. LIBS=$ac_check_lib_save_LIBS
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9397. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9398. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9399. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9400. else
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9402. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9403. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9404. $as_echo_n "(cached) " >&6
  9405. else
  9406. ac_check_lib_save_LIBS=$LIBS
  9407. LIBS="-lsvld $LIBS"
  9408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9409. /* end confdefs.h. */
  9410. /* Override any GCC internal prototype to avoid an error.
  9411. Use char because int might match the return type of a GCC
  9412. builtin and then its argument prototype would still apply. */
  9413. #ifdef __cplusplus
  9414. extern "C"
  9415. #endif
  9416. char dlopen ();
  9417. int
  9418. main ()
  9419. {
  9420. return dlopen ();
  9421. ;
  9422. return 0;
  9423. }
  9424. _ACEOF
  9425. if ac_fn_c_try_link "$LINENO"; then :
  9426. ac_cv_lib_svld_dlopen=yes
  9427. else
  9428. ac_cv_lib_svld_dlopen=no
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext \
  9431. conftest$ac_exeext conftest.$ac_ext
  9432. LIBS=$ac_check_lib_save_LIBS
  9433. fi
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9435. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9436. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9437. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9438. else
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9440. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9441. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9442. $as_echo_n "(cached) " >&6
  9443. else
  9444. ac_check_lib_save_LIBS=$LIBS
  9445. LIBS="-ldld $LIBS"
  9446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9447. /* end confdefs.h. */
  9448. /* Override any GCC internal prototype to avoid an error.
  9449. Use char because int might match the return type of a GCC
  9450. builtin and then its argument prototype would still apply. */
  9451. #ifdef __cplusplus
  9452. extern "C"
  9453. #endif
  9454. char dld_link ();
  9455. int
  9456. main ()
  9457. {
  9458. return dld_link ();
  9459. ;
  9460. return 0;
  9461. }
  9462. _ACEOF
  9463. if ac_fn_c_try_link "$LINENO"; then :
  9464. ac_cv_lib_dld_dld_link=yes
  9465. else
  9466. ac_cv_lib_dld_dld_link=no
  9467. fi
  9468. rm -f core conftest.err conftest.$ac_objext \
  9469. conftest$ac_exeext conftest.$ac_ext
  9470. LIBS=$ac_check_lib_save_LIBS
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9473. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9474. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9475. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9476. fi
  9477. fi
  9478. fi
  9479. fi
  9480. fi
  9481. fi
  9482. ;;
  9483. esac
  9484. if test "x$lt_cv_dlopen" != xno; then
  9485. enable_dlopen=yes
  9486. else
  9487. enable_dlopen=no
  9488. fi
  9489. case $lt_cv_dlopen in
  9490. dlopen)
  9491. save_CPPFLAGS="$CPPFLAGS"
  9492. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9493. save_LDFLAGS="$LDFLAGS"
  9494. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9495. save_LIBS="$LIBS"
  9496. LIBS="$lt_cv_dlopen_libs $LIBS"
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9498. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9499. if ${lt_cv_dlopen_self+:} false; then :
  9500. $as_echo_n "(cached) " >&6
  9501. else
  9502. if test "$cross_compiling" = yes; then :
  9503. lt_cv_dlopen_self=cross
  9504. else
  9505. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9506. lt_status=$lt_dlunknown
  9507. cat > conftest.$ac_ext <<_LT_EOF
  9508. #line 11080 "configure"
  9509. #include "confdefs.h"
  9510. #if HAVE_DLFCN_H
  9511. #include <dlfcn.h>
  9512. #endif
  9513. #include <stdio.h>
  9514. #ifdef RTLD_GLOBAL
  9515. # define LT_DLGLOBAL RTLD_GLOBAL
  9516. #else
  9517. # ifdef DL_GLOBAL
  9518. # define LT_DLGLOBAL DL_GLOBAL
  9519. # else
  9520. # define LT_DLGLOBAL 0
  9521. # endif
  9522. #endif
  9523. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9524. find out it does not work in some platform. */
  9525. #ifndef LT_DLLAZY_OR_NOW
  9526. # ifdef RTLD_LAZY
  9527. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9528. # else
  9529. # ifdef DL_LAZY
  9530. # define LT_DLLAZY_OR_NOW DL_LAZY
  9531. # else
  9532. # ifdef RTLD_NOW
  9533. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9534. # else
  9535. # ifdef DL_NOW
  9536. # define LT_DLLAZY_OR_NOW DL_NOW
  9537. # else
  9538. # define LT_DLLAZY_OR_NOW 0
  9539. # endif
  9540. # endif
  9541. # endif
  9542. # endif
  9543. #endif
  9544. /* When -fvisbility=hidden is used, assume the code has been annotated
  9545. correspondingly for the symbols needed. */
  9546. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9547. void fnord () __attribute__((visibility("default")));
  9548. #endif
  9549. void fnord () { int i=42; }
  9550. int main ()
  9551. {
  9552. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9553. int status = $lt_dlunknown;
  9554. if (self)
  9555. {
  9556. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9557. else
  9558. {
  9559. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9560. else puts (dlerror ());
  9561. }
  9562. /* dlclose (self); */
  9563. }
  9564. else
  9565. puts (dlerror ());
  9566. return status;
  9567. }
  9568. _LT_EOF
  9569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9570. (eval $ac_link) 2>&5
  9571. ac_status=$?
  9572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9573. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9574. (./conftest; exit; ) >&5 2>/dev/null
  9575. lt_status=$?
  9576. case x$lt_status in
  9577. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9578. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9579. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9580. esac
  9581. else :
  9582. # compilation failed
  9583. lt_cv_dlopen_self=no
  9584. fi
  9585. fi
  9586. rm -fr conftest*
  9587. fi
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9589. $as_echo "$lt_cv_dlopen_self" >&6; }
  9590. if test "x$lt_cv_dlopen_self" = xyes; then
  9591. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9593. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9594. if ${lt_cv_dlopen_self_static+:} false; then :
  9595. $as_echo_n "(cached) " >&6
  9596. else
  9597. if test "$cross_compiling" = yes; then :
  9598. lt_cv_dlopen_self_static=cross
  9599. else
  9600. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9601. lt_status=$lt_dlunknown
  9602. cat > conftest.$ac_ext <<_LT_EOF
  9603. #line 11186 "configure"
  9604. #include "confdefs.h"
  9605. #if HAVE_DLFCN_H
  9606. #include <dlfcn.h>
  9607. #endif
  9608. #include <stdio.h>
  9609. #ifdef RTLD_GLOBAL
  9610. # define LT_DLGLOBAL RTLD_GLOBAL
  9611. #else
  9612. # ifdef DL_GLOBAL
  9613. # define LT_DLGLOBAL DL_GLOBAL
  9614. # else
  9615. # define LT_DLGLOBAL 0
  9616. # endif
  9617. #endif
  9618. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9619. find out it does not work in some platform. */
  9620. #ifndef LT_DLLAZY_OR_NOW
  9621. # ifdef RTLD_LAZY
  9622. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9623. # else
  9624. # ifdef DL_LAZY
  9625. # define LT_DLLAZY_OR_NOW DL_LAZY
  9626. # else
  9627. # ifdef RTLD_NOW
  9628. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9629. # else
  9630. # ifdef DL_NOW
  9631. # define LT_DLLAZY_OR_NOW DL_NOW
  9632. # else
  9633. # define LT_DLLAZY_OR_NOW 0
  9634. # endif
  9635. # endif
  9636. # endif
  9637. # endif
  9638. #endif
  9639. /* When -fvisbility=hidden is used, assume the code has been annotated
  9640. correspondingly for the symbols needed. */
  9641. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9642. void fnord () __attribute__((visibility("default")));
  9643. #endif
  9644. void fnord () { int i=42; }
  9645. int main ()
  9646. {
  9647. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9648. int status = $lt_dlunknown;
  9649. if (self)
  9650. {
  9651. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9652. else
  9653. {
  9654. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9655. else puts (dlerror ());
  9656. }
  9657. /* dlclose (self); */
  9658. }
  9659. else
  9660. puts (dlerror ());
  9661. return status;
  9662. }
  9663. _LT_EOF
  9664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9665. (eval $ac_link) 2>&5
  9666. ac_status=$?
  9667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9668. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9669. (./conftest; exit; ) >&5 2>/dev/null
  9670. lt_status=$?
  9671. case x$lt_status in
  9672. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9673. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9674. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9675. esac
  9676. else :
  9677. # compilation failed
  9678. lt_cv_dlopen_self_static=no
  9679. fi
  9680. fi
  9681. rm -fr conftest*
  9682. fi
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9684. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9685. fi
  9686. CPPFLAGS="$save_CPPFLAGS"
  9687. LDFLAGS="$save_LDFLAGS"
  9688. LIBS="$save_LIBS"
  9689. ;;
  9690. esac
  9691. case $lt_cv_dlopen_self in
  9692. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9693. *) enable_dlopen_self=unknown ;;
  9694. esac
  9695. case $lt_cv_dlopen_self_static in
  9696. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9697. *) enable_dlopen_self_static=unknown ;;
  9698. esac
  9699. fi
  9700. striplib=
  9701. old_striplib=
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9703. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9704. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9705. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9706. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9708. $as_echo "yes" >&6; }
  9709. else
  9710. # FIXME - insert some real tests, host_os isn't really good enough
  9711. case $host_os in
  9712. darwin*)
  9713. if test -n "$STRIP" ; then
  9714. striplib="$STRIP -x"
  9715. old_striplib="$STRIP -S"
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9717. $as_echo "yes" >&6; }
  9718. else
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9720. $as_echo "no" >&6; }
  9721. fi
  9722. ;;
  9723. *)
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9725. $as_echo "no" >&6; }
  9726. ;;
  9727. esac
  9728. fi
  9729. # Report which library types will actually be built
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9731. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9733. $as_echo "$can_build_shared" >&6; }
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9735. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9736. test "$can_build_shared" = "no" && enable_shared=no
  9737. # On AIX, shared libraries and static libraries use the same namespace, and
  9738. # are all built from PIC.
  9739. case $host_os in
  9740. aix3*)
  9741. test "$enable_shared" = yes && enable_static=no
  9742. if test -n "$RANLIB"; then
  9743. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9744. postinstall_cmds='$RANLIB $lib'
  9745. fi
  9746. ;;
  9747. aix[4-9]*)
  9748. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9749. test "$enable_shared" = yes && enable_static=no
  9750. fi
  9751. ;;
  9752. esac
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9754. $as_echo "$enable_shared" >&6; }
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9756. $as_echo_n "checking whether to build static libraries... " >&6; }
  9757. # Make sure either enable_shared or enable_static is yes.
  9758. test "$enable_shared" = yes || enable_static=yes
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9760. $as_echo "$enable_static" >&6; }
  9761. fi
  9762. ac_ext=c
  9763. ac_cpp='$CPP $CPPFLAGS'
  9764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9767. CC="$lt_save_CC"
  9768. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9769. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9770. (test "X$CXX" != "Xg++"))) ; then
  9771. ac_ext=cpp
  9772. ac_cpp='$CXXCPP $CPPFLAGS'
  9773. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9774. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9775. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9777. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9778. if test -z "$CXXCPP"; then
  9779. if ${ac_cv_prog_CXXCPP+:} false; then :
  9780. $as_echo_n "(cached) " >&6
  9781. else
  9782. # Double quotes because CXXCPP needs to be expanded
  9783. for CXXCPP in "$CXX -E" "/lib/cpp"
  9784. do
  9785. ac_preproc_ok=false
  9786. for ac_cxx_preproc_warn_flag in '' yes
  9787. do
  9788. # Use a header file that comes with gcc, so configuring glibc
  9789. # with a fresh cross-compiler works.
  9790. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9791. # <limits.h> exists even on freestanding compilers.
  9792. # On the NeXT, cc -E runs the code through the compiler's parser,
  9793. # not just through cpp. "Syntax error" is here to catch this case.
  9794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9795. /* end confdefs.h. */
  9796. #ifdef __STDC__
  9797. # include <limits.h>
  9798. #else
  9799. # include <assert.h>
  9800. #endif
  9801. Syntax error
  9802. _ACEOF
  9803. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9804. else
  9805. # Broken: fails on valid input.
  9806. continue
  9807. fi
  9808. rm -f conftest.err conftest.i conftest.$ac_ext
  9809. # OK, works on sane cases. Now check whether nonexistent headers
  9810. # can be detected and how.
  9811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9812. /* end confdefs.h. */
  9813. #include <ac_nonexistent.h>
  9814. _ACEOF
  9815. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9816. # Broken: success on invalid input.
  9817. continue
  9818. else
  9819. # Passes both tests.
  9820. ac_preproc_ok=:
  9821. break
  9822. fi
  9823. rm -f conftest.err conftest.i conftest.$ac_ext
  9824. done
  9825. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9826. rm -f conftest.i conftest.err conftest.$ac_ext
  9827. if $ac_preproc_ok; then :
  9828. break
  9829. fi
  9830. done
  9831. ac_cv_prog_CXXCPP=$CXXCPP
  9832. fi
  9833. CXXCPP=$ac_cv_prog_CXXCPP
  9834. else
  9835. ac_cv_prog_CXXCPP=$CXXCPP
  9836. fi
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9838. $as_echo "$CXXCPP" >&6; }
  9839. ac_preproc_ok=false
  9840. for ac_cxx_preproc_warn_flag in '' yes
  9841. do
  9842. # Use a header file that comes with gcc, so configuring glibc
  9843. # with a fresh cross-compiler works.
  9844. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9845. # <limits.h> exists even on freestanding compilers.
  9846. # On the NeXT, cc -E runs the code through the compiler's parser,
  9847. # not just through cpp. "Syntax error" is here to catch this case.
  9848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9849. /* end confdefs.h. */
  9850. #ifdef __STDC__
  9851. # include <limits.h>
  9852. #else
  9853. # include <assert.h>
  9854. #endif
  9855. Syntax error
  9856. _ACEOF
  9857. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9858. else
  9859. # Broken: fails on valid input.
  9860. continue
  9861. fi
  9862. rm -f conftest.err conftest.i conftest.$ac_ext
  9863. # OK, works on sane cases. Now check whether nonexistent headers
  9864. # can be detected and how.
  9865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9866. /* end confdefs.h. */
  9867. #include <ac_nonexistent.h>
  9868. _ACEOF
  9869. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9870. # Broken: success on invalid input.
  9871. continue
  9872. else
  9873. # Passes both tests.
  9874. ac_preproc_ok=:
  9875. break
  9876. fi
  9877. rm -f conftest.err conftest.i conftest.$ac_ext
  9878. done
  9879. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9880. rm -f conftest.i conftest.err conftest.$ac_ext
  9881. if $ac_preproc_ok; then :
  9882. else
  9883. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9884. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9885. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  9886. See \`config.log' for more details" "$LINENO" 5; }
  9887. fi
  9888. ac_ext=c
  9889. ac_cpp='$CPP $CPPFLAGS'
  9890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9893. else
  9894. _lt_caught_CXX_error=yes
  9895. fi
  9896. ac_ext=cpp
  9897. ac_cpp='$CXXCPP $CPPFLAGS'
  9898. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9899. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9900. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9901. archive_cmds_need_lc_CXX=no
  9902. allow_undefined_flag_CXX=
  9903. always_export_symbols_CXX=no
  9904. archive_expsym_cmds_CXX=
  9905. compiler_needs_object_CXX=no
  9906. export_dynamic_flag_spec_CXX=
  9907. hardcode_direct_CXX=no
  9908. hardcode_direct_absolute_CXX=no
  9909. hardcode_libdir_flag_spec_CXX=
  9910. hardcode_libdir_flag_spec_ld_CXX=
  9911. hardcode_libdir_separator_CXX=
  9912. hardcode_minus_L_CXX=no
  9913. hardcode_shlibpath_var_CXX=unsupported
  9914. hardcode_automatic_CXX=no
  9915. inherit_rpath_CXX=no
  9916. module_cmds_CXX=
  9917. module_expsym_cmds_CXX=
  9918. link_all_deplibs_CXX=unknown
  9919. old_archive_cmds_CXX=$old_archive_cmds
  9920. reload_flag_CXX=$reload_flag
  9921. reload_cmds_CXX=$reload_cmds
  9922. no_undefined_flag_CXX=
  9923. whole_archive_flag_spec_CXX=
  9924. enable_shared_with_static_runtimes_CXX=no
  9925. # Source file extension for C++ test sources.
  9926. ac_ext=cpp
  9927. # Object file extension for compiled C++ test sources.
  9928. objext=o
  9929. objext_CXX=$objext
  9930. # No sense in running all these tests if we already determined that
  9931. # the CXX compiler isn't working. Some variables (like enable_shared)
  9932. # are currently assumed to apply to all compilers on this platform,
  9933. # and will be corrupted by setting them based on a non-working compiler.
  9934. if test "$_lt_caught_CXX_error" != yes; then
  9935. # Code to be used in simple compile tests
  9936. lt_simple_compile_test_code="int some_variable = 0;"
  9937. # Code to be used in simple link tests
  9938. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9939. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9940. # If no C compiler was specified, use CC.
  9941. LTCC=${LTCC-"$CC"}
  9942. # If no C compiler flags were specified, use CFLAGS.
  9943. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9944. # Allow CC to be a program name with arguments.
  9945. compiler=$CC
  9946. # save warnings/boilerplate of simple test code
  9947. ac_outfile=conftest.$ac_objext
  9948. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9949. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9950. _lt_compiler_boilerplate=`cat conftest.err`
  9951. $RM conftest*
  9952. ac_outfile=conftest.$ac_objext
  9953. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9954. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9955. _lt_linker_boilerplate=`cat conftest.err`
  9956. $RM -r conftest*
  9957. # Allow CC to be a program name with arguments.
  9958. lt_save_CC=$CC
  9959. lt_save_LD=$LD
  9960. lt_save_GCC=$GCC
  9961. GCC=$GXX
  9962. lt_save_with_gnu_ld=$with_gnu_ld
  9963. lt_save_path_LD=$lt_cv_path_LD
  9964. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9965. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9966. else
  9967. $as_unset lt_cv_prog_gnu_ld
  9968. fi
  9969. if test -n "${lt_cv_path_LDCXX+set}"; then
  9970. lt_cv_path_LD=$lt_cv_path_LDCXX
  9971. else
  9972. $as_unset lt_cv_path_LD
  9973. fi
  9974. test -z "${LDCXX+set}" || LD=$LDCXX
  9975. CC=${CXX-"c++"}
  9976. compiler=$CC
  9977. compiler_CXX=$CC
  9978. for cc_temp in $compiler""; do
  9979. case $cc_temp in
  9980. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9981. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9982. \-*) ;;
  9983. *) break;;
  9984. esac
  9985. done
  9986. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9987. if test -n "$compiler"; then
  9988. # We don't want -fno-exception when compiling C++ code, so set the
  9989. # no_builtin_flag separately
  9990. if test "$GXX" = yes; then
  9991. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9992. else
  9993. lt_prog_compiler_no_builtin_flag_CXX=
  9994. fi
  9995. if test "$GXX" = yes; then
  9996. # Set up default GNU C++ configuration
  9997. # Check whether --with-gnu-ld was given.
  9998. if test "${with_gnu_ld+set}" = set; then :
  9999. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10000. else
  10001. with_gnu_ld=no
  10002. fi
  10003. ac_prog=ld
  10004. if test "$GCC" = yes; then
  10005. # Check if gcc -print-prog-name=ld gives a path.
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10007. $as_echo_n "checking for ld used by $CC... " >&6; }
  10008. case $host in
  10009. *-*-mingw*)
  10010. # gcc leaves a trailing carriage return which upsets mingw
  10011. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10012. *)
  10013. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10014. esac
  10015. case $ac_prog in
  10016. # Accept absolute paths.
  10017. [\\/]* | ?:[\\/]*)
  10018. re_direlt='/[^/][^/]*/\.\./'
  10019. # Canonicalize the pathname of ld
  10020. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10021. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10022. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10023. done
  10024. test -z "$LD" && LD="$ac_prog"
  10025. ;;
  10026. "")
  10027. # If it fails, then pretend we aren't using GCC.
  10028. ac_prog=ld
  10029. ;;
  10030. *)
  10031. # If it is relative, then search for the first ld in PATH.
  10032. with_gnu_ld=unknown
  10033. ;;
  10034. esac
  10035. elif test "$with_gnu_ld" = yes; then
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10037. $as_echo_n "checking for GNU ld... " >&6; }
  10038. else
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10040. $as_echo_n "checking for non-GNU ld... " >&6; }
  10041. fi
  10042. if ${lt_cv_path_LD+:} false; then :
  10043. $as_echo_n "(cached) " >&6
  10044. else
  10045. if test -z "$LD"; then
  10046. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10047. for ac_dir in $PATH; do
  10048. IFS="$lt_save_ifs"
  10049. test -z "$ac_dir" && ac_dir=.
  10050. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10051. lt_cv_path_LD="$ac_dir/$ac_prog"
  10052. # Check to see if the program is GNU ld. I'd rather use --version,
  10053. # but apparently some variants of GNU ld only accept -v.
  10054. # Break only if it was the GNU/non-GNU ld that we prefer.
  10055. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10056. *GNU* | *'with BFD'*)
  10057. test "$with_gnu_ld" != no && break
  10058. ;;
  10059. *)
  10060. test "$with_gnu_ld" != yes && break
  10061. ;;
  10062. esac
  10063. fi
  10064. done
  10065. IFS="$lt_save_ifs"
  10066. else
  10067. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10068. fi
  10069. fi
  10070. LD="$lt_cv_path_LD"
  10071. if test -n "$LD"; then
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10073. $as_echo "$LD" >&6; }
  10074. else
  10075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10076. $as_echo "no" >&6; }
  10077. fi
  10078. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10080. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10081. if ${lt_cv_prog_gnu_ld+:} false; then :
  10082. $as_echo_n "(cached) " >&6
  10083. else
  10084. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10085. case `$LD -v 2>&1 </dev/null` in
  10086. *GNU* | *'with BFD'*)
  10087. lt_cv_prog_gnu_ld=yes
  10088. ;;
  10089. *)
  10090. lt_cv_prog_gnu_ld=no
  10091. ;;
  10092. esac
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10095. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10096. with_gnu_ld=$lt_cv_prog_gnu_ld
  10097. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10098. # archiving commands below assume that GNU ld is being used.
  10099. if test "$with_gnu_ld" = yes; then
  10100. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10101. 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'
  10102. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10103. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10104. # If archive_cmds runs LD, not CC, wlarc should be empty
  10105. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10106. # investigate it a little bit more. (MM)
  10107. wlarc='${wl}'
  10108. # ancient GNU ld didn't support --whole-archive et. al.
  10109. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10110. $GREP 'no-whole-archive' > /dev/null; then
  10111. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10112. else
  10113. whole_archive_flag_spec_CXX=
  10114. fi
  10115. else
  10116. with_gnu_ld=no
  10117. wlarc=
  10118. # A generic and very simple default shared library creation
  10119. # command for GNU C++ for the case where it uses the native
  10120. # linker, instead of GNU ld. If possible, this setting should
  10121. # overridden to take advantage of the native linker features on
  10122. # the platform it is being used on.
  10123. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10124. fi
  10125. # Commands to make compiler produce verbose output that lists
  10126. # what "hidden" libraries, object files and flags are used when
  10127. # linking a shared library.
  10128. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10129. else
  10130. GXX=no
  10131. with_gnu_ld=no
  10132. wlarc=
  10133. fi
  10134. # PORTME: fill in a description of your system's C++ link characteristics
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10136. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10137. ld_shlibs_CXX=yes
  10138. case $host_os in
  10139. aix3*)
  10140. # FIXME: insert proper C++ library support
  10141. ld_shlibs_CXX=no
  10142. ;;
  10143. aix[4-9]*)
  10144. if test "$host_cpu" = ia64; then
  10145. # On IA64, the linker does run time linking by default, so we don't
  10146. # have to do anything special.
  10147. aix_use_runtimelinking=no
  10148. exp_sym_flag='-Bexport'
  10149. no_entry_flag=""
  10150. else
  10151. aix_use_runtimelinking=no
  10152. # Test if we are trying to use run time linking or normal
  10153. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10154. # need to do runtime linking.
  10155. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10156. for ld_flag in $LDFLAGS; do
  10157. case $ld_flag in
  10158. *-brtl*)
  10159. aix_use_runtimelinking=yes
  10160. break
  10161. ;;
  10162. esac
  10163. done
  10164. ;;
  10165. esac
  10166. exp_sym_flag='-bexport'
  10167. no_entry_flag='-bnoentry'
  10168. fi
  10169. # When large executables or shared objects are built, AIX ld can
  10170. # have problems creating the table of contents. If linking a library
  10171. # or program results in "error TOC overflow" add -mminimal-toc to
  10172. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10173. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10174. archive_cmds_CXX=''
  10175. hardcode_direct_CXX=yes
  10176. hardcode_direct_absolute_CXX=yes
  10177. hardcode_libdir_separator_CXX=':'
  10178. link_all_deplibs_CXX=yes
  10179. file_list_spec_CXX='${wl}-f,'
  10180. if test "$GXX" = yes; then
  10181. case $host_os in aix4.[012]|aix4.[012].*)
  10182. # We only want to do this on AIX 4.2 and lower, the check
  10183. # below for broken collect2 doesn't work under 4.3+
  10184. collect2name=`${CC} -print-prog-name=collect2`
  10185. if test -f "$collect2name" &&
  10186. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10187. then
  10188. # We have reworked collect2
  10189. :
  10190. else
  10191. # We have old collect2
  10192. hardcode_direct_CXX=unsupported
  10193. # It fails to find uninstalled libraries when the uninstalled
  10194. # path is not listed in the libpath. Setting hardcode_minus_L
  10195. # to unsupported forces relinking
  10196. hardcode_minus_L_CXX=yes
  10197. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10198. hardcode_libdir_separator_CXX=
  10199. fi
  10200. esac
  10201. shared_flag='-shared'
  10202. if test "$aix_use_runtimelinking" = yes; then
  10203. shared_flag="$shared_flag "'${wl}-G'
  10204. fi
  10205. else
  10206. # not using gcc
  10207. if test "$host_cpu" = ia64; then
  10208. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10209. # chokes on -Wl,-G. The following line is correct:
  10210. shared_flag='-G'
  10211. else
  10212. if test "$aix_use_runtimelinking" = yes; then
  10213. shared_flag='${wl}-G'
  10214. else
  10215. shared_flag='${wl}-bM:SRE'
  10216. fi
  10217. fi
  10218. fi
  10219. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10220. # It seems that -bexpall does not export symbols beginning with
  10221. # underscore (_), so it is better to generate a list of symbols to
  10222. # export.
  10223. always_export_symbols_CXX=yes
  10224. if test "$aix_use_runtimelinking" = yes; then
  10225. # Warning - without using the other runtime loading flags (-brtl),
  10226. # -berok will link without error, but may produce a broken library.
  10227. allow_undefined_flag_CXX='-berok'
  10228. # Determine the default libpath from the value encoded in an empty
  10229. # executable.
  10230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10231. /* end confdefs.h. */
  10232. int
  10233. main ()
  10234. {
  10235. ;
  10236. return 0;
  10237. }
  10238. _ACEOF
  10239. if ac_fn_cxx_try_link "$LINENO"; then :
  10240. lt_aix_libpath_sed='
  10241. /Import File Strings/,/^$/ {
  10242. /^0/ {
  10243. s/^0 *\(.*\)$/\1/
  10244. p
  10245. }
  10246. }'
  10247. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10248. # Check for a 64-bit object if we didn't find anything.
  10249. if test -z "$aix_libpath"; then
  10250. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10251. fi
  10252. fi
  10253. rm -f core conftest.err conftest.$ac_objext \
  10254. conftest$ac_exeext conftest.$ac_ext
  10255. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10256. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10257. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10258. else
  10259. if test "$host_cpu" = ia64; then
  10260. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10261. allow_undefined_flag_CXX="-z nodefs"
  10262. 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"
  10263. else
  10264. # Determine the default libpath from the value encoded in an
  10265. # empty executable.
  10266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10267. /* end confdefs.h. */
  10268. int
  10269. main ()
  10270. {
  10271. ;
  10272. return 0;
  10273. }
  10274. _ACEOF
  10275. if ac_fn_cxx_try_link "$LINENO"; then :
  10276. lt_aix_libpath_sed='
  10277. /Import File Strings/,/^$/ {
  10278. /^0/ {
  10279. s/^0 *\(.*\)$/\1/
  10280. p
  10281. }
  10282. }'
  10283. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10284. # Check for a 64-bit object if we didn't find anything.
  10285. if test -z "$aix_libpath"; then
  10286. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10287. fi
  10288. fi
  10289. rm -f core conftest.err conftest.$ac_objext \
  10290. conftest$ac_exeext conftest.$ac_ext
  10291. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10292. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10293. # Warning - without using the other run time loading flags,
  10294. # -berok will link without error, but may produce a broken library.
  10295. no_undefined_flag_CXX=' ${wl}-bernotok'
  10296. allow_undefined_flag_CXX=' ${wl}-berok'
  10297. if test "$with_gnu_ld" = yes; then
  10298. # We only use this code for GNU lds that support --whole-archive.
  10299. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10300. else
  10301. # Exported symbols can be pulled into shared objects from archives
  10302. whole_archive_flag_spec_CXX='$convenience'
  10303. fi
  10304. archive_cmds_need_lc_CXX=yes
  10305. # This is similar to how AIX traditionally builds its shared
  10306. # libraries.
  10307. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10308. fi
  10309. fi
  10310. ;;
  10311. beos*)
  10312. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10313. allow_undefined_flag_CXX=unsupported
  10314. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10315. # support --undefined. This deserves some investigation. FIXME
  10316. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10317. else
  10318. ld_shlibs_CXX=no
  10319. fi
  10320. ;;
  10321. chorus*)
  10322. case $cc_basename in
  10323. *)
  10324. # FIXME: insert proper C++ library support
  10325. ld_shlibs_CXX=no
  10326. ;;
  10327. esac
  10328. ;;
  10329. cygwin* | mingw* | pw32* | cegcc*)
  10330. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10331. # as there is no search path for DLLs.
  10332. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10333. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10334. allow_undefined_flag_CXX=unsupported
  10335. always_export_symbols_CXX=no
  10336. enable_shared_with_static_runtimes_CXX=yes
  10337. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10338. 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'
  10339. # If the export-symbols file already is a .def file (1st line
  10340. # is EXPORTS), use it as is; otherwise, prepend...
  10341. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10342. cp $export_symbols $output_objdir/$soname.def;
  10343. else
  10344. echo EXPORTS > $output_objdir/$soname.def;
  10345. cat $export_symbols >> $output_objdir/$soname.def;
  10346. fi~
  10347. $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'
  10348. else
  10349. ld_shlibs_CXX=no
  10350. fi
  10351. ;;
  10352. darwin* | rhapsody*)
  10353. archive_cmds_need_lc_CXX=no
  10354. hardcode_direct_CXX=no
  10355. hardcode_automatic_CXX=yes
  10356. hardcode_shlibpath_var_CXX=unsupported
  10357. if test "$lt_cv_ld_force_load" = "yes"; then
  10358. 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\"`'
  10359. else
  10360. whole_archive_flag_spec_CXX=''
  10361. fi
  10362. link_all_deplibs_CXX=yes
  10363. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10364. case $cc_basename in
  10365. ifort*) _lt_dar_can_shared=yes ;;
  10366. *) _lt_dar_can_shared=$GCC ;;
  10367. esac
  10368. if test "$_lt_dar_can_shared" = "yes"; then
  10369. output_verbose_link_cmd=func_echo_all
  10370. 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}"
  10371. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10372. 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}"
  10373. 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}"
  10374. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10375. 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}"
  10376. 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}"
  10377. fi
  10378. else
  10379. ld_shlibs_CXX=no
  10380. fi
  10381. ;;
  10382. dgux*)
  10383. case $cc_basename in
  10384. ec++*)
  10385. # FIXME: insert proper C++ library support
  10386. ld_shlibs_CXX=no
  10387. ;;
  10388. ghcx*)
  10389. # Green Hills C++ Compiler
  10390. # FIXME: insert proper C++ library support
  10391. ld_shlibs_CXX=no
  10392. ;;
  10393. *)
  10394. # FIXME: insert proper C++ library support
  10395. ld_shlibs_CXX=no
  10396. ;;
  10397. esac
  10398. ;;
  10399. freebsd2.*)
  10400. # C++ shared libraries reported to be fairly broken before
  10401. # switch to ELF
  10402. ld_shlibs_CXX=no
  10403. ;;
  10404. freebsd-elf*)
  10405. archive_cmds_need_lc_CXX=no
  10406. ;;
  10407. freebsd* | dragonfly*)
  10408. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10409. # conventions
  10410. ld_shlibs_CXX=yes
  10411. ;;
  10412. gnu*)
  10413. ;;
  10414. haiku*)
  10415. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10416. link_all_deplibs_CXX=yes
  10417. ;;
  10418. hpux9*)
  10419. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10420. hardcode_libdir_separator_CXX=:
  10421. export_dynamic_flag_spec_CXX='${wl}-E'
  10422. hardcode_direct_CXX=yes
  10423. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10424. # but as the default
  10425. # location of the library.
  10426. case $cc_basename in
  10427. CC*)
  10428. # FIXME: insert proper C++ library support
  10429. ld_shlibs_CXX=no
  10430. ;;
  10431. aCC*)
  10432. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10433. # Commands to make compiler produce verbose output that lists
  10434. # what "hidden" libraries, object files and flags are used when
  10435. # linking a shared library.
  10436. #
  10437. # There doesn't appear to be a way to prevent this compiler from
  10438. # explicitly linking system object files so we need to strip them
  10439. # from the output so that they don't get included in the library
  10440. # dependencies.
  10441. 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"'
  10442. ;;
  10443. *)
  10444. if test "$GXX" = yes; then
  10445. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10446. else
  10447. # FIXME: insert proper C++ library support
  10448. ld_shlibs_CXX=no
  10449. fi
  10450. ;;
  10451. esac
  10452. ;;
  10453. hpux10*|hpux11*)
  10454. if test $with_gnu_ld = no; then
  10455. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10456. hardcode_libdir_separator_CXX=:
  10457. case $host_cpu in
  10458. hppa*64*|ia64*)
  10459. ;;
  10460. *)
  10461. export_dynamic_flag_spec_CXX='${wl}-E'
  10462. ;;
  10463. esac
  10464. fi
  10465. case $host_cpu in
  10466. hppa*64*|ia64*)
  10467. hardcode_direct_CXX=no
  10468. hardcode_shlibpath_var_CXX=no
  10469. ;;
  10470. *)
  10471. hardcode_direct_CXX=yes
  10472. hardcode_direct_absolute_CXX=yes
  10473. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10474. # but as the default
  10475. # location of the library.
  10476. ;;
  10477. esac
  10478. case $cc_basename in
  10479. CC*)
  10480. # FIXME: insert proper C++ library support
  10481. ld_shlibs_CXX=no
  10482. ;;
  10483. aCC*)
  10484. case $host_cpu in
  10485. hppa*64*)
  10486. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10487. ;;
  10488. ia64*)
  10489. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10490. ;;
  10491. *)
  10492. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10493. ;;
  10494. esac
  10495. # Commands to make compiler produce verbose output that lists
  10496. # what "hidden" libraries, object files and flags are used when
  10497. # linking a shared library.
  10498. #
  10499. # There doesn't appear to be a way to prevent this compiler from
  10500. # explicitly linking system object files so we need to strip them
  10501. # from the output so that they don't get included in the library
  10502. # dependencies.
  10503. 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"'
  10504. ;;
  10505. *)
  10506. if test "$GXX" = yes; then
  10507. if test $with_gnu_ld = no; then
  10508. case $host_cpu in
  10509. hppa*64*)
  10510. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10511. ;;
  10512. ia64*)
  10513. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10514. ;;
  10515. *)
  10516. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10517. ;;
  10518. esac
  10519. fi
  10520. else
  10521. # FIXME: insert proper C++ library support
  10522. ld_shlibs_CXX=no
  10523. fi
  10524. ;;
  10525. esac
  10526. ;;
  10527. interix[3-9]*)
  10528. hardcode_direct_CXX=no
  10529. hardcode_shlibpath_var_CXX=no
  10530. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10531. export_dynamic_flag_spec_CXX='${wl}-E'
  10532. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10533. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10534. # default) and relocated if they conflict, which is a slow very memory
  10535. # consuming and fragmenting process. To avoid this, we pick a random,
  10536. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10537. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10538. 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'
  10539. 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'
  10540. ;;
  10541. irix5* | irix6*)
  10542. case $cc_basename in
  10543. CC*)
  10544. # SGI C++
  10545. 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'
  10546. # Archives containing C++ object files must be created using
  10547. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10548. # necessary to make sure instantiated templates are included
  10549. # in the archive.
  10550. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10551. ;;
  10552. *)
  10553. if test "$GXX" = yes; then
  10554. if test "$with_gnu_ld" = no; then
  10555. archive_cmds_CXX='$CC -shared -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'
  10556. else
  10557. archive_cmds_CXX='$CC -shared -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'
  10558. fi
  10559. fi
  10560. link_all_deplibs_CXX=yes
  10561. ;;
  10562. esac
  10563. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10564. hardcode_libdir_separator_CXX=:
  10565. inherit_rpath_CXX=yes
  10566. ;;
  10567. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10568. case $cc_basename in
  10569. KCC*)
  10570. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10571. # KCC will only create a shared library if the output file
  10572. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10573. # to its proper name (with version) after linking.
  10574. 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'
  10575. 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'
  10576. # Commands to make compiler produce verbose output that lists
  10577. # what "hidden" libraries, object files and flags are used when
  10578. # linking a shared library.
  10579. #
  10580. # There doesn't appear to be a way to prevent this compiler from
  10581. # explicitly linking system object files so we need to strip them
  10582. # from the output so that they don't get included in the library
  10583. # dependencies.
  10584. 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"'
  10585. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10586. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10587. # Archives containing C++ object files must be created using
  10588. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10589. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10590. ;;
  10591. icpc* | ecpc* )
  10592. # Intel C++
  10593. with_gnu_ld=yes
  10594. # version 8.0 and above of icpc choke on multiply defined symbols
  10595. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10596. # earlier do not add the objects themselves.
  10597. case `$CC -V 2>&1` in
  10598. *"Version 7."*)
  10599. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10600. 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'
  10601. ;;
  10602. *) # Version 8.0 or newer
  10603. tmp_idyn=
  10604. case $host_cpu in
  10605. ia64*) tmp_idyn=' -i_dynamic';;
  10606. esac
  10607. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10608. 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'
  10609. ;;
  10610. esac
  10611. archive_cmds_need_lc_CXX=no
  10612. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10613. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10614. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10615. ;;
  10616. pgCC* | pgcpp*)
  10617. # Portland Group C++ compiler
  10618. case `$CC -V` in
  10619. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10620. prelink_cmds_CXX='tpldir=Template.dir~
  10621. rm -rf $tpldir~
  10622. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10623. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10624. old_archive_cmds_CXX='tpldir=Template.dir~
  10625. rm -rf $tpldir~
  10626. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10627. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10628. $RANLIB $oldlib'
  10629. archive_cmds_CXX='tpldir=Template.dir~
  10630. rm -rf $tpldir~
  10631. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10632. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10633. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10634. rm -rf $tpldir~
  10635. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10636. $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'
  10637. ;;
  10638. *) # Version 6 and above use weak symbols
  10639. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10640. 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'
  10641. ;;
  10642. esac
  10643. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10644. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10645. 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'
  10646. ;;
  10647. cxx*)
  10648. # Compaq C++
  10649. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10650. 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'
  10651. runpath_var=LD_RUN_PATH
  10652. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10653. hardcode_libdir_separator_CXX=:
  10654. # Commands to make compiler produce verbose output that lists
  10655. # what "hidden" libraries, object files and flags are used when
  10656. # linking a shared library.
  10657. #
  10658. # There doesn't appear to be a way to prevent this compiler from
  10659. # explicitly linking system object files so we need to strip them
  10660. # from the output so that they don't get included in the library
  10661. # dependencies.
  10662. 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'
  10663. ;;
  10664. xl* | mpixl* | bgxl*)
  10665. # IBM XL 8.0 on PPC, with GNU ld
  10666. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10667. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10668. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10669. if test "x$supports_anon_versioning" = xyes; then
  10670. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10671. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10672. echo "local: *; };" >> $output_objdir/$libname.ver~
  10673. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10674. fi
  10675. ;;
  10676. *)
  10677. case `$CC -V 2>&1 | sed 5q` in
  10678. *Sun\ C*)
  10679. # Sun C++ 5.9
  10680. no_undefined_flag_CXX=' -zdefs'
  10681. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10682. 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'
  10683. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10684. 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'
  10685. compiler_needs_object_CXX=yes
  10686. # Not sure whether something based on
  10687. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10688. # would be better.
  10689. output_verbose_link_cmd='func_echo_all'
  10690. # Archives containing C++ object files must be created using
  10691. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10692. # necessary to make sure instantiated templates are included
  10693. # in the archive.
  10694. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10695. ;;
  10696. esac
  10697. ;;
  10698. esac
  10699. ;;
  10700. lynxos*)
  10701. # FIXME: insert proper C++ library support
  10702. ld_shlibs_CXX=no
  10703. ;;
  10704. m88k*)
  10705. # FIXME: insert proper C++ library support
  10706. ld_shlibs_CXX=no
  10707. ;;
  10708. mvs*)
  10709. case $cc_basename in
  10710. cxx*)
  10711. # FIXME: insert proper C++ library support
  10712. ld_shlibs_CXX=no
  10713. ;;
  10714. *)
  10715. # FIXME: insert proper C++ library support
  10716. ld_shlibs_CXX=no
  10717. ;;
  10718. esac
  10719. ;;
  10720. netbsd*)
  10721. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10722. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10723. wlarc=
  10724. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10725. hardcode_direct_CXX=yes
  10726. hardcode_shlibpath_var_CXX=no
  10727. fi
  10728. # Workaround some broken pre-1.5 toolchains
  10729. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10730. ;;
  10731. *nto* | *qnx*)
  10732. ld_shlibs_CXX=yes
  10733. ;;
  10734. openbsd2*)
  10735. # C++ shared libraries are fairly broken
  10736. ld_shlibs_CXX=no
  10737. ;;
  10738. openbsd*)
  10739. if test -f /usr/libexec/ld.so; then
  10740. hardcode_direct_CXX=yes
  10741. hardcode_shlibpath_var_CXX=no
  10742. hardcode_direct_absolute_CXX=yes
  10743. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10744. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10745. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10746. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10747. export_dynamic_flag_spec_CXX='${wl}-E'
  10748. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10749. fi
  10750. output_verbose_link_cmd=func_echo_all
  10751. else
  10752. ld_shlibs_CXX=no
  10753. fi
  10754. ;;
  10755. osf3* | osf4* | osf5*)
  10756. case $cc_basename in
  10757. KCC*)
  10758. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10759. # KCC will only create a shared library if the output file
  10760. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10761. # to its proper name (with version) after linking.
  10762. 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'
  10763. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10764. hardcode_libdir_separator_CXX=:
  10765. # Archives containing C++ object files must be created using
  10766. # the KAI C++ compiler.
  10767. case $host in
  10768. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10769. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10770. esac
  10771. ;;
  10772. RCC*)
  10773. # Rational C++ 2.4.1
  10774. # FIXME: insert proper C++ library support
  10775. ld_shlibs_CXX=no
  10776. ;;
  10777. cxx*)
  10778. case $host in
  10779. osf3*)
  10780. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10781. 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'
  10782. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10783. ;;
  10784. *)
  10785. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10786. 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'
  10787. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10788. echo "-hidden">> $lib.exp~
  10789. $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~
  10790. $RM $lib.exp'
  10791. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10792. ;;
  10793. esac
  10794. hardcode_libdir_separator_CXX=:
  10795. # Commands to make compiler produce verbose output that lists
  10796. # what "hidden" libraries, object files and flags are used when
  10797. # linking a shared library.
  10798. #
  10799. # There doesn't appear to be a way to prevent this compiler from
  10800. # explicitly linking system object files so we need to strip them
  10801. # from the output so that they don't get included in the library
  10802. # dependencies.
  10803. 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"'
  10804. ;;
  10805. *)
  10806. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10807. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10808. case $host in
  10809. osf3*)
  10810. 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'
  10811. ;;
  10812. *)
  10813. archive_cmds_CXX='$CC -shared -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'
  10814. ;;
  10815. esac
  10816. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10817. hardcode_libdir_separator_CXX=:
  10818. # Commands to make compiler produce verbose output that lists
  10819. # what "hidden" libraries, object files and flags are used when
  10820. # linking a shared library.
  10821. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10822. else
  10823. # FIXME: insert proper C++ library support
  10824. ld_shlibs_CXX=no
  10825. fi
  10826. ;;
  10827. esac
  10828. ;;
  10829. psos*)
  10830. # FIXME: insert proper C++ library support
  10831. ld_shlibs_CXX=no
  10832. ;;
  10833. sunos4*)
  10834. case $cc_basename in
  10835. CC*)
  10836. # Sun C++ 4.x
  10837. # FIXME: insert proper C++ library support
  10838. ld_shlibs_CXX=no
  10839. ;;
  10840. lcc*)
  10841. # Lucid
  10842. # FIXME: insert proper C++ library support
  10843. ld_shlibs_CXX=no
  10844. ;;
  10845. *)
  10846. # FIXME: insert proper C++ library support
  10847. ld_shlibs_CXX=no
  10848. ;;
  10849. esac
  10850. ;;
  10851. solaris*)
  10852. case $cc_basename in
  10853. CC*)
  10854. # Sun C++ 4.2, 5.x and Centerline C++
  10855. archive_cmds_need_lc_CXX=yes
  10856. no_undefined_flag_CXX=' -zdefs'
  10857. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10858. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10859. $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'
  10860. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10861. hardcode_shlibpath_var_CXX=no
  10862. case $host_os in
  10863. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10864. *)
  10865. # The compiler driver will combine and reorder linker options,
  10866. # but understands `-z linker_flag'.
  10867. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10868. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10869. ;;
  10870. esac
  10871. link_all_deplibs_CXX=yes
  10872. output_verbose_link_cmd='func_echo_all'
  10873. # Archives containing C++ object files must be created using
  10874. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10875. # necessary to make sure instantiated templates are included
  10876. # in the archive.
  10877. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10878. ;;
  10879. gcx*)
  10880. # Green Hills C++ Compiler
  10881. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10882. # The C++ compiler must be used to create the archive.
  10883. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10884. ;;
  10885. *)
  10886. # GNU C++ compiler with Solaris linker
  10887. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10888. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10889. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10890. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10891. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10892. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10893. # Commands to make compiler produce verbose output that lists
  10894. # what "hidden" libraries, object files and flags are used when
  10895. # linking a shared library.
  10896. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10897. else
  10898. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10899. # platform.
  10900. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10901. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10902. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10903. # Commands to make compiler produce verbose output that lists
  10904. # what "hidden" libraries, object files and flags are used when
  10905. # linking a shared library.
  10906. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10907. fi
  10908. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10909. case $host_os in
  10910. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10911. *)
  10912. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10913. ;;
  10914. esac
  10915. fi
  10916. ;;
  10917. esac
  10918. ;;
  10919. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10920. no_undefined_flag_CXX='${wl}-z,text'
  10921. archive_cmds_need_lc_CXX=no
  10922. hardcode_shlibpath_var_CXX=no
  10923. runpath_var='LD_RUN_PATH'
  10924. case $cc_basename in
  10925. CC*)
  10926. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10927. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10928. ;;
  10929. *)
  10930. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10931. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10932. ;;
  10933. esac
  10934. ;;
  10935. sysv5* | sco3.2v5* | sco5v6*)
  10936. # Note: We can NOT use -z defs as we might desire, because we do not
  10937. # link with -lc, and that would cause any symbols used from libc to
  10938. # always be unresolved, which means just about no library would
  10939. # ever link correctly. If we're not using GNU ld we use -z text
  10940. # though, which does catch some bad symbols but isn't as heavy-handed
  10941. # as -z defs.
  10942. no_undefined_flag_CXX='${wl}-z,text'
  10943. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10944. archive_cmds_need_lc_CXX=no
  10945. hardcode_shlibpath_var_CXX=no
  10946. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10947. hardcode_libdir_separator_CXX=':'
  10948. link_all_deplibs_CXX=yes
  10949. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10950. runpath_var='LD_RUN_PATH'
  10951. case $cc_basename in
  10952. CC*)
  10953. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10954. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10955. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  10956. '"$old_archive_cmds_CXX"
  10957. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  10958. '"$reload_cmds_CXX"
  10959. ;;
  10960. *)
  10961. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10962. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10963. ;;
  10964. esac
  10965. ;;
  10966. tandem*)
  10967. case $cc_basename in
  10968. NCC*)
  10969. # NonStop-UX NCC 3.20
  10970. # FIXME: insert proper C++ library support
  10971. ld_shlibs_CXX=no
  10972. ;;
  10973. *)
  10974. # FIXME: insert proper C++ library support
  10975. ld_shlibs_CXX=no
  10976. ;;
  10977. esac
  10978. ;;
  10979. vxworks*)
  10980. # FIXME: insert proper C++ library support
  10981. ld_shlibs_CXX=no
  10982. ;;
  10983. *)
  10984. # FIXME: insert proper C++ library support
  10985. ld_shlibs_CXX=no
  10986. ;;
  10987. esac
  10988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10989. $as_echo "$ld_shlibs_CXX" >&6; }
  10990. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10991. GCC_CXX="$GXX"
  10992. LD_CXX="$LD"
  10993. ## CAVEAT EMPTOR:
  10994. ## There is no encapsulation within the following macros, do not change
  10995. ## the running order or otherwise move them around unless you know exactly
  10996. ## what you are doing...
  10997. # Dependencies to place before and after the object being linked:
  10998. predep_objects_CXX=
  10999. postdep_objects_CXX=
  11000. predeps_CXX=
  11001. postdeps_CXX=
  11002. compiler_lib_search_path_CXX=
  11003. cat > conftest.$ac_ext <<_LT_EOF
  11004. class Foo
  11005. {
  11006. public:
  11007. Foo (void) { a = 0; }
  11008. private:
  11009. int a;
  11010. };
  11011. _LT_EOF
  11012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11013. (eval $ac_compile) 2>&5
  11014. ac_status=$?
  11015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11016. test $ac_status = 0; }; then
  11017. # Parse the compiler output and extract the necessary
  11018. # objects, libraries and library flags.
  11019. # Sentinel used to keep track of whether or not we are before
  11020. # the conftest object file.
  11021. pre_test_object_deps_done=no
  11022. for p in `eval "$output_verbose_link_cmd"`; do
  11023. case $p in
  11024. -L* | -R* | -l*)
  11025. # Some compilers place space between "-{L,R}" and the path.
  11026. # Remove the space.
  11027. if test $p = "-L" ||
  11028. test $p = "-R"; then
  11029. prev=$p
  11030. continue
  11031. else
  11032. prev=
  11033. fi
  11034. if test "$pre_test_object_deps_done" = no; then
  11035. case $p in
  11036. -L* | -R*)
  11037. # Internal compiler library paths should come after those
  11038. # provided the user. The postdeps already come after the
  11039. # user supplied libs so there is no need to process them.
  11040. if test -z "$compiler_lib_search_path_CXX"; then
  11041. compiler_lib_search_path_CXX="${prev}${p}"
  11042. else
  11043. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11044. fi
  11045. ;;
  11046. # The "-l" case would never come before the object being
  11047. # linked, so don't bother handling this case.
  11048. esac
  11049. else
  11050. if test -z "$postdeps_CXX"; then
  11051. postdeps_CXX="${prev}${p}"
  11052. else
  11053. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11054. fi
  11055. fi
  11056. ;;
  11057. *.$objext)
  11058. # This assumes that the test object file only shows up
  11059. # once in the compiler output.
  11060. if test "$p" = "conftest.$objext"; then
  11061. pre_test_object_deps_done=yes
  11062. continue
  11063. fi
  11064. if test "$pre_test_object_deps_done" = no; then
  11065. if test -z "$predep_objects_CXX"; then
  11066. predep_objects_CXX="$p"
  11067. else
  11068. predep_objects_CXX="$predep_objects_CXX $p"
  11069. fi
  11070. else
  11071. if test -z "$postdep_objects_CXX"; then
  11072. postdep_objects_CXX="$p"
  11073. else
  11074. postdep_objects_CXX="$postdep_objects_CXX $p"
  11075. fi
  11076. fi
  11077. ;;
  11078. *) ;; # Ignore the rest.
  11079. esac
  11080. done
  11081. # Clean up.
  11082. rm -f a.out a.exe
  11083. else
  11084. echo "libtool.m4: error: problem compiling CXX test program"
  11085. fi
  11086. $RM -f confest.$objext
  11087. # PORTME: override above test on systems where it is broken
  11088. case $host_os in
  11089. interix[3-9]*)
  11090. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11091. # hack all around it, let's just trust "g++" to DTRT.
  11092. predep_objects_CXX=
  11093. postdep_objects_CXX=
  11094. postdeps_CXX=
  11095. ;;
  11096. linux*)
  11097. case `$CC -V 2>&1 | sed 5q` in
  11098. *Sun\ C*)
  11099. # Sun C++ 5.9
  11100. # The more standards-conforming stlport4 library is
  11101. # incompatible with the Cstd library. Avoid specifying
  11102. # it if it's in CXXFLAGS. Ignore libCrun as
  11103. # -library=stlport4 depends on it.
  11104. case " $CXX $CXXFLAGS " in
  11105. *" -library=stlport4 "*)
  11106. solaris_use_stlport4=yes
  11107. ;;
  11108. esac
  11109. if test "$solaris_use_stlport4" != yes; then
  11110. postdeps_CXX='-library=Cstd -library=Crun'
  11111. fi
  11112. ;;
  11113. esac
  11114. ;;
  11115. solaris*)
  11116. case $cc_basename in
  11117. CC*)
  11118. # The more standards-conforming stlport4 library is
  11119. # incompatible with the Cstd library. Avoid specifying
  11120. # it if it's in CXXFLAGS. Ignore libCrun as
  11121. # -library=stlport4 depends on it.
  11122. case " $CXX $CXXFLAGS " in
  11123. *" -library=stlport4 "*)
  11124. solaris_use_stlport4=yes
  11125. ;;
  11126. esac
  11127. # Adding this requires a known-good setup of shared libraries for
  11128. # Sun compiler versions before 5.6, else PIC objects from an old
  11129. # archive will be linked into the output, leading to subtle bugs.
  11130. if test "$solaris_use_stlport4" != yes; then
  11131. postdeps_CXX='-library=Cstd -library=Crun'
  11132. fi
  11133. ;;
  11134. esac
  11135. ;;
  11136. esac
  11137. case " $postdeps_CXX " in
  11138. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11139. esac
  11140. compiler_lib_search_dirs_CXX=
  11141. if test -n "${compiler_lib_search_path_CXX}"; then
  11142. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11143. fi
  11144. lt_prog_compiler_wl_CXX=
  11145. lt_prog_compiler_pic_CXX=
  11146. lt_prog_compiler_static_CXX=
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11148. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11149. # C++ specific cases for pic, static, wl, etc.
  11150. if test "$GXX" = yes; then
  11151. lt_prog_compiler_wl_CXX='-Wl,'
  11152. lt_prog_compiler_static_CXX='-static'
  11153. case $host_os in
  11154. aix*)
  11155. # All AIX code is PIC.
  11156. if test "$host_cpu" = ia64; then
  11157. # AIX 5 now supports IA64 processor
  11158. lt_prog_compiler_static_CXX='-Bstatic'
  11159. fi
  11160. lt_prog_compiler_pic_CXX='-fPIC'
  11161. ;;
  11162. amigaos*)
  11163. case $host_cpu in
  11164. powerpc)
  11165. # see comment about AmigaOS4 .so support
  11166. lt_prog_compiler_pic_CXX='-fPIC'
  11167. ;;
  11168. m68k)
  11169. # FIXME: we need at least 68020 code to build shared libraries, but
  11170. # adding the `-m68020' flag to GCC prevents building anything better,
  11171. # like `-m68040'.
  11172. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11173. ;;
  11174. esac
  11175. ;;
  11176. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11177. # PIC is the default for these OSes.
  11178. ;;
  11179. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11180. # This hack is so that the source file can tell whether it is being
  11181. # built for inclusion in a dll (and should export symbols for example).
  11182. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11183. # (--disable-auto-import) libraries
  11184. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11185. ;;
  11186. darwin* | rhapsody*)
  11187. # PIC is the default on this platform
  11188. # Common symbols not allowed in MH_DYLIB files
  11189. lt_prog_compiler_pic_CXX='-fno-common'
  11190. ;;
  11191. *djgpp*)
  11192. # DJGPP does not support shared libraries at all
  11193. lt_prog_compiler_pic_CXX=
  11194. ;;
  11195. haiku*)
  11196. # PIC is the default for Haiku.
  11197. # The "-static" flag exists, but is broken.
  11198. lt_prog_compiler_static_CXX=
  11199. ;;
  11200. interix[3-9]*)
  11201. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11202. # Instead, we relocate shared libraries at runtime.
  11203. ;;
  11204. sysv4*MP*)
  11205. if test -d /usr/nec; then
  11206. lt_prog_compiler_pic_CXX=-Kconform_pic
  11207. fi
  11208. ;;
  11209. hpux*)
  11210. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11211. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11212. # sets the default TLS model and affects inlining.
  11213. case $host_cpu in
  11214. hppa*64*)
  11215. ;;
  11216. *)
  11217. lt_prog_compiler_pic_CXX='-fPIC'
  11218. ;;
  11219. esac
  11220. ;;
  11221. *qnx* | *nto*)
  11222. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11223. # it will coredump.
  11224. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11225. ;;
  11226. *)
  11227. lt_prog_compiler_pic_CXX='-fPIC'
  11228. ;;
  11229. esac
  11230. else
  11231. case $host_os in
  11232. aix[4-9]*)
  11233. # All AIX code is PIC.
  11234. if test "$host_cpu" = ia64; then
  11235. # AIX 5 now supports IA64 processor
  11236. lt_prog_compiler_static_CXX='-Bstatic'
  11237. else
  11238. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11239. fi
  11240. ;;
  11241. chorus*)
  11242. case $cc_basename in
  11243. cxch68*)
  11244. # Green Hills C++ Compiler
  11245. # _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"
  11246. ;;
  11247. esac
  11248. ;;
  11249. dgux*)
  11250. case $cc_basename in
  11251. ec++*)
  11252. lt_prog_compiler_pic_CXX='-KPIC'
  11253. ;;
  11254. ghcx*)
  11255. # Green Hills C++ Compiler
  11256. lt_prog_compiler_pic_CXX='-pic'
  11257. ;;
  11258. *)
  11259. ;;
  11260. esac
  11261. ;;
  11262. freebsd* | dragonfly*)
  11263. # FreeBSD uses GNU C++
  11264. ;;
  11265. hpux9* | hpux10* | hpux11*)
  11266. case $cc_basename in
  11267. CC*)
  11268. lt_prog_compiler_wl_CXX='-Wl,'
  11269. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11270. if test "$host_cpu" != ia64; then
  11271. lt_prog_compiler_pic_CXX='+Z'
  11272. fi
  11273. ;;
  11274. aCC*)
  11275. lt_prog_compiler_wl_CXX='-Wl,'
  11276. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11277. case $host_cpu in
  11278. hppa*64*|ia64*)
  11279. # +Z the default
  11280. ;;
  11281. *)
  11282. lt_prog_compiler_pic_CXX='+Z'
  11283. ;;
  11284. esac
  11285. ;;
  11286. *)
  11287. ;;
  11288. esac
  11289. ;;
  11290. interix*)
  11291. # This is c89, which is MS Visual C++ (no shared libs)
  11292. # Anyone wants to do a port?
  11293. ;;
  11294. irix5* | irix6* | nonstopux*)
  11295. case $cc_basename in
  11296. CC*)
  11297. lt_prog_compiler_wl_CXX='-Wl,'
  11298. lt_prog_compiler_static_CXX='-non_shared'
  11299. # CC pic flag -KPIC is the default.
  11300. ;;
  11301. *)
  11302. ;;
  11303. esac
  11304. ;;
  11305. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11306. case $cc_basename in
  11307. KCC*)
  11308. # KAI C++ Compiler
  11309. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11310. lt_prog_compiler_pic_CXX='-fPIC'
  11311. ;;
  11312. ecpc* )
  11313. # old Intel C++ for x86_64 which still supported -KPIC.
  11314. lt_prog_compiler_wl_CXX='-Wl,'
  11315. lt_prog_compiler_pic_CXX='-KPIC'
  11316. lt_prog_compiler_static_CXX='-static'
  11317. ;;
  11318. icpc* )
  11319. # Intel C++, used to be incompatible with GCC.
  11320. # ICC 10 doesn't accept -KPIC any more.
  11321. lt_prog_compiler_wl_CXX='-Wl,'
  11322. lt_prog_compiler_pic_CXX='-fPIC'
  11323. lt_prog_compiler_static_CXX='-static'
  11324. ;;
  11325. pgCC* | pgcpp*)
  11326. # Portland Group C++ compiler
  11327. lt_prog_compiler_wl_CXX='-Wl,'
  11328. lt_prog_compiler_pic_CXX='-fpic'
  11329. lt_prog_compiler_static_CXX='-Bstatic'
  11330. ;;
  11331. cxx*)
  11332. # Compaq C++
  11333. # Make sure the PIC flag is empty. It appears that all Alpha
  11334. # Linux and Compaq Tru64 Unix objects are PIC.
  11335. lt_prog_compiler_pic_CXX=
  11336. lt_prog_compiler_static_CXX='-non_shared'
  11337. ;;
  11338. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11339. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11340. lt_prog_compiler_wl_CXX='-Wl,'
  11341. lt_prog_compiler_pic_CXX='-qpic'
  11342. lt_prog_compiler_static_CXX='-qstaticlink'
  11343. ;;
  11344. *)
  11345. case `$CC -V 2>&1 | sed 5q` in
  11346. *Sun\ C*)
  11347. # Sun C++ 5.9
  11348. lt_prog_compiler_pic_CXX='-KPIC'
  11349. lt_prog_compiler_static_CXX='-Bstatic'
  11350. lt_prog_compiler_wl_CXX='-Qoption ld '
  11351. ;;
  11352. esac
  11353. ;;
  11354. esac
  11355. ;;
  11356. lynxos*)
  11357. ;;
  11358. m88k*)
  11359. ;;
  11360. mvs*)
  11361. case $cc_basename in
  11362. cxx*)
  11363. lt_prog_compiler_pic_CXX='-W c,exportall'
  11364. ;;
  11365. *)
  11366. ;;
  11367. esac
  11368. ;;
  11369. netbsd*)
  11370. ;;
  11371. *qnx* | *nto*)
  11372. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11373. # it will coredump.
  11374. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11375. ;;
  11376. osf3* | osf4* | osf5*)
  11377. case $cc_basename in
  11378. KCC*)
  11379. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11380. ;;
  11381. RCC*)
  11382. # Rational C++ 2.4.1
  11383. lt_prog_compiler_pic_CXX='-pic'
  11384. ;;
  11385. cxx*)
  11386. # Digital/Compaq C++
  11387. lt_prog_compiler_wl_CXX='-Wl,'
  11388. # Make sure the PIC flag is empty. It appears that all Alpha
  11389. # Linux and Compaq Tru64 Unix objects are PIC.
  11390. lt_prog_compiler_pic_CXX=
  11391. lt_prog_compiler_static_CXX='-non_shared'
  11392. ;;
  11393. *)
  11394. ;;
  11395. esac
  11396. ;;
  11397. psos*)
  11398. ;;
  11399. solaris*)
  11400. case $cc_basename in
  11401. CC*)
  11402. # Sun C++ 4.2, 5.x and Centerline C++
  11403. lt_prog_compiler_pic_CXX='-KPIC'
  11404. lt_prog_compiler_static_CXX='-Bstatic'
  11405. lt_prog_compiler_wl_CXX='-Qoption ld '
  11406. ;;
  11407. gcx*)
  11408. # Green Hills C++ Compiler
  11409. lt_prog_compiler_pic_CXX='-PIC'
  11410. ;;
  11411. *)
  11412. ;;
  11413. esac
  11414. ;;
  11415. sunos4*)
  11416. case $cc_basename in
  11417. CC*)
  11418. # Sun C++ 4.x
  11419. lt_prog_compiler_pic_CXX='-pic'
  11420. lt_prog_compiler_static_CXX='-Bstatic'
  11421. ;;
  11422. lcc*)
  11423. # Lucid
  11424. lt_prog_compiler_pic_CXX='-pic'
  11425. ;;
  11426. *)
  11427. ;;
  11428. esac
  11429. ;;
  11430. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11431. case $cc_basename in
  11432. CC*)
  11433. lt_prog_compiler_wl_CXX='-Wl,'
  11434. lt_prog_compiler_pic_CXX='-KPIC'
  11435. lt_prog_compiler_static_CXX='-Bstatic'
  11436. ;;
  11437. esac
  11438. ;;
  11439. tandem*)
  11440. case $cc_basename in
  11441. NCC*)
  11442. # NonStop-UX NCC 3.20
  11443. lt_prog_compiler_pic_CXX='-KPIC'
  11444. ;;
  11445. *)
  11446. ;;
  11447. esac
  11448. ;;
  11449. vxworks*)
  11450. ;;
  11451. *)
  11452. lt_prog_compiler_can_build_shared_CXX=no
  11453. ;;
  11454. esac
  11455. fi
  11456. case $host_os in
  11457. # For platforms which do not support PIC, -DPIC is meaningless:
  11458. *djgpp*)
  11459. lt_prog_compiler_pic_CXX=
  11460. ;;
  11461. *)
  11462. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11463. ;;
  11464. esac
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11466. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11467. #
  11468. # Check to make sure the PIC flag actually works.
  11469. #
  11470. if test -n "$lt_prog_compiler_pic_CXX"; then
  11471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11472. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11473. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11474. $as_echo_n "(cached) " >&6
  11475. else
  11476. lt_cv_prog_compiler_pic_works_CXX=no
  11477. ac_outfile=conftest.$ac_objext
  11478. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11479. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11480. # Insert the option either (1) after the last *FLAGS variable, or
  11481. # (2) before a word containing "conftest.", or (3) at the end.
  11482. # Note that $ac_compile itself does not contain backslashes and begins
  11483. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11484. # The option is referenced via a variable to avoid confusing sed.
  11485. lt_compile=`echo "$ac_compile" | $SED \
  11486. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11487. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11488. -e 's:$: $lt_compiler_flag:'`
  11489. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11490. (eval "$lt_compile" 2>conftest.err)
  11491. ac_status=$?
  11492. cat conftest.err >&5
  11493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11494. if (exit $ac_status) && test -s "$ac_outfile"; then
  11495. # The compiler can only warn and ignore the option if not recognized
  11496. # So say no if there are warnings other than the usual output.
  11497. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11498. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11499. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11500. lt_cv_prog_compiler_pic_works_CXX=yes
  11501. fi
  11502. fi
  11503. $RM conftest*
  11504. fi
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11506. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11507. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11508. case $lt_prog_compiler_pic_CXX in
  11509. "" | " "*) ;;
  11510. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11511. esac
  11512. else
  11513. lt_prog_compiler_pic_CXX=
  11514. lt_prog_compiler_can_build_shared_CXX=no
  11515. fi
  11516. fi
  11517. #
  11518. # Check to make sure the static flag actually works.
  11519. #
  11520. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11522. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11523. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11524. $as_echo_n "(cached) " >&6
  11525. else
  11526. lt_cv_prog_compiler_static_works_CXX=no
  11527. save_LDFLAGS="$LDFLAGS"
  11528. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11529. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11530. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11531. # The linker can only warn and ignore the option if not recognized
  11532. # So say no if there are warnings
  11533. if test -s conftest.err; then
  11534. # Append any errors to the config.log.
  11535. cat conftest.err 1>&5
  11536. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11537. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11538. if diff conftest.exp conftest.er2 >/dev/null; then
  11539. lt_cv_prog_compiler_static_works_CXX=yes
  11540. fi
  11541. else
  11542. lt_cv_prog_compiler_static_works_CXX=yes
  11543. fi
  11544. fi
  11545. $RM -r conftest*
  11546. LDFLAGS="$save_LDFLAGS"
  11547. fi
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11549. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11550. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11551. :
  11552. else
  11553. lt_prog_compiler_static_CXX=
  11554. fi
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11556. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11557. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11558. $as_echo_n "(cached) " >&6
  11559. else
  11560. lt_cv_prog_compiler_c_o_CXX=no
  11561. $RM -r conftest 2>/dev/null
  11562. mkdir conftest
  11563. cd conftest
  11564. mkdir out
  11565. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11566. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11567. # Insert the option either (1) after the last *FLAGS variable, or
  11568. # (2) before a word containing "conftest.", or (3) at the end.
  11569. # Note that $ac_compile itself does not contain backslashes and begins
  11570. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11571. lt_compile=`echo "$ac_compile" | $SED \
  11572. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11573. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11574. -e 's:$: $lt_compiler_flag:'`
  11575. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11576. (eval "$lt_compile" 2>out/conftest.err)
  11577. ac_status=$?
  11578. cat out/conftest.err >&5
  11579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11580. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11581. then
  11582. # The compiler can only warn and ignore the option if not recognized
  11583. # So say no if there are warnings
  11584. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11585. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11586. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11587. lt_cv_prog_compiler_c_o_CXX=yes
  11588. fi
  11589. fi
  11590. chmod u+w . 2>&5
  11591. $RM conftest*
  11592. # SGI C++ compiler will create directory out/ii_files/ for
  11593. # template instantiation
  11594. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11595. $RM out/* && rmdir out
  11596. cd ..
  11597. $RM -r conftest
  11598. $RM conftest*
  11599. fi
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11601. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11603. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11604. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11605. $as_echo_n "(cached) " >&6
  11606. else
  11607. lt_cv_prog_compiler_c_o_CXX=no
  11608. $RM -r conftest 2>/dev/null
  11609. mkdir conftest
  11610. cd conftest
  11611. mkdir out
  11612. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11613. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11614. # Insert the option either (1) after the last *FLAGS variable, or
  11615. # (2) before a word containing "conftest.", or (3) at the end.
  11616. # Note that $ac_compile itself does not contain backslashes and begins
  11617. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11618. lt_compile=`echo "$ac_compile" | $SED \
  11619. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11620. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11621. -e 's:$: $lt_compiler_flag:'`
  11622. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11623. (eval "$lt_compile" 2>out/conftest.err)
  11624. ac_status=$?
  11625. cat out/conftest.err >&5
  11626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11627. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11628. then
  11629. # The compiler can only warn and ignore the option if not recognized
  11630. # So say no if there are warnings
  11631. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11632. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11633. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11634. lt_cv_prog_compiler_c_o_CXX=yes
  11635. fi
  11636. fi
  11637. chmod u+w . 2>&5
  11638. $RM conftest*
  11639. # SGI C++ compiler will create directory out/ii_files/ for
  11640. # template instantiation
  11641. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11642. $RM out/* && rmdir out
  11643. cd ..
  11644. $RM -r conftest
  11645. $RM conftest*
  11646. fi
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11648. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11649. hard_links="nottested"
  11650. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11651. # do not overwrite the value of need_locks provided by the user
  11652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11653. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11654. hard_links=yes
  11655. $RM conftest*
  11656. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11657. touch conftest.a
  11658. ln conftest.a conftest.b 2>&5 || hard_links=no
  11659. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11661. $as_echo "$hard_links" >&6; }
  11662. if test "$hard_links" = no; then
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11664. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11665. need_locks=warn
  11666. fi
  11667. else
  11668. need_locks=no
  11669. fi
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11671. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11672. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11673. case $host_os in
  11674. aix[4-9]*)
  11675. # If we're using GNU nm, then we don't want the "-C" option.
  11676. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11677. # Also, AIX nm treats weak defined symbols like other global defined
  11678. # symbols, whereas GNU nm marks them as "W".
  11679. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11680. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11681. else
  11682. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11683. fi
  11684. ;;
  11685. pw32*)
  11686. export_symbols_cmds_CXX="$ltdll_cmds"
  11687. ;;
  11688. cygwin* | mingw* | cegcc*)
  11689. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11690. ;;
  11691. *)
  11692. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11693. ;;
  11694. esac
  11695. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11697. $as_echo "$ld_shlibs_CXX" >&6; }
  11698. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11699. with_gnu_ld_CXX=$with_gnu_ld
  11700. #
  11701. # Do we need to explicitly link libc?
  11702. #
  11703. case "x$archive_cmds_need_lc_CXX" in
  11704. x|xyes)
  11705. # Assume -lc should be added
  11706. archive_cmds_need_lc_CXX=yes
  11707. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11708. case $archive_cmds_CXX in
  11709. *'~'*)
  11710. # FIXME: we may have to deal with multi-command sequences.
  11711. ;;
  11712. '$CC '*)
  11713. # Test whether the compiler implicitly links with -lc since on some
  11714. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11715. # to ld, don't add -lc before -lgcc.
  11716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11717. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11718. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  11719. $as_echo_n "(cached) " >&6
  11720. else
  11721. $RM conftest*
  11722. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11724. (eval $ac_compile) 2>&5
  11725. ac_status=$?
  11726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11727. test $ac_status = 0; } 2>conftest.err; then
  11728. soname=conftest
  11729. lib=conftest
  11730. libobjs=conftest.$ac_objext
  11731. deplibs=
  11732. wl=$lt_prog_compiler_wl_CXX
  11733. pic_flag=$lt_prog_compiler_pic_CXX
  11734. compiler_flags=-v
  11735. linker_flags=-v
  11736. verstring=
  11737. output_objdir=.
  11738. libname=conftest
  11739. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11740. allow_undefined_flag_CXX=
  11741. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11742. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11743. ac_status=$?
  11744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11745. test $ac_status = 0; }
  11746. then
  11747. lt_cv_archive_cmds_need_lc_CXX=no
  11748. else
  11749. lt_cv_archive_cmds_need_lc_CXX=yes
  11750. fi
  11751. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11752. else
  11753. cat conftest.err 1>&5
  11754. fi
  11755. $RM conftest*
  11756. fi
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11758. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11759. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11760. ;;
  11761. esac
  11762. fi
  11763. ;;
  11764. esac
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11766. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11767. library_names_spec=
  11768. libname_spec='lib$name'
  11769. soname_spec=
  11770. shrext_cmds=".so"
  11771. postinstall_cmds=
  11772. postuninstall_cmds=
  11773. finish_cmds=
  11774. finish_eval=
  11775. shlibpath_var=
  11776. shlibpath_overrides_runpath=unknown
  11777. version_type=none
  11778. dynamic_linker="$host_os ld.so"
  11779. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11780. need_lib_prefix=unknown
  11781. hardcode_into_libs=no
  11782. # when you set need_version to no, make sure it does not cause -set_version
  11783. # flags to be left without arguments
  11784. need_version=unknown
  11785. case $host_os in
  11786. aix3*)
  11787. version_type=linux
  11788. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11789. shlibpath_var=LIBPATH
  11790. # AIX 3 has no versioning support, so we append a major version to the name.
  11791. soname_spec='${libname}${release}${shared_ext}$major'
  11792. ;;
  11793. aix[4-9]*)
  11794. version_type=linux
  11795. need_lib_prefix=no
  11796. need_version=no
  11797. hardcode_into_libs=yes
  11798. if test "$host_cpu" = ia64; then
  11799. # AIX 5 supports IA64
  11800. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11801. shlibpath_var=LD_LIBRARY_PATH
  11802. else
  11803. # With GCC up to 2.95.x, collect2 would create an import file
  11804. # for dependence libraries. The import file would start with
  11805. # the line `#! .'. This would cause the generated library to
  11806. # depend on `.', always an invalid library. This was fixed in
  11807. # development snapshots of GCC prior to 3.0.
  11808. case $host_os in
  11809. aix4 | aix4.[01] | aix4.[01].*)
  11810. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11811. echo ' yes '
  11812. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11813. :
  11814. else
  11815. can_build_shared=no
  11816. fi
  11817. ;;
  11818. esac
  11819. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11820. # soname into executable. Probably we can add versioning support to
  11821. # collect2, so additional links can be useful in future.
  11822. if test "$aix_use_runtimelinking" = yes; then
  11823. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11824. # instead of lib<name>.a to let people know that these are not
  11825. # typical AIX shared libraries.
  11826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11827. else
  11828. # We preserve .a as extension for shared libraries through AIX4.2
  11829. # and later when we are not doing run time linking.
  11830. library_names_spec='${libname}${release}.a $libname.a'
  11831. soname_spec='${libname}${release}${shared_ext}$major'
  11832. fi
  11833. shlibpath_var=LIBPATH
  11834. fi
  11835. ;;
  11836. amigaos*)
  11837. case $host_cpu in
  11838. powerpc)
  11839. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11840. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11842. ;;
  11843. m68k)
  11844. library_names_spec='$libname.ixlibrary $libname.a'
  11845. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11846. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  11847. ;;
  11848. esac
  11849. ;;
  11850. beos*)
  11851. library_names_spec='${libname}${shared_ext}'
  11852. dynamic_linker="$host_os ld.so"
  11853. shlibpath_var=LIBRARY_PATH
  11854. ;;
  11855. bsdi[45]*)
  11856. version_type=linux
  11857. need_version=no
  11858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11859. soname_spec='${libname}${release}${shared_ext}$major'
  11860. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11861. shlibpath_var=LD_LIBRARY_PATH
  11862. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11863. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11864. # the default ld.so.conf also contains /usr/contrib/lib and
  11865. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11866. # libtool to hard-code these into programs
  11867. ;;
  11868. cygwin* | mingw* | pw32* | cegcc*)
  11869. version_type=windows
  11870. shrext_cmds=".dll"
  11871. need_version=no
  11872. need_lib_prefix=no
  11873. case $GCC,$host_os in
  11874. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11875. library_names_spec='$libname.dll.a'
  11876. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11877. postinstall_cmds='base_file=`basename \${file}`~
  11878. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11879. dldir=$destdir/`dirname \$dlpath`~
  11880. test -d \$dldir || mkdir -p \$dldir~
  11881. $install_prog $dir/$dlname \$dldir/$dlname~
  11882. chmod a+x \$dldir/$dlname~
  11883. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11884. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11885. fi'
  11886. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11887. dlpath=$dir/\$dldll~
  11888. $RM \$dlpath'
  11889. shlibpath_overrides_runpath=yes
  11890. case $host_os in
  11891. cygwin*)
  11892. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11893. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11894. ;;
  11895. mingw* | cegcc*)
  11896. # MinGW DLLs use traditional 'lib' prefix
  11897. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11898. ;;
  11899. pw32*)
  11900. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11901. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11902. ;;
  11903. esac
  11904. ;;
  11905. *)
  11906. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11907. ;;
  11908. esac
  11909. dynamic_linker='Win32 ld.exe'
  11910. # FIXME: first we should search . and the directory the executable is in
  11911. shlibpath_var=PATH
  11912. ;;
  11913. darwin* | rhapsody*)
  11914. dynamic_linker="$host_os dyld"
  11915. version_type=darwin
  11916. need_lib_prefix=no
  11917. need_version=no
  11918. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11919. soname_spec='${libname}${release}${major}$shared_ext'
  11920. shlibpath_overrides_runpath=yes
  11921. shlibpath_var=DYLD_LIBRARY_PATH
  11922. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11923. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11924. ;;
  11925. dgux*)
  11926. version_type=linux
  11927. need_lib_prefix=no
  11928. need_version=no
  11929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11930. soname_spec='${libname}${release}${shared_ext}$major'
  11931. shlibpath_var=LD_LIBRARY_PATH
  11932. ;;
  11933. freebsd* | dragonfly*)
  11934. # DragonFly does not have aout. When/if they implement a new
  11935. # versioning mechanism, adjust this.
  11936. if test -x /usr/bin/objformat; then
  11937. objformat=`/usr/bin/objformat`
  11938. else
  11939. case $host_os in
  11940. freebsd[23].*) objformat=aout ;;
  11941. *) objformat=elf ;;
  11942. esac
  11943. fi
  11944. version_type=freebsd-$objformat
  11945. case $version_type in
  11946. freebsd-elf*)
  11947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11948. need_version=no
  11949. need_lib_prefix=no
  11950. ;;
  11951. freebsd-*)
  11952. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11953. need_version=yes
  11954. ;;
  11955. esac
  11956. shlibpath_var=LD_LIBRARY_PATH
  11957. case $host_os in
  11958. freebsd2.*)
  11959. shlibpath_overrides_runpath=yes
  11960. ;;
  11961. freebsd3.[01]* | freebsdelf3.[01]*)
  11962. shlibpath_overrides_runpath=yes
  11963. hardcode_into_libs=yes
  11964. ;;
  11965. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11966. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11967. shlibpath_overrides_runpath=no
  11968. hardcode_into_libs=yes
  11969. ;;
  11970. *) # from 4.6 on, and DragonFly
  11971. shlibpath_overrides_runpath=yes
  11972. hardcode_into_libs=yes
  11973. ;;
  11974. esac
  11975. ;;
  11976. gnu*)
  11977. version_type=linux
  11978. need_lib_prefix=no
  11979. need_version=no
  11980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11981. soname_spec='${libname}${release}${shared_ext}$major'
  11982. shlibpath_var=LD_LIBRARY_PATH
  11983. hardcode_into_libs=yes
  11984. ;;
  11985. haiku*)
  11986. version_type=linux
  11987. need_lib_prefix=no
  11988. need_version=no
  11989. dynamic_linker="$host_os runtime_loader"
  11990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11991. soname_spec='${libname}${release}${shared_ext}$major'
  11992. shlibpath_var=LIBRARY_PATH
  11993. shlibpath_overrides_runpath=yes
  11994. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  11995. hardcode_into_libs=yes
  11996. ;;
  11997. hpux9* | hpux10* | hpux11*)
  11998. # Give a soname corresponding to the major version so that dld.sl refuses to
  11999. # link against other versions.
  12000. version_type=sunos
  12001. need_lib_prefix=no
  12002. need_version=no
  12003. case $host_cpu in
  12004. ia64*)
  12005. shrext_cmds='.so'
  12006. hardcode_into_libs=yes
  12007. dynamic_linker="$host_os dld.so"
  12008. shlibpath_var=LD_LIBRARY_PATH
  12009. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12011. soname_spec='${libname}${release}${shared_ext}$major'
  12012. if test "X$HPUX_IA64_MODE" = X32; then
  12013. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12014. else
  12015. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12016. fi
  12017. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12018. ;;
  12019. hppa*64*)
  12020. shrext_cmds='.sl'
  12021. hardcode_into_libs=yes
  12022. dynamic_linker="$host_os dld.sl"
  12023. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12024. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12026. soname_spec='${libname}${release}${shared_ext}$major'
  12027. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12029. ;;
  12030. *)
  12031. shrext_cmds='.sl'
  12032. dynamic_linker="$host_os dld.sl"
  12033. shlibpath_var=SHLIB_PATH
  12034. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12036. soname_spec='${libname}${release}${shared_ext}$major'
  12037. ;;
  12038. esac
  12039. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12040. postinstall_cmds='chmod 555 $lib'
  12041. # or fails outright, so override atomically:
  12042. install_override_mode=555
  12043. ;;
  12044. interix[3-9]*)
  12045. version_type=linux
  12046. need_lib_prefix=no
  12047. need_version=no
  12048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12049. soname_spec='${libname}${release}${shared_ext}$major'
  12050. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12051. shlibpath_var=LD_LIBRARY_PATH
  12052. shlibpath_overrides_runpath=no
  12053. hardcode_into_libs=yes
  12054. ;;
  12055. irix5* | irix6* | nonstopux*)
  12056. case $host_os in
  12057. nonstopux*) version_type=nonstopux ;;
  12058. *)
  12059. if test "$lt_cv_prog_gnu_ld" = yes; then
  12060. version_type=linux
  12061. else
  12062. version_type=irix
  12063. fi ;;
  12064. esac
  12065. need_lib_prefix=no
  12066. need_version=no
  12067. soname_spec='${libname}${release}${shared_ext}$major'
  12068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12069. case $host_os in
  12070. irix5* | nonstopux*)
  12071. libsuff= shlibsuff=
  12072. ;;
  12073. *)
  12074. case $LD in # libtool.m4 will add one of these switches to LD
  12075. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12076. libsuff= shlibsuff= libmagic=32-bit;;
  12077. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12078. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12079. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12080. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12081. *) libsuff= shlibsuff= libmagic=never-match;;
  12082. esac
  12083. ;;
  12084. esac
  12085. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12086. shlibpath_overrides_runpath=no
  12087. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12088. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12089. hardcode_into_libs=yes
  12090. ;;
  12091. # No shared lib support for Linux oldld, aout, or coff.
  12092. linux*oldld* | linux*aout* | linux*coff*)
  12093. dynamic_linker=no
  12094. ;;
  12095. # This must be Linux ELF.
  12096. # uclinux* changes (here and below) have been submitted to the libtool
  12097. # project, but have not yet been accepted: they are GCC-local changes
  12098. # for the time being. (See
  12099. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  12100. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  12101. version_type=linux
  12102. need_lib_prefix=no
  12103. need_version=no
  12104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12105. soname_spec='${libname}${release}${shared_ext}$major'
  12106. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12107. shlibpath_var=LD_LIBRARY_PATH
  12108. shlibpath_overrides_runpath=no
  12109. # Some binutils ld are patched to set DT_RUNPATH
  12110. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12111. $as_echo_n "(cached) " >&6
  12112. else
  12113. lt_cv_shlibpath_overrides_runpath=no
  12114. save_LDFLAGS=$LDFLAGS
  12115. save_libdir=$libdir
  12116. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12117. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12119. /* end confdefs.h. */
  12120. int
  12121. main ()
  12122. {
  12123. ;
  12124. return 0;
  12125. }
  12126. _ACEOF
  12127. if ac_fn_cxx_try_link "$LINENO"; then :
  12128. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12129. lt_cv_shlibpath_overrides_runpath=yes
  12130. fi
  12131. fi
  12132. rm -f core conftest.err conftest.$ac_objext \
  12133. conftest$ac_exeext conftest.$ac_ext
  12134. LDFLAGS=$save_LDFLAGS
  12135. libdir=$save_libdir
  12136. fi
  12137. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12138. # This implies no fast_install, which is unacceptable.
  12139. # Some rework will be needed to allow for fast_install
  12140. # before this can be enabled.
  12141. hardcode_into_libs=yes
  12142. # Append ld.so.conf contents to the search path
  12143. if test -f /etc/ld.so.conf; then
  12144. 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' ' '`
  12145. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12146. fi
  12147. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12148. # powerpc, because MkLinux only supported shared libraries with the
  12149. # GNU dynamic linker. Since this was broken with cross compilers,
  12150. # most powerpc-linux boxes support dynamic linking these days and
  12151. # people can always --disable-shared, the test was removed, and we
  12152. # assume the GNU/Linux dynamic linker is in use.
  12153. dynamic_linker='GNU/Linux ld.so'
  12154. ;;
  12155. netbsd*)
  12156. version_type=sunos
  12157. need_lib_prefix=no
  12158. need_version=no
  12159. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12161. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12162. dynamic_linker='NetBSD (a.out) ld.so'
  12163. else
  12164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12165. soname_spec='${libname}${release}${shared_ext}$major'
  12166. dynamic_linker='NetBSD ld.elf_so'
  12167. fi
  12168. shlibpath_var=LD_LIBRARY_PATH
  12169. shlibpath_overrides_runpath=yes
  12170. hardcode_into_libs=yes
  12171. ;;
  12172. newsos6)
  12173. version_type=linux
  12174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12175. shlibpath_var=LD_LIBRARY_PATH
  12176. shlibpath_overrides_runpath=yes
  12177. ;;
  12178. *nto* | *qnx*)
  12179. version_type=qnx
  12180. need_lib_prefix=no
  12181. need_version=no
  12182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12183. soname_spec='${libname}${release}${shared_ext}$major'
  12184. shlibpath_var=LD_LIBRARY_PATH
  12185. shlibpath_overrides_runpath=no
  12186. hardcode_into_libs=yes
  12187. dynamic_linker='ldqnx.so'
  12188. ;;
  12189. openbsd*)
  12190. version_type=sunos
  12191. sys_lib_dlsearch_path_spec="/usr/lib"
  12192. need_lib_prefix=no
  12193. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12194. case $host_os in
  12195. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12196. *) need_version=no ;;
  12197. esac
  12198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12199. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12200. shlibpath_var=LD_LIBRARY_PATH
  12201. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12202. case $host_os in
  12203. openbsd2.[89] | openbsd2.[89].*)
  12204. shlibpath_overrides_runpath=no
  12205. ;;
  12206. *)
  12207. shlibpath_overrides_runpath=yes
  12208. ;;
  12209. esac
  12210. else
  12211. shlibpath_overrides_runpath=yes
  12212. fi
  12213. ;;
  12214. os2*)
  12215. libname_spec='$name'
  12216. shrext_cmds=".dll"
  12217. need_lib_prefix=no
  12218. library_names_spec='$libname${shared_ext} $libname.a'
  12219. dynamic_linker='OS/2 ld.exe'
  12220. shlibpath_var=LIBPATH
  12221. ;;
  12222. osf3* | osf4* | osf5*)
  12223. version_type=osf
  12224. need_lib_prefix=no
  12225. need_version=no
  12226. soname_spec='${libname}${release}${shared_ext}$major'
  12227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12228. shlibpath_var=LD_LIBRARY_PATH
  12229. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12230. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12231. ;;
  12232. rdos*)
  12233. dynamic_linker=no
  12234. ;;
  12235. solaris*)
  12236. version_type=linux
  12237. need_lib_prefix=no
  12238. need_version=no
  12239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12240. soname_spec='${libname}${release}${shared_ext}$major'
  12241. shlibpath_var=LD_LIBRARY_PATH
  12242. shlibpath_overrides_runpath=yes
  12243. hardcode_into_libs=yes
  12244. # ldd complains unless libraries are executable
  12245. postinstall_cmds='chmod +x $lib'
  12246. ;;
  12247. sunos4*)
  12248. version_type=sunos
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12250. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12251. shlibpath_var=LD_LIBRARY_PATH
  12252. shlibpath_overrides_runpath=yes
  12253. if test "$with_gnu_ld" = yes; then
  12254. need_lib_prefix=no
  12255. fi
  12256. need_version=yes
  12257. ;;
  12258. sysv4 | sysv4.3*)
  12259. version_type=linux
  12260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12261. soname_spec='${libname}${release}${shared_ext}$major'
  12262. shlibpath_var=LD_LIBRARY_PATH
  12263. case $host_vendor in
  12264. sni)
  12265. shlibpath_overrides_runpath=no
  12266. need_lib_prefix=no
  12267. runpath_var=LD_RUN_PATH
  12268. ;;
  12269. siemens)
  12270. need_lib_prefix=no
  12271. ;;
  12272. motorola)
  12273. need_lib_prefix=no
  12274. need_version=no
  12275. shlibpath_overrides_runpath=no
  12276. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12277. ;;
  12278. esac
  12279. ;;
  12280. sysv4*MP*)
  12281. if test -d /usr/nec ;then
  12282. version_type=linux
  12283. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12284. soname_spec='$libname${shared_ext}.$major'
  12285. shlibpath_var=LD_LIBRARY_PATH
  12286. fi
  12287. ;;
  12288. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12289. version_type=freebsd-elf
  12290. need_lib_prefix=no
  12291. need_version=no
  12292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12293. soname_spec='${libname}${release}${shared_ext}$major'
  12294. shlibpath_var=LD_LIBRARY_PATH
  12295. shlibpath_overrides_runpath=yes
  12296. hardcode_into_libs=yes
  12297. if test "$with_gnu_ld" = yes; then
  12298. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12299. else
  12300. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12301. case $host_os in
  12302. sco3.2v5*)
  12303. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12304. ;;
  12305. esac
  12306. fi
  12307. sys_lib_dlsearch_path_spec='/usr/lib'
  12308. ;;
  12309. tpf*)
  12310. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12311. version_type=linux
  12312. need_lib_prefix=no
  12313. need_version=no
  12314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12315. shlibpath_var=LD_LIBRARY_PATH
  12316. shlibpath_overrides_runpath=no
  12317. hardcode_into_libs=yes
  12318. ;;
  12319. uts4*)
  12320. version_type=linux
  12321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12322. soname_spec='${libname}${release}${shared_ext}$major'
  12323. shlibpath_var=LD_LIBRARY_PATH
  12324. ;;
  12325. *)
  12326. dynamic_linker=no
  12327. ;;
  12328. esac
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12330. $as_echo "$dynamic_linker" >&6; }
  12331. test "$dynamic_linker" = no && can_build_shared=no
  12332. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12333. if test "$GCC" = yes; then
  12334. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12335. fi
  12336. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12337. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12338. fi
  12339. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12340. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12341. fi
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12343. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12344. hardcode_action_CXX=
  12345. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12346. test -n "$runpath_var_CXX" ||
  12347. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12348. # We can hardcode non-existent directories.
  12349. if test "$hardcode_direct_CXX" != no &&
  12350. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12351. # have to relink, otherwise we might link with an installed library
  12352. # when we should be linking with a yet-to-be-installed one
  12353. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12354. test "$hardcode_minus_L_CXX" != no; then
  12355. # Linking always hardcodes the temporary library directory.
  12356. hardcode_action_CXX=relink
  12357. else
  12358. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12359. hardcode_action_CXX=immediate
  12360. fi
  12361. else
  12362. # We cannot hardcode anything, or else we can only hardcode existing
  12363. # directories.
  12364. hardcode_action_CXX=unsupported
  12365. fi
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12367. $as_echo "$hardcode_action_CXX" >&6; }
  12368. if test "$hardcode_action_CXX" = relink ||
  12369. test "$inherit_rpath_CXX" = yes; then
  12370. # Fast installation is not supported
  12371. enable_fast_install=no
  12372. elif test "$shlibpath_overrides_runpath" = yes ||
  12373. test "$enable_shared" = no; then
  12374. # Fast installation is not necessary
  12375. enable_fast_install=needless
  12376. fi
  12377. fi # test -n "$compiler"
  12378. CC=$lt_save_CC
  12379. LDCXX=$LD
  12380. LD=$lt_save_LD
  12381. GCC=$lt_save_GCC
  12382. with_gnu_ld=$lt_save_with_gnu_ld
  12383. lt_cv_path_LDCXX=$lt_cv_path_LD
  12384. lt_cv_path_LD=$lt_save_path_LD
  12385. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12386. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12387. fi # test "$_lt_caught_CXX_error" != yes
  12388. ac_ext=c
  12389. ac_cpp='$CPP $CPPFLAGS'
  12390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12393. ac_config_commands="$ac_config_commands libtool"
  12394. # Only expand once:
  12395. # Forbid libtool to hardcode RPATH, because we want to be able to specify
  12396. # library search directory using LD_LIBRARY_PATH
  12397. hardcode_into_libs=no
  12398. # Determine what GCC version number to use in filesystem paths.
  12399. get_gcc_base_ver="cat"
  12400. # Check whether --with-gcc-major-version-only was given.
  12401. if test "${with_gcc_major_version_only+set}" = set; then :
  12402. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  12403. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  12404. fi
  12405. fi
  12406. # Must be last
  12407. cat >confcache <<\_ACEOF
  12408. # This file is a shell script that caches the results of configure
  12409. # tests run on this system so they can be shared between configure
  12410. # scripts and configure runs, see configure's option --config-cache.
  12411. # It is not useful on other systems. If it contains results you don't
  12412. # want to keep, you may remove or edit it.
  12413. #
  12414. # config.status only pays attention to the cache file if you give it
  12415. # the --recheck option to rerun configure.
  12416. #
  12417. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12418. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12419. # following values.
  12420. _ACEOF
  12421. # The following way of writing the cache mishandles newlines in values,
  12422. # but we know of no workaround that is simple, portable, and efficient.
  12423. # So, we kill variables containing newlines.
  12424. # Ultrix sh set writes to stderr and can't be redirected directly,
  12425. # and sets the high bit in the cache file unless we assign to the vars.
  12426. (
  12427. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12428. eval ac_val=\$$ac_var
  12429. case $ac_val in #(
  12430. *${as_nl}*)
  12431. case $ac_var in #(
  12432. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12433. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12434. esac
  12435. case $ac_var in #(
  12436. _ | IFS | as_nl) ;; #(
  12437. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12438. *) { eval $ac_var=; unset $ac_var;} ;;
  12439. esac ;;
  12440. esac
  12441. done
  12442. (set) 2>&1 |
  12443. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12444. *${as_nl}ac_space=\ *)
  12445. # `set' does not quote correctly, so add quotes: double-quote
  12446. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12447. sed -n \
  12448. "s/'/'\\\\''/g;
  12449. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12450. ;; #(
  12451. *)
  12452. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12453. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12454. ;;
  12455. esac |
  12456. sort
  12457. ) |
  12458. sed '
  12459. /^ac_cv_env_/b end
  12460. t clear
  12461. :clear
  12462. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12463. t end
  12464. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12465. :end' >>confcache
  12466. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12467. if test -w "$cache_file"; then
  12468. if test "x$cache_file" != "x/dev/null"; then
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12470. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12471. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12472. cat confcache >"$cache_file"
  12473. else
  12474. case $cache_file in #(
  12475. */* | ?:*)
  12476. mv -f confcache "$cache_file"$$ &&
  12477. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12478. *)
  12479. mv -f confcache "$cache_file" ;;
  12480. esac
  12481. fi
  12482. fi
  12483. else
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12485. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12486. fi
  12487. fi
  12488. rm -f confcache
  12489. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12490. # Let make expand exec_prefix.
  12491. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12492. # Transform confdefs.h into DEFS.
  12493. # Protect against shell expansion while executing Makefile rules.
  12494. # Protect against Makefile macro expansion.
  12495. #
  12496. # If the first sed substitution is executed (which looks for macros that
  12497. # take arguments), then branch to the quote section. Otherwise,
  12498. # look for a macro that doesn't take arguments.
  12499. ac_script='
  12500. :mline
  12501. /\\$/{
  12502. N
  12503. s,\\\n,,
  12504. b mline
  12505. }
  12506. t clear
  12507. :clear
  12508. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12509. t quote
  12510. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12511. t quote
  12512. b any
  12513. :quote
  12514. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12515. s/\[/\\&/g
  12516. s/\]/\\&/g
  12517. s/\$/$$/g
  12518. H
  12519. :any
  12520. ${
  12521. g
  12522. s/^\n//
  12523. s/\n/ /g
  12524. p
  12525. }
  12526. '
  12527. DEFS=`sed -n "$ac_script" confdefs.h`
  12528. ac_libobjs=
  12529. ac_ltlibobjs=
  12530. U=
  12531. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12532. # 1. Remove the extension, and $U if already installed.
  12533. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12534. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12535. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12536. # will be set to the directory where LIBOBJS objects are built.
  12537. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12538. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12539. done
  12540. LIBOBJS=$ac_libobjs
  12541. LTLIBOBJS=$ac_ltlibobjs
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12543. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12544. if test -n "$am_sleep_pid"; then
  12545. # Hide warnings about reused PIDs.
  12546. wait $am_sleep_pid 2>/dev/null
  12547. fi
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12549. $as_echo "done" >&6; }
  12550. if test -n "$EXEEXT"; then
  12551. am__EXEEXT_TRUE=
  12552. am__EXEEXT_FALSE='#'
  12553. else
  12554. am__EXEEXT_TRUE='#'
  12555. am__EXEEXT_FALSE=
  12556. fi
  12557. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12558. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12559. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12560. fi
  12561. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12562. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12563. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12564. fi
  12565. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12566. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12568. fi
  12569. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12570. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  12571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12572. fi
  12573. if test -z "${PLUGIN_HOST_TRUE}" && test -z "${PLUGIN_HOST_FALSE}"; then
  12574. as_fn_error $? "conditional \"PLUGIN_HOST\" was never defined.
  12575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12576. fi
  12577. : "${CONFIG_STATUS=./config.status}"
  12578. ac_write_fail=0
  12579. ac_clean_files_save=$ac_clean_files
  12580. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12582. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12583. as_write_fail=0
  12584. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12585. #! $SHELL
  12586. # Generated by $as_me.
  12587. # Run this file to recreate the current configuration.
  12588. # Compiler output produced by configure, useful for debugging
  12589. # configure, is in config.log if it exists.
  12590. debug=false
  12591. ac_cs_recheck=false
  12592. ac_cs_silent=false
  12593. SHELL=\${CONFIG_SHELL-$SHELL}
  12594. export SHELL
  12595. _ASEOF
  12596. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12597. ## -------------------- ##
  12598. ## M4sh Initialization. ##
  12599. ## -------------------- ##
  12600. # Be more Bourne compatible
  12601. DUALCASE=1; export DUALCASE # for MKS sh
  12602. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12603. emulate sh
  12604. NULLCMD=:
  12605. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12606. # is contrary to our usage. Disable this feature.
  12607. alias -g '${1+"$@"}'='"$@"'
  12608. setopt NO_GLOB_SUBST
  12609. else
  12610. case `(set -o) 2>/dev/null` in #(
  12611. *posix*) :
  12612. set -o posix ;; #(
  12613. *) :
  12614. ;;
  12615. esac
  12616. fi
  12617. as_nl='
  12618. '
  12619. export as_nl
  12620. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12621. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12622. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12623. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12624. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12625. # but without wasting forks for bash or zsh.
  12626. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12627. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12628. as_echo='print -r --'
  12629. as_echo_n='print -rn --'
  12630. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12631. as_echo='printf %s\n'
  12632. as_echo_n='printf %s'
  12633. else
  12634. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12635. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12636. as_echo_n='/usr/ucb/echo -n'
  12637. else
  12638. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12639. as_echo_n_body='eval
  12640. arg=$1;
  12641. case $arg in #(
  12642. *"$as_nl"*)
  12643. expr "X$arg" : "X\\(.*\\)$as_nl";
  12644. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12645. esac;
  12646. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12647. '
  12648. export as_echo_n_body
  12649. as_echo_n='sh -c $as_echo_n_body as_echo'
  12650. fi
  12651. export as_echo_body
  12652. as_echo='sh -c $as_echo_body as_echo'
  12653. fi
  12654. # The user is always right.
  12655. if test "${PATH_SEPARATOR+set}" != set; then
  12656. PATH_SEPARATOR=:
  12657. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12658. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12659. PATH_SEPARATOR=';'
  12660. }
  12661. fi
  12662. # IFS
  12663. # We need space, tab and new line, in precisely that order. Quoting is
  12664. # there to prevent editors from complaining about space-tab.
  12665. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12666. # splitting by setting IFS to empty value.)
  12667. IFS=" "" $as_nl"
  12668. # Find who we are. Look in the path if we contain no directory separator.
  12669. as_myself=
  12670. case $0 in #((
  12671. *[\\/]* ) as_myself=$0 ;;
  12672. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12673. for as_dir in $PATH
  12674. do
  12675. IFS=$as_save_IFS
  12676. test -z "$as_dir" && as_dir=.
  12677. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12678. done
  12679. IFS=$as_save_IFS
  12680. ;;
  12681. esac
  12682. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12683. # in which case we are not to be found in the path.
  12684. if test "x$as_myself" = x; then
  12685. as_myself=$0
  12686. fi
  12687. if test ! -f "$as_myself"; then
  12688. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12689. exit 1
  12690. fi
  12691. # Unset variables that we do not need and which cause bugs (e.g. in
  12692. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12693. # suppresses any "Segmentation fault" message there. '((' could
  12694. # trigger a bug in pdksh 5.2.14.
  12695. for as_var in BASH_ENV ENV MAIL MAILPATH
  12696. do eval test x\${$as_var+set} = xset \
  12697. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12698. done
  12699. PS1='$ '
  12700. PS2='> '
  12701. PS4='+ '
  12702. # NLS nuisances.
  12703. LC_ALL=C
  12704. export LC_ALL
  12705. LANGUAGE=C
  12706. export LANGUAGE
  12707. # CDPATH.
  12708. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12709. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12710. # ----------------------------------------
  12711. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12712. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12713. # script with STATUS, using 1 if that was 0.
  12714. as_fn_error ()
  12715. {
  12716. as_status=$1; test $as_status -eq 0 && as_status=1
  12717. if test "$4"; then
  12718. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12719. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12720. fi
  12721. $as_echo "$as_me: error: $2" >&2
  12722. as_fn_exit $as_status
  12723. } # as_fn_error
  12724. # as_fn_set_status STATUS
  12725. # -----------------------
  12726. # Set $? to STATUS, without forking.
  12727. as_fn_set_status ()
  12728. {
  12729. return $1
  12730. } # as_fn_set_status
  12731. # as_fn_exit STATUS
  12732. # -----------------
  12733. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12734. as_fn_exit ()
  12735. {
  12736. set +e
  12737. as_fn_set_status $1
  12738. exit $1
  12739. } # as_fn_exit
  12740. # as_fn_unset VAR
  12741. # ---------------
  12742. # Portably unset VAR.
  12743. as_fn_unset ()
  12744. {
  12745. { eval $1=; unset $1;}
  12746. }
  12747. as_unset=as_fn_unset
  12748. # as_fn_append VAR VALUE
  12749. # ----------------------
  12750. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12751. # advantage of any shell optimizations that allow amortized linear growth over
  12752. # repeated appends, instead of the typical quadratic growth present in naive
  12753. # implementations.
  12754. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12755. eval 'as_fn_append ()
  12756. {
  12757. eval $1+=\$2
  12758. }'
  12759. else
  12760. as_fn_append ()
  12761. {
  12762. eval $1=\$$1\$2
  12763. }
  12764. fi # as_fn_append
  12765. # as_fn_arith ARG...
  12766. # ------------------
  12767. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12768. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12769. # must be portable across $(()) and expr.
  12770. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12771. eval 'as_fn_arith ()
  12772. {
  12773. as_val=$(( $* ))
  12774. }'
  12775. else
  12776. as_fn_arith ()
  12777. {
  12778. as_val=`expr "$@" || test $? -eq 1`
  12779. }
  12780. fi # as_fn_arith
  12781. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12782. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12783. as_expr=expr
  12784. else
  12785. as_expr=false
  12786. fi
  12787. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12788. as_basename=basename
  12789. else
  12790. as_basename=false
  12791. fi
  12792. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12793. as_dirname=dirname
  12794. else
  12795. as_dirname=false
  12796. fi
  12797. as_me=`$as_basename -- "$0" ||
  12798. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12799. X"$0" : 'X\(//\)$' \| \
  12800. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12801. $as_echo X/"$0" |
  12802. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12803. s//\1/
  12804. q
  12805. }
  12806. /^X\/\(\/\/\)$/{
  12807. s//\1/
  12808. q
  12809. }
  12810. /^X\/\(\/\).*/{
  12811. s//\1/
  12812. q
  12813. }
  12814. s/.*/./; q'`
  12815. # Avoid depending upon Character Ranges.
  12816. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12817. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12818. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12819. as_cr_digits='0123456789'
  12820. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12821. ECHO_C= ECHO_N= ECHO_T=
  12822. case `echo -n x` in #(((((
  12823. -n*)
  12824. case `echo 'xy\c'` in
  12825. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12826. xy) ECHO_C='\c';;
  12827. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12828. ECHO_T=' ';;
  12829. esac;;
  12830. *)
  12831. ECHO_N='-n';;
  12832. esac
  12833. rm -f conf$$ conf$$.exe conf$$.file
  12834. if test -d conf$$.dir; then
  12835. rm -f conf$$.dir/conf$$.file
  12836. else
  12837. rm -f conf$$.dir
  12838. mkdir conf$$.dir 2>/dev/null
  12839. fi
  12840. if (echo >conf$$.file) 2>/dev/null; then
  12841. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12842. as_ln_s='ln -s'
  12843. # ... but there are two gotchas:
  12844. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12845. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12846. # In both cases, we have to default to `cp -pR'.
  12847. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12848. as_ln_s='cp -pR'
  12849. elif ln conf$$.file conf$$ 2>/dev/null; then
  12850. as_ln_s=ln
  12851. else
  12852. as_ln_s='cp -pR'
  12853. fi
  12854. else
  12855. as_ln_s='cp -pR'
  12856. fi
  12857. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12858. rmdir conf$$.dir 2>/dev/null
  12859. # as_fn_mkdir_p
  12860. # -------------
  12861. # Create "$as_dir" as a directory, including parents if necessary.
  12862. as_fn_mkdir_p ()
  12863. {
  12864. case $as_dir in #(
  12865. -*) as_dir=./$as_dir;;
  12866. esac
  12867. test -d "$as_dir" || eval $as_mkdir_p || {
  12868. as_dirs=
  12869. while :; do
  12870. case $as_dir in #(
  12871. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12872. *) as_qdir=$as_dir;;
  12873. esac
  12874. as_dirs="'$as_qdir' $as_dirs"
  12875. as_dir=`$as_dirname -- "$as_dir" ||
  12876. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12877. X"$as_dir" : 'X\(//\)[^/]' \| \
  12878. X"$as_dir" : 'X\(//\)$' \| \
  12879. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12880. $as_echo X"$as_dir" |
  12881. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12882. s//\1/
  12883. q
  12884. }
  12885. /^X\(\/\/\)[^/].*/{
  12886. s//\1/
  12887. q
  12888. }
  12889. /^X\(\/\/\)$/{
  12890. s//\1/
  12891. q
  12892. }
  12893. /^X\(\/\).*/{
  12894. s//\1/
  12895. q
  12896. }
  12897. s/.*/./; q'`
  12898. test -d "$as_dir" && break
  12899. done
  12900. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12901. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12902. } # as_fn_mkdir_p
  12903. if mkdir -p . 2>/dev/null; then
  12904. as_mkdir_p='mkdir -p "$as_dir"'
  12905. else
  12906. test -d ./-p && rmdir ./-p
  12907. as_mkdir_p=false
  12908. fi
  12909. # as_fn_executable_p FILE
  12910. # -----------------------
  12911. # Test if FILE is an executable regular file.
  12912. as_fn_executable_p ()
  12913. {
  12914. test -f "$1" && test -x "$1"
  12915. } # as_fn_executable_p
  12916. as_test_x='test -x'
  12917. as_executable_p=as_fn_executable_p
  12918. # Sed expression to map a string onto a valid CPP name.
  12919. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12920. # Sed expression to map a string onto a valid variable name.
  12921. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12922. exec 6>&1
  12923. ## ----------------------------------- ##
  12924. ## Main body of $CONFIG_STATUS script. ##
  12925. ## ----------------------------------- ##
  12926. _ASEOF
  12927. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12929. # Save the log message, to keep $0 and so on meaningful, and to
  12930. # report actual input values of CONFIG_FILES etc. instead of their
  12931. # values after options handling.
  12932. ac_log="
  12933. This file was extended by Intel MIC Offload Plugin $as_me 1.0, which was
  12934. generated by GNU Autoconf 2.69. Invocation command line was
  12935. CONFIG_FILES = $CONFIG_FILES
  12936. CONFIG_HEADERS = $CONFIG_HEADERS
  12937. CONFIG_LINKS = $CONFIG_LINKS
  12938. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12939. $ $0 $@
  12940. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12941. "
  12942. _ACEOF
  12943. case $ac_config_files in *"
  12944. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12945. esac
  12946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12947. # Files that config.status was made for.
  12948. config_files="$ac_config_files"
  12949. config_commands="$ac_config_commands"
  12950. _ACEOF
  12951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12952. ac_cs_usage="\
  12953. \`$as_me' instantiates files and other configuration actions
  12954. from templates according to the current configuration. Unless the files
  12955. and actions are specified as TAGs, all are instantiated by default.
  12956. Usage: $0 [OPTION]... [TAG]...
  12957. -h, --help print this help, then exit
  12958. -V, --version print version number and configuration settings, then exit
  12959. --config print configuration, then exit
  12960. -q, --quiet, --silent
  12961. do not print progress messages
  12962. -d, --debug don't remove temporary files
  12963. --recheck update $as_me by reconfiguring in the same conditions
  12964. --file=FILE[:TEMPLATE]
  12965. instantiate the configuration file FILE
  12966. Configuration files:
  12967. $config_files
  12968. Configuration commands:
  12969. $config_commands
  12970. Report bugs to the package provider."
  12971. _ACEOF
  12972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12973. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12974. ac_cs_version="\\
  12975. Intel MIC Offload Plugin config.status 1.0
  12976. configured by $0, generated by GNU Autoconf 2.69,
  12977. with options \\"\$ac_cs_config\\"
  12978. Copyright (C) 2012 Free Software Foundation, Inc.
  12979. This config.status script is free software; the Free Software Foundation
  12980. gives unlimited permission to copy, distribute and modify it."
  12981. ac_pwd='$ac_pwd'
  12982. srcdir='$srcdir'
  12983. INSTALL='$INSTALL'
  12984. MKDIR_P='$MKDIR_P'
  12985. AWK='$AWK'
  12986. test -n "\$AWK" || AWK=awk
  12987. _ACEOF
  12988. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12989. # The default lists apply if the user does not specify any file.
  12990. ac_need_defaults=:
  12991. while test $# != 0
  12992. do
  12993. case $1 in
  12994. --*=?*)
  12995. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12996. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12997. ac_shift=:
  12998. ;;
  12999. --*=)
  13000. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13001. ac_optarg=
  13002. ac_shift=:
  13003. ;;
  13004. *)
  13005. ac_option=$1
  13006. ac_optarg=$2
  13007. ac_shift=shift
  13008. ;;
  13009. esac
  13010. case $ac_option in
  13011. # Handling of the options.
  13012. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13013. ac_cs_recheck=: ;;
  13014. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13015. $as_echo "$ac_cs_version"; exit ;;
  13016. --config | --confi | --conf | --con | --co | --c )
  13017. $as_echo "$ac_cs_config"; exit ;;
  13018. --debug | --debu | --deb | --de | --d | -d )
  13019. debug=: ;;
  13020. --file | --fil | --fi | --f )
  13021. $ac_shift
  13022. case $ac_optarg in
  13023. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13024. '') as_fn_error $? "missing file argument" ;;
  13025. esac
  13026. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13027. ac_need_defaults=false;;
  13028. --he | --h | --help | --hel | -h )
  13029. $as_echo "$ac_cs_usage"; exit ;;
  13030. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13031. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13032. ac_cs_silent=: ;;
  13033. # This is an error.
  13034. -*) as_fn_error $? "unrecognized option: \`$1'
  13035. Try \`$0 --help' for more information." ;;
  13036. *) as_fn_append ac_config_targets " $1"
  13037. ac_need_defaults=false ;;
  13038. esac
  13039. shift
  13040. done
  13041. ac_configure_extra_args=
  13042. if $ac_cs_silent; then
  13043. exec 6>/dev/null
  13044. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13045. fi
  13046. _ACEOF
  13047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13048. if \$ac_cs_recheck; then
  13049. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13050. shift
  13051. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13052. CONFIG_SHELL='$SHELL'
  13053. export CONFIG_SHELL
  13054. exec "\$@"
  13055. fi
  13056. _ACEOF
  13057. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13058. exec 5>>config.log
  13059. {
  13060. echo
  13061. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13062. ## Running $as_me. ##
  13063. _ASBOX
  13064. $as_echo "$ac_log"
  13065. } >&5
  13066. _ACEOF
  13067. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13068. #
  13069. # INIT-COMMANDS
  13070. #
  13071. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13072. srcdir="$srcdir"
  13073. host="$host"
  13074. target="$target"
  13075. with_multisubdir="$with_multisubdir"
  13076. with_multisrctop="$with_multisrctop"
  13077. with_target_subdir="$with_target_subdir"
  13078. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  13079. multi_basedir="$multi_basedir"
  13080. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13081. CC="$CC"
  13082. CXX="$CXX"
  13083. GFORTRAN="$GFORTRAN"
  13084. GDC="$GDC"
  13085. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13086. # if CDPATH is set.
  13087. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13088. sed_quote_subst='$sed_quote_subst'
  13089. double_quote_subst='$double_quote_subst'
  13090. delay_variable_subst='$delay_variable_subst'
  13091. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13092. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13093. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13094. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13095. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13096. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13097. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13098. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13099. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13100. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13101. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13102. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13103. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13104. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13105. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13106. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13107. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13108. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13109. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13110. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13111. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13112. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13113. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13114. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13115. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13116. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13117. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13118. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13119. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13120. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13121. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13122. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13123. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13124. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13125. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13126. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13127. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13128. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13129. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13130. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13131. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13132. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13133. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13134. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13135. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13136. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13137. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13138. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13139. 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"`'
  13140. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13141. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13142. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13143. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13144. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13145. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13146. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13147. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13148. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13149. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13150. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13151. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13152. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13153. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13154. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13155. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13156. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13157. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13158. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13159. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13160. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13161. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13162. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13163. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13164. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13165. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13166. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13167. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13168. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13169. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13170. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13171. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13172. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13173. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13174. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13175. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13176. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13177. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13178. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13179. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13180. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13181. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13182. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13183. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13184. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13185. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13186. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13187. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13188. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13189. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13190. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13191. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13192. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13193. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13194. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13195. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13196. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13197. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13198. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13199. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13200. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13201. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13202. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13203. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13204. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13205. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13206. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13207. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13208. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13209. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13210. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13211. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13212. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13213. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13214. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13215. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13216. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13217. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13218. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13219. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13220. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13221. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13222. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13223. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13224. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13225. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13226. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13227. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13228. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13229. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13230. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13231. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13232. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13233. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13234. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13235. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13236. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13237. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13238. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13239. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13240. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13241. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13242. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13243. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13244. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13245. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13246. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13247. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13248. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13249. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13250. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13251. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13252. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13253. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13254. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13255. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13256. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13257. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13258. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13259. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13260. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13261. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13262. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13263. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13264. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13265. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13266. LTCC='$LTCC'
  13267. LTCFLAGS='$LTCFLAGS'
  13268. compiler='$compiler_DEFAULT'
  13269. # A function that is used when there is no print builtin or printf.
  13270. func_fallback_echo ()
  13271. {
  13272. eval 'cat <<_LTECHO_EOF
  13273. \$1
  13274. _LTECHO_EOF'
  13275. }
  13276. # Quote evaled strings.
  13277. for var in SHELL \
  13278. ECHO \
  13279. SED \
  13280. GREP \
  13281. EGREP \
  13282. FGREP \
  13283. LD \
  13284. NM \
  13285. LN_S \
  13286. lt_SP2NL \
  13287. lt_NL2SP \
  13288. reload_flag \
  13289. OBJDUMP \
  13290. deplibs_check_method \
  13291. file_magic_cmd \
  13292. AR \
  13293. AR_FLAGS \
  13294. STRIP \
  13295. RANLIB \
  13296. CC \
  13297. CFLAGS \
  13298. compiler \
  13299. lt_cv_sys_global_symbol_pipe \
  13300. lt_cv_sys_global_symbol_to_cdecl \
  13301. lt_cv_sys_global_symbol_to_c_name_address \
  13302. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13303. lt_prog_compiler_no_builtin_flag \
  13304. lt_prog_compiler_wl \
  13305. lt_prog_compiler_pic \
  13306. lt_prog_compiler_static \
  13307. lt_cv_prog_compiler_c_o \
  13308. need_locks \
  13309. DSYMUTIL \
  13310. NMEDIT \
  13311. LIPO \
  13312. OTOOL \
  13313. OTOOL64 \
  13314. shrext_cmds \
  13315. export_dynamic_flag_spec \
  13316. whole_archive_flag_spec \
  13317. compiler_needs_object \
  13318. with_gnu_ld \
  13319. allow_undefined_flag \
  13320. no_undefined_flag \
  13321. hardcode_libdir_flag_spec \
  13322. hardcode_libdir_flag_spec_ld \
  13323. hardcode_libdir_separator \
  13324. fix_srcfile_path \
  13325. exclude_expsyms \
  13326. include_expsyms \
  13327. file_list_spec \
  13328. variables_saved_for_relink \
  13329. libname_spec \
  13330. library_names_spec \
  13331. soname_spec \
  13332. install_override_mode \
  13333. finish_eval \
  13334. old_striplib \
  13335. striplib \
  13336. compiler_lib_search_dirs \
  13337. predep_objects \
  13338. postdep_objects \
  13339. predeps \
  13340. postdeps \
  13341. compiler_lib_search_path \
  13342. LD_CXX \
  13343. reload_flag_CXX \
  13344. compiler_CXX \
  13345. lt_prog_compiler_no_builtin_flag_CXX \
  13346. lt_prog_compiler_wl_CXX \
  13347. lt_prog_compiler_pic_CXX \
  13348. lt_prog_compiler_static_CXX \
  13349. lt_cv_prog_compiler_c_o_CXX \
  13350. export_dynamic_flag_spec_CXX \
  13351. whole_archive_flag_spec_CXX \
  13352. compiler_needs_object_CXX \
  13353. with_gnu_ld_CXX \
  13354. allow_undefined_flag_CXX \
  13355. no_undefined_flag_CXX \
  13356. hardcode_libdir_flag_spec_CXX \
  13357. hardcode_libdir_flag_spec_ld_CXX \
  13358. hardcode_libdir_separator_CXX \
  13359. fix_srcfile_path_CXX \
  13360. exclude_expsyms_CXX \
  13361. include_expsyms_CXX \
  13362. file_list_spec_CXX \
  13363. compiler_lib_search_dirs_CXX \
  13364. predep_objects_CXX \
  13365. postdep_objects_CXX \
  13366. predeps_CXX \
  13367. postdeps_CXX \
  13368. compiler_lib_search_path_CXX; do
  13369. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13370. *[\\\\\\\`\\"\\\$]*)
  13371. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13372. ;;
  13373. *)
  13374. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13375. ;;
  13376. esac
  13377. done
  13378. # Double-quote double-evaled strings.
  13379. for var in reload_cmds \
  13380. old_postinstall_cmds \
  13381. old_postuninstall_cmds \
  13382. old_archive_cmds \
  13383. extract_expsyms_cmds \
  13384. old_archive_from_new_cmds \
  13385. old_archive_from_expsyms_cmds \
  13386. archive_cmds \
  13387. archive_expsym_cmds \
  13388. module_cmds \
  13389. module_expsym_cmds \
  13390. export_symbols_cmds \
  13391. prelink_cmds \
  13392. postinstall_cmds \
  13393. postuninstall_cmds \
  13394. finish_cmds \
  13395. sys_lib_search_path_spec \
  13396. sys_lib_dlsearch_path_spec \
  13397. reload_cmds_CXX \
  13398. old_archive_cmds_CXX \
  13399. old_archive_from_new_cmds_CXX \
  13400. old_archive_from_expsyms_cmds_CXX \
  13401. archive_cmds_CXX \
  13402. archive_expsym_cmds_CXX \
  13403. module_cmds_CXX \
  13404. module_expsym_cmds_CXX \
  13405. export_symbols_cmds_CXX \
  13406. prelink_cmds_CXX; do
  13407. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13408. *[\\\\\\\`\\"\\\$]*)
  13409. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13410. ;;
  13411. *)
  13412. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13413. ;;
  13414. esac
  13415. done
  13416. ac_aux_dir='$ac_aux_dir'
  13417. xsi_shell='$xsi_shell'
  13418. lt_shell_append='$lt_shell_append'
  13419. # See if we are running on zsh, and set the options which allow our
  13420. # commands through without removal of \ escapes INIT.
  13421. if test -n "\${ZSH_VERSION+set}" ; then
  13422. setopt NO_GLOB_SUBST
  13423. fi
  13424. PACKAGE='$PACKAGE'
  13425. VERSION='$VERSION'
  13426. TIMESTAMP='$TIMESTAMP'
  13427. RM='$RM'
  13428. ofile='$ofile'
  13429. _ACEOF
  13430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13431. # Handling of arguments.
  13432. for ac_config_target in $ac_config_targets
  13433. do
  13434. case $ac_config_target in
  13435. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13436. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13437. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13438. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13439. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13440. esac
  13441. done
  13442. # If the user did not use the arguments to specify the items to instantiate,
  13443. # then the envvar interface is used. Set only those that are not.
  13444. # We use the long form for the default assignment because of an extremely
  13445. # bizarre bug on SunOS 4.1.3.
  13446. if $ac_need_defaults; then
  13447. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13448. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13449. fi
  13450. # Have a temporary directory for convenience. Make it in the build tree
  13451. # simply because there is no reason against having it here, and in addition,
  13452. # creating and moving files from /tmp can sometimes cause problems.
  13453. # Hook for its removal unless debugging.
  13454. # Note that there is a small window in which the directory will not be cleaned:
  13455. # after its creation but before its name has been assigned to `$tmp'.
  13456. $debug ||
  13457. {
  13458. tmp= ac_tmp=
  13459. trap 'exit_status=$?
  13460. : "${ac_tmp:=$tmp}"
  13461. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13462. ' 0
  13463. trap 'as_fn_exit 1' 1 2 13 15
  13464. }
  13465. # Create a (secure) tmp directory for tmp files.
  13466. {
  13467. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13468. test -d "$tmp"
  13469. } ||
  13470. {
  13471. tmp=./conf$$-$RANDOM
  13472. (umask 077 && mkdir "$tmp")
  13473. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13474. ac_tmp=$tmp
  13475. # Set up the scripts for CONFIG_FILES section.
  13476. # No need to generate them if there are no CONFIG_FILES.
  13477. # This happens for instance with `./config.status config.h'.
  13478. if test -n "$CONFIG_FILES"; then
  13479. ac_cr=`echo X | tr X '\015'`
  13480. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13481. # But we know of no other shell where ac_cr would be empty at this
  13482. # point, so we can use a bashism as a fallback.
  13483. if test "x$ac_cr" = x; then
  13484. eval ac_cr=\$\'\\r\'
  13485. fi
  13486. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13487. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13488. ac_cs_awk_cr='\\r'
  13489. else
  13490. ac_cs_awk_cr=$ac_cr
  13491. fi
  13492. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13493. _ACEOF
  13494. {
  13495. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13496. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13497. echo "_ACEOF"
  13498. } >conf$$subs.sh ||
  13499. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13500. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13501. ac_delim='%!_!# '
  13502. for ac_last_try in false false false false false :; do
  13503. . ./conf$$subs.sh ||
  13504. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13505. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13506. if test $ac_delim_n = $ac_delim_num; then
  13507. break
  13508. elif $ac_last_try; then
  13509. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13510. else
  13511. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13512. fi
  13513. done
  13514. rm -f conf$$subs.sh
  13515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13516. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13517. _ACEOF
  13518. sed -n '
  13519. h
  13520. s/^/S["/; s/!.*/"]=/
  13521. p
  13522. g
  13523. s/^[^!]*!//
  13524. :repl
  13525. t repl
  13526. s/'"$ac_delim"'$//
  13527. t delim
  13528. :nl
  13529. h
  13530. s/\(.\{148\}\)..*/\1/
  13531. t more1
  13532. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13533. p
  13534. n
  13535. b repl
  13536. :more1
  13537. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13538. p
  13539. g
  13540. s/.\{148\}//
  13541. t nl
  13542. :delim
  13543. h
  13544. s/\(.\{148\}\)..*/\1/
  13545. t more2
  13546. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13547. p
  13548. b
  13549. :more2
  13550. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13551. p
  13552. g
  13553. s/.\{148\}//
  13554. t delim
  13555. ' <conf$$subs.awk | sed '
  13556. /^[^""]/{
  13557. N
  13558. s/\n//
  13559. }
  13560. ' >>$CONFIG_STATUS || ac_write_fail=1
  13561. rm -f conf$$subs.awk
  13562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13563. _ACAWK
  13564. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13565. for (key in S) S_is_set[key] = 1
  13566. FS = ""
  13567. }
  13568. {
  13569. line = $ 0
  13570. nfields = split(line, field, "@")
  13571. substed = 0
  13572. len = length(field[1])
  13573. for (i = 2; i < nfields; i++) {
  13574. key = field[i]
  13575. keylen = length(key)
  13576. if (S_is_set[key]) {
  13577. value = S[key]
  13578. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13579. len += length(value) + length(field[++i])
  13580. substed = 1
  13581. } else
  13582. len += 1 + keylen
  13583. }
  13584. print line
  13585. }
  13586. _ACAWK
  13587. _ACEOF
  13588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13589. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13590. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13591. else
  13592. cat
  13593. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13594. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13595. _ACEOF
  13596. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13597. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13598. # trailing colons and then remove the whole line if VPATH becomes empty
  13599. # (actually we leave an empty line to preserve line numbers).
  13600. if test "x$srcdir" = x.; then
  13601. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13602. h
  13603. s///
  13604. s/^/:/
  13605. s/[ ]*$/:/
  13606. s/:\$(srcdir):/:/g
  13607. s/:\${srcdir}:/:/g
  13608. s/:@srcdir@:/:/g
  13609. s/^:*//
  13610. s/:*$//
  13611. x
  13612. s/\(=[ ]*\).*/\1/
  13613. G
  13614. s/\n//
  13615. s/^[^=]*=[ ]*$//
  13616. }'
  13617. fi
  13618. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13619. fi # test -n "$CONFIG_FILES"
  13620. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13621. shift
  13622. for ac_tag
  13623. do
  13624. case $ac_tag in
  13625. :[FHLC]) ac_mode=$ac_tag; continue;;
  13626. esac
  13627. case $ac_mode$ac_tag in
  13628. :[FHL]*:*);;
  13629. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13630. :[FH]-) ac_tag=-:-;;
  13631. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13632. esac
  13633. ac_save_IFS=$IFS
  13634. IFS=:
  13635. set x $ac_tag
  13636. IFS=$ac_save_IFS
  13637. shift
  13638. ac_file=$1
  13639. shift
  13640. case $ac_mode in
  13641. :L) ac_source=$1;;
  13642. :[FH])
  13643. ac_file_inputs=
  13644. for ac_f
  13645. do
  13646. case $ac_f in
  13647. -) ac_f="$ac_tmp/stdin";;
  13648. *) # Look for the file first in the build tree, then in the source tree
  13649. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13650. # because $ac_f cannot contain `:'.
  13651. test -f "$ac_f" ||
  13652. case $ac_f in
  13653. [\\/$]*) false;;
  13654. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13655. esac ||
  13656. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13657. esac
  13658. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13659. as_fn_append ac_file_inputs " '$ac_f'"
  13660. done
  13661. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13662. # use $as_me), people would be surprised to read:
  13663. # /* config.h. Generated by config.status. */
  13664. configure_input='Generated from '`
  13665. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13666. `' by configure.'
  13667. if test x"$ac_file" != x-; then
  13668. configure_input="$ac_file. $configure_input"
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13670. $as_echo "$as_me: creating $ac_file" >&6;}
  13671. fi
  13672. # Neutralize special characters interpreted by sed in replacement strings.
  13673. case $configure_input in #(
  13674. *\&* | *\|* | *\\* )
  13675. ac_sed_conf_input=`$as_echo "$configure_input" |
  13676. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13677. *) ac_sed_conf_input=$configure_input;;
  13678. esac
  13679. case $ac_tag in
  13680. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13681. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13682. esac
  13683. ;;
  13684. esac
  13685. ac_dir=`$as_dirname -- "$ac_file" ||
  13686. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13687. X"$ac_file" : 'X\(//\)[^/]' \| \
  13688. X"$ac_file" : 'X\(//\)$' \| \
  13689. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13690. $as_echo X"$ac_file" |
  13691. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13692. s//\1/
  13693. q
  13694. }
  13695. /^X\(\/\/\)[^/].*/{
  13696. s//\1/
  13697. q
  13698. }
  13699. /^X\(\/\/\)$/{
  13700. s//\1/
  13701. q
  13702. }
  13703. /^X\(\/\).*/{
  13704. s//\1/
  13705. q
  13706. }
  13707. s/.*/./; q'`
  13708. as_dir="$ac_dir"; as_fn_mkdir_p
  13709. ac_builddir=.
  13710. case "$ac_dir" in
  13711. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13712. *)
  13713. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13714. # A ".." for each directory in $ac_dir_suffix.
  13715. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13716. case $ac_top_builddir_sub in
  13717. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13718. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13719. esac ;;
  13720. esac
  13721. ac_abs_top_builddir=$ac_pwd
  13722. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13723. # for backward compatibility:
  13724. ac_top_builddir=$ac_top_build_prefix
  13725. case $srcdir in
  13726. .) # We are building in place.
  13727. ac_srcdir=.
  13728. ac_top_srcdir=$ac_top_builddir_sub
  13729. ac_abs_top_srcdir=$ac_pwd ;;
  13730. [\\/]* | ?:[\\/]* ) # Absolute name.
  13731. ac_srcdir=$srcdir$ac_dir_suffix;
  13732. ac_top_srcdir=$srcdir
  13733. ac_abs_top_srcdir=$srcdir ;;
  13734. *) # Relative name.
  13735. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13736. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13737. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13738. esac
  13739. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13740. case $ac_mode in
  13741. :F)
  13742. #
  13743. # CONFIG_FILE
  13744. #
  13745. case $INSTALL in
  13746. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13747. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13748. esac
  13749. ac_MKDIR_P=$MKDIR_P
  13750. case $MKDIR_P in
  13751. [\\/$]* | ?:[\\/]* ) ;;
  13752. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13753. esac
  13754. _ACEOF
  13755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13756. # If the template does not know about datarootdir, expand it.
  13757. # FIXME: This hack should be removed a few years after 2.60.
  13758. ac_datarootdir_hack=; ac_datarootdir_seen=
  13759. ac_sed_dataroot='
  13760. /datarootdir/ {
  13761. p
  13762. q
  13763. }
  13764. /@datadir@/p
  13765. /@docdir@/p
  13766. /@infodir@/p
  13767. /@localedir@/p
  13768. /@mandir@/p'
  13769. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13770. *datarootdir*) ac_datarootdir_seen=yes;;
  13771. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13773. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13774. _ACEOF
  13775. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13776. ac_datarootdir_hack='
  13777. s&@datadir@&$datadir&g
  13778. s&@docdir@&$docdir&g
  13779. s&@infodir@&$infodir&g
  13780. s&@localedir@&$localedir&g
  13781. s&@mandir@&$mandir&g
  13782. s&\\\${datarootdir}&$datarootdir&g' ;;
  13783. esac
  13784. _ACEOF
  13785. # Neutralize VPATH when `$srcdir' = `.'.
  13786. # Shell code in configure.ac might set extrasub.
  13787. # FIXME: do we really want to maintain this feature?
  13788. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13789. ac_sed_extra="$ac_vpsub
  13790. $extrasub
  13791. _ACEOF
  13792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13793. :t
  13794. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13795. s|@configure_input@|$ac_sed_conf_input|;t t
  13796. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13797. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13798. s&@srcdir@&$ac_srcdir&;t t
  13799. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13800. s&@top_srcdir@&$ac_top_srcdir&;t t
  13801. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13802. s&@builddir@&$ac_builddir&;t t
  13803. s&@abs_builddir@&$ac_abs_builddir&;t t
  13804. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13805. s&@INSTALL@&$ac_INSTALL&;t t
  13806. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13807. $ac_datarootdir_hack
  13808. "
  13809. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13810. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13811. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13812. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13813. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13814. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13816. which seems to be undefined. Please make sure it is defined" >&5
  13817. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13818. which seems to be undefined. Please make sure it is defined" >&2;}
  13819. rm -f "$ac_tmp/stdin"
  13820. case $ac_file in
  13821. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13822. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13823. esac \
  13824. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13825. ;;
  13826. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13827. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13828. ;;
  13829. esac
  13830. case $ac_file$ac_mode in
  13831. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13832. # Older Autoconf quotes --file arguments for eval, but not when files
  13833. # are listed without --file. Let's play safe and only enable the eval
  13834. # if we detect the quoting.
  13835. case $CONFIG_FILES in
  13836. *\'*) eval set x "$CONFIG_FILES" ;;
  13837. *) set x $CONFIG_FILES ;;
  13838. esac
  13839. shift
  13840. for mf
  13841. do
  13842. # Strip MF so we end up with the name of the file.
  13843. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13844. # Check whether this is an Automake generated Makefile or not.
  13845. # We used to match only the files named 'Makefile.in', but
  13846. # some people rename them; so instead we look at the file content.
  13847. # Grep'ing the first line is not enough: some people post-process
  13848. # each Makefile.in and add a new line on top of each file to say so.
  13849. # Grep'ing the whole file is not good either: AIX grep has a line
  13850. # limit of 2048, but all sed's we know have understand at least 4000.
  13851. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13852. dirpart=`$as_dirname -- "$mf" ||
  13853. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13854. X"$mf" : 'X\(//\)[^/]' \| \
  13855. X"$mf" : 'X\(//\)$' \| \
  13856. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13857. $as_echo X"$mf" |
  13858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13859. s//\1/
  13860. q
  13861. }
  13862. /^X\(\/\/\)[^/].*/{
  13863. s//\1/
  13864. q
  13865. }
  13866. /^X\(\/\/\)$/{
  13867. s//\1/
  13868. q
  13869. }
  13870. /^X\(\/\).*/{
  13871. s//\1/
  13872. q
  13873. }
  13874. s/.*/./; q'`
  13875. else
  13876. continue
  13877. fi
  13878. # Extract the definition of DEPDIR, am__include, and am__quote
  13879. # from the Makefile without running 'make'.
  13880. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13881. test -z "$DEPDIR" && continue
  13882. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13883. test -z "$am__include" && continue
  13884. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13885. # Find all dependency output files, they are included files with
  13886. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13887. # simplest approach to changing $(DEPDIR) to its actual value in the
  13888. # expansion.
  13889. for file in `sed -n "
  13890. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13891. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13892. # Make sure the directory exists.
  13893. test -f "$dirpart/$file" && continue
  13894. fdir=`$as_dirname -- "$file" ||
  13895. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13896. X"$file" : 'X\(//\)[^/]' \| \
  13897. X"$file" : 'X\(//\)$' \| \
  13898. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13899. $as_echo X"$file" |
  13900. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13901. s//\1/
  13902. q
  13903. }
  13904. /^X\(\/\/\)[^/].*/{
  13905. s//\1/
  13906. q
  13907. }
  13908. /^X\(\/\/\)$/{
  13909. s//\1/
  13910. q
  13911. }
  13912. /^X\(\/\).*/{
  13913. s//\1/
  13914. q
  13915. }
  13916. s/.*/./; q'`
  13917. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13918. # echo "creating $dirpart/$file"
  13919. echo '# dummy' > "$dirpart/$file"
  13920. done
  13921. done
  13922. }
  13923. ;;
  13924. "default-1":C)
  13925. # Only add multilib support code if we just rebuilt the top-level
  13926. # Makefile.
  13927. case " $CONFIG_FILES " in
  13928. *" Makefile "*)
  13929. ac_file=Makefile . ${multi_basedir}/config-ml.in
  13930. ;;
  13931. esac ;;
  13932. "libtool":C)
  13933. # See if we are running on zsh, and set the options which allow our
  13934. # commands through without removal of \ escapes.
  13935. if test -n "${ZSH_VERSION+set}" ; then
  13936. setopt NO_GLOB_SUBST
  13937. fi
  13938. cfgfile="${ofile}T"
  13939. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13940. $RM "$cfgfile"
  13941. cat <<_LT_EOF >> "$cfgfile"
  13942. #! $SHELL
  13943. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13944. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13945. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13946. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13947. #
  13948. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13949. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13950. # Written by Gordon Matzigkeit, 1996
  13951. #
  13952. # This file is part of GNU Libtool.
  13953. #
  13954. # GNU Libtool is free software; you can redistribute it and/or
  13955. # modify it under the terms of the GNU General Public License as
  13956. # published by the Free Software Foundation; either version 2 of
  13957. # the License, or (at your option) any later version.
  13958. #
  13959. # As a special exception to the GNU General Public License,
  13960. # if you distribute this file as part of a program or library that
  13961. # is built using GNU Libtool, you may include this file under the
  13962. # same distribution terms that you use for the rest of that program.
  13963. #
  13964. # GNU Libtool is distributed in the hope that it will be useful,
  13965. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13966. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13967. # GNU General Public License for more details.
  13968. #
  13969. # You should have received a copy of the GNU General Public License
  13970. # along with GNU Libtool; see the file COPYING. If not, a copy
  13971. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13972. # obtained by writing to the Free Software Foundation, Inc.,
  13973. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13974. # The names of the tagged configurations supported by this script.
  13975. available_tags="CXX "
  13976. # ### BEGIN LIBTOOL CONFIG
  13977. # Which release of libtool.m4 was used?
  13978. macro_version=$macro_version
  13979. macro_revision=$macro_revision
  13980. # Whether or not to build shared libraries.
  13981. build_libtool_libs=$enable_shared
  13982. # Whether or not to build static libraries.
  13983. build_old_libs=$enable_static
  13984. # What type of objects to build.
  13985. pic_mode=$pic_mode
  13986. # Whether or not to optimize for fast installation.
  13987. fast_install=$enable_fast_install
  13988. # Shell to use when invoking shell scripts.
  13989. SHELL=$lt_SHELL
  13990. # An echo program that protects backslashes.
  13991. ECHO=$lt_ECHO
  13992. # The host system.
  13993. host_alias=$host_alias
  13994. host=$host
  13995. host_os=$host_os
  13996. # The build system.
  13997. build_alias=$build_alias
  13998. build=$build
  13999. build_os=$build_os
  14000. # A sed program that does not truncate output.
  14001. SED=$lt_SED
  14002. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14003. Xsed="\$SED -e 1s/^X//"
  14004. # A grep program that handles long lines.
  14005. GREP=$lt_GREP
  14006. # An ERE matcher.
  14007. EGREP=$lt_EGREP
  14008. # A literal string matcher.
  14009. FGREP=$lt_FGREP
  14010. # A BSD- or MS-compatible name lister.
  14011. NM=$lt_NM
  14012. # Whether we need soft or hard links.
  14013. LN_S=$lt_LN_S
  14014. # What is the maximum length of a command?
  14015. max_cmd_len=$max_cmd_len
  14016. # Object file suffix (normally "o").
  14017. objext=$ac_objext
  14018. # Executable file suffix (normally "").
  14019. exeext=$exeext
  14020. # whether the shell understands "unset".
  14021. lt_unset=$lt_unset
  14022. # turn spaces into newlines.
  14023. SP2NL=$lt_lt_SP2NL
  14024. # turn newlines into spaces.
  14025. NL2SP=$lt_lt_NL2SP
  14026. # An object symbol dumper.
  14027. OBJDUMP=$lt_OBJDUMP
  14028. # Method to check whether dependent libraries are shared objects.
  14029. deplibs_check_method=$lt_deplibs_check_method
  14030. # Command to use when deplibs_check_method == "file_magic".
  14031. file_magic_cmd=$lt_file_magic_cmd
  14032. # The archiver.
  14033. AR=$lt_AR
  14034. AR_FLAGS=$lt_AR_FLAGS
  14035. # A symbol stripping program.
  14036. STRIP=$lt_STRIP
  14037. # Commands used to install an old-style archive.
  14038. RANLIB=$lt_RANLIB
  14039. old_postinstall_cmds=$lt_old_postinstall_cmds
  14040. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14041. # Whether to use a lock for old archive extraction.
  14042. lock_old_archive_extraction=$lock_old_archive_extraction
  14043. # A C compiler.
  14044. LTCC=$lt_CC
  14045. # LTCC compiler flags.
  14046. LTCFLAGS=$lt_CFLAGS
  14047. # Take the output of nm and produce a listing of raw symbols and C names.
  14048. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14049. # Transform the output of nm in a proper C declaration.
  14050. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14051. # Transform the output of nm in a C name address pair.
  14052. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14053. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14054. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14055. # The name of the directory that contains temporary libtool files.
  14056. objdir=$objdir
  14057. # Used to examine libraries when file_magic_cmd begins with "file".
  14058. MAGIC_CMD=$MAGIC_CMD
  14059. # Must we lock files when doing compilation?
  14060. need_locks=$lt_need_locks
  14061. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14062. DSYMUTIL=$lt_DSYMUTIL
  14063. # Tool to change global to local symbols on Mac OS X.
  14064. NMEDIT=$lt_NMEDIT
  14065. # Tool to manipulate fat objects and archives on Mac OS X.
  14066. LIPO=$lt_LIPO
  14067. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14068. OTOOL=$lt_OTOOL
  14069. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14070. OTOOL64=$lt_OTOOL64
  14071. # Old archive suffix (normally "a").
  14072. libext=$libext
  14073. # Shared library suffix (normally ".so").
  14074. shrext_cmds=$lt_shrext_cmds
  14075. # The commands to extract the exported symbol list from a shared archive.
  14076. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14077. # Variables whose values should be saved in libtool wrapper scripts and
  14078. # restored at link time.
  14079. variables_saved_for_relink=$lt_variables_saved_for_relink
  14080. # Do we need the "lib" prefix for modules?
  14081. need_lib_prefix=$need_lib_prefix
  14082. # Do we need a version for libraries?
  14083. need_version=$need_version
  14084. # Library versioning type.
  14085. version_type=$version_type
  14086. # Shared library runtime path variable.
  14087. runpath_var=$runpath_var
  14088. # Shared library path variable.
  14089. shlibpath_var=$shlibpath_var
  14090. # Is shlibpath searched before the hard-coded library search path?
  14091. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14092. # Format of library name prefix.
  14093. libname_spec=$lt_libname_spec
  14094. # List of archive names. First name is the real one, the rest are links.
  14095. # The last name is the one that the linker finds with -lNAME
  14096. library_names_spec=$lt_library_names_spec
  14097. # The coded name of the library, if different from the real name.
  14098. soname_spec=$lt_soname_spec
  14099. # Permission mode override for installation of shared libraries.
  14100. install_override_mode=$lt_install_override_mode
  14101. # Command to use after installation of a shared archive.
  14102. postinstall_cmds=$lt_postinstall_cmds
  14103. # Command to use after uninstallation of a shared archive.
  14104. postuninstall_cmds=$lt_postuninstall_cmds
  14105. # Commands used to finish a libtool library installation in a directory.
  14106. finish_cmds=$lt_finish_cmds
  14107. # As "finish_cmds", except a single script fragment to be evaled but
  14108. # not shown.
  14109. finish_eval=$lt_finish_eval
  14110. # Whether we should hardcode library paths into libraries.
  14111. hardcode_into_libs=$hardcode_into_libs
  14112. # Compile-time system search path for libraries.
  14113. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14114. # Run-time system search path for libraries.
  14115. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14116. # Whether dlopen is supported.
  14117. dlopen_support=$enable_dlopen
  14118. # Whether dlopen of programs is supported.
  14119. dlopen_self=$enable_dlopen_self
  14120. # Whether dlopen of statically linked programs is supported.
  14121. dlopen_self_static=$enable_dlopen_self_static
  14122. # Commands to strip libraries.
  14123. old_striplib=$lt_old_striplib
  14124. striplib=$lt_striplib
  14125. # The linker used to build libraries.
  14126. LD=$lt_LD
  14127. # How to create reloadable object files.
  14128. reload_flag=$lt_reload_flag
  14129. reload_cmds=$lt_reload_cmds
  14130. # Commands used to build an old-style archive.
  14131. old_archive_cmds=$lt_old_archive_cmds
  14132. # A language specific compiler.
  14133. CC=$lt_compiler
  14134. # Is the compiler the GNU compiler?
  14135. with_gcc=$GCC
  14136. # Compiler flag to turn off builtin functions.
  14137. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14138. # How to pass a linker flag through the compiler.
  14139. wl=$lt_lt_prog_compiler_wl
  14140. # Additional compiler flags for building library objects.
  14141. pic_flag=$lt_lt_prog_compiler_pic
  14142. # Compiler flag to prevent dynamic linking.
  14143. link_static_flag=$lt_lt_prog_compiler_static
  14144. # Does compiler simultaneously support -c and -o options?
  14145. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14146. # Whether or not to add -lc for building shared libraries.
  14147. build_libtool_need_lc=$archive_cmds_need_lc
  14148. # Whether or not to disallow shared libs when runtime libs are static.
  14149. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14150. # Compiler flag to allow reflexive dlopens.
  14151. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14152. # Compiler flag to generate shared objects directly from archives.
  14153. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14154. # Whether the compiler copes with passing no objects directly.
  14155. compiler_needs_object=$lt_compiler_needs_object
  14156. # Create an old-style archive from a shared archive.
  14157. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14158. # Create a temporary old-style archive to link instead of a shared archive.
  14159. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14160. # Commands used to build a shared archive.
  14161. archive_cmds=$lt_archive_cmds
  14162. archive_expsym_cmds=$lt_archive_expsym_cmds
  14163. # Commands used to build a loadable module if different from building
  14164. # a shared archive.
  14165. module_cmds=$lt_module_cmds
  14166. module_expsym_cmds=$lt_module_expsym_cmds
  14167. # Whether we are building with GNU ld or not.
  14168. with_gnu_ld=$lt_with_gnu_ld
  14169. # Flag that allows shared libraries with undefined symbols to be built.
  14170. allow_undefined_flag=$lt_allow_undefined_flag
  14171. # Flag that enforces no undefined symbols.
  14172. no_undefined_flag=$lt_no_undefined_flag
  14173. # Flag to hardcode \$libdir into a binary during linking.
  14174. # This must work even if \$libdir does not exist
  14175. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14176. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14177. # during linking. This must work even if \$libdir does not exist.
  14178. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14179. # Whether we need a single "-rpath" flag with a separated argument.
  14180. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14181. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14182. # DIR into the resulting binary.
  14183. hardcode_direct=$hardcode_direct
  14184. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14185. # DIR into the resulting binary and the resulting library dependency is
  14186. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14187. # library is relocated.
  14188. hardcode_direct_absolute=$hardcode_direct_absolute
  14189. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14190. # into the resulting binary.
  14191. hardcode_minus_L=$hardcode_minus_L
  14192. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14193. # into the resulting binary.
  14194. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14195. # Set to "yes" if building a shared library automatically hardcodes DIR
  14196. # into the library and all subsequent libraries and executables linked
  14197. # against it.
  14198. hardcode_automatic=$hardcode_automatic
  14199. # Set to yes if linker adds runtime paths of dependent libraries
  14200. # to runtime path list.
  14201. inherit_rpath=$inherit_rpath
  14202. # Whether libtool must link a program against all its dependency libraries.
  14203. link_all_deplibs=$link_all_deplibs
  14204. # Fix the shell variable \$srcfile for the compiler.
  14205. fix_srcfile_path=$lt_fix_srcfile_path
  14206. # Set to "yes" if exported symbols are required.
  14207. always_export_symbols=$always_export_symbols
  14208. # The commands to list exported symbols.
  14209. export_symbols_cmds=$lt_export_symbols_cmds
  14210. # Symbols that should not be listed in the preloaded symbols.
  14211. exclude_expsyms=$lt_exclude_expsyms
  14212. # Symbols that must always be exported.
  14213. include_expsyms=$lt_include_expsyms
  14214. # Commands necessary for linking programs (against libraries) with templates.
  14215. prelink_cmds=$lt_prelink_cmds
  14216. # Specify filename containing input files.
  14217. file_list_spec=$lt_file_list_spec
  14218. # How to hardcode a shared library path into an executable.
  14219. hardcode_action=$hardcode_action
  14220. # The directories searched by this compiler when creating a shared library.
  14221. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14222. # Dependencies to place before and after the objects being linked to
  14223. # create a shared library.
  14224. predep_objects=$lt_predep_objects
  14225. postdep_objects=$lt_postdep_objects
  14226. predeps=$lt_predeps
  14227. postdeps=$lt_postdeps
  14228. # The library search path used internally by the compiler when linking
  14229. # a shared library.
  14230. compiler_lib_search_path=$lt_compiler_lib_search_path
  14231. # ### END LIBTOOL CONFIG
  14232. _LT_EOF
  14233. case $host_os in
  14234. aix3*)
  14235. cat <<\_LT_EOF >> "$cfgfile"
  14236. # AIX sometimes has problems with the GCC collect2 program. For some
  14237. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14238. # vanish in a puff of smoke.
  14239. if test "X${COLLECT_NAMES+set}" != Xset; then
  14240. COLLECT_NAMES=
  14241. export COLLECT_NAMES
  14242. fi
  14243. _LT_EOF
  14244. ;;
  14245. esac
  14246. ltmain="$ac_aux_dir/ltmain.sh"
  14247. # We use sed instead of cat because bash on DJGPP gets confused if
  14248. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14249. # text mode, it properly converts lines to CR/LF. This bash problem
  14250. # is reportedly fixed, but why not run on old versions too?
  14251. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14252. || (rm -f "$cfgfile"; exit 1)
  14253. case $xsi_shell in
  14254. yes)
  14255. cat << \_LT_EOF >> "$cfgfile"
  14256. # func_dirname file append nondir_replacement
  14257. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14258. # otherwise set result to NONDIR_REPLACEMENT.
  14259. func_dirname ()
  14260. {
  14261. case ${1} in
  14262. */*) func_dirname_result="${1%/*}${2}" ;;
  14263. * ) func_dirname_result="${3}" ;;
  14264. esac
  14265. }
  14266. # func_basename file
  14267. func_basename ()
  14268. {
  14269. func_basename_result="${1##*/}"
  14270. }
  14271. # func_dirname_and_basename file append nondir_replacement
  14272. # perform func_basename and func_dirname in a single function
  14273. # call:
  14274. # dirname: Compute the dirname of FILE. If nonempty,
  14275. # add APPEND to the result, otherwise set result
  14276. # to NONDIR_REPLACEMENT.
  14277. # value returned in "$func_dirname_result"
  14278. # basename: Compute filename of FILE.
  14279. # value retuned in "$func_basename_result"
  14280. # Implementation must be kept synchronized with func_dirname
  14281. # and func_basename. For efficiency, we do not delegate to
  14282. # those functions but instead duplicate the functionality here.
  14283. func_dirname_and_basename ()
  14284. {
  14285. case ${1} in
  14286. */*) func_dirname_result="${1%/*}${2}" ;;
  14287. * ) func_dirname_result="${3}" ;;
  14288. esac
  14289. func_basename_result="${1##*/}"
  14290. }
  14291. # func_stripname prefix suffix name
  14292. # strip PREFIX and SUFFIX off of NAME.
  14293. # PREFIX and SUFFIX must not contain globbing or regex special
  14294. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14295. # dot (in which case that matches only a dot).
  14296. func_stripname ()
  14297. {
  14298. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14299. # positional parameters, so assign one to ordinary parameter first.
  14300. func_stripname_result=${3}
  14301. func_stripname_result=${func_stripname_result#"${1}"}
  14302. func_stripname_result=${func_stripname_result%"${2}"}
  14303. }
  14304. # func_opt_split
  14305. func_opt_split ()
  14306. {
  14307. func_opt_split_opt=${1%%=*}
  14308. func_opt_split_arg=${1#*=}
  14309. }
  14310. # func_lo2o object
  14311. func_lo2o ()
  14312. {
  14313. case ${1} in
  14314. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14315. *) func_lo2o_result=${1} ;;
  14316. esac
  14317. }
  14318. # func_xform libobj-or-source
  14319. func_xform ()
  14320. {
  14321. func_xform_result=${1%.*}.lo
  14322. }
  14323. # func_arith arithmetic-term...
  14324. func_arith ()
  14325. {
  14326. func_arith_result=$(( $* ))
  14327. }
  14328. # func_len string
  14329. # STRING may not start with a hyphen.
  14330. func_len ()
  14331. {
  14332. func_len_result=${#1}
  14333. }
  14334. _LT_EOF
  14335. ;;
  14336. *) # Bourne compatible functions.
  14337. cat << \_LT_EOF >> "$cfgfile"
  14338. # func_dirname file append nondir_replacement
  14339. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14340. # otherwise set result to NONDIR_REPLACEMENT.
  14341. func_dirname ()
  14342. {
  14343. # Extract subdirectory from the argument.
  14344. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14345. if test "X$func_dirname_result" = "X${1}"; then
  14346. func_dirname_result="${3}"
  14347. else
  14348. func_dirname_result="$func_dirname_result${2}"
  14349. fi
  14350. }
  14351. # func_basename file
  14352. func_basename ()
  14353. {
  14354. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14355. }
  14356. # func_stripname prefix suffix name
  14357. # strip PREFIX and SUFFIX off of NAME.
  14358. # PREFIX and SUFFIX must not contain globbing or regex special
  14359. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14360. # dot (in which case that matches only a dot).
  14361. # func_strip_suffix prefix name
  14362. func_stripname ()
  14363. {
  14364. case ${2} in
  14365. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14366. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14367. esac
  14368. }
  14369. # sed scripts:
  14370. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14371. my_sed_long_arg='1s/^-[^=]*=//'
  14372. # func_opt_split
  14373. func_opt_split ()
  14374. {
  14375. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14376. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14377. }
  14378. # func_lo2o object
  14379. func_lo2o ()
  14380. {
  14381. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14382. }
  14383. # func_xform libobj-or-source
  14384. func_xform ()
  14385. {
  14386. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14387. }
  14388. # func_arith arithmetic-term...
  14389. func_arith ()
  14390. {
  14391. func_arith_result=`expr "$@"`
  14392. }
  14393. # func_len string
  14394. # STRING may not start with a hyphen.
  14395. func_len ()
  14396. {
  14397. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14398. }
  14399. _LT_EOF
  14400. esac
  14401. case $lt_shell_append in
  14402. yes)
  14403. cat << \_LT_EOF >> "$cfgfile"
  14404. # func_append var value
  14405. # Append VALUE to the end of shell variable VAR.
  14406. func_append ()
  14407. {
  14408. eval "$1+=\$2"
  14409. }
  14410. _LT_EOF
  14411. ;;
  14412. *)
  14413. cat << \_LT_EOF >> "$cfgfile"
  14414. # func_append var value
  14415. # Append VALUE to the end of shell variable VAR.
  14416. func_append ()
  14417. {
  14418. eval "$1=\$$1\$2"
  14419. }
  14420. _LT_EOF
  14421. ;;
  14422. esac
  14423. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14424. || (rm -f "$cfgfile"; exit 1)
  14425. mv -f "$cfgfile" "$ofile" ||
  14426. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14427. chmod +x "$ofile"
  14428. cat <<_LT_EOF >> "$ofile"
  14429. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14430. # The linker used to build libraries.
  14431. LD=$lt_LD_CXX
  14432. # How to create reloadable object files.
  14433. reload_flag=$lt_reload_flag_CXX
  14434. reload_cmds=$lt_reload_cmds_CXX
  14435. # Commands used to build an old-style archive.
  14436. old_archive_cmds=$lt_old_archive_cmds_CXX
  14437. # A language specific compiler.
  14438. CC=$lt_compiler_CXX
  14439. # Is the compiler the GNU compiler?
  14440. with_gcc=$GCC_CXX
  14441. # Compiler flag to turn off builtin functions.
  14442. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14443. # How to pass a linker flag through the compiler.
  14444. wl=$lt_lt_prog_compiler_wl_CXX
  14445. # Additional compiler flags for building library objects.
  14446. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14447. # Compiler flag to prevent dynamic linking.
  14448. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14449. # Does compiler simultaneously support -c and -o options?
  14450. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14451. # Whether or not to add -lc for building shared libraries.
  14452. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14453. # Whether or not to disallow shared libs when runtime libs are static.
  14454. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14455. # Compiler flag to allow reflexive dlopens.
  14456. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14457. # Compiler flag to generate shared objects directly from archives.
  14458. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14459. # Whether the compiler copes with passing no objects directly.
  14460. compiler_needs_object=$lt_compiler_needs_object_CXX
  14461. # Create an old-style archive from a shared archive.
  14462. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14463. # Create a temporary old-style archive to link instead of a shared archive.
  14464. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14465. # Commands used to build a shared archive.
  14466. archive_cmds=$lt_archive_cmds_CXX
  14467. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14468. # Commands used to build a loadable module if different from building
  14469. # a shared archive.
  14470. module_cmds=$lt_module_cmds_CXX
  14471. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14472. # Whether we are building with GNU ld or not.
  14473. with_gnu_ld=$lt_with_gnu_ld_CXX
  14474. # Flag that allows shared libraries with undefined symbols to be built.
  14475. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14476. # Flag that enforces no undefined symbols.
  14477. no_undefined_flag=$lt_no_undefined_flag_CXX
  14478. # Flag to hardcode \$libdir into a binary during linking.
  14479. # This must work even if \$libdir does not exist
  14480. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14481. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14482. # during linking. This must work even if \$libdir does not exist.
  14483. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14484. # Whether we need a single "-rpath" flag with a separated argument.
  14485. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14486. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14487. # DIR into the resulting binary.
  14488. hardcode_direct=$hardcode_direct_CXX
  14489. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14490. # DIR into the resulting binary and the resulting library dependency is
  14491. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14492. # library is relocated.
  14493. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14494. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14495. # into the resulting binary.
  14496. hardcode_minus_L=$hardcode_minus_L_CXX
  14497. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14498. # into the resulting binary.
  14499. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14500. # Set to "yes" if building a shared library automatically hardcodes DIR
  14501. # into the library and all subsequent libraries and executables linked
  14502. # against it.
  14503. hardcode_automatic=$hardcode_automatic_CXX
  14504. # Set to yes if linker adds runtime paths of dependent libraries
  14505. # to runtime path list.
  14506. inherit_rpath=$inherit_rpath_CXX
  14507. # Whether libtool must link a program against all its dependency libraries.
  14508. link_all_deplibs=$link_all_deplibs_CXX
  14509. # Fix the shell variable \$srcfile for the compiler.
  14510. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14511. # Set to "yes" if exported symbols are required.
  14512. always_export_symbols=$always_export_symbols_CXX
  14513. # The commands to list exported symbols.
  14514. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14515. # Symbols that should not be listed in the preloaded symbols.
  14516. exclude_expsyms=$lt_exclude_expsyms_CXX
  14517. # Symbols that must always be exported.
  14518. include_expsyms=$lt_include_expsyms_CXX
  14519. # Commands necessary for linking programs (against libraries) with templates.
  14520. prelink_cmds=$lt_prelink_cmds_CXX
  14521. # Specify filename containing input files.
  14522. file_list_spec=$lt_file_list_spec_CXX
  14523. # How to hardcode a shared library path into an executable.
  14524. hardcode_action=$hardcode_action_CXX
  14525. # The directories searched by this compiler when creating a shared library.
  14526. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14527. # Dependencies to place before and after the objects being linked to
  14528. # create a shared library.
  14529. predep_objects=$lt_predep_objects_CXX
  14530. postdep_objects=$lt_postdep_objects_CXX
  14531. predeps=$lt_predeps_CXX
  14532. postdeps=$lt_postdeps_CXX
  14533. # The library search path used internally by the compiler when linking
  14534. # a shared library.
  14535. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14536. # ### END LIBTOOL TAG CONFIG: CXX
  14537. _LT_EOF
  14538. ;;
  14539. esac
  14540. done # for ac_tag
  14541. as_fn_exit 0
  14542. _ACEOF
  14543. ac_clean_files=$ac_clean_files_save
  14544. test $ac_write_fail = 0 ||
  14545. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14546. # configure is writing to config.log, and then calls config.status.
  14547. # config.status does its own redirection, appending to config.log.
  14548. # Unfortunately, on DOS this fails, as config.log is still kept open
  14549. # by configure, so config.status won't be able to write to it; its
  14550. # output is simply discarded. So we exec the FD to /dev/null,
  14551. # effectively closing config.log, so it can be properly (re)opened and
  14552. # appended to by config.status. When coming back to configure, we
  14553. # need to make the FD available again.
  14554. if test "$no_create" != yes; then
  14555. ac_cs_success=:
  14556. ac_config_status_args=
  14557. test "$silent" = yes &&
  14558. ac_config_status_args="$ac_config_status_args --quiet"
  14559. exec 5>/dev/null
  14560. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14561. exec 5>>config.log
  14562. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14563. # would make configure fail if this is the last instruction.
  14564. $ac_cs_success || as_fn_exit 1
  14565. fi
  14566. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14568. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14569. fi