configure 499 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for Intel MIC Offload Plugin 1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  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. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='Intel MIC Offload Plugin'
  509. PACKAGE_TARNAME='libgomp-plugin-intelmic'
  510. PACKAGE_VERSION='1.0'
  511. PACKAGE_STRING='Intel MIC Offload Plugin 1.0'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. toolexeclibdir
  554. toolexecdir
  555. CXXCPP
  556. CPP
  557. OTOOL64
  558. OTOOL
  559. LIPO
  560. NMEDIT
  561. DSYMUTIL
  562. RANLIB
  563. AR
  564. OBJDUMP
  565. LN_S
  566. NM
  567. ac_ct_DUMPBIN
  568. DUMPBIN
  569. LD
  570. FGREP
  571. EGREP
  572. GREP
  573. SED
  574. LIBTOOL
  575. accel_target
  576. accel_search_dir
  577. PLUGIN_HOST_FALSE
  578. PLUGIN_HOST_TRUE
  579. multi_basedir
  580. am__fastdepCXX_FALSE
  581. am__fastdepCXX_TRUE
  582. CXXDEPMODE
  583. ac_ct_CXX
  584. CXXFLAGS
  585. CXX
  586. am__fastdepCC_FALSE
  587. am__fastdepCC_TRUE
  588. CCDEPMODE
  589. AMDEPBACKSLASH
  590. AMDEP_FALSE
  591. AMDEP_TRUE
  592. am__quote
  593. am__include
  594. DEPDIR
  595. OBJEXT
  596. EXEEXT
  597. ac_ct_CC
  598. CPPFLAGS
  599. LDFLAGS
  600. CFLAGS
  601. CC
  602. MAINT
  603. MAINTAINER_MODE_FALSE
  604. MAINTAINER_MODE_TRUE
  605. am__untar
  606. am__tar
  607. AMTAR
  608. am__leading_dot
  609. SET_MAKE
  610. AWK
  611. mkdir_p
  612. MKDIR_P
  613. INSTALL_STRIP_PROGRAM
  614. STRIP
  615. install_sh
  616. MAKEINFO
  617. AUTOHEADER
  618. AUTOMAKE
  619. AUTOCONF
  620. ACLOCAL
  621. VERSION
  622. PACKAGE
  623. CYGPATH_W
  624. am__isrc
  625. INSTALL_DATA
  626. INSTALL_SCRIPT
  627. INSTALL_PROGRAM
  628. target_os
  629. target_vendor
  630. target_cpu
  631. target
  632. host_os
  633. host_vendor
  634. host_cpu
  635. host
  636. build_os
  637. build_vendor
  638. build_cpu
  639. build
  640. target_alias
  641. host_alias
  642. build_alias
  643. LIBS
  644. ECHO_T
  645. ECHO_N
  646. ECHO_C
  647. DEFS
  648. mandir
  649. localedir
  650. libdir
  651. psdir
  652. pdfdir
  653. dvidir
  654. htmldir
  655. infodir
  656. docdir
  657. oldincludedir
  658. includedir
  659. localstatedir
  660. sharedstatedir
  661. sysconfdir
  662. datadir
  663. datarootdir
  664. libexecdir
  665. sbindir
  666. bindir
  667. program_transform_name
  668. prefix
  669. exec_prefix
  670. PACKAGE_URL
  671. PACKAGE_BUGREPORT
  672. PACKAGE_STRING
  673. PACKAGE_VERSION
  674. PACKAGE_TARNAME
  675. PACKAGE_NAME
  676. PATH_SEPARATOR
  677. SHELL'
  678. ac_subst_files=''
  679. ac_user_opts='
  680. enable_option_checking
  681. enable_maintainer_mode
  682. enable_dependency_tracking
  683. enable_multilib
  684. enable_version_specific_runtime_libs
  685. enable_shared
  686. enable_static
  687. with_pic
  688. enable_fast_install
  689. with_gnu_ld
  690. enable_libtool_lock
  691. '
  692. ac_precious_vars='build_alias
  693. host_alias
  694. target_alias
  695. CC
  696. CFLAGS
  697. LDFLAGS
  698. LIBS
  699. CPPFLAGS
  700. CXX
  701. CXXFLAGS
  702. CCC
  703. CPP
  704. CXXCPP'
  705. # Initialize some variables set by options.
  706. ac_init_help=
  707. ac_init_version=false
  708. ac_unrecognized_opts=
  709. ac_unrecognized_sep=
  710. # The variables have the same names as the options, with
  711. # dashes changed to underlines.
  712. cache_file=/dev/null
  713. exec_prefix=NONE
  714. no_create=
  715. no_recursion=
  716. prefix=NONE
  717. program_prefix=NONE
  718. program_suffix=NONE
  719. program_transform_name=s,x,x,
  720. silent=
  721. site=
  722. srcdir=
  723. verbose=
  724. x_includes=NONE
  725. x_libraries=NONE
  726. # Installation directory options.
  727. # These are left unexpanded so users can "make install exec_prefix=/foo"
  728. # and all the variables that are supposed to be based on exec_prefix
  729. # by default will actually change.
  730. # Use braces instead of parens because sh, perl, etc. also accept them.
  731. # (The list follows the same order as the GNU Coding Standards.)
  732. bindir='${exec_prefix}/bin'
  733. sbindir='${exec_prefix}/sbin'
  734. libexecdir='${exec_prefix}/libexec'
  735. datarootdir='${prefix}/share'
  736. datadir='${datarootdir}'
  737. sysconfdir='${prefix}/etc'
  738. sharedstatedir='${prefix}/com'
  739. localstatedir='${prefix}/var'
  740. includedir='${prefix}/include'
  741. oldincludedir='/usr/include'
  742. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  743. infodir='${datarootdir}/info'
  744. htmldir='${docdir}'
  745. dvidir='${docdir}'
  746. pdfdir='${docdir}'
  747. psdir='${docdir}'
  748. libdir='${exec_prefix}/lib'
  749. localedir='${datarootdir}/locale'
  750. mandir='${datarootdir}/man'
  751. ac_prev=
  752. ac_dashdash=
  753. for ac_option
  754. do
  755. # If the previous option needs an argument, assign it.
  756. if test -n "$ac_prev"; then
  757. eval $ac_prev=\$ac_option
  758. ac_prev=
  759. continue
  760. fi
  761. case $ac_option in
  762. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  763. *) ac_optarg=yes ;;
  764. esac
  765. # Accept the important Cygnus configure options, so we can diagnose typos.
  766. case $ac_dashdash$ac_option in
  767. --)
  768. ac_dashdash=yes ;;
  769. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  770. ac_prev=bindir ;;
  771. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  772. bindir=$ac_optarg ;;
  773. -build | --build | --buil | --bui | --bu)
  774. ac_prev=build_alias ;;
  775. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  776. build_alias=$ac_optarg ;;
  777. -cache-file | --cache-file | --cache-fil | --cache-fi \
  778. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  779. ac_prev=cache_file ;;
  780. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  781. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  782. cache_file=$ac_optarg ;;
  783. --config-cache | -C)
  784. cache_file=config.cache ;;
  785. -datadir | --datadir | --datadi | --datad)
  786. ac_prev=datadir ;;
  787. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  788. datadir=$ac_optarg ;;
  789. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  790. | --dataroo | --dataro | --datar)
  791. ac_prev=datarootdir ;;
  792. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  793. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  794. datarootdir=$ac_optarg ;;
  795. -disable-* | --disable-*)
  796. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  797. # Reject names that are not valid shell variable names.
  798. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  799. as_fn_error "invalid feature name: $ac_useropt"
  800. ac_useropt_orig=$ac_useropt
  801. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  802. case $ac_user_opts in
  803. *"
  804. "enable_$ac_useropt"
  805. "*) ;;
  806. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  807. ac_unrecognized_sep=', ';;
  808. esac
  809. eval enable_$ac_useropt=no ;;
  810. -docdir | --docdir | --docdi | --doc | --do)
  811. ac_prev=docdir ;;
  812. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  813. docdir=$ac_optarg ;;
  814. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  815. ac_prev=dvidir ;;
  816. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  817. dvidir=$ac_optarg ;;
  818. -enable-* | --enable-*)
  819. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  820. # Reject names that are not valid shell variable names.
  821. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  822. as_fn_error "invalid feature name: $ac_useropt"
  823. ac_useropt_orig=$ac_useropt
  824. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  825. case $ac_user_opts in
  826. *"
  827. "enable_$ac_useropt"
  828. "*) ;;
  829. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  830. ac_unrecognized_sep=', ';;
  831. esac
  832. eval enable_$ac_useropt=\$ac_optarg ;;
  833. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  834. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  835. | --exec | --exe | --ex)
  836. ac_prev=exec_prefix ;;
  837. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  838. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  839. | --exec=* | --exe=* | --ex=*)
  840. exec_prefix=$ac_optarg ;;
  841. -gas | --gas | --ga | --g)
  842. # Obsolete; use --with-gas.
  843. with_gas=yes ;;
  844. -help | --help | --hel | --he | -h)
  845. ac_init_help=long ;;
  846. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  847. ac_init_help=recursive ;;
  848. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  849. ac_init_help=short ;;
  850. -host | --host | --hos | --ho)
  851. ac_prev=host_alias ;;
  852. -host=* | --host=* | --hos=* | --ho=*)
  853. host_alias=$ac_optarg ;;
  854. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  855. ac_prev=htmldir ;;
  856. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  857. | --ht=*)
  858. htmldir=$ac_optarg ;;
  859. -includedir | --includedir | --includedi | --included | --include \
  860. | --includ | --inclu | --incl | --inc)
  861. ac_prev=includedir ;;
  862. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  863. | --includ=* | --inclu=* | --incl=* | --inc=*)
  864. includedir=$ac_optarg ;;
  865. -infodir | --infodir | --infodi | --infod | --info | --inf)
  866. ac_prev=infodir ;;
  867. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  868. infodir=$ac_optarg ;;
  869. -libdir | --libdir | --libdi | --libd)
  870. ac_prev=libdir ;;
  871. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  872. libdir=$ac_optarg ;;
  873. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  874. | --libexe | --libex | --libe)
  875. ac_prev=libexecdir ;;
  876. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  877. | --libexe=* | --libex=* | --libe=*)
  878. libexecdir=$ac_optarg ;;
  879. -localedir | --localedir | --localedi | --localed | --locale)
  880. ac_prev=localedir ;;
  881. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  882. localedir=$ac_optarg ;;
  883. -localstatedir | --localstatedir | --localstatedi | --localstated \
  884. | --localstate | --localstat | --localsta | --localst | --locals)
  885. ac_prev=localstatedir ;;
  886. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  887. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  888. localstatedir=$ac_optarg ;;
  889. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  890. ac_prev=mandir ;;
  891. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  892. mandir=$ac_optarg ;;
  893. -nfp | --nfp | --nf)
  894. # Obsolete; use --without-fp.
  895. with_fp=no ;;
  896. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  897. | --no-cr | --no-c | -n)
  898. no_create=yes ;;
  899. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  900. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  901. no_recursion=yes ;;
  902. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  903. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  904. | --oldin | --oldi | --old | --ol | --o)
  905. ac_prev=oldincludedir ;;
  906. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  907. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  908. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  909. oldincludedir=$ac_optarg ;;
  910. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  911. ac_prev=prefix ;;
  912. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  913. prefix=$ac_optarg ;;
  914. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  915. | --program-pre | --program-pr | --program-p)
  916. ac_prev=program_prefix ;;
  917. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  918. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  919. program_prefix=$ac_optarg ;;
  920. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  921. | --program-suf | --program-su | --program-s)
  922. ac_prev=program_suffix ;;
  923. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  924. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  925. program_suffix=$ac_optarg ;;
  926. -program-transform-name | --program-transform-name \
  927. | --program-transform-nam | --program-transform-na \
  928. | --program-transform-n | --program-transform- \
  929. | --program-transform | --program-transfor \
  930. | --program-transfo | --program-transf \
  931. | --program-trans | --program-tran \
  932. | --progr-tra | --program-tr | --program-t)
  933. ac_prev=program_transform_name ;;
  934. -program-transform-name=* | --program-transform-name=* \
  935. | --program-transform-nam=* | --program-transform-na=* \
  936. | --program-transform-n=* | --program-transform-=* \
  937. | --program-transform=* | --program-transfor=* \
  938. | --program-transfo=* | --program-transf=* \
  939. | --program-trans=* | --program-tran=* \
  940. | --progr-tra=* | --program-tr=* | --program-t=*)
  941. program_transform_name=$ac_optarg ;;
  942. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  943. ac_prev=pdfdir ;;
  944. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  945. pdfdir=$ac_optarg ;;
  946. -psdir | --psdir | --psdi | --psd | --ps)
  947. ac_prev=psdir ;;
  948. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  949. psdir=$ac_optarg ;;
  950. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  951. | -silent | --silent | --silen | --sile | --sil)
  952. silent=yes ;;
  953. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  954. ac_prev=sbindir ;;
  955. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  956. | --sbi=* | --sb=*)
  957. sbindir=$ac_optarg ;;
  958. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  959. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  960. | --sharedst | --shareds | --shared | --share | --shar \
  961. | --sha | --sh)
  962. ac_prev=sharedstatedir ;;
  963. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  964. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  965. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  966. | --sha=* | --sh=*)
  967. sharedstatedir=$ac_optarg ;;
  968. -site | --site | --sit)
  969. ac_prev=site ;;
  970. -site=* | --site=* | --sit=*)
  971. site=$ac_optarg ;;
  972. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  973. ac_prev=srcdir ;;
  974. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  975. srcdir=$ac_optarg ;;
  976. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  977. | --syscon | --sysco | --sysc | --sys | --sy)
  978. ac_prev=sysconfdir ;;
  979. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  980. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  981. sysconfdir=$ac_optarg ;;
  982. -target | --target | --targe | --targ | --tar | --ta | --t)
  983. ac_prev=target_alias ;;
  984. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  985. target_alias=$ac_optarg ;;
  986. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  987. verbose=yes ;;
  988. -version | --version | --versio | --versi | --vers | -V)
  989. ac_init_version=: ;;
  990. -with-* | --with-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. as_fn_error "invalid package name: $ac_useropt"
  995. ac_useropt_orig=$ac_useropt
  996. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  997. case $ac_user_opts in
  998. *"
  999. "with_$ac_useropt"
  1000. "*) ;;
  1001. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1002. ac_unrecognized_sep=', ';;
  1003. esac
  1004. eval with_$ac_useropt=\$ac_optarg ;;
  1005. -without-* | --without-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error "invalid package name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "with_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval with_$ac_useropt=no ;;
  1020. --x)
  1021. # Obsolete; use --with-x.
  1022. with_x=yes ;;
  1023. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1024. | --x-incl | --x-inc | --x-in | --x-i)
  1025. ac_prev=x_includes ;;
  1026. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1027. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1028. x_includes=$ac_optarg ;;
  1029. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1030. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1031. ac_prev=x_libraries ;;
  1032. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1033. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1034. x_libraries=$ac_optarg ;;
  1035. -*) as_fn_error "unrecognized option: \`$ac_option'
  1036. Try \`$0 --help' for more information."
  1037. ;;
  1038. *=*)
  1039. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1040. # Reject names that are not valid shell variable names.
  1041. case $ac_envvar in #(
  1042. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1043. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1044. esac
  1045. eval $ac_envvar=\$ac_optarg
  1046. export $ac_envvar ;;
  1047. *)
  1048. # FIXME: should be removed in autoconf 3.0.
  1049. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1050. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1051. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1052. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1053. ;;
  1054. esac
  1055. done
  1056. if test -n "$ac_prev"; then
  1057. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1058. as_fn_error "missing argument to $ac_option"
  1059. fi
  1060. if test -n "$ac_unrecognized_opts"; then
  1061. case $enable_option_checking in
  1062. no) ;;
  1063. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1064. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1065. esac
  1066. fi
  1067. # Check all directory arguments for consistency.
  1068. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1069. datadir sysconfdir sharedstatedir localstatedir includedir \
  1070. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1071. libdir localedir mandir
  1072. do
  1073. eval ac_val=\$$ac_var
  1074. # Remove trailing slashes.
  1075. case $ac_val in
  1076. */ )
  1077. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1078. eval $ac_var=\$ac_val;;
  1079. esac
  1080. # Be sure to have absolute directory names.
  1081. case $ac_val in
  1082. [\\/$]* | ?:[\\/]* ) continue;;
  1083. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1084. esac
  1085. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1086. done
  1087. # There might be people who depend on the old broken behavior: `$host'
  1088. # used to hold the argument of --host etc.
  1089. # FIXME: To remove some day.
  1090. build=$build_alias
  1091. host=$host_alias
  1092. target=$target_alias
  1093. # FIXME: To remove some day.
  1094. if test "x$host_alias" != x; then
  1095. if test "x$build_alias" = x; then
  1096. cross_compiling=maybe
  1097. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1098. If a cross compiler is detected then cross compile mode will be used." >&2
  1099. elif test "x$build_alias" != "x$host_alias"; then
  1100. cross_compiling=yes
  1101. fi
  1102. fi
  1103. ac_tool_prefix=
  1104. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1105. test "$silent" = yes && exec 6>/dev/null
  1106. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1107. ac_ls_di=`ls -di .` &&
  1108. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1109. as_fn_error "working directory cannot be determined"
  1110. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1111. as_fn_error "pwd does not report name of working directory"
  1112. # Find the source files, if location was not specified.
  1113. if test -z "$srcdir"; then
  1114. ac_srcdir_defaulted=yes
  1115. # Try the directory containing this script, then the parent directory.
  1116. ac_confdir=`$as_dirname -- "$as_myself" ||
  1117. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1118. X"$as_myself" : 'X\(//\)[^/]' \| \
  1119. X"$as_myself" : 'X\(//\)$' \| \
  1120. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1121. $as_echo X"$as_myself" |
  1122. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1123. s//\1/
  1124. q
  1125. }
  1126. /^X\(\/\/\)[^/].*/{
  1127. s//\1/
  1128. q
  1129. }
  1130. /^X\(\/\/\)$/{
  1131. s//\1/
  1132. q
  1133. }
  1134. /^X\(\/\).*/{
  1135. s//\1/
  1136. q
  1137. }
  1138. s/.*/./; q'`
  1139. srcdir=$ac_confdir
  1140. if test ! -r "$srcdir/$ac_unique_file"; then
  1141. srcdir=..
  1142. fi
  1143. else
  1144. ac_srcdir_defaulted=no
  1145. fi
  1146. if test ! -r "$srcdir/$ac_unique_file"; then
  1147. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1148. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1149. fi
  1150. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1151. ac_abs_confdir=`(
  1152. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1153. pwd)`
  1154. # When building in place, set srcdir=.
  1155. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1156. srcdir=.
  1157. fi
  1158. # Remove unnecessary trailing slashes from srcdir.
  1159. # Double slashes in file names in object file debugging info
  1160. # mess up M-x gdb in Emacs.
  1161. case $srcdir in
  1162. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1163. esac
  1164. for ac_var in $ac_precious_vars; do
  1165. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_env_${ac_var}_value=\$${ac_var}
  1167. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1168. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1169. done
  1170. #
  1171. # Report the --help message.
  1172. #
  1173. if test "$ac_init_help" = "long"; then
  1174. # Omit some internal or obsolete options to make the list less imposing.
  1175. # This message is too long to be a string in the A/UX 3.1 sh.
  1176. cat <<_ACEOF
  1177. \`configure' configures Intel MIC Offload Plugin 1.0 to adapt to many kinds of systems.
  1178. Usage: $0 [OPTION]... [VAR=VALUE]...
  1179. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1180. VAR=VALUE. See below for descriptions of some of the useful variables.
  1181. Defaults for the options are specified in brackets.
  1182. Configuration:
  1183. -h, --help display this help and exit
  1184. --help=short display options specific to this package
  1185. --help=recursive display the short help of all the included packages
  1186. -V, --version display version information and exit
  1187. -q, --quiet, --silent do not print \`checking...' messages
  1188. --cache-file=FILE cache test results in FILE [disabled]
  1189. -C, --config-cache alias for \`--cache-file=config.cache'
  1190. -n, --no-create do not create output files
  1191. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1192. Installation directories:
  1193. --prefix=PREFIX install architecture-independent files in PREFIX
  1194. [$ac_default_prefix]
  1195. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1196. [PREFIX]
  1197. By default, \`make install' will install all the files in
  1198. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1199. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1200. for instance \`--prefix=\$HOME'.
  1201. For better control, use the options below.
  1202. Fine tuning of the installation directories:
  1203. --bindir=DIR user executables [EPREFIX/bin]
  1204. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1205. --libexecdir=DIR program executables [EPREFIX/libexec]
  1206. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1207. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1208. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1209. --libdir=DIR object code libraries [EPREFIX/lib]
  1210. --includedir=DIR C header files [PREFIX/include]
  1211. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1212. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1213. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1214. --infodir=DIR info documentation [DATAROOTDIR/info]
  1215. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1216. --mandir=DIR man documentation [DATAROOTDIR/man]
  1217. --docdir=DIR documentation root
  1218. [DATAROOTDIR/doc/libgomp-plugin-intelmic]
  1219. --htmldir=DIR html documentation [DOCDIR]
  1220. --dvidir=DIR dvi documentation [DOCDIR]
  1221. --pdfdir=DIR pdf documentation [DOCDIR]
  1222. --psdir=DIR ps documentation [DOCDIR]
  1223. _ACEOF
  1224. cat <<\_ACEOF
  1225. Program names:
  1226. --program-prefix=PREFIX prepend PREFIX to installed program names
  1227. --program-suffix=SUFFIX append SUFFIX to installed program names
  1228. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1229. System types:
  1230. --build=BUILD configure for building on BUILD [guessed]
  1231. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1232. --target=TARGET configure for building compilers for TARGET [HOST]
  1233. _ACEOF
  1234. fi
  1235. if test -n "$ac_init_help"; then
  1236. case $ac_init_help in
  1237. short | recursive ) echo "Configuration of Intel MIC Offload Plugin 1.0:";;
  1238. esac
  1239. cat <<\_ACEOF
  1240. Optional Features:
  1241. --disable-option-checking ignore unrecognized --enable/--with options
  1242. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1243. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1244. --enable-maintainer-mode enable make rules and dependencies not useful
  1245. (and sometimes confusing) to the casual installer
  1246. --disable-dependency-tracking speeds up one-time build
  1247. --enable-dependency-tracking do not reject slow dependency extractors
  1248. --enable-multilib build many library versions (default)
  1249. --enable-version-specific-runtime-libs
  1250. Specify that runtime libraries should be installed
  1251. in a compiler-specific directory
  1252. --enable-shared[=PKGS] build shared libraries [default=yes]
  1253. --enable-static[=PKGS] build static libraries [default=yes]
  1254. --enable-fast-install[=PKGS]
  1255. optimize for fast installation [default=yes]
  1256. --disable-libtool-lock avoid locking (might break parallel builds)
  1257. Optional Packages:
  1258. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1259. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1260. --with-pic try to use only PIC/non-PIC objects [default=use
  1261. both]
  1262. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1263. Some influential environment variables:
  1264. CC C compiler command
  1265. CFLAGS C compiler flags
  1266. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1267. nonstandard directory <lib dir>
  1268. LIBS libraries to pass to the linker, e.g. -l<library>
  1269. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1270. you have headers in a nonstandard directory <include dir>
  1271. CXX C++ compiler command
  1272. CXXFLAGS C++ compiler flags
  1273. CPP C preprocessor
  1274. CXXCPP C++ preprocessor
  1275. Use these variables to override the choices made by `configure' or to help
  1276. it to find libraries and programs with nonstandard names/locations.
  1277. Report bugs to the package provider.
  1278. _ACEOF
  1279. ac_status=$?
  1280. fi
  1281. if test "$ac_init_help" = "recursive"; then
  1282. # If there are subdirs, report their specific --help.
  1283. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1284. test -d "$ac_dir" ||
  1285. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1286. continue
  1287. ac_builddir=.
  1288. case "$ac_dir" in
  1289. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1290. *)
  1291. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1292. # A ".." for each directory in $ac_dir_suffix.
  1293. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1294. case $ac_top_builddir_sub in
  1295. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1296. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1297. esac ;;
  1298. esac
  1299. ac_abs_top_builddir=$ac_pwd
  1300. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1301. # for backward compatibility:
  1302. ac_top_builddir=$ac_top_build_prefix
  1303. case $srcdir in
  1304. .) # We are building in place.
  1305. ac_srcdir=.
  1306. ac_top_srcdir=$ac_top_builddir_sub
  1307. ac_abs_top_srcdir=$ac_pwd ;;
  1308. [\\/]* | ?:[\\/]* ) # Absolute name.
  1309. ac_srcdir=$srcdir$ac_dir_suffix;
  1310. ac_top_srcdir=$srcdir
  1311. ac_abs_top_srcdir=$srcdir ;;
  1312. *) # Relative name.
  1313. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1314. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1315. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1316. esac
  1317. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1318. cd "$ac_dir" || { ac_status=$?; continue; }
  1319. # Check for guested configure.
  1320. if test -f "$ac_srcdir/configure.gnu"; then
  1321. echo &&
  1322. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1323. elif test -f "$ac_srcdir/configure"; then
  1324. echo &&
  1325. $SHELL "$ac_srcdir/configure" --help=recursive
  1326. else
  1327. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1328. fi || ac_status=$?
  1329. cd "$ac_pwd" || { ac_status=$?; break; }
  1330. done
  1331. fi
  1332. test -n "$ac_init_help" && exit $ac_status
  1333. if $ac_init_version; then
  1334. cat <<\_ACEOF
  1335. Intel MIC Offload Plugin configure 1.0
  1336. generated by GNU Autoconf 2.64
  1337. Copyright (C) 2009 Free Software Foundation, Inc.
  1338. This configure script is free software; the Free Software Foundation
  1339. gives unlimited permission to copy, distribute and modify it.
  1340. _ACEOF
  1341. exit
  1342. fi
  1343. ## ------------------------ ##
  1344. ## Autoconf initialization. ##
  1345. ## ------------------------ ##
  1346. # ac_fn_c_try_compile LINENO
  1347. # --------------------------
  1348. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1349. ac_fn_c_try_compile ()
  1350. {
  1351. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1352. rm -f conftest.$ac_objext
  1353. if { { ac_try="$ac_compile"
  1354. case "(($ac_try" in
  1355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1356. *) ac_try_echo=$ac_try;;
  1357. esac
  1358. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1359. $as_echo "$ac_try_echo"; } >&5
  1360. (eval "$ac_compile") 2>conftest.err
  1361. ac_status=$?
  1362. if test -s conftest.err; then
  1363. grep -v '^ *+' conftest.err >conftest.er1
  1364. cat conftest.er1 >&5
  1365. mv -f conftest.er1 conftest.err
  1366. fi
  1367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1368. test $ac_status = 0; } && {
  1369. test -z "$ac_c_werror_flag" ||
  1370. test ! -s conftest.err
  1371. } && test -s conftest.$ac_objext; then :
  1372. ac_retval=0
  1373. else
  1374. $as_echo "$as_me: failed program was:" >&5
  1375. sed 's/^/| /' conftest.$ac_ext >&5
  1376. ac_retval=1
  1377. fi
  1378. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1379. return $ac_retval
  1380. } # ac_fn_c_try_compile
  1381. # ac_fn_cxx_try_compile LINENO
  1382. # ----------------------------
  1383. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1384. ac_fn_cxx_try_compile ()
  1385. {
  1386. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1387. rm -f conftest.$ac_objext
  1388. if { { ac_try="$ac_compile"
  1389. case "(($ac_try" in
  1390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1391. *) ac_try_echo=$ac_try;;
  1392. esac
  1393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1394. $as_echo "$ac_try_echo"; } >&5
  1395. (eval "$ac_compile") 2>conftest.err
  1396. ac_status=$?
  1397. if test -s conftest.err; then
  1398. grep -v '^ *+' conftest.err >conftest.er1
  1399. cat conftest.er1 >&5
  1400. mv -f conftest.er1 conftest.err
  1401. fi
  1402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1403. test $ac_status = 0; } && {
  1404. test -z "$ac_cxx_werror_flag" ||
  1405. test ! -s conftest.err
  1406. } && test -s conftest.$ac_objext; then :
  1407. ac_retval=0
  1408. else
  1409. $as_echo "$as_me: failed program was:" >&5
  1410. sed 's/^/| /' conftest.$ac_ext >&5
  1411. ac_retval=1
  1412. fi
  1413. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1414. return $ac_retval
  1415. } # ac_fn_cxx_try_compile
  1416. # ac_fn_c_try_link LINENO
  1417. # -----------------------
  1418. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1419. ac_fn_c_try_link ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. rm -f conftest.$ac_objext conftest$ac_exeext
  1423. if { { ac_try="$ac_link"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_link") 2>conftest.err
  1431. ac_status=$?
  1432. if test -s conftest.err; then
  1433. grep -v '^ *+' conftest.err >conftest.er1
  1434. cat conftest.er1 >&5
  1435. mv -f conftest.er1 conftest.err
  1436. fi
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; } && {
  1439. test -z "$ac_c_werror_flag" ||
  1440. test ! -s conftest.err
  1441. } && test -s conftest$ac_exeext && {
  1442. test "$cross_compiling" = yes ||
  1443. $as_test_x conftest$ac_exeext
  1444. }; then :
  1445. ac_retval=0
  1446. else
  1447. $as_echo "$as_me: failed program was:" >&5
  1448. sed 's/^/| /' conftest.$ac_ext >&5
  1449. ac_retval=1
  1450. fi
  1451. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1452. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1453. # interfere with the next link command; also delete a directory that is
  1454. # left behind by Apple's compiler. We do this before executing the actions.
  1455. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1456. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1457. return $ac_retval
  1458. } # ac_fn_c_try_link
  1459. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1460. # -------------------------------------------------------
  1461. # Tests whether HEADER exists and can be compiled using the include files in
  1462. # INCLUDES, setting the cache variable VAR accordingly.
  1463. ac_fn_c_check_header_compile ()
  1464. {
  1465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1467. $as_echo_n "checking for $2... " >&6; }
  1468. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1469. $as_echo_n "(cached) " >&6
  1470. else
  1471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_c_try_compile "$LINENO"; then :
  1477. eval "$3=yes"
  1478. else
  1479. eval "$3=no"
  1480. fi
  1481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1482. fi
  1483. eval ac_res=\$$3
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1485. $as_echo "$ac_res" >&6; }
  1486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1487. } # ac_fn_c_check_header_compile
  1488. # ac_fn_c_try_cpp LINENO
  1489. # ----------------------
  1490. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1491. ac_fn_c_try_cpp ()
  1492. {
  1493. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1494. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1495. case "(($ac_try" in
  1496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1497. *) ac_try_echo=$ac_try;;
  1498. esac
  1499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1500. $as_echo "$ac_try_echo"; } >&5
  1501. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1502. ac_status=$?
  1503. if test -s conftest.err; then
  1504. grep -v '^ *+' conftest.err >conftest.er1
  1505. cat conftest.er1 >&5
  1506. mv -f conftest.er1 conftest.err
  1507. fi
  1508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } >/dev/null && {
  1510. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1511. test ! -s conftest.err
  1512. }; then :
  1513. ac_retval=0
  1514. else
  1515. $as_echo "$as_me: failed program was:" >&5
  1516. sed 's/^/| /' conftest.$ac_ext >&5
  1517. ac_retval=1
  1518. fi
  1519. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1520. return $ac_retval
  1521. } # ac_fn_c_try_cpp
  1522. # ac_fn_c_try_run LINENO
  1523. # ----------------------
  1524. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1525. # that executables *can* be run.
  1526. ac_fn_c_try_run ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. if { { ac_try="$ac_link"
  1530. case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_link") 2>&5
  1537. ac_status=$?
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1540. { { case "(($ac_try" in
  1541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1542. *) ac_try_echo=$ac_try;;
  1543. esac
  1544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1545. $as_echo "$ac_try_echo"; } >&5
  1546. (eval "$ac_try") 2>&5
  1547. ac_status=$?
  1548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1549. test $ac_status = 0; }; }; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: program exited with status $ac_status" >&5
  1553. $as_echo "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=$ac_status
  1556. fi
  1557. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1558. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1559. return $ac_retval
  1560. } # ac_fn_c_try_run
  1561. # ac_fn_c_check_func LINENO FUNC VAR
  1562. # ----------------------------------
  1563. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1564. ac_fn_c_check_func ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1568. $as_echo_n "checking for $2... " >&6; }
  1569. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1570. $as_echo_n "(cached) " >&6
  1571. else
  1572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1573. /* end confdefs.h. */
  1574. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1575. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1576. #define $2 innocuous_$2
  1577. /* System header to define __stub macros and hopefully few prototypes,
  1578. which can conflict with char $2 (); below.
  1579. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1580. <limits.h> exists even on freestanding compilers. */
  1581. #ifdef __STDC__
  1582. # include <limits.h>
  1583. #else
  1584. # include <assert.h>
  1585. #endif
  1586. #undef $2
  1587. /* Override any GCC internal prototype to avoid an error.
  1588. Use char because int might match the return type of a GCC
  1589. builtin and then its argument prototype would still apply. */
  1590. #ifdef __cplusplus
  1591. extern "C"
  1592. #endif
  1593. char $2 ();
  1594. /* The GNU C library defines this for functions which it implements
  1595. to always fail with ENOSYS. Some functions are actually named
  1596. something starting with __ and the normal name is an alias. */
  1597. #if defined __stub_$2 || defined __stub___$2
  1598. choke me
  1599. #endif
  1600. int
  1601. main ()
  1602. {
  1603. return $2 ();
  1604. ;
  1605. return 0;
  1606. }
  1607. _ACEOF
  1608. if ac_fn_c_try_link "$LINENO"; then :
  1609. eval "$3=yes"
  1610. else
  1611. eval "$3=no"
  1612. fi
  1613. rm -f core conftest.err conftest.$ac_objext \
  1614. conftest$ac_exeext conftest.$ac_ext
  1615. fi
  1616. eval ac_res=\$$3
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1618. $as_echo "$ac_res" >&6; }
  1619. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1620. } # ac_fn_c_check_func
  1621. # ac_fn_cxx_try_cpp LINENO
  1622. # ------------------------
  1623. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1624. ac_fn_cxx_try_cpp ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1628. case "(($ac_try" in
  1629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1630. *) ac_try_echo=$ac_try;;
  1631. esac
  1632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1633. $as_echo "$ac_try_echo"; } >&5
  1634. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1635. ac_status=$?
  1636. if test -s conftest.err; then
  1637. grep -v '^ *+' conftest.err >conftest.er1
  1638. cat conftest.er1 >&5
  1639. mv -f conftest.er1 conftest.err
  1640. fi
  1641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1642. test $ac_status = 0; } >/dev/null && {
  1643. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1644. test ! -s conftest.err
  1645. }; then :
  1646. ac_retval=0
  1647. else
  1648. $as_echo "$as_me: failed program was:" >&5
  1649. sed 's/^/| /' conftest.$ac_ext >&5
  1650. ac_retval=1
  1651. fi
  1652. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1653. return $ac_retval
  1654. } # ac_fn_cxx_try_cpp
  1655. # ac_fn_cxx_try_link LINENO
  1656. # -------------------------
  1657. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1658. ac_fn_cxx_try_link ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. rm -f conftest.$ac_objext conftest$ac_exeext
  1662. if { { ac_try="$ac_link"
  1663. case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1668. $as_echo "$ac_try_echo"; } >&5
  1669. (eval "$ac_link") 2>conftest.err
  1670. ac_status=$?
  1671. if test -s conftest.err; then
  1672. grep -v '^ *+' conftest.err >conftest.er1
  1673. cat conftest.er1 >&5
  1674. mv -f conftest.er1 conftest.err
  1675. fi
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; } && {
  1678. test -z "$ac_cxx_werror_flag" ||
  1679. test ! -s conftest.err
  1680. } && test -s conftest$ac_exeext && {
  1681. test "$cross_compiling" = yes ||
  1682. $as_test_x conftest$ac_exeext
  1683. }; then :
  1684. ac_retval=0
  1685. else
  1686. $as_echo "$as_me: failed program was:" >&5
  1687. sed 's/^/| /' conftest.$ac_ext >&5
  1688. ac_retval=1
  1689. fi
  1690. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1691. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1692. # interfere with the next link command; also delete a directory that is
  1693. # left behind by Apple's compiler. We do this before executing the actions.
  1694. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1695. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1696. return $ac_retval
  1697. } # ac_fn_cxx_try_link
  1698. cat >config.log <<_ACEOF
  1699. This file contains any messages produced by compilers while
  1700. running configure, to aid debugging if configure makes a mistake.
  1701. It was created by Intel MIC Offload Plugin $as_me 1.0, which was
  1702. generated by GNU Autoconf 2.64. Invocation command line was
  1703. $ $0 $@
  1704. _ACEOF
  1705. exec 5>>config.log
  1706. {
  1707. cat <<_ASUNAME
  1708. ## --------- ##
  1709. ## Platform. ##
  1710. ## --------- ##
  1711. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1712. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1713. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1714. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1715. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1716. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1717. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1718. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1719. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1720. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1721. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1722. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1723. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1724. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1725. _ASUNAME
  1726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1727. for as_dir in $PATH
  1728. do
  1729. IFS=$as_save_IFS
  1730. test -z "$as_dir" && as_dir=.
  1731. $as_echo "PATH: $as_dir"
  1732. done
  1733. IFS=$as_save_IFS
  1734. } >&5
  1735. cat >&5 <<_ACEOF
  1736. ## ----------- ##
  1737. ## Core tests. ##
  1738. ## ----------- ##
  1739. _ACEOF
  1740. # Keep a trace of the command line.
  1741. # Strip out --no-create and --no-recursion so they do not pile up.
  1742. # Strip out --silent because we don't want to record it for future runs.
  1743. # Also quote any args containing shell meta-characters.
  1744. # Make two passes to allow for proper duplicate-argument suppression.
  1745. ac_configure_args=
  1746. ac_configure_args0=
  1747. ac_configure_args1=
  1748. ac_must_keep_next=false
  1749. for ac_pass in 1 2
  1750. do
  1751. for ac_arg
  1752. do
  1753. case $ac_arg in
  1754. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1755. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1756. | -silent | --silent | --silen | --sile | --sil)
  1757. continue ;;
  1758. *\'*)
  1759. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1760. esac
  1761. case $ac_pass in
  1762. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1763. 2)
  1764. as_fn_append ac_configure_args1 " '$ac_arg'"
  1765. if test $ac_must_keep_next = true; then
  1766. ac_must_keep_next=false # Got value, back to normal.
  1767. else
  1768. case $ac_arg in
  1769. *=* | --config-cache | -C | -disable-* | --disable-* \
  1770. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1771. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1772. | -with-* | --with-* | -without-* | --without-* | --x)
  1773. case "$ac_configure_args0 " in
  1774. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1775. esac
  1776. ;;
  1777. -* ) ac_must_keep_next=true ;;
  1778. esac
  1779. fi
  1780. as_fn_append ac_configure_args " '$ac_arg'"
  1781. ;;
  1782. esac
  1783. done
  1784. done
  1785. { ac_configure_args0=; unset ac_configure_args0;}
  1786. { ac_configure_args1=; unset ac_configure_args1;}
  1787. # When interrupted or exit'd, cleanup temporary files, and complete
  1788. # config.log. We remove comments because anyway the quotes in there
  1789. # would cause problems or look ugly.
  1790. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1791. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1792. trap 'exit_status=$?
  1793. # Save into config.log some information that might help in debugging.
  1794. {
  1795. echo
  1796. cat <<\_ASBOX
  1797. ## ---------------- ##
  1798. ## Cache variables. ##
  1799. ## ---------------- ##
  1800. _ASBOX
  1801. echo
  1802. # The following way of writing the cache mishandles newlines in values,
  1803. (
  1804. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1805. eval ac_val=\$$ac_var
  1806. case $ac_val in #(
  1807. *${as_nl}*)
  1808. case $ac_var in #(
  1809. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1810. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1811. esac
  1812. case $ac_var in #(
  1813. _ | IFS | as_nl) ;; #(
  1814. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1815. *) { eval $ac_var=; unset $ac_var;} ;;
  1816. esac ;;
  1817. esac
  1818. done
  1819. (set) 2>&1 |
  1820. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1821. *${as_nl}ac_space=\ *)
  1822. sed -n \
  1823. "s/'\''/'\''\\\\'\'''\''/g;
  1824. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1825. ;; #(
  1826. *)
  1827. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1828. ;;
  1829. esac |
  1830. sort
  1831. )
  1832. echo
  1833. cat <<\_ASBOX
  1834. ## ----------------- ##
  1835. ## Output variables. ##
  1836. ## ----------------- ##
  1837. _ASBOX
  1838. echo
  1839. for ac_var in $ac_subst_vars
  1840. do
  1841. eval ac_val=\$$ac_var
  1842. case $ac_val in
  1843. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1844. esac
  1845. $as_echo "$ac_var='\''$ac_val'\''"
  1846. done | sort
  1847. echo
  1848. if test -n "$ac_subst_files"; then
  1849. cat <<\_ASBOX
  1850. ## ------------------- ##
  1851. ## File substitutions. ##
  1852. ## ------------------- ##
  1853. _ASBOX
  1854. echo
  1855. for ac_var in $ac_subst_files
  1856. do
  1857. eval ac_val=\$$ac_var
  1858. case $ac_val in
  1859. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1860. esac
  1861. $as_echo "$ac_var='\''$ac_val'\''"
  1862. done | sort
  1863. echo
  1864. fi
  1865. if test -s confdefs.h; then
  1866. cat <<\_ASBOX
  1867. ## ----------- ##
  1868. ## confdefs.h. ##
  1869. ## ----------- ##
  1870. _ASBOX
  1871. echo
  1872. cat confdefs.h
  1873. echo
  1874. fi
  1875. test "$ac_signal" != 0 &&
  1876. $as_echo "$as_me: caught signal $ac_signal"
  1877. $as_echo "$as_me: exit $exit_status"
  1878. } >&5
  1879. rm -f core *.core core.conftest.* &&
  1880. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1881. exit $exit_status
  1882. ' 0
  1883. for ac_signal in 1 2 13 15; do
  1884. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1885. done
  1886. ac_signal=0
  1887. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1888. rm -f -r conftest* confdefs.h
  1889. $as_echo "/* confdefs.h */" > confdefs.h
  1890. # Predefined preprocessor variables.
  1891. cat >>confdefs.h <<_ACEOF
  1892. #define PACKAGE_NAME "$PACKAGE_NAME"
  1893. _ACEOF
  1894. cat >>confdefs.h <<_ACEOF
  1895. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1896. _ACEOF
  1897. cat >>confdefs.h <<_ACEOF
  1898. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1899. _ACEOF
  1900. cat >>confdefs.h <<_ACEOF
  1901. #define PACKAGE_STRING "$PACKAGE_STRING"
  1902. _ACEOF
  1903. cat >>confdefs.h <<_ACEOF
  1904. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1905. _ACEOF
  1906. cat >>confdefs.h <<_ACEOF
  1907. #define PACKAGE_URL "$PACKAGE_URL"
  1908. _ACEOF
  1909. # Let the site file select an alternate cache file if it wants to.
  1910. # Prefer an explicitly selected file to automatically selected ones.
  1911. ac_site_file1=NONE
  1912. ac_site_file2=NONE
  1913. if test -n "$CONFIG_SITE"; then
  1914. ac_site_file1=$CONFIG_SITE
  1915. elif test "x$prefix" != xNONE; then
  1916. ac_site_file1=$prefix/share/config.site
  1917. ac_site_file2=$prefix/etc/config.site
  1918. else
  1919. ac_site_file1=$ac_default_prefix/share/config.site
  1920. ac_site_file2=$ac_default_prefix/etc/config.site
  1921. fi
  1922. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1923. do
  1924. test "x$ac_site_file" = xNONE && continue
  1925. if test -r "$ac_site_file"; then
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1927. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1928. sed 's/^/| /' "$ac_site_file" >&5
  1929. . "$ac_site_file"
  1930. fi
  1931. done
  1932. if test -r "$cache_file"; then
  1933. # Some versions of bash will fail to source /dev/null (special
  1934. # files actually), so we avoid doing that.
  1935. if test -f "$cache_file"; then
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1937. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1938. case $cache_file in
  1939. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1940. *) . "./$cache_file";;
  1941. esac
  1942. fi
  1943. else
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1945. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1946. >$cache_file
  1947. fi
  1948. # Check that the precious variables saved in the cache have kept the same
  1949. # value.
  1950. ac_cache_corrupted=false
  1951. for ac_var in $ac_precious_vars; do
  1952. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1953. eval ac_new_set=\$ac_env_${ac_var}_set
  1954. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1955. eval ac_new_val=\$ac_env_${ac_var}_value
  1956. case $ac_old_set,$ac_new_set in
  1957. set,)
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1959. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1960. ac_cache_corrupted=: ;;
  1961. ,set)
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1963. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1964. ac_cache_corrupted=: ;;
  1965. ,);;
  1966. *)
  1967. if test "x$ac_old_val" != "x$ac_new_val"; then
  1968. # differences in whitespace do not lead to failure.
  1969. ac_old_val_w=`echo x $ac_old_val`
  1970. ac_new_val_w=`echo x $ac_new_val`
  1971. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1973. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1974. ac_cache_corrupted=:
  1975. else
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1977. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1978. eval $ac_var=\$ac_old_val
  1979. fi
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1981. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1983. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1984. fi;;
  1985. esac
  1986. # Pass precious variables to config.status.
  1987. if test "$ac_new_set" = set; then
  1988. case $ac_new_val in
  1989. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1990. *) ac_arg=$ac_var=$ac_new_val ;;
  1991. esac
  1992. case " $ac_configure_args " in
  1993. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1994. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1995. esac
  1996. fi
  1997. done
  1998. if $ac_cache_corrupted; then
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2000. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2002. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2003. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2004. fi
  2005. ## -------------------- ##
  2006. ## Main body of script. ##
  2007. ## -------------------- ##
  2008. ac_ext=c
  2009. ac_cpp='$CPP $CPPFLAGS'
  2010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2013. ac_aux_dir=
  2014. for ac_dir in ../.. "$srcdir"/../..; do
  2015. for ac_t in install-sh install.sh shtool; do
  2016. if test -f "$ac_dir/$ac_t"; then
  2017. ac_aux_dir=$ac_dir
  2018. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2019. break 2
  2020. fi
  2021. done
  2022. done
  2023. if test -z "$ac_aux_dir"; then
  2024. as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
  2025. fi
  2026. # These three variables are undocumented and unsupported,
  2027. # and are intended to be withdrawn in a future Autoconf release.
  2028. # They can cause serious problems if a builder's source tree is in a directory
  2029. # whose full name contains unusual characters.
  2030. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2031. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2032. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2033. # Make sure we can run config.sub.
  2034. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2035. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2037. $as_echo_n "checking build system type... " >&6; }
  2038. if test "${ac_cv_build+set}" = set; then :
  2039. $as_echo_n "(cached) " >&6
  2040. else
  2041. ac_build_alias=$build_alias
  2042. test "x$ac_build_alias" = x &&
  2043. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2044. test "x$ac_build_alias" = x &&
  2045. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2046. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2047. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2048. fi
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2050. $as_echo "$ac_cv_build" >&6; }
  2051. case $ac_cv_build in
  2052. *-*-*) ;;
  2053. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2054. esac
  2055. build=$ac_cv_build
  2056. ac_save_IFS=$IFS; IFS='-'
  2057. set x $ac_cv_build
  2058. shift
  2059. build_cpu=$1
  2060. build_vendor=$2
  2061. shift; shift
  2062. # Remember, the first character of IFS is used to create $*,
  2063. # except with old shells:
  2064. build_os=$*
  2065. IFS=$ac_save_IFS
  2066. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2068. $as_echo_n "checking host system type... " >&6; }
  2069. if test "${ac_cv_host+set}" = set; then :
  2070. $as_echo_n "(cached) " >&6
  2071. else
  2072. if test "x$host_alias" = x; then
  2073. ac_cv_host=$ac_cv_build
  2074. else
  2075. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2076. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2077. fi
  2078. fi
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2080. $as_echo "$ac_cv_host" >&6; }
  2081. case $ac_cv_host in
  2082. *-*-*) ;;
  2083. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2084. esac
  2085. host=$ac_cv_host
  2086. ac_save_IFS=$IFS; IFS='-'
  2087. set x $ac_cv_host
  2088. shift
  2089. host_cpu=$1
  2090. host_vendor=$2
  2091. shift; shift
  2092. # Remember, the first character of IFS is used to create $*,
  2093. # except with old shells:
  2094. host_os=$*
  2095. IFS=$ac_save_IFS
  2096. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2098. $as_echo_n "checking target system type... " >&6; }
  2099. if test "${ac_cv_target+set}" = set; then :
  2100. $as_echo_n "(cached) " >&6
  2101. else
  2102. if test "x$target_alias" = x; then
  2103. ac_cv_target=$ac_cv_host
  2104. else
  2105. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2106. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2107. fi
  2108. fi
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2110. $as_echo "$ac_cv_target" >&6; }
  2111. case $ac_cv_target in
  2112. *-*-*) ;;
  2113. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2114. esac
  2115. target=$ac_cv_target
  2116. ac_save_IFS=$IFS; IFS='-'
  2117. set x $ac_cv_target
  2118. shift
  2119. target_cpu=$1
  2120. target_vendor=$2
  2121. shift; shift
  2122. # Remember, the first character of IFS is used to create $*,
  2123. # except with old shells:
  2124. target_os=$*
  2125. IFS=$ac_save_IFS
  2126. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2127. # The aliases save the names the user supplied, while $host etc.
  2128. # will get canonicalized.
  2129. test -n "$target_alias" &&
  2130. test "$program_prefix$program_suffix$program_transform_name" = \
  2131. NONENONEs,x,x, &&
  2132. program_prefix=${target_alias}-
  2133. target_alias=${target_alias-$host_alias}
  2134. am__api_version='1.11'
  2135. # Find a good install program. We prefer a C program (faster),
  2136. # so one script is as good as another. But avoid the broken or
  2137. # incompatible versions:
  2138. # SysV /etc/install, /usr/sbin/install
  2139. # SunOS /usr/etc/install
  2140. # IRIX /sbin/install
  2141. # AIX /bin/install
  2142. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2143. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2144. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2145. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2146. # OS/2's system install, which has a completely different semantic
  2147. # ./install, which can be erroneously created by make from ./install.sh.
  2148. # Reject install programs that cannot install multiple files.
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2150. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2151. if test -z "$INSTALL"; then
  2152. if test "${ac_cv_path_install+set}" = set; then :
  2153. $as_echo_n "(cached) " >&6
  2154. else
  2155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2156. for as_dir in $PATH
  2157. do
  2158. IFS=$as_save_IFS
  2159. test -z "$as_dir" && as_dir=.
  2160. # Account for people who put trailing slashes in PATH elements.
  2161. case $as_dir/ in #((
  2162. ./ | .// | /[cC]/* | \
  2163. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2164. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2165. /usr/ucb/* ) ;;
  2166. *)
  2167. # OSF1 and SCO ODT 3.0 have their own names for install.
  2168. # Don't use installbsd from OSF since it installs stuff as root
  2169. # by default.
  2170. for ac_prog in ginstall scoinst install; do
  2171. for ac_exec_ext in '' $ac_executable_extensions; do
  2172. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2173. if test $ac_prog = install &&
  2174. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2175. # AIX install. It has an incompatible calling convention.
  2176. :
  2177. elif test $ac_prog = install &&
  2178. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2179. # program-specific install script used by HP pwplus--don't use.
  2180. :
  2181. else
  2182. rm -rf conftest.one conftest.two conftest.dir
  2183. echo one > conftest.one
  2184. echo two > conftest.two
  2185. mkdir conftest.dir
  2186. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2187. test -s conftest.one && test -s conftest.two &&
  2188. test -s conftest.dir/conftest.one &&
  2189. test -s conftest.dir/conftest.two
  2190. then
  2191. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2192. break 3
  2193. fi
  2194. fi
  2195. fi
  2196. done
  2197. done
  2198. ;;
  2199. esac
  2200. done
  2201. IFS=$as_save_IFS
  2202. rm -rf conftest.one conftest.two conftest.dir
  2203. fi
  2204. if test "${ac_cv_path_install+set}" = set; then
  2205. INSTALL=$ac_cv_path_install
  2206. else
  2207. # As a last resort, use the slow shell script. Don't cache a
  2208. # value for INSTALL within a source directory, because that will
  2209. # break other packages using the cache if that directory is
  2210. # removed, or if the value is a relative name.
  2211. INSTALL=$ac_install_sh
  2212. fi
  2213. fi
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2215. $as_echo "$INSTALL" >&6; }
  2216. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2217. # It thinks the first close brace ends the variable substitution.
  2218. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2219. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2220. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2222. $as_echo_n "checking whether build environment is sane... " >&6; }
  2223. # Just in case
  2224. sleep 1
  2225. echo timestamp > conftest.file
  2226. # Reject unsafe characters in $srcdir or the absolute working directory
  2227. # name. Accept space and tab only in the latter.
  2228. am_lf='
  2229. '
  2230. case `pwd` in
  2231. *[\\\"\#\$\&\'\`$am_lf]*)
  2232. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2233. esac
  2234. case $srcdir in
  2235. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2236. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2237. esac
  2238. # Do `set' in a subshell so we don't clobber the current shell's
  2239. # arguments. Must try -L first in case configure is actually a
  2240. # symlink; some systems play weird games with the mod time of symlinks
  2241. # (eg FreeBSD returns the mod time of the symlink's containing
  2242. # directory).
  2243. if (
  2244. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2245. if test "$*" = "X"; then
  2246. # -L didn't work.
  2247. set X `ls -t "$srcdir/configure" conftest.file`
  2248. fi
  2249. rm -f conftest.file
  2250. if test "$*" != "X $srcdir/configure conftest.file" \
  2251. && test "$*" != "X conftest.file $srcdir/configure"; then
  2252. # If neither matched, then we have a broken ls. This can happen
  2253. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2254. # broken ls alias from the environment. This has actually
  2255. # happened. Such a system could not be considered "sane".
  2256. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2257. alias in your environment" "$LINENO" 5
  2258. fi
  2259. test "$2" = conftest.file
  2260. )
  2261. then
  2262. # Ok.
  2263. :
  2264. else
  2265. as_fn_error "newly created file is older than distributed files!
  2266. Check your system clock" "$LINENO" 5
  2267. fi
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2269. $as_echo "yes" >&6; }
  2270. test "$program_prefix" != NONE &&
  2271. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2272. # Use a double $ so make ignores it.
  2273. test "$program_suffix" != NONE &&
  2274. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2275. # Double any \ or $.
  2276. # By default was `s,x,x', remove it if useless.
  2277. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2278. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2279. # expand $ac_aux_dir to an absolute path
  2280. am_aux_dir=`cd $ac_aux_dir && pwd`
  2281. if test x"${MISSING+set}" != xset; then
  2282. case $am_aux_dir in
  2283. *\ * | *\ *)
  2284. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2285. *)
  2286. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2287. esac
  2288. fi
  2289. # Use eval to expand $SHELL
  2290. if eval "$MISSING --run true"; then
  2291. am_missing_run="$MISSING --run "
  2292. else
  2293. am_missing_run=
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2295. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2296. fi
  2297. if test x"${install_sh}" != xset; then
  2298. case $am_aux_dir in
  2299. *\ * | *\ *)
  2300. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2301. *)
  2302. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2303. esac
  2304. fi
  2305. # Installed binaries are usually stripped using `strip' when the user
  2306. # run `make install-strip'. However `strip' might not be the right
  2307. # tool to use in cross-compilation environments, therefore Automake
  2308. # will honor the `STRIP' environment variable to overrule this program.
  2309. if test "$cross_compiling" != no; then
  2310. if test -n "$ac_tool_prefix"; then
  2311. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2312. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2314. $as_echo_n "checking for $ac_word... " >&6; }
  2315. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2316. $as_echo_n "(cached) " >&6
  2317. else
  2318. if test -n "$STRIP"; then
  2319. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2320. else
  2321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2322. for as_dir in $PATH
  2323. do
  2324. IFS=$as_save_IFS
  2325. test -z "$as_dir" && as_dir=.
  2326. for ac_exec_ext in '' $ac_executable_extensions; do
  2327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2328. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2330. break 2
  2331. fi
  2332. done
  2333. done
  2334. IFS=$as_save_IFS
  2335. fi
  2336. fi
  2337. STRIP=$ac_cv_prog_STRIP
  2338. if test -n "$STRIP"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2340. $as_echo "$STRIP" >&6; }
  2341. else
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2343. $as_echo "no" >&6; }
  2344. fi
  2345. fi
  2346. if test -z "$ac_cv_prog_STRIP"; then
  2347. ac_ct_STRIP=$STRIP
  2348. # Extract the first word of "strip", so it can be a program name with args.
  2349. set dummy strip; ac_word=$2
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2351. $as_echo_n "checking for $ac_word... " >&6; }
  2352. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2353. $as_echo_n "(cached) " >&6
  2354. else
  2355. if test -n "$ac_ct_STRIP"; then
  2356. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2357. else
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2365. ac_cv_prog_ac_ct_STRIP="strip"
  2366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2367. break 2
  2368. fi
  2369. done
  2370. done
  2371. IFS=$as_save_IFS
  2372. fi
  2373. fi
  2374. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2375. if test -n "$ac_ct_STRIP"; then
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2377. $as_echo "$ac_ct_STRIP" >&6; }
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2380. $as_echo "no" >&6; }
  2381. fi
  2382. if test "x$ac_ct_STRIP" = x; then
  2383. STRIP=":"
  2384. else
  2385. case $cross_compiling:$ac_tool_warned in
  2386. yes:)
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2388. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2389. ac_tool_warned=yes ;;
  2390. esac
  2391. STRIP=$ac_ct_STRIP
  2392. fi
  2393. else
  2394. STRIP="$ac_cv_prog_STRIP"
  2395. fi
  2396. fi
  2397. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2399. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2400. if test -z "$MKDIR_P"; then
  2401. if test "${ac_cv_path_mkdir+set}" = set; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2405. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2406. do
  2407. IFS=$as_save_IFS
  2408. test -z "$as_dir" && as_dir=.
  2409. for ac_prog in mkdir gmkdir; do
  2410. for ac_exec_ext in '' $ac_executable_extensions; do
  2411. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2412. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2413. 'mkdir (GNU coreutils) '* | \
  2414. 'mkdir (coreutils) '* | \
  2415. 'mkdir (fileutils) '4.1*)
  2416. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2417. break 3;;
  2418. esac
  2419. done
  2420. done
  2421. done
  2422. IFS=$as_save_IFS
  2423. fi
  2424. if test "${ac_cv_path_mkdir+set}" = set; then
  2425. MKDIR_P="$ac_cv_path_mkdir -p"
  2426. else
  2427. # As a last resort, use the slow shell script. Don't cache a
  2428. # value for MKDIR_P within a source directory, because that will
  2429. # break other packages using the cache if that directory is
  2430. # removed, or if the value is a relative name.
  2431. test -d ./--version && rmdir ./--version
  2432. MKDIR_P="$ac_install_sh -d"
  2433. fi
  2434. fi
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2436. $as_echo "$MKDIR_P" >&6; }
  2437. mkdir_p="$MKDIR_P"
  2438. case $mkdir_p in
  2439. [\\/$]* | ?:[\\/]*) ;;
  2440. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2441. esac
  2442. for ac_prog in gawk mawk nawk awk
  2443. do
  2444. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2445. set dummy $ac_prog; ac_word=$2
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2447. $as_echo_n "checking for $ac_word... " >&6; }
  2448. if test "${ac_cv_prog_AWK+set}" = set; then :
  2449. $as_echo_n "(cached) " >&6
  2450. else
  2451. if test -n "$AWK"; then
  2452. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2453. else
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2461. ac_cv_prog_AWK="$ac_prog"
  2462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2463. break 2
  2464. fi
  2465. done
  2466. done
  2467. IFS=$as_save_IFS
  2468. fi
  2469. fi
  2470. AWK=$ac_cv_prog_AWK
  2471. if test -n "$AWK"; then
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2473. $as_echo "$AWK" >&6; }
  2474. else
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2476. $as_echo "no" >&6; }
  2477. fi
  2478. test -n "$AWK" && break
  2479. done
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2481. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2482. set x ${MAKE-make}
  2483. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2484. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2485. $as_echo_n "(cached) " >&6
  2486. else
  2487. cat >conftest.make <<\_ACEOF
  2488. SHELL = /bin/sh
  2489. all:
  2490. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2491. _ACEOF
  2492. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2493. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2494. *@@@%%%=?*=@@@%%%*)
  2495. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2496. *)
  2497. eval ac_cv_prog_make_${ac_make}_set=no;;
  2498. esac
  2499. rm -f conftest.make
  2500. fi
  2501. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2503. $as_echo "yes" >&6; }
  2504. SET_MAKE=
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2507. $as_echo "no" >&6; }
  2508. SET_MAKE="MAKE=${MAKE-make}"
  2509. fi
  2510. rm -rf .tst 2>/dev/null
  2511. mkdir .tst 2>/dev/null
  2512. if test -d .tst; then
  2513. am__leading_dot=.
  2514. else
  2515. am__leading_dot=_
  2516. fi
  2517. rmdir .tst 2>/dev/null
  2518. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2519. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2520. # is not polluted with repeated "-I."
  2521. am__isrc=' -I$(srcdir)'
  2522. # test to see if srcdir already configured
  2523. if test -f $srcdir/config.status; then
  2524. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2525. fi
  2526. fi
  2527. # test whether we have cygpath
  2528. if test -z "$CYGPATH_W"; then
  2529. if (cygpath --version) >/dev/null 2>/dev/null; then
  2530. CYGPATH_W='cygpath -w'
  2531. else
  2532. CYGPATH_W=echo
  2533. fi
  2534. fi
  2535. # Define the identity of the package.
  2536. PACKAGE='libgomp-plugin-intelmic'
  2537. VERSION='1.0'
  2538. cat >>confdefs.h <<_ACEOF
  2539. #define PACKAGE "$PACKAGE"
  2540. _ACEOF
  2541. cat >>confdefs.h <<_ACEOF
  2542. #define VERSION "$VERSION"
  2543. _ACEOF
  2544. # Some tools Automake needs.
  2545. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2546. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2547. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2548. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2549. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2550. # We need awk for the "check" target. The system "awk" is bad on
  2551. # some platforms.
  2552. # Always define AMTAR for backward compatibility.
  2553. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2554. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2556. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2557. # Check whether --enable-maintainer-mode was given.
  2558. if test "${enable_maintainer_mode+set}" = set; then :
  2559. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2560. else
  2561. USE_MAINTAINER_MODE=no
  2562. fi
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2564. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2565. if test $USE_MAINTAINER_MODE = yes; then
  2566. MAINTAINER_MODE_TRUE=
  2567. MAINTAINER_MODE_FALSE='#'
  2568. else
  2569. MAINTAINER_MODE_TRUE='#'
  2570. MAINTAINER_MODE_FALSE=
  2571. fi
  2572. MAINT=$MAINTAINER_MODE_TRUE
  2573. ac_ext=c
  2574. ac_cpp='$CPP $CPPFLAGS'
  2575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2578. if test -n "$ac_tool_prefix"; then
  2579. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2580. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2582. $as_echo_n "checking for $ac_word... " >&6; }
  2583. if test "${ac_cv_prog_CC+set}" = set; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. if test -n "$CC"; then
  2587. ac_cv_prog_CC="$CC" # Let the user override the test.
  2588. else
  2589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2590. for as_dir in $PATH
  2591. do
  2592. IFS=$as_save_IFS
  2593. test -z "$as_dir" && as_dir=.
  2594. for ac_exec_ext in '' $ac_executable_extensions; do
  2595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2596. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2598. break 2
  2599. fi
  2600. done
  2601. done
  2602. IFS=$as_save_IFS
  2603. fi
  2604. fi
  2605. CC=$ac_cv_prog_CC
  2606. if test -n "$CC"; then
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2608. $as_echo "$CC" >&6; }
  2609. else
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2611. $as_echo "no" >&6; }
  2612. fi
  2613. fi
  2614. if test -z "$ac_cv_prog_CC"; then
  2615. ac_ct_CC=$CC
  2616. # Extract the first word of "gcc", so it can be a program name with args.
  2617. set dummy gcc; ac_word=$2
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2619. $as_echo_n "checking for $ac_word... " >&6; }
  2620. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2621. $as_echo_n "(cached) " >&6
  2622. else
  2623. if test -n "$ac_ct_CC"; then
  2624. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2625. else
  2626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2627. for as_dir in $PATH
  2628. do
  2629. IFS=$as_save_IFS
  2630. test -z "$as_dir" && as_dir=.
  2631. for ac_exec_ext in '' $ac_executable_extensions; do
  2632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2633. ac_cv_prog_ac_ct_CC="gcc"
  2634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2635. break 2
  2636. fi
  2637. done
  2638. done
  2639. IFS=$as_save_IFS
  2640. fi
  2641. fi
  2642. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2643. if test -n "$ac_ct_CC"; then
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2645. $as_echo "$ac_ct_CC" >&6; }
  2646. else
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2648. $as_echo "no" >&6; }
  2649. fi
  2650. if test "x$ac_ct_CC" = x; then
  2651. CC=""
  2652. else
  2653. case $cross_compiling:$ac_tool_warned in
  2654. yes:)
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2656. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2657. ac_tool_warned=yes ;;
  2658. esac
  2659. CC=$ac_ct_CC
  2660. fi
  2661. else
  2662. CC="$ac_cv_prog_CC"
  2663. fi
  2664. if test -z "$CC"; then
  2665. if test -n "$ac_tool_prefix"; then
  2666. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2667. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if test "${ac_cv_prog_CC+set}" = set; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$CC"; then
  2674. ac_cv_prog_CC="$CC" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2683. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. CC=$ac_cv_prog_CC
  2693. if test -n "$CC"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2695. $as_echo "$CC" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. fi
  2701. fi
  2702. if test -z "$CC"; then
  2703. # Extract the first word of "cc", so it can be a program name with args.
  2704. set dummy cc; ac_word=$2
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2706. $as_echo_n "checking for $ac_word... " >&6; }
  2707. if test "${ac_cv_prog_CC+set}" = set; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$CC"; then
  2711. ac_cv_prog_CC="$CC" # Let the user override the test.
  2712. else
  2713. ac_prog_rejected=no
  2714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2715. for as_dir in $PATH
  2716. do
  2717. IFS=$as_save_IFS
  2718. test -z "$as_dir" && as_dir=.
  2719. for ac_exec_ext in '' $ac_executable_extensions; do
  2720. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2721. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2722. ac_prog_rejected=yes
  2723. continue
  2724. fi
  2725. ac_cv_prog_CC="cc"
  2726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2727. break 2
  2728. fi
  2729. done
  2730. done
  2731. IFS=$as_save_IFS
  2732. if test $ac_prog_rejected = yes; then
  2733. # We found a bogon in the path, so make sure we never use it.
  2734. set dummy $ac_cv_prog_CC
  2735. shift
  2736. if test $# != 0; then
  2737. # We chose a different compiler from the bogus one.
  2738. # However, it has the same basename, so the bogon will be chosen
  2739. # first if we set CC to just the basename; use the full file name.
  2740. shift
  2741. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2742. fi
  2743. fi
  2744. fi
  2745. fi
  2746. CC=$ac_cv_prog_CC
  2747. if test -n "$CC"; then
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2749. $as_echo "$CC" >&6; }
  2750. else
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. $as_echo "no" >&6; }
  2753. fi
  2754. fi
  2755. if test -z "$CC"; then
  2756. if test -n "$ac_tool_prefix"; then
  2757. for ac_prog in cl.exe
  2758. do
  2759. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2760. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if test "${ac_cv_prog_CC+set}" = set; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$CC"; then
  2767. ac_cv_prog_CC="$CC" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2776. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. CC=$ac_cv_prog_CC
  2786. if test -n "$CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2788. $as_echo "$CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. test -n "$CC" && break
  2794. done
  2795. fi
  2796. if test -z "$CC"; then
  2797. ac_ct_CC=$CC
  2798. for ac_prog in cl.exe
  2799. do
  2800. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2801. set dummy $ac_prog; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$ac_ct_CC"; then
  2808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2817. ac_cv_prog_ac_ct_CC="$ac_prog"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2827. if test -n "$ac_ct_CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2829. $as_echo "$ac_ct_CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. test -n "$ac_ct_CC" && break
  2835. done
  2836. if test "x$ac_ct_CC" = x; then
  2837. CC=""
  2838. else
  2839. case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845. CC=$ac_ct_CC
  2846. fi
  2847. fi
  2848. fi
  2849. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2850. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2851. as_fn_error "no acceptable C compiler found in \$PATH
  2852. See \`config.log' for more details." "$LINENO" 5; }
  2853. # Provide some information about the compiler.
  2854. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2855. set X $ac_compile
  2856. ac_compiler=$2
  2857. for ac_option in --version -v -V -qversion; do
  2858. { { ac_try="$ac_compiler $ac_option >&5"
  2859. case "(($ac_try" in
  2860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2861. *) ac_try_echo=$ac_try;;
  2862. esac
  2863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2864. $as_echo "$ac_try_echo"; } >&5
  2865. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2866. ac_status=$?
  2867. if test -s conftest.err; then
  2868. sed '10a\
  2869. ... rest of stderr output deleted ...
  2870. 10q' conftest.err >conftest.er1
  2871. cat conftest.er1 >&5
  2872. rm -f conftest.er1 conftest.err
  2873. fi
  2874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2875. test $ac_status = 0; }
  2876. done
  2877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end confdefs.h. */
  2879. int
  2880. main ()
  2881. {
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. ac_clean_files_save=$ac_clean_files
  2887. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2888. # Try to create an executable without -o first, disregard a.out.
  2889. # It will help us diagnose broken compilers, and finding out an intuition
  2890. # of exeext.
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2892. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2893. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2894. # The possible output files:
  2895. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2896. ac_rmfiles=
  2897. for ac_file in $ac_files
  2898. do
  2899. case $ac_file in
  2900. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2901. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2902. esac
  2903. done
  2904. rm -f $ac_rmfiles
  2905. if { { ac_try="$ac_link_default"
  2906. case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2911. $as_echo "$ac_try_echo"; } >&5
  2912. (eval "$ac_link_default") 2>&5
  2913. ac_status=$?
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2915. test $ac_status = 0; }; then :
  2916. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2917. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2918. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2919. # so that the user can short-circuit this test for compilers unknown to
  2920. # Autoconf.
  2921. for ac_file in $ac_files ''
  2922. do
  2923. test -f "$ac_file" || continue
  2924. case $ac_file in
  2925. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2926. ;;
  2927. [ab].out )
  2928. # We found the default executable, but exeext='' is most
  2929. # certainly right.
  2930. break;;
  2931. *.* )
  2932. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2933. then :; else
  2934. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2935. fi
  2936. # We set ac_cv_exeext here because the later test for it is not
  2937. # safe: cross compilers may not add the suffix if given an `-o'
  2938. # argument, so we may need to know it at that point already.
  2939. # Even if this section looks crufty: it has the advantage of
  2940. # actually working.
  2941. break;;
  2942. * )
  2943. break;;
  2944. esac
  2945. done
  2946. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2947. else
  2948. ac_file=''
  2949. fi
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2951. $as_echo "$ac_file" >&6; }
  2952. if test -z "$ac_file"; then :
  2953. $as_echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2957. { as_fn_set_status 77
  2958. as_fn_error "C compiler cannot create executables
  2959. See \`config.log' for more details." "$LINENO" 5; }; }
  2960. fi
  2961. ac_exeext=$ac_cv_exeext
  2962. # Check that the compiler produces executables we can run. If not, either
  2963. # the compiler is broken, or we cross compile.
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2965. $as_echo_n "checking whether the C compiler works... " >&6; }
  2966. # If not cross compiling, check that we can run a simple program.
  2967. if test "$cross_compiling" != yes; then
  2968. if { ac_try='./$ac_file'
  2969. { { case "(($ac_try" in
  2970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2971. *) ac_try_echo=$ac_try;;
  2972. esac
  2973. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2974. $as_echo "$ac_try_echo"; } >&5
  2975. (eval "$ac_try") 2>&5
  2976. ac_status=$?
  2977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2978. test $ac_status = 0; }; }; then
  2979. cross_compiling=no
  2980. else
  2981. if test "$cross_compiling" = maybe; then
  2982. cross_compiling=yes
  2983. else
  2984. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2985. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2986. as_fn_error "cannot run C compiled programs.
  2987. If you meant to cross compile, use \`--host'.
  2988. See \`config.log' for more details." "$LINENO" 5; }
  2989. fi
  2990. fi
  2991. fi
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2993. $as_echo "yes" >&6; }
  2994. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2995. ac_clean_files=$ac_clean_files_save
  2996. # Check that the compiler produces executables we can run. If not, either
  2997. # the compiler is broken, or we cross compile.
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2999. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3001. $as_echo "$cross_compiling" >&6; }
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3003. $as_echo_n "checking for suffix of executables... " >&6; }
  3004. if { { ac_try="$ac_link"
  3005. case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010. $as_echo "$ac_try_echo"; } >&5
  3011. (eval "$ac_link") 2>&5
  3012. ac_status=$?
  3013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3014. test $ac_status = 0; }; then :
  3015. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3016. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3017. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3018. # `rm'.
  3019. for ac_file in conftest.exe conftest conftest.*; do
  3020. test -f "$ac_file" || continue
  3021. case $ac_file in
  3022. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3023. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3024. break;;
  3025. * ) break;;
  3026. esac
  3027. done
  3028. else
  3029. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3031. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3032. See \`config.log' for more details." "$LINENO" 5; }
  3033. fi
  3034. rm -f conftest$ac_cv_exeext
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3036. $as_echo "$ac_cv_exeext" >&6; }
  3037. rm -f conftest.$ac_ext
  3038. EXEEXT=$ac_cv_exeext
  3039. ac_exeext=$EXEEXT
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3041. $as_echo_n "checking for suffix of object files... " >&6; }
  3042. if test "${ac_cv_objext+set}" = set; then :
  3043. $as_echo_n "(cached) " >&6
  3044. else
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. rm -f conftest.o conftest.obj
  3055. if { { ac_try="$ac_compile"
  3056. case "(($ac_try" in
  3057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3058. *) ac_try_echo=$ac_try;;
  3059. esac
  3060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3061. $as_echo "$ac_try_echo"; } >&5
  3062. (eval "$ac_compile") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; then :
  3066. for ac_file in conftest.o conftest.obj conftest.*; 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 ) ;;
  3070. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3071. break;;
  3072. esac
  3073. done
  3074. else
  3075. $as_echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error "cannot compute suffix of object files: cannot compile
  3080. See \`config.log' for more details." "$LINENO" 5; }
  3081. fi
  3082. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3085. $as_echo "$ac_cv_objext" >&6; }
  3086. OBJEXT=$ac_cv_objext
  3087. ac_objext=$OBJEXT
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3089. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3090. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095. int
  3096. main ()
  3097. {
  3098. #ifndef __GNUC__
  3099. choke me
  3100. #endif
  3101. ;
  3102. return 0;
  3103. }
  3104. _ACEOF
  3105. if ac_fn_c_try_compile "$LINENO"; then :
  3106. ac_compiler_gnu=yes
  3107. else
  3108. ac_compiler_gnu=no
  3109. fi
  3110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3114. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3115. if test $ac_compiler_gnu = yes; then
  3116. GCC=yes
  3117. else
  3118. GCC=
  3119. fi
  3120. ac_test_CFLAGS=${CFLAGS+set}
  3121. ac_save_CFLAGS=$CFLAGS
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3123. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3124. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. ac_save_c_werror_flag=$ac_c_werror_flag
  3128. ac_c_werror_flag=yes
  3129. ac_cv_prog_cc_g=no
  3130. CFLAGS="-g"
  3131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3132. /* end confdefs.h. */
  3133. int
  3134. main ()
  3135. {
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. if ac_fn_c_try_compile "$LINENO"; then :
  3141. ac_cv_prog_cc_g=yes
  3142. else
  3143. CFLAGS=""
  3144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3145. /* end confdefs.h. */
  3146. int
  3147. main ()
  3148. {
  3149. ;
  3150. return 0;
  3151. }
  3152. _ACEOF
  3153. if ac_fn_c_try_compile "$LINENO"; then :
  3154. else
  3155. ac_c_werror_flag=$ac_save_c_werror_flag
  3156. CFLAGS="-g"
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. ac_cv_prog_cc_g=yes
  3168. fi
  3169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. ac_c_werror_flag=$ac_save_c_werror_flag
  3175. fi
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3177. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3178. if test "$ac_test_CFLAGS" = set; then
  3179. CFLAGS=$ac_save_CFLAGS
  3180. elif test $ac_cv_prog_cc_g = yes; then
  3181. if test "$GCC" = yes; then
  3182. CFLAGS="-g -O2"
  3183. else
  3184. CFLAGS="-g"
  3185. fi
  3186. else
  3187. if test "$GCC" = yes; then
  3188. CFLAGS="-O2"
  3189. else
  3190. CFLAGS=
  3191. fi
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3194. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3195. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. ac_cv_prog_cc_c89=no
  3199. ac_save_CC=$CC
  3200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3201. /* end confdefs.h. */
  3202. #include <stdarg.h>
  3203. #include <stdio.h>
  3204. #include <sys/types.h>
  3205. #include <sys/stat.h>
  3206. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3207. struct buf { int x; };
  3208. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3209. static char *e (p, i)
  3210. char **p;
  3211. int i;
  3212. {
  3213. return p[i];
  3214. }
  3215. static char *f (char * (*g) (char **, int), char **p, ...)
  3216. {
  3217. char *s;
  3218. va_list v;
  3219. va_start (v,p);
  3220. s = g (p, va_arg (v,int));
  3221. va_end (v);
  3222. return s;
  3223. }
  3224. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3225. function prototypes and stuff, but not '\xHH' hex character constants.
  3226. These don't provoke an error unfortunately, instead are silently treated
  3227. as 'x'. The following induces an error, until -std is added to get
  3228. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3229. array size at least. It's necessary to write '\x00'==0 to get something
  3230. that's true only with -std. */
  3231. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3232. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3233. inside strings and character constants. */
  3234. #define FOO(x) 'x'
  3235. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3236. int test (int i, double x);
  3237. struct s1 {int (*f) (int a);};
  3238. struct s2 {int (*f) (double a);};
  3239. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3240. int argc;
  3241. char **argv;
  3242. int
  3243. main ()
  3244. {
  3245. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3246. ;
  3247. return 0;
  3248. }
  3249. _ACEOF
  3250. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3251. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3252. do
  3253. CC="$ac_save_CC $ac_arg"
  3254. if ac_fn_c_try_compile "$LINENO"; then :
  3255. ac_cv_prog_cc_c89=$ac_arg
  3256. fi
  3257. rm -f core conftest.err conftest.$ac_objext
  3258. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3259. done
  3260. rm -f conftest.$ac_ext
  3261. CC=$ac_save_CC
  3262. fi
  3263. # AC_CACHE_VAL
  3264. case "x$ac_cv_prog_cc_c89" in
  3265. x)
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3267. $as_echo "none needed" >&6; } ;;
  3268. xno)
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3270. $as_echo "unsupported" >&6; } ;;
  3271. *)
  3272. CC="$CC $ac_cv_prog_cc_c89"
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3274. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3275. esac
  3276. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3277. fi
  3278. ac_ext=c
  3279. ac_cpp='$CPP $CPPFLAGS'
  3280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3283. DEPDIR="${am__leading_dot}deps"
  3284. ac_config_commands="$ac_config_commands depfiles"
  3285. am_make=${MAKE-make}
  3286. cat > confinc << 'END'
  3287. am__doit:
  3288. @echo this is the am__doit target
  3289. .PHONY: am__doit
  3290. END
  3291. # If we don't find an include directive, just comment out the code.
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3293. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3294. am__include="#"
  3295. am__quote=
  3296. _am_result=none
  3297. # First try GNU make style include.
  3298. echo "include confinc" > confmf
  3299. # Ignore all kinds of additional output from `make'.
  3300. case `$am_make -s -f confmf 2> /dev/null` in #(
  3301. *the\ am__doit\ target*)
  3302. am__include=include
  3303. am__quote=
  3304. _am_result=GNU
  3305. ;;
  3306. esac
  3307. # Now try BSD make style include.
  3308. if test "$am__include" = "#"; then
  3309. echo '.include "confinc"' > confmf
  3310. case `$am_make -s -f confmf 2> /dev/null` in #(
  3311. *the\ am__doit\ target*)
  3312. am__include=.include
  3313. am__quote="\""
  3314. _am_result=BSD
  3315. ;;
  3316. esac
  3317. fi
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3319. $as_echo "$_am_result" >&6; }
  3320. rm -f confinc confmf
  3321. # Check whether --enable-dependency-tracking was given.
  3322. if test "${enable_dependency_tracking+set}" = set; then :
  3323. enableval=$enable_dependency_tracking;
  3324. fi
  3325. if test "x$enable_dependency_tracking" != xno; then
  3326. am_depcomp="$ac_aux_dir/depcomp"
  3327. AMDEPBACKSLASH='\'
  3328. fi
  3329. if test "x$enable_dependency_tracking" != xno; then
  3330. AMDEP_TRUE=
  3331. AMDEP_FALSE='#'
  3332. else
  3333. AMDEP_TRUE='#'
  3334. AMDEP_FALSE=
  3335. fi
  3336. depcc="$CC" am_compiler_list=
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3338. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3339. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3343. # We make a subdir and do the tests there. Otherwise we can end up
  3344. # making bogus files that we don't know about and never remove. For
  3345. # instance it was reported that on HP-UX the gcc test will end up
  3346. # making a dummy file named `D' -- because `-MD' means `put the output
  3347. # in D'.
  3348. mkdir conftest.dir
  3349. # Copy depcomp to subdir because otherwise we won't find it if we're
  3350. # using a relative directory.
  3351. cp "$am_depcomp" conftest.dir
  3352. cd conftest.dir
  3353. # We will build objects and dependencies in a subdirectory because
  3354. # it helps to detect inapplicable dependency modes. For instance
  3355. # both Tru64's cc and ICC support -MD to output dependencies as a
  3356. # side effect of compilation, but ICC will put the dependencies in
  3357. # the current directory while Tru64 will put them in the object
  3358. # directory.
  3359. mkdir sub
  3360. am_cv_CC_dependencies_compiler_type=none
  3361. if test "$am_compiler_list" = ""; then
  3362. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3363. fi
  3364. am__universal=false
  3365. case " $depcc " in #(
  3366. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3367. esac
  3368. for depmode in $am_compiler_list; do
  3369. # Setup a source with many dependencies, because some compilers
  3370. # like to wrap large dependency lists on column 80 (with \), and
  3371. # we should not choose a depcomp mode which is confused by this.
  3372. #
  3373. # We need to recreate these files for each test, as the compiler may
  3374. # overwrite some of them when testing with obscure command lines.
  3375. # This happens at least with the AIX C compiler.
  3376. : > sub/conftest.c
  3377. for i in 1 2 3 4 5 6; do
  3378. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3379. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3380. # Solaris 8's {/usr,}/bin/sh.
  3381. touch sub/conftst$i.h
  3382. done
  3383. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3384. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3385. # mode. It turns out that the SunPro C++ compiler does not properly
  3386. # handle `-M -o', and we need to detect this. Also, some Intel
  3387. # versions had trouble with output in subdirs
  3388. am__obj=sub/conftest.${OBJEXT-o}
  3389. am__minus_obj="-o $am__obj"
  3390. case $depmode in
  3391. gcc)
  3392. # This depmode causes a compiler race in universal mode.
  3393. test "$am__universal" = false || continue
  3394. ;;
  3395. nosideeffect)
  3396. # after this tag, mechanisms are not by side-effect, so they'll
  3397. # only be used when explicitly requested
  3398. if test "x$enable_dependency_tracking" = xyes; then
  3399. continue
  3400. else
  3401. break
  3402. fi
  3403. ;;
  3404. msvisualcpp | msvcmsys)
  3405. # This compiler won't grok `-c -o', but also, the minuso test has
  3406. # not run yet. These depmodes are late enough in the game, and
  3407. # so weak that their functioning should not be impacted.
  3408. am__obj=conftest.${OBJEXT-o}
  3409. am__minus_obj=
  3410. ;;
  3411. none) break ;;
  3412. esac
  3413. if depmode=$depmode \
  3414. source=sub/conftest.c object=$am__obj \
  3415. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3416. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3417. >/dev/null 2>conftest.err &&
  3418. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3419. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3420. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3421. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3422. # icc doesn't choke on unknown options, it will just issue warnings
  3423. # or remarks (even with -Werror). So we grep stderr for any message
  3424. # that says an option was ignored or not supported.
  3425. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3426. # icc: Command line warning: ignoring option '-M'; no argument required
  3427. # The diagnosis changed in icc 8.0:
  3428. # icc: Command line remark: option '-MP' not supported
  3429. if (grep 'ignoring option' conftest.err ||
  3430. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3431. am_cv_CC_dependencies_compiler_type=$depmode
  3432. break
  3433. fi
  3434. fi
  3435. done
  3436. cd ..
  3437. rm -rf conftest.dir
  3438. else
  3439. am_cv_CC_dependencies_compiler_type=none
  3440. fi
  3441. fi
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3443. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3444. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3445. if
  3446. test "x$enable_dependency_tracking" != xno \
  3447. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3448. am__fastdepCC_TRUE=
  3449. am__fastdepCC_FALSE='#'
  3450. else
  3451. am__fastdepCC_TRUE='#'
  3452. am__fastdepCC_FALSE=
  3453. fi
  3454. ac_ext=cpp
  3455. ac_cpp='$CXXCPP $CPPFLAGS'
  3456. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3457. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3458. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3459. if test -z "$CXX"; then
  3460. if test -n "$CCC"; then
  3461. CXX=$CCC
  3462. else
  3463. if test -n "$ac_tool_prefix"; then
  3464. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3465. do
  3466. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3467. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3469. $as_echo_n "checking for $ac_word... " >&6; }
  3470. if test "${ac_cv_prog_CXX+set}" = set; then :
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. if test -n "$CXX"; then
  3474. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3475. else
  3476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3477. for as_dir in $PATH
  3478. do
  3479. IFS=$as_save_IFS
  3480. test -z "$as_dir" && as_dir=.
  3481. for ac_exec_ext in '' $ac_executable_extensions; do
  3482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3483. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3485. break 2
  3486. fi
  3487. done
  3488. done
  3489. IFS=$as_save_IFS
  3490. fi
  3491. fi
  3492. CXX=$ac_cv_prog_CXX
  3493. if test -n "$CXX"; then
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3495. $as_echo "$CXX" >&6; }
  3496. else
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3498. $as_echo "no" >&6; }
  3499. fi
  3500. test -n "$CXX" && break
  3501. done
  3502. fi
  3503. if test -z "$CXX"; then
  3504. ac_ct_CXX=$CXX
  3505. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3506. do
  3507. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3508. set dummy $ac_prog; ac_word=$2
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3510. $as_echo_n "checking for $ac_word... " >&6; }
  3511. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3512. $as_echo_n "(cached) " >&6
  3513. else
  3514. if test -n "$ac_ct_CXX"; then
  3515. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3516. else
  3517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3518. for as_dir in $PATH
  3519. do
  3520. IFS=$as_save_IFS
  3521. test -z "$as_dir" && as_dir=.
  3522. for ac_exec_ext in '' $ac_executable_extensions; do
  3523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3524. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3526. break 2
  3527. fi
  3528. done
  3529. done
  3530. IFS=$as_save_IFS
  3531. fi
  3532. fi
  3533. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3534. if test -n "$ac_ct_CXX"; then
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3536. $as_echo "$ac_ct_CXX" >&6; }
  3537. else
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3539. $as_echo "no" >&6; }
  3540. fi
  3541. test -n "$ac_ct_CXX" && break
  3542. done
  3543. if test "x$ac_ct_CXX" = x; then
  3544. CXX="g++"
  3545. else
  3546. case $cross_compiling:$ac_tool_warned in
  3547. yes:)
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3550. ac_tool_warned=yes ;;
  3551. esac
  3552. CXX=$ac_ct_CXX
  3553. fi
  3554. fi
  3555. fi
  3556. fi
  3557. # Provide some information about the compiler.
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3559. set X $ac_compile
  3560. ac_compiler=$2
  3561. for ac_option in --version -v -V -qversion; do
  3562. { { ac_try="$ac_compiler $ac_option >&5"
  3563. case "(($ac_try" in
  3564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3565. *) ac_try_echo=$ac_try;;
  3566. esac
  3567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3568. $as_echo "$ac_try_echo"; } >&5
  3569. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3570. ac_status=$?
  3571. if test -s conftest.err; then
  3572. sed '10a\
  3573. ... rest of stderr output deleted ...
  3574. 10q' conftest.err >conftest.er1
  3575. cat conftest.er1 >&5
  3576. rm -f conftest.er1 conftest.err
  3577. fi
  3578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3579. test $ac_status = 0; }
  3580. done
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3582. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3583. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3587. /* end confdefs.h. */
  3588. int
  3589. main ()
  3590. {
  3591. #ifndef __GNUC__
  3592. choke me
  3593. #endif
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. if ac_fn_cxx_try_compile "$LINENO"; then :
  3599. ac_compiler_gnu=yes
  3600. else
  3601. ac_compiler_gnu=no
  3602. fi
  3603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3604. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3607. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3608. if test $ac_compiler_gnu = yes; then
  3609. GXX=yes
  3610. else
  3611. GXX=
  3612. fi
  3613. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3614. ac_save_CXXFLAGS=$CXXFLAGS
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3616. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3617. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3618. $as_echo_n "(cached) " >&6
  3619. else
  3620. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3621. ac_cxx_werror_flag=yes
  3622. ac_cv_prog_cxx_g=no
  3623. CXXFLAGS="-g"
  3624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3625. /* end confdefs.h. */
  3626. int
  3627. main ()
  3628. {
  3629. ;
  3630. return 0;
  3631. }
  3632. _ACEOF
  3633. if ac_fn_cxx_try_compile "$LINENO"; then :
  3634. ac_cv_prog_cxx_g=yes
  3635. else
  3636. CXXFLAGS=""
  3637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3638. /* end confdefs.h. */
  3639. int
  3640. main ()
  3641. {
  3642. ;
  3643. return 0;
  3644. }
  3645. _ACEOF
  3646. if ac_fn_cxx_try_compile "$LINENO"; then :
  3647. else
  3648. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3649. CXXFLAGS="-g"
  3650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3651. /* end confdefs.h. */
  3652. int
  3653. main ()
  3654. {
  3655. ;
  3656. return 0;
  3657. }
  3658. _ACEOF
  3659. if ac_fn_cxx_try_compile "$LINENO"; then :
  3660. ac_cv_prog_cxx_g=yes
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. fi
  3664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3665. fi
  3666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3667. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3668. fi
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3670. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3671. if test "$ac_test_CXXFLAGS" = set; then
  3672. CXXFLAGS=$ac_save_CXXFLAGS
  3673. elif test $ac_cv_prog_cxx_g = yes; then
  3674. if test "$GXX" = yes; then
  3675. CXXFLAGS="-g -O2"
  3676. else
  3677. CXXFLAGS="-g"
  3678. fi
  3679. else
  3680. if test "$GXX" = yes; then
  3681. CXXFLAGS="-O2"
  3682. else
  3683. CXXFLAGS=
  3684. fi
  3685. fi
  3686. ac_ext=c
  3687. ac_cpp='$CPP $CPPFLAGS'
  3688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3691. depcc="$CXX" am_compiler_list=
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3693. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3694. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3698. # We make a subdir and do the tests there. Otherwise we can end up
  3699. # making bogus files that we don't know about and never remove. For
  3700. # instance it was reported that on HP-UX the gcc test will end up
  3701. # making a dummy file named `D' -- because `-MD' means `put the output
  3702. # in D'.
  3703. mkdir conftest.dir
  3704. # Copy depcomp to subdir because otherwise we won't find it if we're
  3705. # using a relative directory.
  3706. cp "$am_depcomp" conftest.dir
  3707. cd conftest.dir
  3708. # We will build objects and dependencies in a subdirectory because
  3709. # it helps to detect inapplicable dependency modes. For instance
  3710. # both Tru64's cc and ICC support -MD to output dependencies as a
  3711. # side effect of compilation, but ICC will put the dependencies in
  3712. # the current directory while Tru64 will put them in the object
  3713. # directory.
  3714. mkdir sub
  3715. am_cv_CXX_dependencies_compiler_type=none
  3716. if test "$am_compiler_list" = ""; then
  3717. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3718. fi
  3719. am__universal=false
  3720. case " $depcc " in #(
  3721. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3722. esac
  3723. for depmode in $am_compiler_list; do
  3724. # Setup a source with many dependencies, because some compilers
  3725. # like to wrap large dependency lists on column 80 (with \), and
  3726. # we should not choose a depcomp mode which is confused by this.
  3727. #
  3728. # We need to recreate these files for each test, as the compiler may
  3729. # overwrite some of them when testing with obscure command lines.
  3730. # This happens at least with the AIX C compiler.
  3731. : > sub/conftest.c
  3732. for i in 1 2 3 4 5 6; do
  3733. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3734. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3735. # Solaris 8's {/usr,}/bin/sh.
  3736. touch sub/conftst$i.h
  3737. done
  3738. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3739. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3740. # mode. It turns out that the SunPro C++ compiler does not properly
  3741. # handle `-M -o', and we need to detect this. Also, some Intel
  3742. # versions had trouble with output in subdirs
  3743. am__obj=sub/conftest.${OBJEXT-o}
  3744. am__minus_obj="-o $am__obj"
  3745. case $depmode in
  3746. gcc)
  3747. # This depmode causes a compiler race in universal mode.
  3748. test "$am__universal" = false || continue
  3749. ;;
  3750. nosideeffect)
  3751. # after this tag, mechanisms are not by side-effect, so they'll
  3752. # only be used when explicitly requested
  3753. if test "x$enable_dependency_tracking" = xyes; then
  3754. continue
  3755. else
  3756. break
  3757. fi
  3758. ;;
  3759. msvisualcpp | msvcmsys)
  3760. # This compiler won't grok `-c -o', but also, the minuso test has
  3761. # not run yet. These depmodes are late enough in the game, and
  3762. # so weak that their functioning should not be impacted.
  3763. am__obj=conftest.${OBJEXT-o}
  3764. am__minus_obj=
  3765. ;;
  3766. none) break ;;
  3767. esac
  3768. if depmode=$depmode \
  3769. source=sub/conftest.c object=$am__obj \
  3770. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3771. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3772. >/dev/null 2>conftest.err &&
  3773. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3774. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3775. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3776. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3777. # icc doesn't choke on unknown options, it will just issue warnings
  3778. # or remarks (even with -Werror). So we grep stderr for any message
  3779. # that says an option was ignored or not supported.
  3780. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3781. # icc: Command line warning: ignoring option '-M'; no argument required
  3782. # The diagnosis changed in icc 8.0:
  3783. # icc: Command line remark: option '-MP' not supported
  3784. if (grep 'ignoring option' conftest.err ||
  3785. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3786. am_cv_CXX_dependencies_compiler_type=$depmode
  3787. break
  3788. fi
  3789. fi
  3790. done
  3791. cd ..
  3792. rm -rf conftest.dir
  3793. else
  3794. am_cv_CXX_dependencies_compiler_type=none
  3795. fi
  3796. fi
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3798. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3799. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3800. if
  3801. test "x$enable_dependency_tracking" != xno \
  3802. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3803. am__fastdepCXX_TRUE=
  3804. am__fastdepCXX_FALSE='#'
  3805. else
  3806. am__fastdepCXX_TRUE='#'
  3807. am__fastdepCXX_FALSE=
  3808. fi
  3809. ac_config_files="$ac_config_files Makefile"
  3810. # Default to --enable-multilib
  3811. # Check whether --enable-multilib was given.
  3812. if test "${enable_multilib+set}" = set; then :
  3813. enableval=$enable_multilib; case "$enableval" in
  3814. yes) multilib=yes ;;
  3815. no) multilib=no ;;
  3816. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3817. esac
  3818. else
  3819. multilib=yes
  3820. fi
  3821. # We may get other options which we leave undocumented:
  3822. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3823. # See config-ml.in if you want the gory details.
  3824. if test "$srcdir" = "."; then
  3825. if test "$with_target_subdir" != "."; then
  3826. multi_basedir="$srcdir/$with_multisrctop../../.."
  3827. else
  3828. multi_basedir="$srcdir/$with_multisrctop../.."
  3829. fi
  3830. else
  3831. multi_basedir="$srcdir/../.."
  3832. fi
  3833. # Even if the default multilib is not a cross compilation,
  3834. # it may be that some of the other multilibs are.
  3835. if test $cross_compiling = no && test $multilib = yes \
  3836. && test "x${with_multisubdir}" != x ; then
  3837. cross_compiling=maybe
  3838. fi
  3839. ac_config_commands="$ac_config_commands default-1"
  3840. if test "${multilib}" = "yes"; then
  3841. multilib_arg="--enable-multilib"
  3842. else
  3843. multilib_arg=
  3844. fi
  3845. # Make sure liboffloadmic is enabled
  3846. case "$enable_liboffloadmic" in
  3847. host | target)
  3848. ;;
  3849. *)
  3850. as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
  3851. esac
  3852. if test x"$enable_liboffloadmic" = xhost; then
  3853. PLUGIN_HOST_TRUE=
  3854. PLUGIN_HOST_FALSE='#'
  3855. else
  3856. PLUGIN_HOST_TRUE='#'
  3857. PLUGIN_HOST_FALSE=
  3858. fi
  3859. # Get accel target and path to build or install tree of accel compiler
  3860. accel_search_dir=
  3861. accel_target=
  3862. if test x"$enable_liboffloadmic" = xhost; then
  3863. for accel in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
  3864. accel_name=`echo $accel | sed 's/=.*//'`
  3865. accel_dir=`echo $accel | grep '=' | sed 's/.*=//'`
  3866. case "$accel_name" in
  3867. *-intelmic-* | *-intelmicemul-*)
  3868. accel_target=$accel_name
  3869. accel_search_dir=$accel_dir
  3870. ;;
  3871. esac
  3872. done
  3873. if test x"$accel_target" = x; then
  3874. as_fn_error "--enable-offload-targets does not contain intelmic target" "$LINENO" 5
  3875. fi
  3876. fi
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  3878. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  3879. # Check whether --enable-version-specific-runtime-libs was given.
  3880. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  3881. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  3882. yes) enable_version_specific_runtime_libs=yes ;;
  3883. no) enable_version_specific_runtime_libs=no ;;
  3884. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  3885. esac
  3886. else
  3887. enable_version_specific_runtime_libs=no
  3888. fi
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  3890. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  3891. # Calculate toolexeclibdir.
  3892. # Also toolexecdir, though it's only used in toolexeclibdir.
  3893. case ${enable_version_specific_runtime_libs} in
  3894. yes)
  3895. # Need the gcc compiler version to know where to install libraries
  3896. # and header files if --enable-version-specific-runtime-libs option
  3897. # is selected.
  3898. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3899. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3900. ;;
  3901. no)
  3902. if test -n "$with_cross_host" &&
  3903. test x"$with_cross_host" != x"no"; then
  3904. # Install a library built with a cross compiler in tooldir, not libdir.
  3905. toolexecdir='$(exec_prefix)/$(target_alias)'
  3906. toolexeclibdir='$(toolexecdir)/lib'
  3907. else
  3908. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3909. toolexeclibdir='$(libdir)'
  3910. fi
  3911. multi_os_directory=`$CC -print-multi-os-directory`
  3912. case $multi_os_directory in
  3913. .) ;; # Avoid trailing /.
  3914. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3915. esac
  3916. ;;
  3917. esac
  3918. enable_dlopen=yes
  3919. case `pwd` in
  3920. *\ * | *\ *)
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3922. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3923. esac
  3924. macro_version='2.2.7a'
  3925. macro_revision='1.3134'
  3926. ltmain="$ac_aux_dir/ltmain.sh"
  3927. # Backslashify metacharacters that are still active within
  3928. # double-quoted strings.
  3929. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3930. # Same as above, but do not quote variable references.
  3931. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3932. # Sed substitution to delay expansion of an escaped shell variable in a
  3933. # double_quote_subst'ed string.
  3934. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3935. # Sed substitution to delay expansion of an escaped single quote.
  3936. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3937. # Sed substitution to avoid accidental globbing in evaled expressions
  3938. no_glob_subst='s/\*/\\\*/g'
  3939. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3940. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3941. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3943. $as_echo_n "checking how to print strings... " >&6; }
  3944. # Test print first, because it will be a builtin if present.
  3945. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3946. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3947. ECHO='print -r --'
  3948. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3949. ECHO='printf %s\n'
  3950. else
  3951. # Use this function as a fallback that always works.
  3952. func_fallback_echo ()
  3953. {
  3954. eval 'cat <<_LTECHO_EOF
  3955. $1
  3956. _LTECHO_EOF'
  3957. }
  3958. ECHO='func_fallback_echo'
  3959. fi
  3960. # func_echo_all arg...
  3961. # Invoke $ECHO with all args, space-separated.
  3962. func_echo_all ()
  3963. {
  3964. $ECHO ""
  3965. }
  3966. case "$ECHO" in
  3967. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3968. $as_echo "printf" >&6; } ;;
  3969. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3970. $as_echo "print -r" >&6; } ;;
  3971. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3972. $as_echo "cat" >&6; } ;;
  3973. esac
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3975. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3976. if test "${ac_cv_path_SED+set}" = set; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3980. for ac_i in 1 2 3 4 5 6 7; do
  3981. ac_script="$ac_script$as_nl$ac_script"
  3982. done
  3983. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3984. { ac_script=; unset ac_script;}
  3985. if test -z "$SED"; then
  3986. ac_path_SED_found=false
  3987. # Loop through the user's path and test for each of PROGNAME-LIST
  3988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3989. for as_dir in $PATH
  3990. do
  3991. IFS=$as_save_IFS
  3992. test -z "$as_dir" && as_dir=.
  3993. for ac_prog in sed gsed; do
  3994. for ac_exec_ext in '' $ac_executable_extensions; do
  3995. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3996. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3997. # Check for GNU ac_path_SED and select it if it is found.
  3998. # Check for GNU $ac_path_SED
  3999. case `"$ac_path_SED" --version 2>&1` in
  4000. *GNU*)
  4001. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4002. *)
  4003. ac_count=0
  4004. $as_echo_n 0123456789 >"conftest.in"
  4005. while :
  4006. do
  4007. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4008. mv "conftest.tmp" "conftest.in"
  4009. cp "conftest.in" "conftest.nl"
  4010. $as_echo '' >> "conftest.nl"
  4011. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4012. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4013. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4014. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4015. # Best one so far, save it but keep looking for a better one
  4016. ac_cv_path_SED="$ac_path_SED"
  4017. ac_path_SED_max=$ac_count
  4018. fi
  4019. # 10*(2^10) chars as input seems more than enough
  4020. test $ac_count -gt 10 && break
  4021. done
  4022. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4023. esac
  4024. $ac_path_SED_found && break 3
  4025. done
  4026. done
  4027. done
  4028. IFS=$as_save_IFS
  4029. if test -z "$ac_cv_path_SED"; then
  4030. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4031. fi
  4032. else
  4033. ac_cv_path_SED=$SED
  4034. fi
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4037. $as_echo "$ac_cv_path_SED" >&6; }
  4038. SED="$ac_cv_path_SED"
  4039. rm -f conftest.sed
  4040. test -z "$SED" && SED=sed
  4041. Xsed="$SED -e 1s/^X//"
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4043. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4044. if test "${ac_cv_path_GREP+set}" = set; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. if test -z "$GREP"; then
  4048. ac_path_GREP_found=false
  4049. # Loop through the user's path and test for each of PROGNAME-LIST
  4050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4051. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4052. do
  4053. IFS=$as_save_IFS
  4054. test -z "$as_dir" && as_dir=.
  4055. for ac_prog in grep ggrep; do
  4056. for ac_exec_ext in '' $ac_executable_extensions; do
  4057. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4058. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4059. # Check for GNU ac_path_GREP and select it if it is found.
  4060. # Check for GNU $ac_path_GREP
  4061. case `"$ac_path_GREP" --version 2>&1` in
  4062. *GNU*)
  4063. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4064. *)
  4065. ac_count=0
  4066. $as_echo_n 0123456789 >"conftest.in"
  4067. while :
  4068. do
  4069. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4070. mv "conftest.tmp" "conftest.in"
  4071. cp "conftest.in" "conftest.nl"
  4072. $as_echo 'GREP' >> "conftest.nl"
  4073. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4074. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4075. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4076. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4077. # Best one so far, save it but keep looking for a better one
  4078. ac_cv_path_GREP="$ac_path_GREP"
  4079. ac_path_GREP_max=$ac_count
  4080. fi
  4081. # 10*(2^10) chars as input seems more than enough
  4082. test $ac_count -gt 10 && break
  4083. done
  4084. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4085. esac
  4086. $ac_path_GREP_found && break 3
  4087. done
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. if test -z "$ac_cv_path_GREP"; then
  4092. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4093. fi
  4094. else
  4095. ac_cv_path_GREP=$GREP
  4096. fi
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4099. $as_echo "$ac_cv_path_GREP" >&6; }
  4100. GREP="$ac_cv_path_GREP"
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4102. $as_echo_n "checking for egrep... " >&6; }
  4103. if test "${ac_cv_path_EGREP+set}" = set; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4107. then ac_cv_path_EGREP="$GREP -E"
  4108. else
  4109. if test -z "$EGREP"; then
  4110. ac_path_EGREP_found=false
  4111. # Loop through the user's path and test for each of PROGNAME-LIST
  4112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4113. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4114. do
  4115. IFS=$as_save_IFS
  4116. test -z "$as_dir" && as_dir=.
  4117. for ac_prog in egrep; do
  4118. for ac_exec_ext in '' $ac_executable_extensions; do
  4119. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4120. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4121. # Check for GNU ac_path_EGREP and select it if it is found.
  4122. # Check for GNU $ac_path_EGREP
  4123. case `"$ac_path_EGREP" --version 2>&1` in
  4124. *GNU*)
  4125. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4126. *)
  4127. ac_count=0
  4128. $as_echo_n 0123456789 >"conftest.in"
  4129. while :
  4130. do
  4131. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4132. mv "conftest.tmp" "conftest.in"
  4133. cp "conftest.in" "conftest.nl"
  4134. $as_echo 'EGREP' >> "conftest.nl"
  4135. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4136. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4137. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4138. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4139. # Best one so far, save it but keep looking for a better one
  4140. ac_cv_path_EGREP="$ac_path_EGREP"
  4141. ac_path_EGREP_max=$ac_count
  4142. fi
  4143. # 10*(2^10) chars as input seems more than enough
  4144. test $ac_count -gt 10 && break
  4145. done
  4146. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4147. esac
  4148. $ac_path_EGREP_found && break 3
  4149. done
  4150. done
  4151. done
  4152. IFS=$as_save_IFS
  4153. if test -z "$ac_cv_path_EGREP"; then
  4154. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4155. fi
  4156. else
  4157. ac_cv_path_EGREP=$EGREP
  4158. fi
  4159. fi
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4162. $as_echo "$ac_cv_path_EGREP" >&6; }
  4163. EGREP="$ac_cv_path_EGREP"
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4165. $as_echo_n "checking for fgrep... " >&6; }
  4166. if test "${ac_cv_path_FGREP+set}" = set; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4170. then ac_cv_path_FGREP="$GREP -F"
  4171. else
  4172. if test -z "$FGREP"; then
  4173. ac_path_FGREP_found=false
  4174. # Loop through the user's path and test for each of PROGNAME-LIST
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_prog in fgrep; do
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4183. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4184. # Check for GNU ac_path_FGREP and select it if it is found.
  4185. # Check for GNU $ac_path_FGREP
  4186. case `"$ac_path_FGREP" --version 2>&1` in
  4187. *GNU*)
  4188. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4189. *)
  4190. ac_count=0
  4191. $as_echo_n 0123456789 >"conftest.in"
  4192. while :
  4193. do
  4194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4195. mv "conftest.tmp" "conftest.in"
  4196. cp "conftest.in" "conftest.nl"
  4197. $as_echo 'FGREP' >> "conftest.nl"
  4198. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4201. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4202. # Best one so far, save it but keep looking for a better one
  4203. ac_cv_path_FGREP="$ac_path_FGREP"
  4204. ac_path_FGREP_max=$ac_count
  4205. fi
  4206. # 10*(2^10) chars as input seems more than enough
  4207. test $ac_count -gt 10 && break
  4208. done
  4209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4210. esac
  4211. $ac_path_FGREP_found && break 3
  4212. done
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. if test -z "$ac_cv_path_FGREP"; then
  4217. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4218. fi
  4219. else
  4220. ac_cv_path_FGREP=$FGREP
  4221. fi
  4222. fi
  4223. fi
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4225. $as_echo "$ac_cv_path_FGREP" >&6; }
  4226. FGREP="$ac_cv_path_FGREP"
  4227. test -z "$GREP" && GREP=grep
  4228. # Check whether --with-gnu-ld was given.
  4229. if test "${with_gnu_ld+set}" = set; then :
  4230. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4231. else
  4232. with_gnu_ld=no
  4233. fi
  4234. ac_prog=ld
  4235. if test "$GCC" = yes; then
  4236. # Check if gcc -print-prog-name=ld gives a path.
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4238. $as_echo_n "checking for ld used by $CC... " >&6; }
  4239. case $host in
  4240. *-*-mingw*)
  4241. # gcc leaves a trailing carriage return which upsets mingw
  4242. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4243. *)
  4244. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4245. esac
  4246. case $ac_prog in
  4247. # Accept absolute paths.
  4248. [\\/]* | ?:[\\/]*)
  4249. re_direlt='/[^/][^/]*/\.\./'
  4250. # Canonicalize the pathname of ld
  4251. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4252. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4253. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4254. done
  4255. test -z "$LD" && LD="$ac_prog"
  4256. ;;
  4257. "")
  4258. # If it fails, then pretend we aren't using GCC.
  4259. ac_prog=ld
  4260. ;;
  4261. *)
  4262. # If it is relative, then search for the first ld in PATH.
  4263. with_gnu_ld=unknown
  4264. ;;
  4265. esac
  4266. elif test "$with_gnu_ld" = yes; then
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4268. $as_echo_n "checking for GNU ld... " >&6; }
  4269. else
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4271. $as_echo_n "checking for non-GNU ld... " >&6; }
  4272. fi
  4273. if test "${lt_cv_path_LD+set}" = set; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. if test -z "$LD"; then
  4277. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4278. for ac_dir in $PATH; do
  4279. IFS="$lt_save_ifs"
  4280. test -z "$ac_dir" && ac_dir=.
  4281. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4282. lt_cv_path_LD="$ac_dir/$ac_prog"
  4283. # Check to see if the program is GNU ld. I'd rather use --version,
  4284. # but apparently some variants of GNU ld only accept -v.
  4285. # Break only if it was the GNU/non-GNU ld that we prefer.
  4286. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4287. *GNU* | *'with BFD'*)
  4288. test "$with_gnu_ld" != no && break
  4289. ;;
  4290. *)
  4291. test "$with_gnu_ld" != yes && break
  4292. ;;
  4293. esac
  4294. fi
  4295. done
  4296. IFS="$lt_save_ifs"
  4297. else
  4298. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4299. fi
  4300. fi
  4301. LD="$lt_cv_path_LD"
  4302. if test -n "$LD"; then
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4304. $as_echo "$LD" >&6; }
  4305. else
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4307. $as_echo "no" >&6; }
  4308. fi
  4309. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4311. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4312. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4316. case `$LD -v 2>&1 </dev/null` in
  4317. *GNU* | *'with BFD'*)
  4318. lt_cv_prog_gnu_ld=yes
  4319. ;;
  4320. *)
  4321. lt_cv_prog_gnu_ld=no
  4322. ;;
  4323. esac
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4326. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4327. with_gnu_ld=$lt_cv_prog_gnu_ld
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4329. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4330. if test "${lt_cv_path_NM+set}" = set; then :
  4331. $as_echo_n "(cached) " >&6
  4332. else
  4333. if test -n "$NM"; then
  4334. # Let the user override the test.
  4335. lt_cv_path_NM="$NM"
  4336. else
  4337. lt_nm_to_check="${ac_tool_prefix}nm"
  4338. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4339. lt_nm_to_check="$lt_nm_to_check nm"
  4340. fi
  4341. for lt_tmp_nm in $lt_nm_to_check; do
  4342. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4343. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4344. IFS="$lt_save_ifs"
  4345. test -z "$ac_dir" && ac_dir=.
  4346. tmp_nm="$ac_dir/$lt_tmp_nm"
  4347. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4348. # Check to see if the nm accepts a BSD-compat flag.
  4349. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4350. # nm: unknown option "B" ignored
  4351. # Tru64's nm complains that /dev/null is an invalid object file
  4352. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4353. */dev/null* | *'Invalid file or object type'*)
  4354. lt_cv_path_NM="$tmp_nm -B"
  4355. break
  4356. ;;
  4357. *)
  4358. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4359. */dev/null*)
  4360. lt_cv_path_NM="$tmp_nm -p"
  4361. break
  4362. ;;
  4363. *)
  4364. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4365. continue # so that we can try to find one that supports BSD flags
  4366. ;;
  4367. esac
  4368. ;;
  4369. esac
  4370. fi
  4371. done
  4372. IFS="$lt_save_ifs"
  4373. done
  4374. : ${lt_cv_path_NM=no}
  4375. fi
  4376. fi
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4378. $as_echo "$lt_cv_path_NM" >&6; }
  4379. if test "$lt_cv_path_NM" != "no"; then
  4380. NM="$lt_cv_path_NM"
  4381. else
  4382. # Didn't find any BSD compatible name lister, look for dumpbin.
  4383. if test -n "$DUMPBIN"; then :
  4384. # Let the user override the test.
  4385. else
  4386. if test -n "$ac_tool_prefix"; then
  4387. for ac_prog in dumpbin "link -dump"
  4388. do
  4389. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4390. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4392. $as_echo_n "checking for $ac_word... " >&6; }
  4393. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. if test -n "$DUMPBIN"; then
  4397. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4398. else
  4399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4400. for as_dir in $PATH
  4401. do
  4402. IFS=$as_save_IFS
  4403. test -z "$as_dir" && as_dir=.
  4404. for ac_exec_ext in '' $ac_executable_extensions; do
  4405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4406. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4408. break 2
  4409. fi
  4410. done
  4411. done
  4412. IFS=$as_save_IFS
  4413. fi
  4414. fi
  4415. DUMPBIN=$ac_cv_prog_DUMPBIN
  4416. if test -n "$DUMPBIN"; then
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4418. $as_echo "$DUMPBIN" >&6; }
  4419. else
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4421. $as_echo "no" >&6; }
  4422. fi
  4423. test -n "$DUMPBIN" && break
  4424. done
  4425. fi
  4426. if test -z "$DUMPBIN"; then
  4427. ac_ct_DUMPBIN=$DUMPBIN
  4428. for ac_prog in dumpbin "link -dump"
  4429. do
  4430. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4431. set dummy $ac_prog; ac_word=$2
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4433. $as_echo_n "checking for $ac_word... " >&6; }
  4434. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4435. $as_echo_n "(cached) " >&6
  4436. else
  4437. if test -n "$ac_ct_DUMPBIN"; then
  4438. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4439. else
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_exec_ext in '' $ac_executable_extensions; do
  4446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4447. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4449. break 2
  4450. fi
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. fi
  4455. fi
  4456. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4457. if test -n "$ac_ct_DUMPBIN"; then
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4459. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4460. else
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4462. $as_echo "no" >&6; }
  4463. fi
  4464. test -n "$ac_ct_DUMPBIN" && break
  4465. done
  4466. if test "x$ac_ct_DUMPBIN" = x; then
  4467. DUMPBIN=":"
  4468. else
  4469. case $cross_compiling:$ac_tool_warned in
  4470. yes:)
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4473. ac_tool_warned=yes ;;
  4474. esac
  4475. DUMPBIN=$ac_ct_DUMPBIN
  4476. fi
  4477. fi
  4478. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4479. *COFF*)
  4480. DUMPBIN="$DUMPBIN -symbols"
  4481. ;;
  4482. *)
  4483. DUMPBIN=:
  4484. ;;
  4485. esac
  4486. fi
  4487. if test "$DUMPBIN" != ":"; then
  4488. NM="$DUMPBIN"
  4489. fi
  4490. fi
  4491. test -z "$NM" && NM=nm
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4493. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4494. if test "${lt_cv_nm_interface+set}" = set; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. lt_cv_nm_interface="BSD nm"
  4498. echo "int some_variable = 0;" > conftest.$ac_ext
  4499. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4500. (eval "$ac_compile" 2>conftest.err)
  4501. cat conftest.err >&5
  4502. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4503. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4504. cat conftest.err >&5
  4505. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4506. cat conftest.out >&5
  4507. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4508. lt_cv_nm_interface="MS dumpbin"
  4509. fi
  4510. rm -f conftest*
  4511. fi
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4513. $as_echo "$lt_cv_nm_interface" >&6; }
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4515. $as_echo_n "checking whether ln -s works... " >&6; }
  4516. LN_S=$as_ln_s
  4517. if test "$LN_S" = "ln -s"; then
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4519. $as_echo "yes" >&6; }
  4520. else
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4522. $as_echo "no, using $LN_S" >&6; }
  4523. fi
  4524. # find the maximum length of command line arguments
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4526. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4527. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. i=0
  4531. teststring="ABCD"
  4532. case $build_os in
  4533. msdosdjgpp*)
  4534. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4535. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4536. # during glob expansion). Even if it were fixed, the result of this
  4537. # check would be larger than it should be.
  4538. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4539. ;;
  4540. gnu*)
  4541. # Under GNU Hurd, this test is not required because there is
  4542. # no limit to the length of command line arguments.
  4543. # Libtool will interpret -1 as no limit whatsoever
  4544. lt_cv_sys_max_cmd_len=-1;
  4545. ;;
  4546. cygwin* | mingw* | cegcc*)
  4547. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4548. # about 5 minutes as the teststring grows exponentially.
  4549. # Worse, since 9x/ME are not pre-emptively multitasking,
  4550. # you end up with a "frozen" computer, even though with patience
  4551. # the test eventually succeeds (with a max line length of 256k).
  4552. # Instead, let's just punt: use the minimum linelength reported by
  4553. # all of the supported platforms: 8192 (on NT/2K/XP).
  4554. lt_cv_sys_max_cmd_len=8192;
  4555. ;;
  4556. mint*)
  4557. # On MiNT this can take a long time and run out of memory.
  4558. lt_cv_sys_max_cmd_len=8192;
  4559. ;;
  4560. amigaos*)
  4561. # On AmigaOS with pdksh, this test takes hours, literally.
  4562. # So we just punt and use a minimum line length of 8192.
  4563. lt_cv_sys_max_cmd_len=8192;
  4564. ;;
  4565. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4566. # This has been around since 386BSD, at least. Likely further.
  4567. if test -x /sbin/sysctl; then
  4568. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4569. elif test -x /usr/sbin/sysctl; then
  4570. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4571. else
  4572. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4573. fi
  4574. # And add a safety zone
  4575. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4576. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4577. ;;
  4578. interix*)
  4579. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4580. lt_cv_sys_max_cmd_len=196608
  4581. ;;
  4582. osf*)
  4583. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4584. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4585. # nice to cause kernel panics so lets avoid the loop below.
  4586. # First set a reasonable default.
  4587. lt_cv_sys_max_cmd_len=16384
  4588. #
  4589. if test -x /sbin/sysconfig; then
  4590. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4591. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4592. esac
  4593. fi
  4594. ;;
  4595. sco3.2v5*)
  4596. lt_cv_sys_max_cmd_len=102400
  4597. ;;
  4598. sysv5* | sco5v6* | sysv4.2uw2*)
  4599. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4600. if test -n "$kargmax"; then
  4601. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4602. else
  4603. lt_cv_sys_max_cmd_len=32768
  4604. fi
  4605. ;;
  4606. *)
  4607. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4608. if test -n "$lt_cv_sys_max_cmd_len"; then
  4609. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4610. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4611. else
  4612. # Make teststring a little bigger before we do anything with it.
  4613. # a 1K string should be a reasonable start.
  4614. for i in 1 2 3 4 5 6 7 8 ; do
  4615. teststring=$teststring$teststring
  4616. done
  4617. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4618. # If test is not a shell built-in, we'll probably end up computing a
  4619. # maximum length that is only half of the actual maximum length, but
  4620. # we can't tell.
  4621. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4622. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4623. test $i != 17 # 1/2 MB should be enough
  4624. do
  4625. i=`expr $i + 1`
  4626. teststring=$teststring$teststring
  4627. done
  4628. # Only check the string length outside the loop.
  4629. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4630. teststring=
  4631. # Add a significant safety factor because C++ compilers can tack on
  4632. # massive amounts of additional arguments before passing them to the
  4633. # linker. It appears as though 1/2 is a usable value.
  4634. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4635. fi
  4636. ;;
  4637. esac
  4638. fi
  4639. if test -n $lt_cv_sys_max_cmd_len ; then
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4641. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4642. else
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4644. $as_echo "none" >&6; }
  4645. fi
  4646. max_cmd_len=$lt_cv_sys_max_cmd_len
  4647. : ${CP="cp -f"}
  4648. : ${MV="mv -f"}
  4649. : ${RM="rm -f"}
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4651. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4652. # Try some XSI features
  4653. xsi_shell=no
  4654. ( _lt_dummy="a/b/c"
  4655. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4656. = c,a/b,, \
  4657. && eval 'test $(( 1 + 1 )) -eq 2 \
  4658. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4659. && xsi_shell=yes
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4661. $as_echo "$xsi_shell" >&6; }
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4663. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4664. lt_shell_append=no
  4665. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4666. >/dev/null 2>&1 \
  4667. && lt_shell_append=yes
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4669. $as_echo "$lt_shell_append" >&6; }
  4670. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4671. lt_unset=unset
  4672. else
  4673. lt_unset=false
  4674. fi
  4675. # test EBCDIC or ASCII
  4676. case `echo X|tr X '\101'` in
  4677. A) # ASCII based system
  4678. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4679. lt_SP2NL='tr \040 \012'
  4680. lt_NL2SP='tr \015\012 \040\040'
  4681. ;;
  4682. *) # EBCDIC based system
  4683. lt_SP2NL='tr \100 \n'
  4684. lt_NL2SP='tr \r\n \100\100'
  4685. ;;
  4686. esac
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4688. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4689. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. lt_cv_ld_reload_flag='-r'
  4693. fi
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4695. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4696. reload_flag=$lt_cv_ld_reload_flag
  4697. case $reload_flag in
  4698. "" | " "*) ;;
  4699. *) reload_flag=" $reload_flag" ;;
  4700. esac
  4701. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4702. case $host_os in
  4703. darwin*)
  4704. if test "$GCC" = yes; then
  4705. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4706. else
  4707. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4708. fi
  4709. ;;
  4710. esac
  4711. if test -n "$ac_tool_prefix"; then
  4712. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4713. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4715. $as_echo_n "checking for $ac_word... " >&6; }
  4716. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. if test -n "$OBJDUMP"; then
  4720. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4721. else
  4722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4723. for as_dir in $PATH
  4724. do
  4725. IFS=$as_save_IFS
  4726. test -z "$as_dir" && as_dir=.
  4727. for ac_exec_ext in '' $ac_executable_extensions; do
  4728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4729. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4731. break 2
  4732. fi
  4733. done
  4734. done
  4735. IFS=$as_save_IFS
  4736. fi
  4737. fi
  4738. OBJDUMP=$ac_cv_prog_OBJDUMP
  4739. if test -n "$OBJDUMP"; then
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4741. $as_echo "$OBJDUMP" >&6; }
  4742. else
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4744. $as_echo "no" >&6; }
  4745. fi
  4746. fi
  4747. if test -z "$ac_cv_prog_OBJDUMP"; then
  4748. ac_ct_OBJDUMP=$OBJDUMP
  4749. # Extract the first word of "objdump", so it can be a program name with args.
  4750. set dummy objdump; ac_word=$2
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4752. $as_echo_n "checking for $ac_word... " >&6; }
  4753. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. if test -n "$ac_ct_OBJDUMP"; then
  4757. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4758. else
  4759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4760. for as_dir in $PATH
  4761. do
  4762. IFS=$as_save_IFS
  4763. test -z "$as_dir" && as_dir=.
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4766. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4768. break 2
  4769. fi
  4770. done
  4771. done
  4772. IFS=$as_save_IFS
  4773. fi
  4774. fi
  4775. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4776. if test -n "$ac_ct_OBJDUMP"; then
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4778. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4779. else
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4781. $as_echo "no" >&6; }
  4782. fi
  4783. if test "x$ac_ct_OBJDUMP" = x; then
  4784. OBJDUMP="false"
  4785. else
  4786. case $cross_compiling:$ac_tool_warned in
  4787. yes:)
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4789. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4790. ac_tool_warned=yes ;;
  4791. esac
  4792. OBJDUMP=$ac_ct_OBJDUMP
  4793. fi
  4794. else
  4795. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4796. fi
  4797. test -z "$OBJDUMP" && OBJDUMP=objdump
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4799. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4800. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4804. lt_cv_file_magic_test_file=
  4805. lt_cv_deplibs_check_method='unknown'
  4806. # Need to set the preceding variable on all platforms that support
  4807. # interlibrary dependencies.
  4808. # 'none' -- dependencies not supported.
  4809. # `unknown' -- same as none, but documents that we really don't know.
  4810. # 'pass_all' -- all dependencies passed with no checks.
  4811. # 'test_compile' -- check by making test program.
  4812. # 'file_magic [[regex]]' -- check by looking for files in library path
  4813. # which responds to the $file_magic_cmd with a given extended regex.
  4814. # If you have `file' or equivalent on your system and you're not sure
  4815. # whether `pass_all' will *always* work, you probably want this one.
  4816. case $host_os in
  4817. aix[4-9]*)
  4818. lt_cv_deplibs_check_method=pass_all
  4819. ;;
  4820. beos*)
  4821. lt_cv_deplibs_check_method=pass_all
  4822. ;;
  4823. bsdi[45]*)
  4824. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4825. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4826. lt_cv_file_magic_test_file=/shlib/libc.so
  4827. ;;
  4828. cygwin*)
  4829. # func_win32_libid is a shell function defined in ltmain.sh
  4830. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4831. lt_cv_file_magic_cmd='func_win32_libid'
  4832. ;;
  4833. mingw* | pw32*)
  4834. # Base MSYS/MinGW do not provide the 'file' command needed by
  4835. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4836. # unless we find 'file', for example because we are cross-compiling.
  4837. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4838. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4839. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4840. lt_cv_file_magic_cmd='func_win32_libid'
  4841. else
  4842. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4843. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4844. fi
  4845. ;;
  4846. cegcc*)
  4847. # use the weaker test based on 'objdump'. See mingw*.
  4848. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4849. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4850. ;;
  4851. darwin* | rhapsody*)
  4852. lt_cv_deplibs_check_method=pass_all
  4853. ;;
  4854. freebsd* | dragonfly*)
  4855. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4856. case $host_cpu in
  4857. i*86 )
  4858. # Not sure whether the presence of OpenBSD here was a mistake.
  4859. # Let's accept both of them until this is cleared up.
  4860. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4861. lt_cv_file_magic_cmd=/usr/bin/file
  4862. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4863. ;;
  4864. esac
  4865. else
  4866. lt_cv_deplibs_check_method=pass_all
  4867. fi
  4868. ;;
  4869. gnu*)
  4870. lt_cv_deplibs_check_method=pass_all
  4871. ;;
  4872. haiku*)
  4873. lt_cv_deplibs_check_method=pass_all
  4874. ;;
  4875. hpux10.20* | hpux11*)
  4876. lt_cv_file_magic_cmd=/usr/bin/file
  4877. case $host_cpu in
  4878. ia64*)
  4879. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4880. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4881. ;;
  4882. hppa*64*)
  4883. 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]'
  4884. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4885. ;;
  4886. *)
  4887. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4888. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4889. ;;
  4890. esac
  4891. ;;
  4892. interix[3-9]*)
  4893. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4894. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4895. ;;
  4896. irix5* | irix6* | nonstopux*)
  4897. case $LD in
  4898. *-32|*"-32 ") libmagic=32-bit;;
  4899. *-n32|*"-n32 ") libmagic=N32;;
  4900. *-64|*"-64 ") libmagic=64-bit;;
  4901. *) libmagic=never-match;;
  4902. esac
  4903. lt_cv_deplibs_check_method=pass_all
  4904. ;;
  4905. # This must be Linux ELF.
  4906. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4907. lt_cv_deplibs_check_method=pass_all
  4908. ;;
  4909. netbsd*)
  4910. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4911. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4912. else
  4913. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4914. fi
  4915. ;;
  4916. newos6*)
  4917. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4918. lt_cv_file_magic_cmd=/usr/bin/file
  4919. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4920. ;;
  4921. *nto* | *qnx*)
  4922. lt_cv_deplibs_check_method=pass_all
  4923. ;;
  4924. openbsd*)
  4925. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4926. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4927. else
  4928. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4929. fi
  4930. ;;
  4931. osf3* | osf4* | osf5*)
  4932. lt_cv_deplibs_check_method=pass_all
  4933. ;;
  4934. rdos*)
  4935. lt_cv_deplibs_check_method=pass_all
  4936. ;;
  4937. solaris*)
  4938. lt_cv_deplibs_check_method=pass_all
  4939. ;;
  4940. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4941. lt_cv_deplibs_check_method=pass_all
  4942. ;;
  4943. sysv4 | sysv4.3*)
  4944. case $host_vendor in
  4945. motorola)
  4946. 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]'
  4947. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4948. ;;
  4949. ncr)
  4950. lt_cv_deplibs_check_method=pass_all
  4951. ;;
  4952. sequent)
  4953. lt_cv_file_magic_cmd='/bin/file'
  4954. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4955. ;;
  4956. sni)
  4957. lt_cv_file_magic_cmd='/bin/file'
  4958. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4959. lt_cv_file_magic_test_file=/lib/libc.so
  4960. ;;
  4961. siemens)
  4962. lt_cv_deplibs_check_method=pass_all
  4963. ;;
  4964. pc)
  4965. lt_cv_deplibs_check_method=pass_all
  4966. ;;
  4967. esac
  4968. ;;
  4969. tpf*)
  4970. lt_cv_deplibs_check_method=pass_all
  4971. ;;
  4972. esac
  4973. fi
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4975. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4976. file_magic_cmd=$lt_cv_file_magic_cmd
  4977. deplibs_check_method=$lt_cv_deplibs_check_method
  4978. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4979. if test -n "$ac_tool_prefix"; then
  4980. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4981. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4983. $as_echo_n "checking for $ac_word... " >&6; }
  4984. if test "${ac_cv_prog_AR+set}" = set; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. if test -n "$AR"; then
  4988. ac_cv_prog_AR="$AR" # Let the user override the test.
  4989. else
  4990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4991. for as_dir in $PATH
  4992. do
  4993. IFS=$as_save_IFS
  4994. test -z "$as_dir" && as_dir=.
  4995. for ac_exec_ext in '' $ac_executable_extensions; do
  4996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4997. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4999. break 2
  5000. fi
  5001. done
  5002. done
  5003. IFS=$as_save_IFS
  5004. fi
  5005. fi
  5006. AR=$ac_cv_prog_AR
  5007. if test -n "$AR"; then
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5009. $as_echo "$AR" >&6; }
  5010. else
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5012. $as_echo "no" >&6; }
  5013. fi
  5014. fi
  5015. if test -z "$ac_cv_prog_AR"; then
  5016. ac_ct_AR=$AR
  5017. # Extract the first word of "ar", so it can be a program name with args.
  5018. set dummy ar; ac_word=$2
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5020. $as_echo_n "checking for $ac_word... " >&6; }
  5021. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5022. $as_echo_n "(cached) " >&6
  5023. else
  5024. if test -n "$ac_ct_AR"; then
  5025. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5026. else
  5027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5028. for as_dir in $PATH
  5029. do
  5030. IFS=$as_save_IFS
  5031. test -z "$as_dir" && as_dir=.
  5032. for ac_exec_ext in '' $ac_executable_extensions; do
  5033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5034. ac_cv_prog_ac_ct_AR="ar"
  5035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5036. break 2
  5037. fi
  5038. done
  5039. done
  5040. IFS=$as_save_IFS
  5041. fi
  5042. fi
  5043. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5044. if test -n "$ac_ct_AR"; then
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5046. $as_echo "$ac_ct_AR" >&6; }
  5047. else
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5049. $as_echo "no" >&6; }
  5050. fi
  5051. if test "x$ac_ct_AR" = x; then
  5052. AR="false"
  5053. else
  5054. case $cross_compiling:$ac_tool_warned in
  5055. yes:)
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5058. ac_tool_warned=yes ;;
  5059. esac
  5060. AR=$ac_ct_AR
  5061. fi
  5062. else
  5063. AR="$ac_cv_prog_AR"
  5064. fi
  5065. test -z "$AR" && AR=ar
  5066. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5067. if test -n "$ac_tool_prefix"; then
  5068. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5069. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5071. $as_echo_n "checking for $ac_word... " >&6; }
  5072. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. if test -n "$STRIP"; then
  5076. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5077. else
  5078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5079. for as_dir in $PATH
  5080. do
  5081. IFS=$as_save_IFS
  5082. test -z "$as_dir" && as_dir=.
  5083. for ac_exec_ext in '' $ac_executable_extensions; do
  5084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5085. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5087. break 2
  5088. fi
  5089. done
  5090. done
  5091. IFS=$as_save_IFS
  5092. fi
  5093. fi
  5094. STRIP=$ac_cv_prog_STRIP
  5095. if test -n "$STRIP"; then
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5097. $as_echo "$STRIP" >&6; }
  5098. else
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5100. $as_echo "no" >&6; }
  5101. fi
  5102. fi
  5103. if test -z "$ac_cv_prog_STRIP"; then
  5104. ac_ct_STRIP=$STRIP
  5105. # Extract the first word of "strip", so it can be a program name with args.
  5106. set dummy strip; ac_word=$2
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5108. $as_echo_n "checking for $ac_word... " >&6; }
  5109. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5110. $as_echo_n "(cached) " >&6
  5111. else
  5112. if test -n "$ac_ct_STRIP"; then
  5113. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5114. else
  5115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5116. for as_dir in $PATH
  5117. do
  5118. IFS=$as_save_IFS
  5119. test -z "$as_dir" && as_dir=.
  5120. for ac_exec_ext in '' $ac_executable_extensions; do
  5121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5122. ac_cv_prog_ac_ct_STRIP="strip"
  5123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5124. break 2
  5125. fi
  5126. done
  5127. done
  5128. IFS=$as_save_IFS
  5129. fi
  5130. fi
  5131. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5132. if test -n "$ac_ct_STRIP"; then
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5134. $as_echo "$ac_ct_STRIP" >&6; }
  5135. else
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5137. $as_echo "no" >&6; }
  5138. fi
  5139. if test "x$ac_ct_STRIP" = x; then
  5140. STRIP=":"
  5141. else
  5142. case $cross_compiling:$ac_tool_warned in
  5143. yes:)
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5145. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5146. ac_tool_warned=yes ;;
  5147. esac
  5148. STRIP=$ac_ct_STRIP
  5149. fi
  5150. else
  5151. STRIP="$ac_cv_prog_STRIP"
  5152. fi
  5153. test -z "$STRIP" && STRIP=:
  5154. if test -n "$ac_tool_prefix"; then
  5155. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5156. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5158. $as_echo_n "checking for $ac_word... " >&6; }
  5159. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. if test -n "$RANLIB"; then
  5163. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5164. else
  5165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. for ac_exec_ext in '' $ac_executable_extensions; do
  5171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5172. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5174. break 2
  5175. fi
  5176. done
  5177. done
  5178. IFS=$as_save_IFS
  5179. fi
  5180. fi
  5181. RANLIB=$ac_cv_prog_RANLIB
  5182. if test -n "$RANLIB"; then
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5184. $as_echo "$RANLIB" >&6; }
  5185. else
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5187. $as_echo "no" >&6; }
  5188. fi
  5189. fi
  5190. if test -z "$ac_cv_prog_RANLIB"; then
  5191. ac_ct_RANLIB=$RANLIB
  5192. # Extract the first word of "ranlib", so it can be a program name with args.
  5193. set dummy ranlib; ac_word=$2
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5195. $as_echo_n "checking for $ac_word... " >&6; }
  5196. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. if test -n "$ac_ct_RANLIB"; then
  5200. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5201. else
  5202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5203. for as_dir in $PATH
  5204. do
  5205. IFS=$as_save_IFS
  5206. test -z "$as_dir" && as_dir=.
  5207. for ac_exec_ext in '' $ac_executable_extensions; do
  5208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5209. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5211. break 2
  5212. fi
  5213. done
  5214. done
  5215. IFS=$as_save_IFS
  5216. fi
  5217. fi
  5218. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5219. if test -n "$ac_ct_RANLIB"; then
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5221. $as_echo "$ac_ct_RANLIB" >&6; }
  5222. else
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5224. $as_echo "no" >&6; }
  5225. fi
  5226. if test "x$ac_ct_RANLIB" = x; then
  5227. RANLIB=":"
  5228. else
  5229. case $cross_compiling:$ac_tool_warned in
  5230. yes:)
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5233. ac_tool_warned=yes ;;
  5234. esac
  5235. RANLIB=$ac_ct_RANLIB
  5236. fi
  5237. else
  5238. RANLIB="$ac_cv_prog_RANLIB"
  5239. fi
  5240. test -z "$RANLIB" && RANLIB=:
  5241. # Determine commands to create old-style static archives.
  5242. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5243. old_postinstall_cmds='chmod 644 $oldlib'
  5244. old_postuninstall_cmds=
  5245. if test -n "$RANLIB"; then
  5246. case $host_os in
  5247. openbsd*)
  5248. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5249. ;;
  5250. *)
  5251. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5252. ;;
  5253. esac
  5254. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5255. fi
  5256. case $host_os in
  5257. darwin*)
  5258. lock_old_archive_extraction=yes ;;
  5259. *)
  5260. lock_old_archive_extraction=no ;;
  5261. esac
  5262. # If no C compiler was specified, use CC.
  5263. LTCC=${LTCC-"$CC"}
  5264. # If no C compiler flags were specified, use CFLAGS.
  5265. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5266. # Allow CC to be a program name with arguments.
  5267. compiler=$CC
  5268. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5270. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5271. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. # These are sane defaults that work on at least a few old systems.
  5275. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5276. # Character class describing NM global symbol codes.
  5277. symcode='[BCDEGRST]'
  5278. # Regexp to match symbols that can be accessed directly from C.
  5279. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5280. # Define system-specific variables.
  5281. case $host_os in
  5282. aix*)
  5283. symcode='[BCDT]'
  5284. ;;
  5285. cygwin* | mingw* | pw32* | cegcc*)
  5286. symcode='[ABCDGISTW]'
  5287. ;;
  5288. hpux*)
  5289. if test "$host_cpu" = ia64; then
  5290. symcode='[ABCDEGRST]'
  5291. fi
  5292. ;;
  5293. irix* | nonstopux*)
  5294. symcode='[BCDEGRST]'
  5295. ;;
  5296. osf*)
  5297. symcode='[BCDEGQRST]'
  5298. ;;
  5299. solaris*)
  5300. symcode='[BDRT]'
  5301. ;;
  5302. sco3.2v5*)
  5303. symcode='[DT]'
  5304. ;;
  5305. sysv4.2uw2*)
  5306. symcode='[DT]'
  5307. ;;
  5308. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5309. symcode='[ABDT]'
  5310. ;;
  5311. sysv4)
  5312. symcode='[DFNSTU]'
  5313. ;;
  5314. esac
  5315. # If we're using GNU nm, then use its standard symbol codes.
  5316. case `$NM -V 2>&1` in
  5317. *GNU* | *'with BFD'*)
  5318. symcode='[ABCDGIRSTW]' ;;
  5319. esac
  5320. # Transform an extracted symbol line into a proper C declaration.
  5321. # Some systems (esp. on ia64) link data and code symbols differently,
  5322. # so use this general approach.
  5323. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5324. # Transform an extracted symbol line into symbol name and symbol address
  5325. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5326. 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'"
  5327. # Handle CRLF in mingw tool chain
  5328. opt_cr=
  5329. case $build_os in
  5330. mingw*)
  5331. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5332. ;;
  5333. esac
  5334. # Try without a prefix underscore, then with it.
  5335. for ac_symprfx in "" "_"; do
  5336. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5337. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5338. # Write the raw and C identifiers.
  5339. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5340. # Fake it for dumpbin and say T for any non-static function
  5341. # and D for any global variable.
  5342. # Also find C++ and __fastcall symbols from MSVC++,
  5343. # which start with @ or ?.
  5344. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5345. " {last_section=section; section=\$ 3};"\
  5346. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5347. " \$ 0!~/External *\|/{next};"\
  5348. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5349. " {if(hide[section]) next};"\
  5350. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5351. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5352. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5353. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5354. " ' prfx=^$ac_symprfx"
  5355. else
  5356. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5357. fi
  5358. # Check to see that the pipe works correctly.
  5359. pipe_works=no
  5360. rm -f conftest*
  5361. cat > conftest.$ac_ext <<_LT_EOF
  5362. #ifdef __cplusplus
  5363. extern "C" {
  5364. #endif
  5365. char nm_test_var;
  5366. void nm_test_func(void);
  5367. void nm_test_func(void){}
  5368. #ifdef __cplusplus
  5369. }
  5370. #endif
  5371. int main(){nm_test_var='a';nm_test_func();return(0);}
  5372. _LT_EOF
  5373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5374. (eval $ac_compile) 2>&5
  5375. ac_status=$?
  5376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5377. test $ac_status = 0; }; then
  5378. # Now try to grab the symbols.
  5379. nlist=conftest.nm
  5380. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5381. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5382. ac_status=$?
  5383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5384. test $ac_status = 0; } && test -s "$nlist"; then
  5385. # Try sorting and uniquifying the output.
  5386. if sort "$nlist" | uniq > "$nlist"T; then
  5387. mv -f "$nlist"T "$nlist"
  5388. else
  5389. rm -f "$nlist"T
  5390. fi
  5391. # Make sure that we snagged all the symbols we need.
  5392. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5393. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5394. cat <<_LT_EOF > conftest.$ac_ext
  5395. #ifdef __cplusplus
  5396. extern "C" {
  5397. #endif
  5398. _LT_EOF
  5399. # Now generate the symbol file.
  5400. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5401. cat <<_LT_EOF >> conftest.$ac_ext
  5402. /* The mapping between symbol names and symbols. */
  5403. const struct {
  5404. const char *name;
  5405. void *address;
  5406. }
  5407. lt__PROGRAM__LTX_preloaded_symbols[] =
  5408. {
  5409. { "@PROGRAM@", (void *) 0 },
  5410. _LT_EOF
  5411. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5412. cat <<\_LT_EOF >> conftest.$ac_ext
  5413. {0, (void *) 0}
  5414. };
  5415. /* This works around a problem in FreeBSD linker */
  5416. #ifdef FREEBSD_WORKAROUND
  5417. static const void *lt_preloaded_setup() {
  5418. return lt__PROGRAM__LTX_preloaded_symbols;
  5419. }
  5420. #endif
  5421. #ifdef __cplusplus
  5422. }
  5423. #endif
  5424. _LT_EOF
  5425. # Now try linking the two files.
  5426. mv conftest.$ac_objext conftstm.$ac_objext
  5427. lt_save_LIBS="$LIBS"
  5428. lt_save_CFLAGS="$CFLAGS"
  5429. LIBS="conftstm.$ac_objext"
  5430. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5431. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5432. (eval $ac_link) 2>&5
  5433. ac_status=$?
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5435. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5436. pipe_works=yes
  5437. fi
  5438. LIBS="$lt_save_LIBS"
  5439. CFLAGS="$lt_save_CFLAGS"
  5440. else
  5441. echo "cannot find nm_test_func in $nlist" >&5
  5442. fi
  5443. else
  5444. echo "cannot find nm_test_var in $nlist" >&5
  5445. fi
  5446. else
  5447. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5448. fi
  5449. else
  5450. echo "$progname: failed program was:" >&5
  5451. cat conftest.$ac_ext >&5
  5452. fi
  5453. rm -rf conftest* conftst*
  5454. # Do not use the global_symbol_pipe unless it works.
  5455. if test "$pipe_works" = yes; then
  5456. break
  5457. else
  5458. lt_cv_sys_global_symbol_pipe=
  5459. fi
  5460. done
  5461. fi
  5462. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5463. lt_cv_sys_global_symbol_to_cdecl=
  5464. fi
  5465. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5467. $as_echo "failed" >&6; }
  5468. else
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5470. $as_echo "ok" >&6; }
  5471. fi
  5472. # Check whether --enable-libtool-lock was given.
  5473. if test "${enable_libtool_lock+set}" = set; then :
  5474. enableval=$enable_libtool_lock;
  5475. fi
  5476. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5477. # Some flags need to be propagated to the compiler or linker for good
  5478. # libtool support.
  5479. case $host in
  5480. ia64-*-hpux*)
  5481. # Find out which ABI we are using.
  5482. echo 'int i;' > conftest.$ac_ext
  5483. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5484. (eval $ac_compile) 2>&5
  5485. ac_status=$?
  5486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5487. test $ac_status = 0; }; then
  5488. case `/usr/bin/file conftest.$ac_objext` in
  5489. *ELF-32*)
  5490. HPUX_IA64_MODE="32"
  5491. ;;
  5492. *ELF-64*)
  5493. HPUX_IA64_MODE="64"
  5494. ;;
  5495. esac
  5496. fi
  5497. rm -rf conftest*
  5498. ;;
  5499. *-*-irix6*)
  5500. # Find out which ABI we are using.
  5501. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5502. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5503. (eval $ac_compile) 2>&5
  5504. ac_status=$?
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5506. test $ac_status = 0; }; then
  5507. if test "$lt_cv_prog_gnu_ld" = yes; then
  5508. case `/usr/bin/file conftest.$ac_objext` in
  5509. *32-bit*)
  5510. LD="${LD-ld} -melf32bsmip"
  5511. ;;
  5512. *N32*)
  5513. LD="${LD-ld} -melf32bmipn32"
  5514. ;;
  5515. *64-bit*)
  5516. LD="${LD-ld} -melf64bmip"
  5517. ;;
  5518. esac
  5519. else
  5520. case `/usr/bin/file conftest.$ac_objext` in
  5521. *32-bit*)
  5522. LD="${LD-ld} -32"
  5523. ;;
  5524. *N32*)
  5525. LD="${LD-ld} -n32"
  5526. ;;
  5527. *64-bit*)
  5528. LD="${LD-ld} -64"
  5529. ;;
  5530. esac
  5531. fi
  5532. fi
  5533. rm -rf conftest*
  5534. ;;
  5535. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5536. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5537. # Find out which ABI we are using.
  5538. echo 'int i;' > conftest.$ac_ext
  5539. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5540. (eval $ac_compile) 2>&5
  5541. ac_status=$?
  5542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5543. test $ac_status = 0; }; then
  5544. case `/usr/bin/file conftest.o` in
  5545. *32-bit*)
  5546. case $host in
  5547. x86_64-*kfreebsd*-gnu)
  5548. LD="${LD-ld} -m elf_i386_fbsd"
  5549. ;;
  5550. x86_64-*linux*)
  5551. case `/usr/bin/file conftest.o` in
  5552. *x86-64*)
  5553. LD="${LD-ld} -m elf32_x86_64"
  5554. ;;
  5555. *)
  5556. LD="${LD-ld} -m elf_i386"
  5557. ;;
  5558. esac
  5559. ;;
  5560. powerpc64le-*linux*)
  5561. LD="${LD-ld} -m elf32lppclinux"
  5562. ;;
  5563. powerpc64-*linux*)
  5564. LD="${LD-ld} -m elf32ppclinux"
  5565. ;;
  5566. s390x-*linux*)
  5567. LD="${LD-ld} -m elf_s390"
  5568. ;;
  5569. sparc64-*linux*)
  5570. LD="${LD-ld} -m elf32_sparc"
  5571. ;;
  5572. esac
  5573. ;;
  5574. *64-bit*)
  5575. case $host in
  5576. x86_64-*kfreebsd*-gnu)
  5577. LD="${LD-ld} -m elf_x86_64_fbsd"
  5578. ;;
  5579. x86_64-*linux*)
  5580. LD="${LD-ld} -m elf_x86_64"
  5581. ;;
  5582. powerpcle-*linux*)
  5583. LD="${LD-ld} -m elf64lppc"
  5584. ;;
  5585. powerpc-*linux*)
  5586. LD="${LD-ld} -m elf64ppc"
  5587. ;;
  5588. s390*-*linux*|s390*-*tpf*)
  5589. LD="${LD-ld} -m elf64_s390"
  5590. ;;
  5591. sparc*-*linux*)
  5592. LD="${LD-ld} -m elf64_sparc"
  5593. ;;
  5594. esac
  5595. ;;
  5596. esac
  5597. fi
  5598. rm -rf conftest*
  5599. ;;
  5600. *-*-sco3.2v5*)
  5601. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5602. SAVE_CFLAGS="$CFLAGS"
  5603. CFLAGS="$CFLAGS -belf"
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5605. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5606. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. ac_ext=c
  5610. ac_cpp='$CPP $CPPFLAGS'
  5611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5615. /* end confdefs.h. */
  5616. int
  5617. main ()
  5618. {
  5619. ;
  5620. return 0;
  5621. }
  5622. _ACEOF
  5623. if ac_fn_c_try_link "$LINENO"; then :
  5624. lt_cv_cc_needs_belf=yes
  5625. else
  5626. lt_cv_cc_needs_belf=no
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext \
  5629. conftest$ac_exeext conftest.$ac_ext
  5630. ac_ext=c
  5631. ac_cpp='$CPP $CPPFLAGS'
  5632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5635. fi
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5637. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5638. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5639. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5640. CFLAGS="$SAVE_CFLAGS"
  5641. fi
  5642. ;;
  5643. sparc*-*solaris*)
  5644. # Find out which ABI we are using.
  5645. echo 'int i;' > conftest.$ac_ext
  5646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5647. (eval $ac_compile) 2>&5
  5648. ac_status=$?
  5649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5650. test $ac_status = 0; }; then
  5651. case `/usr/bin/file conftest.o` in
  5652. *64-bit*)
  5653. case $lt_cv_prog_gnu_ld in
  5654. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5655. *)
  5656. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5657. LD="${LD-ld} -64"
  5658. fi
  5659. ;;
  5660. esac
  5661. ;;
  5662. esac
  5663. fi
  5664. rm -rf conftest*
  5665. ;;
  5666. esac
  5667. need_locks="$enable_libtool_lock"
  5668. case $host_os in
  5669. rhapsody* | darwin*)
  5670. if test -n "$ac_tool_prefix"; then
  5671. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5672. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$DSYMUTIL"; then
  5679. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5688. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5698. if test -n "$DSYMUTIL"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5700. $as_echo "$DSYMUTIL" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. fi
  5706. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5707. ac_ct_DSYMUTIL=$DSYMUTIL
  5708. # Extract the first word of "dsymutil", so it can be a program name with args.
  5709. set dummy dsymutil; ac_word=$2
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$ac_ct_DSYMUTIL"; then
  5716. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5725. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5735. if test -n "$ac_ct_DSYMUTIL"; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5737. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5738. else
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. if test "x$ac_ct_DSYMUTIL" = x; then
  5743. DSYMUTIL=":"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. DSYMUTIL=$ac_ct_DSYMUTIL
  5752. fi
  5753. else
  5754. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5755. fi
  5756. if test -n "$ac_tool_prefix"; then
  5757. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5758. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. $as_echo_n "checking for $ac_word... " >&6; }
  5761. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. if test -n "$NMEDIT"; then
  5765. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5766. else
  5767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5768. for as_dir in $PATH
  5769. do
  5770. IFS=$as_save_IFS
  5771. test -z "$as_dir" && as_dir=.
  5772. for ac_exec_ext in '' $ac_executable_extensions; do
  5773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5774. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5776. break 2
  5777. fi
  5778. done
  5779. done
  5780. IFS=$as_save_IFS
  5781. fi
  5782. fi
  5783. NMEDIT=$ac_cv_prog_NMEDIT
  5784. if test -n "$NMEDIT"; then
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5786. $as_echo "$NMEDIT" >&6; }
  5787. else
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5789. $as_echo "no" >&6; }
  5790. fi
  5791. fi
  5792. if test -z "$ac_cv_prog_NMEDIT"; then
  5793. ac_ct_NMEDIT=$NMEDIT
  5794. # Extract the first word of "nmedit", so it can be a program name with args.
  5795. set dummy nmedit; ac_word=$2
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5797. $as_echo_n "checking for $ac_word... " >&6; }
  5798. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. if test -n "$ac_ct_NMEDIT"; then
  5802. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5803. else
  5804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5805. for as_dir in $PATH
  5806. do
  5807. IFS=$as_save_IFS
  5808. test -z "$as_dir" && as_dir=.
  5809. for ac_exec_ext in '' $ac_executable_extensions; do
  5810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5811. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5813. break 2
  5814. fi
  5815. done
  5816. done
  5817. IFS=$as_save_IFS
  5818. fi
  5819. fi
  5820. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5821. if test -n "$ac_ct_NMEDIT"; then
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5823. $as_echo "$ac_ct_NMEDIT" >&6; }
  5824. else
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. if test "x$ac_ct_NMEDIT" = x; then
  5829. NMEDIT=":"
  5830. else
  5831. case $cross_compiling:$ac_tool_warned in
  5832. yes:)
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5835. ac_tool_warned=yes ;;
  5836. esac
  5837. NMEDIT=$ac_ct_NMEDIT
  5838. fi
  5839. else
  5840. NMEDIT="$ac_cv_prog_NMEDIT"
  5841. fi
  5842. if test -n "$ac_tool_prefix"; then
  5843. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5844. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5846. $as_echo_n "checking for $ac_word... " >&6; }
  5847. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. if test -n "$LIPO"; then
  5851. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5852. else
  5853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5854. for as_dir in $PATH
  5855. do
  5856. IFS=$as_save_IFS
  5857. test -z "$as_dir" && as_dir=.
  5858. for ac_exec_ext in '' $ac_executable_extensions; do
  5859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5860. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5862. break 2
  5863. fi
  5864. done
  5865. done
  5866. IFS=$as_save_IFS
  5867. fi
  5868. fi
  5869. LIPO=$ac_cv_prog_LIPO
  5870. if test -n "$LIPO"; then
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5872. $as_echo "$LIPO" >&6; }
  5873. else
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5875. $as_echo "no" >&6; }
  5876. fi
  5877. fi
  5878. if test -z "$ac_cv_prog_LIPO"; then
  5879. ac_ct_LIPO=$LIPO
  5880. # Extract the first word of "lipo", so it can be a program name with args.
  5881. set dummy lipo; ac_word=$2
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5883. $as_echo_n "checking for $ac_word... " >&6; }
  5884. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test -n "$ac_ct_LIPO"; then
  5888. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. test -z "$as_dir" && as_dir=.
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5897. ac_cv_prog_ac_ct_LIPO="lipo"
  5898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5907. if test -n "$ac_ct_LIPO"; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5909. $as_echo "$ac_ct_LIPO" >&6; }
  5910. else
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5912. $as_echo "no" >&6; }
  5913. fi
  5914. if test "x$ac_ct_LIPO" = x; then
  5915. LIPO=":"
  5916. else
  5917. case $cross_compiling:$ac_tool_warned in
  5918. yes:)
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5921. ac_tool_warned=yes ;;
  5922. esac
  5923. LIPO=$ac_ct_LIPO
  5924. fi
  5925. else
  5926. LIPO="$ac_cv_prog_LIPO"
  5927. fi
  5928. if test -n "$ac_tool_prefix"; then
  5929. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5930. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5932. $as_echo_n "checking for $ac_word... " >&6; }
  5933. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. if test -n "$OTOOL"; then
  5937. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5938. else
  5939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5940. for as_dir in $PATH
  5941. do
  5942. IFS=$as_save_IFS
  5943. test -z "$as_dir" && as_dir=.
  5944. for ac_exec_ext in '' $ac_executable_extensions; do
  5945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5946. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5948. break 2
  5949. fi
  5950. done
  5951. done
  5952. IFS=$as_save_IFS
  5953. fi
  5954. fi
  5955. OTOOL=$ac_cv_prog_OTOOL
  5956. if test -n "$OTOOL"; then
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5958. $as_echo "$OTOOL" >&6; }
  5959. else
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5961. $as_echo "no" >&6; }
  5962. fi
  5963. fi
  5964. if test -z "$ac_cv_prog_OTOOL"; then
  5965. ac_ct_OTOOL=$OTOOL
  5966. # Extract the first word of "otool", so it can be a program name with args.
  5967. set dummy otool; ac_word=$2
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5969. $as_echo_n "checking for $ac_word... " >&6; }
  5970. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. if test -n "$ac_ct_OTOOL"; then
  5974. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5975. else
  5976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5977. for as_dir in $PATH
  5978. do
  5979. IFS=$as_save_IFS
  5980. test -z "$as_dir" && as_dir=.
  5981. for ac_exec_ext in '' $ac_executable_extensions; do
  5982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5983. ac_cv_prog_ac_ct_OTOOL="otool"
  5984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5985. break 2
  5986. fi
  5987. done
  5988. done
  5989. IFS=$as_save_IFS
  5990. fi
  5991. fi
  5992. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5993. if test -n "$ac_ct_OTOOL"; then
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5995. $as_echo "$ac_ct_OTOOL" >&6; }
  5996. else
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5998. $as_echo "no" >&6; }
  5999. fi
  6000. if test "x$ac_ct_OTOOL" = x; then
  6001. OTOOL=":"
  6002. else
  6003. case $cross_compiling:$ac_tool_warned in
  6004. yes:)
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6007. ac_tool_warned=yes ;;
  6008. esac
  6009. OTOOL=$ac_ct_OTOOL
  6010. fi
  6011. else
  6012. OTOOL="$ac_cv_prog_OTOOL"
  6013. fi
  6014. if test -n "$ac_tool_prefix"; then
  6015. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6016. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6018. $as_echo_n "checking for $ac_word... " >&6; }
  6019. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6020. $as_echo_n "(cached) " >&6
  6021. else
  6022. if test -n "$OTOOL64"; then
  6023. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6024. else
  6025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6026. for as_dir in $PATH
  6027. do
  6028. IFS=$as_save_IFS
  6029. test -z "$as_dir" && as_dir=.
  6030. for ac_exec_ext in '' $ac_executable_extensions; do
  6031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6032. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6034. break 2
  6035. fi
  6036. done
  6037. done
  6038. IFS=$as_save_IFS
  6039. fi
  6040. fi
  6041. OTOOL64=$ac_cv_prog_OTOOL64
  6042. if test -n "$OTOOL64"; then
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6044. $as_echo "$OTOOL64" >&6; }
  6045. else
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6047. $as_echo "no" >&6; }
  6048. fi
  6049. fi
  6050. if test -z "$ac_cv_prog_OTOOL64"; then
  6051. ac_ct_OTOOL64=$OTOOL64
  6052. # Extract the first word of "otool64", so it can be a program name with args.
  6053. set dummy otool64; ac_word=$2
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6055. $as_echo_n "checking for $ac_word... " >&6; }
  6056. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. if test -n "$ac_ct_OTOOL64"; then
  6060. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6061. else
  6062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6063. for as_dir in $PATH
  6064. do
  6065. IFS=$as_save_IFS
  6066. test -z "$as_dir" && as_dir=.
  6067. for ac_exec_ext in '' $ac_executable_extensions; do
  6068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6069. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6071. break 2
  6072. fi
  6073. done
  6074. done
  6075. IFS=$as_save_IFS
  6076. fi
  6077. fi
  6078. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6079. if test -n "$ac_ct_OTOOL64"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6081. $as_echo "$ac_ct_OTOOL64" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6084. $as_echo "no" >&6; }
  6085. fi
  6086. if test "x$ac_ct_OTOOL64" = x; then
  6087. OTOOL64=":"
  6088. else
  6089. case $cross_compiling:$ac_tool_warned in
  6090. yes:)
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6092. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6093. ac_tool_warned=yes ;;
  6094. esac
  6095. OTOOL64=$ac_ct_OTOOL64
  6096. fi
  6097. else
  6098. OTOOL64="$ac_cv_prog_OTOOL64"
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6101. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6102. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. lt_cv_apple_cc_single_mod=no
  6106. if test -z "${LT_MULTI_MODULE}"; then
  6107. # By default we will add the -single_module flag. You can override
  6108. # by either setting the environment variable LT_MULTI_MODULE
  6109. # non-empty at configure time, or by adding -multi_module to the
  6110. # link flags.
  6111. rm -rf libconftest.dylib*
  6112. echo "int foo(void){return 1;}" > conftest.c
  6113. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6114. -dynamiclib -Wl,-single_module conftest.c" >&5
  6115. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6116. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6117. _lt_result=$?
  6118. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6119. lt_cv_apple_cc_single_mod=yes
  6120. else
  6121. cat conftest.err >&5
  6122. fi
  6123. rm -rf libconftest.dylib*
  6124. rm -f conftest.*
  6125. fi
  6126. fi
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6128. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6130. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6131. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. lt_cv_ld_exported_symbols_list=no
  6135. save_LDFLAGS=$LDFLAGS
  6136. echo "_main" > conftest.sym
  6137. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end confdefs.h. */
  6140. int
  6141. main ()
  6142. {
  6143. ;
  6144. return 0;
  6145. }
  6146. _ACEOF
  6147. if ac_fn_c_try_link "$LINENO"; then :
  6148. lt_cv_ld_exported_symbols_list=yes
  6149. else
  6150. lt_cv_ld_exported_symbols_list=no
  6151. fi
  6152. rm -f core conftest.err conftest.$ac_objext \
  6153. conftest$ac_exeext conftest.$ac_ext
  6154. LDFLAGS="$save_LDFLAGS"
  6155. fi
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6157. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6159. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6160. if test "${lt_cv_ld_force_load+set}" = set; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. lt_cv_ld_force_load=no
  6164. cat > conftest.c << _LT_EOF
  6165. int forced_loaded() { return 2;}
  6166. _LT_EOF
  6167. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6168. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6169. echo "$AR cru libconftest.a conftest.o" >&5
  6170. $AR cru libconftest.a conftest.o 2>&5
  6171. cat > conftest.c << _LT_EOF
  6172. int main() { return 0;}
  6173. _LT_EOF
  6174. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6175. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6176. _lt_result=$?
  6177. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6178. lt_cv_ld_force_load=yes
  6179. else
  6180. cat conftest.err >&5
  6181. fi
  6182. rm -f conftest.err libconftest.a conftest conftest.c
  6183. rm -rf conftest.dSYM
  6184. fi
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6186. $as_echo "$lt_cv_ld_force_load" >&6; }
  6187. case $host_os in
  6188. rhapsody* | darwin1.[012])
  6189. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6190. darwin1.*)
  6191. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6192. darwin*) # darwin 5.x on
  6193. # if running on 10.5 or later, the deployment target defaults
  6194. # to the OS version, if on x86, and 10.4, the deployment
  6195. # target defaults to 10.4. Don't you love it?
  6196. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6197. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6198. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6199. 10.[012]*)
  6200. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6201. 10.*)
  6202. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6203. esac
  6204. ;;
  6205. esac
  6206. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6207. _lt_dar_single_mod='$single_module'
  6208. fi
  6209. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6210. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6211. else
  6212. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6213. fi
  6214. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6215. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6216. else
  6217. _lt_dsymutil=
  6218. fi
  6219. ;;
  6220. esac
  6221. ac_ext=c
  6222. ac_cpp='$CPP $CPPFLAGS'
  6223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6227. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6228. # On Suns, sometimes $CPP names a directory.
  6229. if test -n "$CPP" && test -d "$CPP"; then
  6230. CPP=
  6231. fi
  6232. if test -z "$CPP"; then
  6233. if test "${ac_cv_prog_CPP+set}" = set; then :
  6234. $as_echo_n "(cached) " >&6
  6235. else
  6236. # Double quotes because CPP needs to be expanded
  6237. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6238. do
  6239. ac_preproc_ok=false
  6240. for ac_c_preproc_warn_flag in '' yes
  6241. do
  6242. # Use a header file that comes with gcc, so configuring glibc
  6243. # with a fresh cross-compiler works.
  6244. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6245. # <limits.h> exists even on freestanding compilers.
  6246. # On the NeXT, cc -E runs the code through the compiler's parser,
  6247. # not just through cpp. "Syntax error" is here to catch this case.
  6248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6249. /* end confdefs.h. */
  6250. #ifdef __STDC__
  6251. # include <limits.h>
  6252. #else
  6253. # include <assert.h>
  6254. #endif
  6255. Syntax error
  6256. _ACEOF
  6257. if ac_fn_c_try_cpp "$LINENO"; then :
  6258. else
  6259. # Broken: fails on valid input.
  6260. continue
  6261. fi
  6262. rm -f conftest.err conftest.$ac_ext
  6263. # OK, works on sane cases. Now check whether nonexistent headers
  6264. # can be detected and how.
  6265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6266. /* end confdefs.h. */
  6267. #include <ac_nonexistent.h>
  6268. _ACEOF
  6269. if ac_fn_c_try_cpp "$LINENO"; then :
  6270. # Broken: success on invalid input.
  6271. continue
  6272. else
  6273. # Passes both tests.
  6274. ac_preproc_ok=:
  6275. break
  6276. fi
  6277. rm -f conftest.err conftest.$ac_ext
  6278. done
  6279. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6280. rm -f conftest.err conftest.$ac_ext
  6281. if $ac_preproc_ok; then :
  6282. break
  6283. fi
  6284. done
  6285. ac_cv_prog_CPP=$CPP
  6286. fi
  6287. CPP=$ac_cv_prog_CPP
  6288. else
  6289. ac_cv_prog_CPP=$CPP
  6290. fi
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6292. $as_echo "$CPP" >&6; }
  6293. ac_preproc_ok=false
  6294. for ac_c_preproc_warn_flag in '' yes
  6295. do
  6296. # Use a header file that comes with gcc, so configuring glibc
  6297. # with a fresh cross-compiler works.
  6298. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6299. # <limits.h> exists even on freestanding compilers.
  6300. # On the NeXT, cc -E runs the code through the compiler's parser,
  6301. # not just through cpp. "Syntax error" is here to catch this case.
  6302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h. */
  6304. #ifdef __STDC__
  6305. # include <limits.h>
  6306. #else
  6307. # include <assert.h>
  6308. #endif
  6309. Syntax error
  6310. _ACEOF
  6311. if ac_fn_c_try_cpp "$LINENO"; then :
  6312. else
  6313. # Broken: fails on valid input.
  6314. continue
  6315. fi
  6316. rm -f conftest.err conftest.$ac_ext
  6317. # OK, works on sane cases. Now check whether nonexistent headers
  6318. # can be detected and how.
  6319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6320. /* end confdefs.h. */
  6321. #include <ac_nonexistent.h>
  6322. _ACEOF
  6323. if ac_fn_c_try_cpp "$LINENO"; then :
  6324. # Broken: success on invalid input.
  6325. continue
  6326. else
  6327. # Passes both tests.
  6328. ac_preproc_ok=:
  6329. break
  6330. fi
  6331. rm -f conftest.err conftest.$ac_ext
  6332. done
  6333. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6334. rm -f conftest.err conftest.$ac_ext
  6335. if $ac_preproc_ok; then :
  6336. else
  6337. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6338. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6339. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6340. See \`config.log' for more details." "$LINENO" 5; }
  6341. fi
  6342. ac_ext=c
  6343. ac_cpp='$CPP $CPPFLAGS'
  6344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6348. $as_echo_n "checking for ANSI C header files... " >&6; }
  6349. if test "${ac_cv_header_stdc+set}" = set; then :
  6350. $as_echo_n "(cached) " >&6
  6351. else
  6352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6353. /* end confdefs.h. */
  6354. #include <stdlib.h>
  6355. #include <stdarg.h>
  6356. #include <string.h>
  6357. #include <float.h>
  6358. int
  6359. main ()
  6360. {
  6361. ;
  6362. return 0;
  6363. }
  6364. _ACEOF
  6365. if ac_fn_c_try_compile "$LINENO"; then :
  6366. ac_cv_header_stdc=yes
  6367. else
  6368. ac_cv_header_stdc=no
  6369. fi
  6370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6371. if test $ac_cv_header_stdc = yes; then
  6372. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h. */
  6375. #include <string.h>
  6376. _ACEOF
  6377. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6378. $EGREP "memchr" >/dev/null 2>&1; then :
  6379. else
  6380. ac_cv_header_stdc=no
  6381. fi
  6382. rm -f conftest*
  6383. fi
  6384. if test $ac_cv_header_stdc = yes; then
  6385. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6387. /* end confdefs.h. */
  6388. #include <stdlib.h>
  6389. _ACEOF
  6390. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6391. $EGREP "free" >/dev/null 2>&1; then :
  6392. else
  6393. ac_cv_header_stdc=no
  6394. fi
  6395. rm -f conftest*
  6396. fi
  6397. if test $ac_cv_header_stdc = yes; then
  6398. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6399. if test "$cross_compiling" = yes; then :
  6400. :
  6401. else
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. #include <ctype.h>
  6405. #include <stdlib.h>
  6406. #if ((' ' & 0x0FF) == 0x020)
  6407. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6408. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6409. #else
  6410. # define ISLOWER(c) \
  6411. (('a' <= (c) && (c) <= 'i') \
  6412. || ('j' <= (c) && (c) <= 'r') \
  6413. || ('s' <= (c) && (c) <= 'z'))
  6414. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6415. #endif
  6416. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6417. int
  6418. main ()
  6419. {
  6420. int i;
  6421. for (i = 0; i < 256; i++)
  6422. if (XOR (islower (i), ISLOWER (i))
  6423. || toupper (i) != TOUPPER (i))
  6424. return 2;
  6425. return 0;
  6426. }
  6427. _ACEOF
  6428. if ac_fn_c_try_run "$LINENO"; then :
  6429. else
  6430. ac_cv_header_stdc=no
  6431. fi
  6432. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6433. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6434. fi
  6435. fi
  6436. fi
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6438. $as_echo "$ac_cv_header_stdc" >&6; }
  6439. if test $ac_cv_header_stdc = yes; then
  6440. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6441. fi
  6442. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6443. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6444. inttypes.h stdint.h unistd.h
  6445. do :
  6446. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6447. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6448. "
  6449. eval as_val=\$$as_ac_Header
  6450. if test "x$as_val" = x""yes; then :
  6451. cat >>confdefs.h <<_ACEOF
  6452. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6453. _ACEOF
  6454. fi
  6455. done
  6456. for ac_header in dlfcn.h
  6457. do :
  6458. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6459. "
  6460. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6461. cat >>confdefs.h <<_ACEOF
  6462. #define HAVE_DLFCN_H 1
  6463. _ACEOF
  6464. fi
  6465. done
  6466. # Set options
  6467. enable_win32_dll=no
  6468. # Check whether --enable-shared was given.
  6469. if test "${enable_shared+set}" = set; then :
  6470. enableval=$enable_shared; p=${PACKAGE-default}
  6471. case $enableval in
  6472. yes) enable_shared=yes ;;
  6473. no) enable_shared=no ;;
  6474. *)
  6475. enable_shared=no
  6476. # Look at the argument we got. We use all the common list separators.
  6477. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6478. for pkg in $enableval; do
  6479. IFS="$lt_save_ifs"
  6480. if test "X$pkg" = "X$p"; then
  6481. enable_shared=yes
  6482. fi
  6483. done
  6484. IFS="$lt_save_ifs"
  6485. ;;
  6486. esac
  6487. else
  6488. enable_shared=yes
  6489. fi
  6490. # Check whether --enable-static was given.
  6491. if test "${enable_static+set}" = set; then :
  6492. enableval=$enable_static; p=${PACKAGE-default}
  6493. case $enableval in
  6494. yes) enable_static=yes ;;
  6495. no) enable_static=no ;;
  6496. *)
  6497. enable_static=no
  6498. # Look at the argument we got. We use all the common list separators.
  6499. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6500. for pkg in $enableval; do
  6501. IFS="$lt_save_ifs"
  6502. if test "X$pkg" = "X$p"; then
  6503. enable_static=yes
  6504. fi
  6505. done
  6506. IFS="$lt_save_ifs"
  6507. ;;
  6508. esac
  6509. else
  6510. enable_static=yes
  6511. fi
  6512. # Check whether --with-pic was given.
  6513. if test "${with_pic+set}" = set; then :
  6514. withval=$with_pic; pic_mode="$withval"
  6515. else
  6516. pic_mode=default
  6517. fi
  6518. test -z "$pic_mode" && pic_mode=default
  6519. # Check whether --enable-fast-install was given.
  6520. if test "${enable_fast_install+set}" = set; then :
  6521. enableval=$enable_fast_install; p=${PACKAGE-default}
  6522. case $enableval in
  6523. yes) enable_fast_install=yes ;;
  6524. no) enable_fast_install=no ;;
  6525. *)
  6526. enable_fast_install=no
  6527. # Look at the argument we got. We use all the common list separators.
  6528. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6529. for pkg in $enableval; do
  6530. IFS="$lt_save_ifs"
  6531. if test "X$pkg" = "X$p"; then
  6532. enable_fast_install=yes
  6533. fi
  6534. done
  6535. IFS="$lt_save_ifs"
  6536. ;;
  6537. esac
  6538. else
  6539. enable_fast_install=yes
  6540. fi
  6541. # This can be used to rebuild libtool when needed
  6542. LIBTOOL_DEPS="$ltmain"
  6543. # Always use our own libtool.
  6544. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6545. test -z "$LN_S" && LN_S="ln -s"
  6546. if test -n "${ZSH_VERSION+set}" ; then
  6547. setopt NO_GLOB_SUBST
  6548. fi
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6550. $as_echo_n "checking for objdir... " >&6; }
  6551. if test "${lt_cv_objdir+set}" = set; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. rm -f .libs 2>/dev/null
  6555. mkdir .libs 2>/dev/null
  6556. if test -d .libs; then
  6557. lt_cv_objdir=.libs
  6558. else
  6559. # MS-DOS does not allow filenames that begin with a dot.
  6560. lt_cv_objdir=_libs
  6561. fi
  6562. rmdir .libs 2>/dev/null
  6563. fi
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6565. $as_echo "$lt_cv_objdir" >&6; }
  6566. objdir=$lt_cv_objdir
  6567. cat >>confdefs.h <<_ACEOF
  6568. #define LT_OBJDIR "$lt_cv_objdir/"
  6569. _ACEOF
  6570. case $host_os in
  6571. aix3*)
  6572. # AIX sometimes has problems with the GCC collect2 program. For some
  6573. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6574. # vanish in a puff of smoke.
  6575. if test "X${COLLECT_NAMES+set}" != Xset; then
  6576. COLLECT_NAMES=
  6577. export COLLECT_NAMES
  6578. fi
  6579. ;;
  6580. esac
  6581. # Global variables:
  6582. ofile=libtool
  6583. can_build_shared=yes
  6584. # All known linkers require a `.a' archive for static linking (except MSVC,
  6585. # which needs '.lib').
  6586. libext=a
  6587. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6588. old_CC="$CC"
  6589. old_CFLAGS="$CFLAGS"
  6590. # Set sane defaults for various variables
  6591. test -z "$CC" && CC=cc
  6592. test -z "$LTCC" && LTCC=$CC
  6593. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6594. test -z "$LD" && LD=ld
  6595. test -z "$ac_objext" && ac_objext=o
  6596. for cc_temp in $compiler""; do
  6597. case $cc_temp in
  6598. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6599. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6600. \-*) ;;
  6601. *) break;;
  6602. esac
  6603. done
  6604. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6605. # Only perform the check for file, if the check method requires it
  6606. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6607. case $deplibs_check_method in
  6608. file_magic*)
  6609. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6611. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6612. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. case $MAGIC_CMD in
  6616. [\\/*] | ?:[\\/]*)
  6617. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6618. ;;
  6619. *)
  6620. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6621. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6622. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6623. for ac_dir in $ac_dummy; do
  6624. IFS="$lt_save_ifs"
  6625. test -z "$ac_dir" && ac_dir=.
  6626. if test -f $ac_dir/${ac_tool_prefix}file; then
  6627. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6628. if test -n "$file_magic_test_file"; then
  6629. case $deplibs_check_method in
  6630. "file_magic "*)
  6631. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6632. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6633. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6634. $EGREP "$file_magic_regex" > /dev/null; then
  6635. :
  6636. else
  6637. cat <<_LT_EOF 1>&2
  6638. *** Warning: the command libtool uses to detect shared libraries,
  6639. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6640. *** The result is that libtool may fail to recognize shared libraries
  6641. *** as such. This will affect the creation of libtool libraries that
  6642. *** depend on shared libraries, but programs linked with such libtool
  6643. *** libraries will work regardless of this problem. Nevertheless, you
  6644. *** may want to report the problem to your system manager and/or to
  6645. *** bug-libtool@gnu.org
  6646. _LT_EOF
  6647. fi ;;
  6648. esac
  6649. fi
  6650. break
  6651. fi
  6652. done
  6653. IFS="$lt_save_ifs"
  6654. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6655. ;;
  6656. esac
  6657. fi
  6658. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6659. if test -n "$MAGIC_CMD"; then
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6661. $as_echo "$MAGIC_CMD" >&6; }
  6662. else
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6664. $as_echo "no" >&6; }
  6665. fi
  6666. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6667. if test -n "$ac_tool_prefix"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6669. $as_echo_n "checking for file... " >&6; }
  6670. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. case $MAGIC_CMD in
  6674. [\\/*] | ?:[\\/]*)
  6675. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6676. ;;
  6677. *)
  6678. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6679. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6680. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6681. for ac_dir in $ac_dummy; do
  6682. IFS="$lt_save_ifs"
  6683. test -z "$ac_dir" && ac_dir=.
  6684. if test -f $ac_dir/file; then
  6685. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6686. if test -n "$file_magic_test_file"; then
  6687. case $deplibs_check_method in
  6688. "file_magic "*)
  6689. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6690. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6691. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6692. $EGREP "$file_magic_regex" > /dev/null; then
  6693. :
  6694. else
  6695. cat <<_LT_EOF 1>&2
  6696. *** Warning: the command libtool uses to detect shared libraries,
  6697. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6698. *** The result is that libtool may fail to recognize shared libraries
  6699. *** as such. This will affect the creation of libtool libraries that
  6700. *** depend on shared libraries, but programs linked with such libtool
  6701. *** libraries will work regardless of this problem. Nevertheless, you
  6702. *** may want to report the problem to your system manager and/or to
  6703. *** bug-libtool@gnu.org
  6704. _LT_EOF
  6705. fi ;;
  6706. esac
  6707. fi
  6708. break
  6709. fi
  6710. done
  6711. IFS="$lt_save_ifs"
  6712. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6713. ;;
  6714. esac
  6715. fi
  6716. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6717. if test -n "$MAGIC_CMD"; then
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6719. $as_echo "$MAGIC_CMD" >&6; }
  6720. else
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6722. $as_echo "no" >&6; }
  6723. fi
  6724. else
  6725. MAGIC_CMD=:
  6726. fi
  6727. fi
  6728. fi
  6729. ;;
  6730. esac
  6731. # Use C for the default configuration in the libtool script
  6732. lt_save_CC="$CC"
  6733. ac_ext=c
  6734. ac_cpp='$CPP $CPPFLAGS'
  6735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6738. # Source file extension for C test sources.
  6739. ac_ext=c
  6740. # Object file extension for compiled C test sources.
  6741. objext=o
  6742. objext=$objext
  6743. # Code to be used in simple compile tests
  6744. lt_simple_compile_test_code="int some_variable = 0;"
  6745. # Code to be used in simple link tests
  6746. lt_simple_link_test_code='int main(){return(0);}'
  6747. # If no C compiler was specified, use CC.
  6748. LTCC=${LTCC-"$CC"}
  6749. # If no C compiler flags were specified, use CFLAGS.
  6750. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6751. # Allow CC to be a program name with arguments.
  6752. compiler=$CC
  6753. # Save the default compiler, since it gets overwritten when the other
  6754. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6755. compiler_DEFAULT=$CC
  6756. # save warnings/boilerplate of simple test code
  6757. ac_outfile=conftest.$ac_objext
  6758. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6759. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6760. _lt_compiler_boilerplate=`cat conftest.err`
  6761. $RM conftest*
  6762. ac_outfile=conftest.$ac_objext
  6763. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6764. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6765. _lt_linker_boilerplate=`cat conftest.err`
  6766. $RM -r conftest*
  6767. ## CAVEAT EMPTOR:
  6768. ## There is no encapsulation within the following macros, do not change
  6769. ## the running order or otherwise move them around unless you know exactly
  6770. ## what you are doing...
  6771. if test -n "$compiler"; then
  6772. lt_prog_compiler_no_builtin_flag=
  6773. if test "$GCC" = yes; then
  6774. case $cc_basename in
  6775. nvcc*)
  6776. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6777. *)
  6778. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6779. esac
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6781. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6782. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6783. $as_echo_n "(cached) " >&6
  6784. else
  6785. lt_cv_prog_compiler_rtti_exceptions=no
  6786. ac_outfile=conftest.$ac_objext
  6787. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6788. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6789. # Insert the option either (1) after the last *FLAGS variable, or
  6790. # (2) before a word containing "conftest.", or (3) at the end.
  6791. # Note that $ac_compile itself does not contain backslashes and begins
  6792. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6793. # The option is referenced via a variable to avoid confusing sed.
  6794. lt_compile=`echo "$ac_compile" | $SED \
  6795. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6796. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6797. -e 's:$: $lt_compiler_flag:'`
  6798. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6799. (eval "$lt_compile" 2>conftest.err)
  6800. ac_status=$?
  6801. cat conftest.err >&5
  6802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6803. if (exit $ac_status) && test -s "$ac_outfile"; then
  6804. # The compiler can only warn and ignore the option if not recognized
  6805. # So say no if there are warnings other than the usual output.
  6806. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6807. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6808. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6809. lt_cv_prog_compiler_rtti_exceptions=yes
  6810. fi
  6811. fi
  6812. $RM conftest*
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6815. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6816. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6817. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6818. else
  6819. :
  6820. fi
  6821. fi
  6822. lt_prog_compiler_wl=
  6823. lt_prog_compiler_pic=
  6824. lt_prog_compiler_static=
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6826. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6827. if test "$GCC" = yes; then
  6828. lt_prog_compiler_wl='-Wl,'
  6829. lt_prog_compiler_static='-static'
  6830. case $host_os in
  6831. aix*)
  6832. # All AIX code is PIC.
  6833. if test "$host_cpu" = ia64; then
  6834. # AIX 5 now supports IA64 processor
  6835. lt_prog_compiler_static='-Bstatic'
  6836. fi
  6837. lt_prog_compiler_pic='-fPIC'
  6838. ;;
  6839. amigaos*)
  6840. case $host_cpu in
  6841. powerpc)
  6842. # see comment about AmigaOS4 .so support
  6843. lt_prog_compiler_pic='-fPIC'
  6844. ;;
  6845. m68k)
  6846. # FIXME: we need at least 68020 code to build shared libraries, but
  6847. # adding the `-m68020' flag to GCC prevents building anything better,
  6848. # like `-m68040'.
  6849. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6850. ;;
  6851. esac
  6852. ;;
  6853. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6854. # PIC is the default for these OSes.
  6855. ;;
  6856. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6857. # This hack is so that the source file can tell whether it is being
  6858. # built for inclusion in a dll (and should export symbols for example).
  6859. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6860. # (--disable-auto-import) libraries
  6861. lt_prog_compiler_pic='-DDLL_EXPORT'
  6862. ;;
  6863. darwin* | rhapsody*)
  6864. # PIC is the default on this platform
  6865. # Common symbols not allowed in MH_DYLIB files
  6866. lt_prog_compiler_pic='-fno-common'
  6867. ;;
  6868. haiku*)
  6869. # PIC is the default for Haiku.
  6870. # The "-static" flag exists, but is broken.
  6871. lt_prog_compiler_static=
  6872. ;;
  6873. hpux*)
  6874. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6875. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6876. # sets the default TLS model and affects inlining.
  6877. case $host_cpu in
  6878. hppa*64*)
  6879. # +Z the default
  6880. ;;
  6881. *)
  6882. lt_prog_compiler_pic='-fPIC'
  6883. ;;
  6884. esac
  6885. ;;
  6886. interix[3-9]*)
  6887. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6888. # Instead, we relocate shared libraries at runtime.
  6889. ;;
  6890. msdosdjgpp*)
  6891. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6892. # on systems that don't support them.
  6893. lt_prog_compiler_can_build_shared=no
  6894. enable_shared=no
  6895. ;;
  6896. *nto* | *qnx*)
  6897. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6898. # it will coredump.
  6899. lt_prog_compiler_pic='-fPIC -shared'
  6900. ;;
  6901. sysv4*MP*)
  6902. if test -d /usr/nec; then
  6903. lt_prog_compiler_pic=-Kconform_pic
  6904. fi
  6905. ;;
  6906. *)
  6907. lt_prog_compiler_pic='-fPIC'
  6908. ;;
  6909. esac
  6910. case $cc_basename in
  6911. nvcc*) # Cuda Compiler Driver 2.2
  6912. lt_prog_compiler_wl='-Xlinker '
  6913. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6914. ;;
  6915. esac
  6916. else
  6917. # PORTME Check for flag to pass linker flags through the system compiler.
  6918. case $host_os in
  6919. aix*)
  6920. lt_prog_compiler_wl='-Wl,'
  6921. if test "$host_cpu" = ia64; then
  6922. # AIX 5 now supports IA64 processor
  6923. lt_prog_compiler_static='-Bstatic'
  6924. else
  6925. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6926. fi
  6927. ;;
  6928. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6929. # This hack is so that the source file can tell whether it is being
  6930. # built for inclusion in a dll (and should export symbols for example).
  6931. lt_prog_compiler_pic='-DDLL_EXPORT'
  6932. ;;
  6933. hpux9* | hpux10* | hpux11*)
  6934. lt_prog_compiler_wl='-Wl,'
  6935. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6936. # not for PA HP-UX.
  6937. case $host_cpu in
  6938. hppa*64*|ia64*)
  6939. # +Z the default
  6940. ;;
  6941. *)
  6942. lt_prog_compiler_pic='+Z'
  6943. ;;
  6944. esac
  6945. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6946. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6947. ;;
  6948. irix5* | irix6* | nonstopux*)
  6949. lt_prog_compiler_wl='-Wl,'
  6950. # PIC (with -KPIC) is the default.
  6951. lt_prog_compiler_static='-non_shared'
  6952. ;;
  6953. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6954. case $cc_basename in
  6955. # old Intel for x86_64 which still supported -KPIC.
  6956. ecc*)
  6957. lt_prog_compiler_wl='-Wl,'
  6958. lt_prog_compiler_pic='-KPIC'
  6959. lt_prog_compiler_static='-static'
  6960. ;;
  6961. # icc used to be incompatible with GCC.
  6962. # ICC 10 doesn't accept -KPIC any more.
  6963. icc* | ifort*)
  6964. lt_prog_compiler_wl='-Wl,'
  6965. lt_prog_compiler_pic='-fPIC'
  6966. lt_prog_compiler_static='-static'
  6967. ;;
  6968. # Lahey Fortran 8.1.
  6969. lf95*)
  6970. lt_prog_compiler_wl='-Wl,'
  6971. lt_prog_compiler_pic='--shared'
  6972. lt_prog_compiler_static='--static'
  6973. ;;
  6974. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6975. # Portland Group compilers (*not* the Pentium gcc compiler,
  6976. # which looks to be a dead project)
  6977. lt_prog_compiler_wl='-Wl,'
  6978. lt_prog_compiler_pic='-fpic'
  6979. lt_prog_compiler_static='-Bstatic'
  6980. ;;
  6981. ccc*)
  6982. lt_prog_compiler_wl='-Wl,'
  6983. # All Alpha code is PIC.
  6984. lt_prog_compiler_static='-non_shared'
  6985. ;;
  6986. xl* | bgxl* | bgf* | mpixl*)
  6987. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6988. lt_prog_compiler_wl='-Wl,'
  6989. lt_prog_compiler_pic='-qpic'
  6990. lt_prog_compiler_static='-qstaticlink'
  6991. ;;
  6992. *)
  6993. case `$CC -V 2>&1 | sed 5q` in
  6994. *Sun\ F* | *Sun*Fortran*)
  6995. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6996. lt_prog_compiler_pic='-KPIC'
  6997. lt_prog_compiler_static='-Bstatic'
  6998. lt_prog_compiler_wl=''
  6999. ;;
  7000. *Sun\ C*)
  7001. # Sun C 5.9
  7002. lt_prog_compiler_pic='-KPIC'
  7003. lt_prog_compiler_static='-Bstatic'
  7004. lt_prog_compiler_wl='-Wl,'
  7005. ;;
  7006. esac
  7007. ;;
  7008. esac
  7009. ;;
  7010. newsos6)
  7011. lt_prog_compiler_pic='-KPIC'
  7012. lt_prog_compiler_static='-Bstatic'
  7013. ;;
  7014. *nto* | *qnx*)
  7015. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7016. # it will coredump.
  7017. lt_prog_compiler_pic='-fPIC -shared'
  7018. ;;
  7019. osf3* | osf4* | osf5*)
  7020. lt_prog_compiler_wl='-Wl,'
  7021. # All OSF/1 code is PIC.
  7022. lt_prog_compiler_static='-non_shared'
  7023. ;;
  7024. rdos*)
  7025. lt_prog_compiler_static='-non_shared'
  7026. ;;
  7027. solaris*)
  7028. lt_prog_compiler_pic='-KPIC'
  7029. lt_prog_compiler_static='-Bstatic'
  7030. case $cc_basename in
  7031. f77* | f90* | f95*)
  7032. lt_prog_compiler_wl='-Qoption ld ';;
  7033. *)
  7034. lt_prog_compiler_wl='-Wl,';;
  7035. esac
  7036. ;;
  7037. sunos4*)
  7038. lt_prog_compiler_wl='-Qoption ld '
  7039. lt_prog_compiler_pic='-PIC'
  7040. lt_prog_compiler_static='-Bstatic'
  7041. ;;
  7042. sysv4 | sysv4.2uw2* | sysv4.3*)
  7043. lt_prog_compiler_wl='-Wl,'
  7044. lt_prog_compiler_pic='-KPIC'
  7045. lt_prog_compiler_static='-Bstatic'
  7046. ;;
  7047. sysv4*MP*)
  7048. if test -d /usr/nec ;then
  7049. lt_prog_compiler_pic='-Kconform_pic'
  7050. lt_prog_compiler_static='-Bstatic'
  7051. fi
  7052. ;;
  7053. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_pic='-KPIC'
  7056. lt_prog_compiler_static='-Bstatic'
  7057. ;;
  7058. unicos*)
  7059. lt_prog_compiler_wl='-Wl,'
  7060. lt_prog_compiler_can_build_shared=no
  7061. ;;
  7062. uts4*)
  7063. lt_prog_compiler_pic='-pic'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. ;;
  7066. *)
  7067. lt_prog_compiler_can_build_shared=no
  7068. ;;
  7069. esac
  7070. fi
  7071. case $host_os in
  7072. # For platforms which do not support PIC, -DPIC is meaningless:
  7073. *djgpp*)
  7074. lt_prog_compiler_pic=
  7075. ;;
  7076. *)
  7077. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7078. ;;
  7079. esac
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7081. $as_echo "$lt_prog_compiler_pic" >&6; }
  7082. #
  7083. # Check to make sure the PIC flag actually works.
  7084. #
  7085. if test -n "$lt_prog_compiler_pic"; then
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7087. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7088. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. lt_cv_prog_compiler_pic_works=no
  7092. ac_outfile=conftest.$ac_objext
  7093. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7094. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7095. # Insert the option either (1) after the last *FLAGS variable, or
  7096. # (2) before a word containing "conftest.", or (3) at the end.
  7097. # Note that $ac_compile itself does not contain backslashes and begins
  7098. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7099. # The option is referenced via a variable to avoid confusing sed.
  7100. lt_compile=`echo "$ac_compile" | $SED \
  7101. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7102. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7103. -e 's:$: $lt_compiler_flag:'`
  7104. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7105. (eval "$lt_compile" 2>conftest.err)
  7106. ac_status=$?
  7107. cat conftest.err >&5
  7108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. if (exit $ac_status) && test -s "$ac_outfile"; then
  7110. # The compiler can only warn and ignore the option if not recognized
  7111. # So say no if there are warnings other than the usual output.
  7112. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7113. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7114. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7115. lt_cv_prog_compiler_pic_works=yes
  7116. fi
  7117. fi
  7118. $RM conftest*
  7119. fi
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7121. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7122. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7123. case $lt_prog_compiler_pic in
  7124. "" | " "*) ;;
  7125. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7126. esac
  7127. else
  7128. lt_prog_compiler_pic=
  7129. lt_prog_compiler_can_build_shared=no
  7130. fi
  7131. fi
  7132. #
  7133. # Check to make sure the static flag actually works.
  7134. #
  7135. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7137. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7138. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7139. $as_echo_n "(cached) " >&6
  7140. else
  7141. lt_cv_prog_compiler_static_works=no
  7142. save_LDFLAGS="$LDFLAGS"
  7143. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7144. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7145. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7146. # The linker can only warn and ignore the option if not recognized
  7147. # So say no if there are warnings
  7148. if test -s conftest.err; then
  7149. # Append any errors to the config.log.
  7150. cat conftest.err 1>&5
  7151. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7152. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7153. if diff conftest.exp conftest.er2 >/dev/null; then
  7154. lt_cv_prog_compiler_static_works=yes
  7155. fi
  7156. else
  7157. lt_cv_prog_compiler_static_works=yes
  7158. fi
  7159. fi
  7160. $RM -r conftest*
  7161. LDFLAGS="$save_LDFLAGS"
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7164. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7165. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7166. :
  7167. else
  7168. lt_prog_compiler_static=
  7169. fi
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7171. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7172. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7173. $as_echo_n "(cached) " >&6
  7174. else
  7175. lt_cv_prog_compiler_c_o=no
  7176. $RM -r conftest 2>/dev/null
  7177. mkdir conftest
  7178. cd conftest
  7179. mkdir out
  7180. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7181. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7182. # Insert the option either (1) after the last *FLAGS variable, or
  7183. # (2) before a word containing "conftest.", or (3) at the end.
  7184. # Note that $ac_compile itself does not contain backslashes and begins
  7185. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7186. lt_compile=`echo "$ac_compile" | $SED \
  7187. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7188. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7189. -e 's:$: $lt_compiler_flag:'`
  7190. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7191. (eval "$lt_compile" 2>out/conftest.err)
  7192. ac_status=$?
  7193. cat out/conftest.err >&5
  7194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7195. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7196. then
  7197. # The compiler can only warn and ignore the option if not recognized
  7198. # So say no if there are warnings
  7199. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7200. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7201. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7202. lt_cv_prog_compiler_c_o=yes
  7203. fi
  7204. fi
  7205. chmod u+w . 2>&5
  7206. $RM conftest*
  7207. # SGI C++ compiler will create directory out/ii_files/ for
  7208. # template instantiation
  7209. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7210. $RM out/* && rmdir out
  7211. cd ..
  7212. $RM -r conftest
  7213. $RM conftest*
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7216. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7218. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7219. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. lt_cv_prog_compiler_c_o=no
  7223. $RM -r conftest 2>/dev/null
  7224. mkdir conftest
  7225. cd conftest
  7226. mkdir out
  7227. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7228. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7229. # Insert the option either (1) after the last *FLAGS variable, or
  7230. # (2) before a word containing "conftest.", or (3) at the end.
  7231. # Note that $ac_compile itself does not contain backslashes and begins
  7232. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7233. lt_compile=`echo "$ac_compile" | $SED \
  7234. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7235. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7236. -e 's:$: $lt_compiler_flag:'`
  7237. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7238. (eval "$lt_compile" 2>out/conftest.err)
  7239. ac_status=$?
  7240. cat out/conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7243. then
  7244. # The compiler can only warn and ignore the option if not recognized
  7245. # So say no if there are warnings
  7246. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7247. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7248. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7249. lt_cv_prog_compiler_c_o=yes
  7250. fi
  7251. fi
  7252. chmod u+w . 2>&5
  7253. $RM conftest*
  7254. # SGI C++ compiler will create directory out/ii_files/ for
  7255. # template instantiation
  7256. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7257. $RM out/* && rmdir out
  7258. cd ..
  7259. $RM -r conftest
  7260. $RM conftest*
  7261. fi
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7263. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7264. hard_links="nottested"
  7265. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7266. # do not overwrite the value of need_locks provided by the user
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7268. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7269. hard_links=yes
  7270. $RM conftest*
  7271. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7272. touch conftest.a
  7273. ln conftest.a conftest.b 2>&5 || hard_links=no
  7274. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7276. $as_echo "$hard_links" >&6; }
  7277. if test "$hard_links" = no; then
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7279. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7280. need_locks=warn
  7281. fi
  7282. else
  7283. need_locks=no
  7284. fi
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7286. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7287. runpath_var=
  7288. allow_undefined_flag=
  7289. always_export_symbols=no
  7290. archive_cmds=
  7291. archive_expsym_cmds=
  7292. compiler_needs_object=no
  7293. enable_shared_with_static_runtimes=no
  7294. export_dynamic_flag_spec=
  7295. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7296. hardcode_automatic=no
  7297. hardcode_direct=no
  7298. hardcode_direct_absolute=no
  7299. hardcode_libdir_flag_spec=
  7300. hardcode_libdir_flag_spec_ld=
  7301. hardcode_libdir_separator=
  7302. hardcode_minus_L=no
  7303. hardcode_shlibpath_var=unsupported
  7304. inherit_rpath=no
  7305. link_all_deplibs=unknown
  7306. module_cmds=
  7307. module_expsym_cmds=
  7308. old_archive_from_new_cmds=
  7309. old_archive_from_expsyms_cmds=
  7310. thread_safe_flag_spec=
  7311. whole_archive_flag_spec=
  7312. # include_expsyms should be a list of space-separated symbols to be *always*
  7313. # included in the symbol list
  7314. include_expsyms=
  7315. # exclude_expsyms can be an extended regexp of symbols to exclude
  7316. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7317. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7318. # as well as any symbol that contains `d'.
  7319. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7320. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7321. # platforms (ab)use it in PIC code, but their linkers get confused if
  7322. # the symbol is explicitly referenced. Since portable code cannot
  7323. # rely on this symbol name, it's probably fine to never include it in
  7324. # preloaded symbol tables.
  7325. # Exclude shared library initialization/finalization symbols.
  7326. extract_expsyms_cmds=
  7327. case $host_os in
  7328. cygwin* | mingw* | pw32* | cegcc*)
  7329. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7330. # When not using gcc, we currently assume that we are using
  7331. # Microsoft Visual C++.
  7332. if test "$GCC" != yes; then
  7333. with_gnu_ld=no
  7334. fi
  7335. ;;
  7336. interix*)
  7337. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7338. with_gnu_ld=yes
  7339. ;;
  7340. openbsd*)
  7341. with_gnu_ld=no
  7342. ;;
  7343. esac
  7344. ld_shlibs=yes
  7345. # On some targets, GNU ld is compatible enough with the native linker
  7346. # that we're better off using the native interface for both.
  7347. lt_use_gnu_ld_interface=no
  7348. if test "$with_gnu_ld" = yes; then
  7349. case $host_os in
  7350. aix*)
  7351. # The AIX port of GNU ld has always aspired to compatibility
  7352. # with the native linker. However, as the warning in the GNU ld
  7353. # block says, versions before 2.19.5* couldn't really create working
  7354. # shared libraries, regardless of the interface used.
  7355. case `$LD -v 2>&1` in
  7356. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7357. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7358. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7359. *)
  7360. lt_use_gnu_ld_interface=yes
  7361. ;;
  7362. esac
  7363. ;;
  7364. *)
  7365. lt_use_gnu_ld_interface=yes
  7366. ;;
  7367. esac
  7368. fi
  7369. if test "$lt_use_gnu_ld_interface" = yes; then
  7370. # If archive_cmds runs LD, not CC, wlarc should be empty
  7371. wlarc='${wl}'
  7372. # Set some defaults for GNU ld with shared library support. These
  7373. # are reset later if shared libraries are not supported. Putting them
  7374. # here allows them to be overridden if necessary.
  7375. runpath_var=LD_RUN_PATH
  7376. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7377. export_dynamic_flag_spec='${wl}--export-dynamic'
  7378. # ancient GNU ld didn't support --whole-archive et. al.
  7379. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7380. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7381. else
  7382. whole_archive_flag_spec=
  7383. fi
  7384. supports_anon_versioning=no
  7385. case `$LD -v 2>&1` in
  7386. *GNU\ gold*) supports_anon_versioning=yes ;;
  7387. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7388. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7389. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7390. *\ 2.11.*) ;; # other 2.11 versions
  7391. *) supports_anon_versioning=yes ;;
  7392. esac
  7393. # See if GNU ld supports shared libraries.
  7394. case $host_os in
  7395. aix[3-9]*)
  7396. # On AIX/PPC, the GNU linker is very broken
  7397. if test "$host_cpu" != ia64; then
  7398. ld_shlibs=no
  7399. cat <<_LT_EOF 1>&2
  7400. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7401. *** to be unable to reliably create shared libraries on AIX.
  7402. *** Therefore, libtool is disabling shared libraries support. If you
  7403. *** really care for shared libraries, you may want to install binutils
  7404. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7405. *** You will then need to restart the configuration process.
  7406. _LT_EOF
  7407. fi
  7408. ;;
  7409. amigaos*)
  7410. case $host_cpu in
  7411. powerpc)
  7412. # see comment about AmigaOS4 .so support
  7413. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7414. archive_expsym_cmds=''
  7415. ;;
  7416. m68k)
  7417. 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)'
  7418. hardcode_libdir_flag_spec='-L$libdir'
  7419. hardcode_minus_L=yes
  7420. ;;
  7421. esac
  7422. ;;
  7423. beos*)
  7424. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7425. allow_undefined_flag=unsupported
  7426. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7427. # support --undefined. This deserves some investigation. FIXME
  7428. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7429. else
  7430. ld_shlibs=no
  7431. fi
  7432. ;;
  7433. cygwin* | mingw* | pw32* | cegcc*)
  7434. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7435. # as there is no search path for DLLs.
  7436. hardcode_libdir_flag_spec='-L$libdir'
  7437. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7438. allow_undefined_flag=unsupported
  7439. always_export_symbols=no
  7440. enable_shared_with_static_runtimes=yes
  7441. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7442. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7443. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7444. # If the export-symbols file already is a .def file (1st line
  7445. # is EXPORTS), use it as is; otherwise, prepend...
  7446. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7447. cp $export_symbols $output_objdir/$soname.def;
  7448. else
  7449. echo EXPORTS > $output_objdir/$soname.def;
  7450. cat $export_symbols >> $output_objdir/$soname.def;
  7451. fi~
  7452. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7453. else
  7454. ld_shlibs=no
  7455. fi
  7456. ;;
  7457. haiku*)
  7458. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7459. link_all_deplibs=yes
  7460. ;;
  7461. interix[3-9]*)
  7462. hardcode_direct=no
  7463. hardcode_shlibpath_var=no
  7464. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7465. export_dynamic_flag_spec='${wl}-E'
  7466. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7467. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7468. # default) and relocated if they conflict, which is a slow very memory
  7469. # consuming and fragmenting process. To avoid this, we pick a random,
  7470. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7471. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7472. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7473. 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'
  7474. ;;
  7475. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7476. tmp_diet=no
  7477. if test "$host_os" = linux-dietlibc; then
  7478. case $cc_basename in
  7479. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7480. esac
  7481. fi
  7482. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7483. && test "$tmp_diet" = no
  7484. then
  7485. tmp_addflag=
  7486. tmp_sharedflag='-shared'
  7487. case $cc_basename,$host_cpu in
  7488. pgcc*) # Portland Group C compiler
  7489. 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'
  7490. tmp_addflag=' $pic_flag'
  7491. ;;
  7492. pgf77* | pgf90* | pgf95* | pgfortran*)
  7493. # Portland Group f77 and f90 compilers
  7494. 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'
  7495. tmp_addflag=' $pic_flag -Mnomain' ;;
  7496. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7497. tmp_addflag=' -i_dynamic' ;;
  7498. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7499. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7500. ifc* | ifort*) # Intel Fortran compiler
  7501. tmp_addflag=' -nofor_main' ;;
  7502. lf95*) # Lahey Fortran 8.1
  7503. whole_archive_flag_spec=
  7504. tmp_sharedflag='--shared' ;;
  7505. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7506. tmp_sharedflag='-qmkshrobj'
  7507. tmp_addflag= ;;
  7508. nvcc*) # Cuda Compiler Driver 2.2
  7509. 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'
  7510. compiler_needs_object=yes
  7511. ;;
  7512. esac
  7513. case `$CC -V 2>&1 | sed 5q` in
  7514. *Sun\ C*) # Sun C 5.9
  7515. 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'
  7516. compiler_needs_object=yes
  7517. tmp_sharedflag='-G' ;;
  7518. *Sun\ F*) # Sun Fortran 8.3
  7519. tmp_sharedflag='-G' ;;
  7520. esac
  7521. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7522. if test "x$supports_anon_versioning" = xyes; then
  7523. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7524. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7525. echo "local: *; };" >> $output_objdir/$libname.ver~
  7526. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7527. fi
  7528. case $cc_basename in
  7529. xlf* | bgf* | bgxlf* | mpixlf*)
  7530. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7531. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7532. hardcode_libdir_flag_spec=
  7533. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7534. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7535. if test "x$supports_anon_versioning" = xyes; then
  7536. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7537. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7538. echo "local: *; };" >> $output_objdir/$libname.ver~
  7539. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7540. fi
  7541. ;;
  7542. esac
  7543. else
  7544. ld_shlibs=no
  7545. fi
  7546. ;;
  7547. netbsd*)
  7548. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7549. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7550. wlarc=
  7551. else
  7552. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7553. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7554. fi
  7555. ;;
  7556. solaris*)
  7557. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7558. ld_shlibs=no
  7559. cat <<_LT_EOF 1>&2
  7560. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7561. *** create shared libraries on Solaris systems. Therefore, libtool
  7562. *** is disabling shared libraries support. We urge you to upgrade GNU
  7563. *** binutils to release 2.9.1 or newer. Another option is to modify
  7564. *** your PATH or compiler configuration so that the native linker is
  7565. *** used, and then restart.
  7566. _LT_EOF
  7567. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7568. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7569. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7570. else
  7571. ld_shlibs=no
  7572. fi
  7573. ;;
  7574. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7575. case `$LD -v 2>&1` in
  7576. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7577. ld_shlibs=no
  7578. cat <<_LT_EOF 1>&2
  7579. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7580. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7581. *** is disabling shared libraries support. We urge you to upgrade GNU
  7582. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7583. *** your PATH or compiler configuration so that the native linker is
  7584. *** used, and then restart.
  7585. _LT_EOF
  7586. ;;
  7587. *)
  7588. # For security reasons, it is highly recommended that you always
  7589. # use absolute paths for naming shared libraries, and exclude the
  7590. # DT_RUNPATH tag from executables and libraries. But doing so
  7591. # requires that you compile everything twice, which is a pain.
  7592. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7593. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7594. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7595. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. esac
  7601. ;;
  7602. sunos4*)
  7603. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7604. wlarc=
  7605. hardcode_direct=yes
  7606. hardcode_shlibpath_var=no
  7607. ;;
  7608. *)
  7609. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7610. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7611. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7612. else
  7613. ld_shlibs=no
  7614. fi
  7615. ;;
  7616. esac
  7617. if test "$ld_shlibs" = no; then
  7618. runpath_var=
  7619. hardcode_libdir_flag_spec=
  7620. export_dynamic_flag_spec=
  7621. whole_archive_flag_spec=
  7622. fi
  7623. else
  7624. # PORTME fill in a description of your system's linker (not GNU ld)
  7625. case $host_os in
  7626. aix3*)
  7627. allow_undefined_flag=unsupported
  7628. always_export_symbols=yes
  7629. 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'
  7630. # Note: this linker hardcodes the directories in LIBPATH if there
  7631. # are no directories specified by -L.
  7632. hardcode_minus_L=yes
  7633. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7634. # Neither direct hardcoding nor static linking is supported with a
  7635. # broken collect2.
  7636. hardcode_direct=unsupported
  7637. fi
  7638. ;;
  7639. aix[4-9]*)
  7640. if test "$host_cpu" = ia64; then
  7641. # On IA64, the linker does run time linking by default, so we don't
  7642. # have to do anything special.
  7643. aix_use_runtimelinking=no
  7644. exp_sym_flag='-Bexport'
  7645. no_entry_flag=""
  7646. else
  7647. # If we're using GNU nm, then we don't want the "-C" option.
  7648. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7649. # Also, AIX nm treats weak defined symbols like other global
  7650. # defined symbols, whereas GNU nm marks them as "W".
  7651. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7652. 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'
  7653. else
  7654. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7655. fi
  7656. aix_use_runtimelinking=no
  7657. # Test if we are trying to use run time linking or normal
  7658. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7659. # need to do runtime linking.
  7660. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7661. for ld_flag in $LDFLAGS; do
  7662. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7663. aix_use_runtimelinking=yes
  7664. break
  7665. fi
  7666. done
  7667. ;;
  7668. esac
  7669. exp_sym_flag='-bexport'
  7670. no_entry_flag='-bnoentry'
  7671. fi
  7672. # When large executables or shared objects are built, AIX ld can
  7673. # have problems creating the table of contents. If linking a library
  7674. # or program results in "error TOC overflow" add -mminimal-toc to
  7675. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7676. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7677. archive_cmds=''
  7678. hardcode_direct=yes
  7679. hardcode_direct_absolute=yes
  7680. hardcode_libdir_separator=':'
  7681. link_all_deplibs=yes
  7682. file_list_spec='${wl}-f,'
  7683. if test "$GCC" = yes; then
  7684. case $host_os in aix4.[012]|aix4.[012].*)
  7685. # We only want to do this on AIX 4.2 and lower, the check
  7686. # below for broken collect2 doesn't work under 4.3+
  7687. collect2name=`${CC} -print-prog-name=collect2`
  7688. if test -f "$collect2name" &&
  7689. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7690. then
  7691. # We have reworked collect2
  7692. :
  7693. else
  7694. # We have old collect2
  7695. hardcode_direct=unsupported
  7696. # It fails to find uninstalled libraries when the uninstalled
  7697. # path is not listed in the libpath. Setting hardcode_minus_L
  7698. # to unsupported forces relinking
  7699. hardcode_minus_L=yes
  7700. hardcode_libdir_flag_spec='-L$libdir'
  7701. hardcode_libdir_separator=
  7702. fi
  7703. ;;
  7704. esac
  7705. shared_flag='-shared'
  7706. if test "$aix_use_runtimelinking" = yes; then
  7707. shared_flag="$shared_flag "'${wl}-G'
  7708. fi
  7709. else
  7710. # not using gcc
  7711. if test "$host_cpu" = ia64; then
  7712. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7713. # chokes on -Wl,-G. The following line is correct:
  7714. shared_flag='-G'
  7715. else
  7716. if test "$aix_use_runtimelinking" = yes; then
  7717. shared_flag='${wl}-G'
  7718. else
  7719. shared_flag='${wl}-bM:SRE'
  7720. fi
  7721. fi
  7722. fi
  7723. export_dynamic_flag_spec='${wl}-bexpall'
  7724. # It seems that -bexpall does not export symbols beginning with
  7725. # underscore (_), so it is better to generate a list of symbols to export.
  7726. always_export_symbols=yes
  7727. if test "$aix_use_runtimelinking" = yes; then
  7728. # Warning - without using the other runtime loading flags (-brtl),
  7729. # -berok will link without error, but may produce a broken library.
  7730. allow_undefined_flag='-berok'
  7731. # Determine the default libpath from the value encoded in an
  7732. # empty executable.
  7733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7734. /* end confdefs.h. */
  7735. int
  7736. main ()
  7737. {
  7738. ;
  7739. return 0;
  7740. }
  7741. _ACEOF
  7742. if ac_fn_c_try_link "$LINENO"; then :
  7743. lt_aix_libpath_sed='
  7744. /Import File Strings/,/^$/ {
  7745. /^0/ {
  7746. s/^0 *\(.*\)$/\1/
  7747. p
  7748. }
  7749. }'
  7750. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7751. # Check for a 64-bit object if we didn't find anything.
  7752. if test -z "$aix_libpath"; then
  7753. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7754. fi
  7755. fi
  7756. rm -f core conftest.err conftest.$ac_objext \
  7757. conftest$ac_exeext conftest.$ac_ext
  7758. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7759. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7760. 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"
  7761. else
  7762. if test "$host_cpu" = ia64; then
  7763. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7764. allow_undefined_flag="-z nodefs"
  7765. 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"
  7766. else
  7767. # Determine the default libpath from the value encoded in an
  7768. # empty executable.
  7769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7770. /* end confdefs.h. */
  7771. int
  7772. main ()
  7773. {
  7774. ;
  7775. return 0;
  7776. }
  7777. _ACEOF
  7778. if ac_fn_c_try_link "$LINENO"; then :
  7779. lt_aix_libpath_sed='
  7780. /Import File Strings/,/^$/ {
  7781. /^0/ {
  7782. s/^0 *\(.*\)$/\1/
  7783. p
  7784. }
  7785. }'
  7786. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7787. # Check for a 64-bit object if we didn't find anything.
  7788. if test -z "$aix_libpath"; then
  7789. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7790. fi
  7791. fi
  7792. rm -f core conftest.err conftest.$ac_objext \
  7793. conftest$ac_exeext conftest.$ac_ext
  7794. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7795. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7796. # Warning - without using the other run time loading flags,
  7797. # -berok will link without error, but may produce a broken library.
  7798. no_undefined_flag=' ${wl}-bernotok'
  7799. allow_undefined_flag=' ${wl}-berok'
  7800. if test "$with_gnu_ld" = yes; then
  7801. # We only use this code for GNU lds that support --whole-archive.
  7802. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7803. else
  7804. # Exported symbols can be pulled into shared objects from archives
  7805. whole_archive_flag_spec='$convenience'
  7806. fi
  7807. archive_cmds_need_lc=yes
  7808. # This is similar to how AIX traditionally builds its shared libraries.
  7809. 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'
  7810. fi
  7811. fi
  7812. ;;
  7813. amigaos*)
  7814. case $host_cpu in
  7815. powerpc)
  7816. # see comment about AmigaOS4 .so support
  7817. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7818. archive_expsym_cmds=''
  7819. ;;
  7820. m68k)
  7821. 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)'
  7822. hardcode_libdir_flag_spec='-L$libdir'
  7823. hardcode_minus_L=yes
  7824. ;;
  7825. esac
  7826. ;;
  7827. bsdi[45]*)
  7828. export_dynamic_flag_spec=-rdynamic
  7829. ;;
  7830. cygwin* | mingw* | pw32* | cegcc*)
  7831. # When not using gcc, we currently assume that we are using
  7832. # Microsoft Visual C++.
  7833. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7834. # no search path for DLLs.
  7835. hardcode_libdir_flag_spec=' '
  7836. allow_undefined_flag=unsupported
  7837. # Tell ltmain to make .lib files, not .a files.
  7838. libext=lib
  7839. # Tell ltmain to make .dll files, not .so files.
  7840. shrext_cmds=".dll"
  7841. # FIXME: Setting linknames here is a bad hack.
  7842. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7843. # The linker will automatically build a .lib file if we build a DLL.
  7844. old_archive_from_new_cmds='true'
  7845. # FIXME: Should let the user specify the lib program.
  7846. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7847. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7848. enable_shared_with_static_runtimes=yes
  7849. ;;
  7850. darwin* | rhapsody*)
  7851. archive_cmds_need_lc=no
  7852. hardcode_direct=no
  7853. hardcode_automatic=yes
  7854. hardcode_shlibpath_var=unsupported
  7855. if test "$lt_cv_ld_force_load" = "yes"; then
  7856. 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\"`'
  7857. else
  7858. whole_archive_flag_spec=''
  7859. fi
  7860. link_all_deplibs=yes
  7861. allow_undefined_flag="$_lt_dar_allow_undefined"
  7862. case $cc_basename in
  7863. ifort*) _lt_dar_can_shared=yes ;;
  7864. *) _lt_dar_can_shared=$GCC ;;
  7865. esac
  7866. if test "$_lt_dar_can_shared" = "yes"; then
  7867. output_verbose_link_cmd=func_echo_all
  7868. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7869. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7870. 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}"
  7871. 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}"
  7872. else
  7873. ld_shlibs=no
  7874. fi
  7875. ;;
  7876. dgux*)
  7877. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7878. hardcode_libdir_flag_spec='-L$libdir'
  7879. hardcode_shlibpath_var=no
  7880. ;;
  7881. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7882. # support. Future versions do this automatically, but an explicit c++rt0.o
  7883. # does not break anything, and helps significantly (at the cost of a little
  7884. # extra space).
  7885. freebsd2.2*)
  7886. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7887. hardcode_libdir_flag_spec='-R$libdir'
  7888. hardcode_direct=yes
  7889. hardcode_shlibpath_var=no
  7890. ;;
  7891. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7892. freebsd2.*)
  7893. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7894. hardcode_direct=yes
  7895. hardcode_minus_L=yes
  7896. hardcode_shlibpath_var=no
  7897. ;;
  7898. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7899. freebsd* | dragonfly*)
  7900. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7901. hardcode_libdir_flag_spec='-R$libdir'
  7902. hardcode_direct=yes
  7903. hardcode_shlibpath_var=no
  7904. ;;
  7905. hpux9*)
  7906. if test "$GCC" = yes; then
  7907. 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'
  7908. else
  7909. 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'
  7910. fi
  7911. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7912. hardcode_libdir_separator=:
  7913. hardcode_direct=yes
  7914. # hardcode_minus_L: Not really in the search PATH,
  7915. # but as the default location of the library.
  7916. hardcode_minus_L=yes
  7917. export_dynamic_flag_spec='${wl}-E'
  7918. ;;
  7919. hpux10*)
  7920. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7921. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7922. else
  7923. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7924. fi
  7925. if test "$with_gnu_ld" = no; then
  7926. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7927. hardcode_libdir_flag_spec_ld='+b $libdir'
  7928. hardcode_libdir_separator=:
  7929. hardcode_direct=yes
  7930. hardcode_direct_absolute=yes
  7931. export_dynamic_flag_spec='${wl}-E'
  7932. # hardcode_minus_L: Not really in the search PATH,
  7933. # but as the default location of the library.
  7934. hardcode_minus_L=yes
  7935. fi
  7936. ;;
  7937. hpux11*)
  7938. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7939. case $host_cpu in
  7940. hppa*64*)
  7941. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7942. ;;
  7943. ia64*)
  7944. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7945. ;;
  7946. *)
  7947. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7948. ;;
  7949. esac
  7950. else
  7951. case $host_cpu in
  7952. hppa*64*)
  7953. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7954. ;;
  7955. ia64*)
  7956. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7957. ;;
  7958. *)
  7959. # Older versions of the 11.00 compiler do not understand -b yet
  7960. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7962. $as_echo_n "checking if $CC understands -b... " >&6; }
  7963. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7964. $as_echo_n "(cached) " >&6
  7965. else
  7966. lt_cv_prog_compiler__b=no
  7967. save_LDFLAGS="$LDFLAGS"
  7968. LDFLAGS="$LDFLAGS -b"
  7969. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7970. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7971. # The linker can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings
  7973. if test -s conftest.err; then
  7974. # Append any errors to the config.log.
  7975. cat conftest.err 1>&5
  7976. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7977. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7978. if diff conftest.exp conftest.er2 >/dev/null; then
  7979. lt_cv_prog_compiler__b=yes
  7980. fi
  7981. else
  7982. lt_cv_prog_compiler__b=yes
  7983. fi
  7984. fi
  7985. $RM -r conftest*
  7986. LDFLAGS="$save_LDFLAGS"
  7987. fi
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7989. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7990. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7991. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7992. else
  7993. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7994. fi
  7995. ;;
  7996. esac
  7997. fi
  7998. if test "$with_gnu_ld" = no; then
  7999. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8000. hardcode_libdir_separator=:
  8001. case $host_cpu in
  8002. hppa*64*|ia64*)
  8003. hardcode_direct=no
  8004. hardcode_shlibpath_var=no
  8005. ;;
  8006. *)
  8007. hardcode_direct=yes
  8008. hardcode_direct_absolute=yes
  8009. export_dynamic_flag_spec='${wl}-E'
  8010. # hardcode_minus_L: Not really in the search PATH,
  8011. # but as the default location of the library.
  8012. hardcode_minus_L=yes
  8013. ;;
  8014. esac
  8015. fi
  8016. ;;
  8017. irix5* | irix6* | nonstopux*)
  8018. if test "$GCC" = yes; then
  8019. 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'
  8020. # Try to use the -exported_symbol ld option, if it does not
  8021. # work, assume that -exports_file does not work either and
  8022. # implicitly export all symbols.
  8023. save_LDFLAGS="$LDFLAGS"
  8024. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8026. /* end confdefs.h. */
  8027. int foo(void) {}
  8028. _ACEOF
  8029. if ac_fn_c_try_link "$LINENO"; then :
  8030. 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'
  8031. fi
  8032. rm -f core conftest.err conftest.$ac_objext \
  8033. conftest$ac_exeext conftest.$ac_ext
  8034. LDFLAGS="$save_LDFLAGS"
  8035. else
  8036. 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'
  8037. 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'
  8038. fi
  8039. archive_cmds_need_lc='no'
  8040. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8041. hardcode_libdir_separator=:
  8042. inherit_rpath=yes
  8043. link_all_deplibs=yes
  8044. ;;
  8045. netbsd*)
  8046. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8047. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8048. else
  8049. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8050. fi
  8051. hardcode_libdir_flag_spec='-R$libdir'
  8052. hardcode_direct=yes
  8053. hardcode_shlibpath_var=no
  8054. ;;
  8055. newsos6)
  8056. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8057. hardcode_direct=yes
  8058. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8059. hardcode_libdir_separator=:
  8060. hardcode_shlibpath_var=no
  8061. ;;
  8062. *nto* | *qnx*)
  8063. ;;
  8064. openbsd*)
  8065. if test -f /usr/libexec/ld.so; then
  8066. hardcode_direct=yes
  8067. hardcode_shlibpath_var=no
  8068. hardcode_direct_absolute=yes
  8069. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8070. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8071. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8072. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8073. export_dynamic_flag_spec='${wl}-E'
  8074. else
  8075. case $host_os in
  8076. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8077. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8078. hardcode_libdir_flag_spec='-R$libdir'
  8079. ;;
  8080. *)
  8081. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8082. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8083. ;;
  8084. esac
  8085. fi
  8086. else
  8087. ld_shlibs=no
  8088. fi
  8089. ;;
  8090. os2*)
  8091. hardcode_libdir_flag_spec='-L$libdir'
  8092. hardcode_minus_L=yes
  8093. allow_undefined_flag=unsupported
  8094. 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'
  8095. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8096. ;;
  8097. osf3*)
  8098. if test "$GCC" = yes; then
  8099. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8100. 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'
  8101. else
  8102. allow_undefined_flag=' -expect_unresolved \*'
  8103. 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'
  8104. fi
  8105. archive_cmds_need_lc='no'
  8106. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8107. hardcode_libdir_separator=:
  8108. ;;
  8109. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8110. if test "$GCC" = yes; then
  8111. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8112. 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'
  8113. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8114. else
  8115. allow_undefined_flag=' -expect_unresolved \*'
  8116. 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'
  8117. 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~
  8118. $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'
  8119. # Both c and cxx compiler support -rpath directly
  8120. hardcode_libdir_flag_spec='-rpath $libdir'
  8121. fi
  8122. archive_cmds_need_lc='no'
  8123. hardcode_libdir_separator=:
  8124. ;;
  8125. solaris*)
  8126. no_undefined_flag=' -z defs'
  8127. if test "$GCC" = yes; then
  8128. wlarc='${wl}'
  8129. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8130. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8131. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8132. else
  8133. case `$CC -V 2>&1` in
  8134. *"Compilers 5.0"*)
  8135. wlarc=''
  8136. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8137. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8138. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8139. ;;
  8140. *)
  8141. wlarc='${wl}'
  8142. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8143. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8144. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8145. ;;
  8146. esac
  8147. fi
  8148. hardcode_libdir_flag_spec='-R$libdir'
  8149. hardcode_shlibpath_var=no
  8150. case $host_os in
  8151. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8152. *)
  8153. # The compiler driver will combine and reorder linker options,
  8154. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8155. # but is careful enough not to reorder.
  8156. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8157. if test "$GCC" = yes; then
  8158. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8159. else
  8160. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8161. fi
  8162. ;;
  8163. esac
  8164. link_all_deplibs=yes
  8165. ;;
  8166. sunos4*)
  8167. if test "x$host_vendor" = xsequent; then
  8168. # Use $CC to link under sequent, because it throws in some extra .o
  8169. # files that make .init and .fini sections work.
  8170. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8171. else
  8172. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8173. fi
  8174. hardcode_libdir_flag_spec='-L$libdir'
  8175. hardcode_direct=yes
  8176. hardcode_minus_L=yes
  8177. hardcode_shlibpath_var=no
  8178. ;;
  8179. sysv4)
  8180. case $host_vendor in
  8181. sni)
  8182. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8183. hardcode_direct=yes # is this really true???
  8184. ;;
  8185. siemens)
  8186. ## LD is ld it makes a PLAMLIB
  8187. ## CC just makes a GrossModule.
  8188. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8189. reload_cmds='$CC -r -o $output$reload_objs'
  8190. hardcode_direct=no
  8191. ;;
  8192. motorola)
  8193. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8194. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8195. ;;
  8196. esac
  8197. runpath_var='LD_RUN_PATH'
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. sysv4.3*)
  8201. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8202. hardcode_shlibpath_var=no
  8203. export_dynamic_flag_spec='-Bexport'
  8204. ;;
  8205. sysv4*MP*)
  8206. if test -d /usr/nec; then
  8207. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8208. hardcode_shlibpath_var=no
  8209. runpath_var=LD_RUN_PATH
  8210. hardcode_runpath_var=yes
  8211. ld_shlibs=yes
  8212. fi
  8213. ;;
  8214. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8215. no_undefined_flag='${wl}-z,text'
  8216. archive_cmds_need_lc=no
  8217. hardcode_shlibpath_var=no
  8218. runpath_var='LD_RUN_PATH'
  8219. if test "$GCC" = yes; then
  8220. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8221. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8222. else
  8223. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8224. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8225. fi
  8226. ;;
  8227. sysv5* | sco3.2v5* | sco5v6*)
  8228. # Note: We can NOT use -z defs as we might desire, because we do not
  8229. # link with -lc, and that would cause any symbols used from libc to
  8230. # always be unresolved, which means just about no library would
  8231. # ever link correctly. If we're not using GNU ld we use -z text
  8232. # though, which does catch some bad symbols but isn't as heavy-handed
  8233. # as -z defs.
  8234. no_undefined_flag='${wl}-z,text'
  8235. allow_undefined_flag='${wl}-z,nodefs'
  8236. archive_cmds_need_lc=no
  8237. hardcode_shlibpath_var=no
  8238. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8239. hardcode_libdir_separator=':'
  8240. link_all_deplibs=yes
  8241. export_dynamic_flag_spec='${wl}-Bexport'
  8242. runpath_var='LD_RUN_PATH'
  8243. if test "$GCC" = yes; then
  8244. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8245. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8246. else
  8247. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8248. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8249. fi
  8250. ;;
  8251. uts4*)
  8252. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8253. hardcode_libdir_flag_spec='-L$libdir'
  8254. hardcode_shlibpath_var=no
  8255. ;;
  8256. *)
  8257. ld_shlibs=no
  8258. ;;
  8259. esac
  8260. if test x$host_vendor = xsni; then
  8261. case $host in
  8262. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8263. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8264. ;;
  8265. esac
  8266. fi
  8267. fi
  8268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8269. $as_echo "$ld_shlibs" >&6; }
  8270. test "$ld_shlibs" = no && can_build_shared=no
  8271. with_gnu_ld=$with_gnu_ld
  8272. #
  8273. # Do we need to explicitly link libc?
  8274. #
  8275. case "x$archive_cmds_need_lc" in
  8276. x|xyes)
  8277. # Assume -lc should be added
  8278. archive_cmds_need_lc=yes
  8279. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8280. case $archive_cmds in
  8281. *'~'*)
  8282. # FIXME: we may have to deal with multi-command sequences.
  8283. ;;
  8284. '$CC '*)
  8285. # Test whether the compiler implicitly links with -lc since on some
  8286. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8287. # to ld, don't add -lc before -lgcc.
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8289. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8290. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8291. $as_echo_n "(cached) " >&6
  8292. else
  8293. $RM conftest*
  8294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8295. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8296. (eval $ac_compile) 2>&5
  8297. ac_status=$?
  8298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8299. test $ac_status = 0; } 2>conftest.err; then
  8300. soname=conftest
  8301. lib=conftest
  8302. libobjs=conftest.$ac_objext
  8303. deplibs=
  8304. wl=$lt_prog_compiler_wl
  8305. pic_flag=$lt_prog_compiler_pic
  8306. compiler_flags=-v
  8307. linker_flags=-v
  8308. verstring=
  8309. output_objdir=.
  8310. libname=conftest
  8311. lt_save_allow_undefined_flag=$allow_undefined_flag
  8312. allow_undefined_flag=
  8313. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8314. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8315. ac_status=$?
  8316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8317. test $ac_status = 0; }
  8318. then
  8319. lt_cv_archive_cmds_need_lc=no
  8320. else
  8321. lt_cv_archive_cmds_need_lc=yes
  8322. fi
  8323. allow_undefined_flag=$lt_save_allow_undefined_flag
  8324. else
  8325. cat conftest.err 1>&5
  8326. fi
  8327. $RM conftest*
  8328. fi
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8330. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8331. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8332. ;;
  8333. esac
  8334. fi
  8335. ;;
  8336. esac
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8338. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8339. if test "$GCC" = yes; then
  8340. case $host_os in
  8341. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8342. *) lt_awk_arg="/^libraries:/" ;;
  8343. esac
  8344. case $host_os in
  8345. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8346. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8347. esac
  8348. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8349. case $lt_search_path_spec in
  8350. *\;*)
  8351. # if the path contains ";" then we assume it to be the separator
  8352. # otherwise default to the standard path separator (i.e. ":") - it is
  8353. # assumed that no part of a normal pathname contains ";" but that should
  8354. # okay in the real world where ";" in dirpaths is itself problematic.
  8355. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8356. ;;
  8357. *)
  8358. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8359. ;;
  8360. esac
  8361. # Ok, now we have the path, separated by spaces, we can step through it
  8362. # and add multilib dir if necessary.
  8363. lt_tmp_lt_search_path_spec=
  8364. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8365. for lt_sys_path in $lt_search_path_spec; do
  8366. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8367. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8368. else
  8369. test -d "$lt_sys_path" && \
  8370. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8371. fi
  8372. done
  8373. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8374. BEGIN {RS=" "; FS="/|\n";} {
  8375. lt_foo="";
  8376. lt_count=0;
  8377. for (lt_i = NF; lt_i > 0; lt_i--) {
  8378. if ($lt_i != "" && $lt_i != ".") {
  8379. if ($lt_i == "..") {
  8380. lt_count++;
  8381. } else {
  8382. if (lt_count == 0) {
  8383. lt_foo="/" $lt_i lt_foo;
  8384. } else {
  8385. lt_count--;
  8386. }
  8387. }
  8388. }
  8389. }
  8390. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8391. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8392. }'`
  8393. # AWK program above erroneously prepends '/' to C:/dos/paths
  8394. # for these hosts.
  8395. case $host_os in
  8396. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8397. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8398. esac
  8399. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8400. else
  8401. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8402. fi
  8403. library_names_spec=
  8404. libname_spec='lib$name'
  8405. soname_spec=
  8406. shrext_cmds=".so"
  8407. postinstall_cmds=
  8408. postuninstall_cmds=
  8409. finish_cmds=
  8410. finish_eval=
  8411. shlibpath_var=
  8412. shlibpath_overrides_runpath=unknown
  8413. version_type=none
  8414. dynamic_linker="$host_os ld.so"
  8415. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8416. need_lib_prefix=unknown
  8417. hardcode_into_libs=no
  8418. # when you set need_version to no, make sure it does not cause -set_version
  8419. # flags to be left without arguments
  8420. need_version=unknown
  8421. case $host_os in
  8422. aix3*)
  8423. version_type=linux
  8424. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8425. shlibpath_var=LIBPATH
  8426. # AIX 3 has no versioning support, so we append a major version to the name.
  8427. soname_spec='${libname}${release}${shared_ext}$major'
  8428. ;;
  8429. aix[4-9]*)
  8430. version_type=linux
  8431. need_lib_prefix=no
  8432. need_version=no
  8433. hardcode_into_libs=yes
  8434. if test "$host_cpu" = ia64; then
  8435. # AIX 5 supports IA64
  8436. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8437. shlibpath_var=LD_LIBRARY_PATH
  8438. else
  8439. # With GCC up to 2.95.x, collect2 would create an import file
  8440. # for dependence libraries. The import file would start with
  8441. # the line `#! .'. This would cause the generated library to
  8442. # depend on `.', always an invalid library. This was fixed in
  8443. # development snapshots of GCC prior to 3.0.
  8444. case $host_os in
  8445. aix4 | aix4.[01] | aix4.[01].*)
  8446. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8447. echo ' yes '
  8448. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8449. :
  8450. else
  8451. can_build_shared=no
  8452. fi
  8453. ;;
  8454. esac
  8455. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8456. # soname into executable. Probably we can add versioning support to
  8457. # collect2, so additional links can be useful in future.
  8458. if test "$aix_use_runtimelinking" = yes; then
  8459. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8460. # instead of lib<name>.a to let people know that these are not
  8461. # typical AIX shared libraries.
  8462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8463. else
  8464. # We preserve .a as extension for shared libraries through AIX4.2
  8465. # and later when we are not doing run time linking.
  8466. library_names_spec='${libname}${release}.a $libname.a'
  8467. soname_spec='${libname}${release}${shared_ext}$major'
  8468. fi
  8469. shlibpath_var=LIBPATH
  8470. fi
  8471. ;;
  8472. amigaos*)
  8473. case $host_cpu in
  8474. powerpc)
  8475. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8476. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8478. ;;
  8479. m68k)
  8480. library_names_spec='$libname.ixlibrary $libname.a'
  8481. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8482. 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'
  8483. ;;
  8484. esac
  8485. ;;
  8486. beos*)
  8487. library_names_spec='${libname}${shared_ext}'
  8488. dynamic_linker="$host_os ld.so"
  8489. shlibpath_var=LIBRARY_PATH
  8490. ;;
  8491. bsdi[45]*)
  8492. version_type=linux
  8493. need_version=no
  8494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8495. soname_spec='${libname}${release}${shared_ext}$major'
  8496. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8497. shlibpath_var=LD_LIBRARY_PATH
  8498. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8499. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8500. # the default ld.so.conf also contains /usr/contrib/lib and
  8501. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8502. # libtool to hard-code these into programs
  8503. ;;
  8504. cygwin* | mingw* | pw32* | cegcc*)
  8505. version_type=windows
  8506. shrext_cmds=".dll"
  8507. need_version=no
  8508. need_lib_prefix=no
  8509. case $GCC,$host_os in
  8510. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8511. library_names_spec='$libname.dll.a'
  8512. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8513. postinstall_cmds='base_file=`basename \${file}`~
  8514. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8515. dldir=$destdir/`dirname \$dlpath`~
  8516. test -d \$dldir || mkdir -p \$dldir~
  8517. $install_prog $dir/$dlname \$dldir/$dlname~
  8518. chmod a+x \$dldir/$dlname~
  8519. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8520. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8521. fi'
  8522. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8523. dlpath=$dir/\$dldll~
  8524. $RM \$dlpath'
  8525. shlibpath_overrides_runpath=yes
  8526. case $host_os in
  8527. cygwin*)
  8528. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8529. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8530. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8531. ;;
  8532. mingw* | cegcc*)
  8533. # MinGW DLLs use traditional 'lib' prefix
  8534. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8535. ;;
  8536. pw32*)
  8537. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8538. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8539. ;;
  8540. esac
  8541. ;;
  8542. *)
  8543. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8544. ;;
  8545. esac
  8546. dynamic_linker='Win32 ld.exe'
  8547. # FIXME: first we should search . and the directory the executable is in
  8548. shlibpath_var=PATH
  8549. ;;
  8550. darwin* | rhapsody*)
  8551. dynamic_linker="$host_os dyld"
  8552. version_type=darwin
  8553. need_lib_prefix=no
  8554. need_version=no
  8555. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8556. soname_spec='${libname}${release}${major}$shared_ext'
  8557. shlibpath_overrides_runpath=yes
  8558. shlibpath_var=DYLD_LIBRARY_PATH
  8559. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8560. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8561. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8562. ;;
  8563. dgux*)
  8564. version_type=linux
  8565. need_lib_prefix=no
  8566. need_version=no
  8567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8568. soname_spec='${libname}${release}${shared_ext}$major'
  8569. shlibpath_var=LD_LIBRARY_PATH
  8570. ;;
  8571. freebsd* | dragonfly*)
  8572. # DragonFly does not have aout. When/if they implement a new
  8573. # versioning mechanism, adjust this.
  8574. if test -x /usr/bin/objformat; then
  8575. objformat=`/usr/bin/objformat`
  8576. else
  8577. case $host_os in
  8578. freebsd[23].*) objformat=aout ;;
  8579. *) objformat=elf ;;
  8580. esac
  8581. fi
  8582. version_type=freebsd-$objformat
  8583. case $version_type in
  8584. freebsd-elf*)
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8586. need_version=no
  8587. need_lib_prefix=no
  8588. ;;
  8589. freebsd-*)
  8590. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8591. need_version=yes
  8592. ;;
  8593. esac
  8594. shlibpath_var=LD_LIBRARY_PATH
  8595. case $host_os in
  8596. freebsd2.*)
  8597. shlibpath_overrides_runpath=yes
  8598. ;;
  8599. freebsd3.[01]* | freebsdelf3.[01]*)
  8600. shlibpath_overrides_runpath=yes
  8601. hardcode_into_libs=yes
  8602. ;;
  8603. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8604. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8605. shlibpath_overrides_runpath=no
  8606. hardcode_into_libs=yes
  8607. ;;
  8608. *) # from 4.6 on, and DragonFly
  8609. shlibpath_overrides_runpath=yes
  8610. hardcode_into_libs=yes
  8611. ;;
  8612. esac
  8613. ;;
  8614. gnu*)
  8615. version_type=linux
  8616. need_lib_prefix=no
  8617. need_version=no
  8618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. shlibpath_var=LD_LIBRARY_PATH
  8621. hardcode_into_libs=yes
  8622. ;;
  8623. haiku*)
  8624. version_type=linux
  8625. need_lib_prefix=no
  8626. need_version=no
  8627. dynamic_linker="$host_os runtime_loader"
  8628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8629. soname_spec='${libname}${release}${shared_ext}$major'
  8630. shlibpath_var=LIBRARY_PATH
  8631. shlibpath_overrides_runpath=yes
  8632. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8633. hardcode_into_libs=yes
  8634. ;;
  8635. hpux9* | hpux10* | hpux11*)
  8636. # Give a soname corresponding to the major version so that dld.sl refuses to
  8637. # link against other versions.
  8638. version_type=sunos
  8639. need_lib_prefix=no
  8640. need_version=no
  8641. case $host_cpu in
  8642. ia64*)
  8643. shrext_cmds='.so'
  8644. hardcode_into_libs=yes
  8645. dynamic_linker="$host_os dld.so"
  8646. shlibpath_var=LD_LIBRARY_PATH
  8647. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8649. soname_spec='${libname}${release}${shared_ext}$major'
  8650. if test "X$HPUX_IA64_MODE" = X32; then
  8651. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8652. else
  8653. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8654. fi
  8655. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8656. ;;
  8657. hppa*64*)
  8658. shrext_cmds='.sl'
  8659. hardcode_into_libs=yes
  8660. dynamic_linker="$host_os dld.sl"
  8661. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8662. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8664. soname_spec='${libname}${release}${shared_ext}$major'
  8665. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8666. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8667. ;;
  8668. *)
  8669. shrext_cmds='.sl'
  8670. dynamic_linker="$host_os dld.sl"
  8671. shlibpath_var=SHLIB_PATH
  8672. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8674. soname_spec='${libname}${release}${shared_ext}$major'
  8675. ;;
  8676. esac
  8677. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8678. postinstall_cmds='chmod 555 $lib'
  8679. # or fails outright, so override atomically:
  8680. install_override_mode=555
  8681. ;;
  8682. interix[3-9]*)
  8683. version_type=linux
  8684. need_lib_prefix=no
  8685. need_version=no
  8686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8687. soname_spec='${libname}${release}${shared_ext}$major'
  8688. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8689. shlibpath_var=LD_LIBRARY_PATH
  8690. shlibpath_overrides_runpath=no
  8691. hardcode_into_libs=yes
  8692. ;;
  8693. irix5* | irix6* | nonstopux*)
  8694. case $host_os in
  8695. nonstopux*) version_type=nonstopux ;;
  8696. *)
  8697. if test "$lt_cv_prog_gnu_ld" = yes; then
  8698. version_type=linux
  8699. else
  8700. version_type=irix
  8701. fi ;;
  8702. esac
  8703. need_lib_prefix=no
  8704. need_version=no
  8705. soname_spec='${libname}${release}${shared_ext}$major'
  8706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8707. case $host_os in
  8708. irix5* | nonstopux*)
  8709. libsuff= shlibsuff=
  8710. ;;
  8711. *)
  8712. case $LD in # libtool.m4 will add one of these switches to LD
  8713. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8714. libsuff= shlibsuff= libmagic=32-bit;;
  8715. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8716. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8717. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8718. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8719. *) libsuff= shlibsuff= libmagic=never-match;;
  8720. esac
  8721. ;;
  8722. esac
  8723. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8724. shlibpath_overrides_runpath=no
  8725. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8726. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8727. hardcode_into_libs=yes
  8728. ;;
  8729. # No shared lib support for Linux oldld, aout, or coff.
  8730. linux*oldld* | linux*aout* | linux*coff*)
  8731. dynamic_linker=no
  8732. ;;
  8733. # This must be Linux ELF.
  8734. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8735. version_type=linux
  8736. need_lib_prefix=no
  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 -n $libdir'
  8741. shlibpath_var=LD_LIBRARY_PATH
  8742. shlibpath_overrides_runpath=no
  8743. # Some binutils ld are patched to set DT_RUNPATH
  8744. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8745. $as_echo_n "(cached) " >&6
  8746. else
  8747. lt_cv_shlibpath_overrides_runpath=no
  8748. save_LDFLAGS=$LDFLAGS
  8749. save_libdir=$libdir
  8750. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8751. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8753. /* end confdefs.h. */
  8754. int
  8755. main ()
  8756. {
  8757. ;
  8758. return 0;
  8759. }
  8760. _ACEOF
  8761. if ac_fn_c_try_link "$LINENO"; then :
  8762. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8763. lt_cv_shlibpath_overrides_runpath=yes
  8764. fi
  8765. fi
  8766. rm -f core conftest.err conftest.$ac_objext \
  8767. conftest$ac_exeext conftest.$ac_ext
  8768. LDFLAGS=$save_LDFLAGS
  8769. libdir=$save_libdir
  8770. fi
  8771. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8772. # This implies no fast_install, which is unacceptable.
  8773. # Some rework will be needed to allow for fast_install
  8774. # before this can be enabled.
  8775. hardcode_into_libs=yes
  8776. # Append ld.so.conf contents to the search path
  8777. if test -f /etc/ld.so.conf; then
  8778. 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' ' '`
  8779. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8780. fi
  8781. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8782. # powerpc, because MkLinux only supported shared libraries with the
  8783. # GNU dynamic linker. Since this was broken with cross compilers,
  8784. # most powerpc-linux boxes support dynamic linking these days and
  8785. # people can always --disable-shared, the test was removed, and we
  8786. # assume the GNU/Linux dynamic linker is in use.
  8787. dynamic_linker='GNU/Linux ld.so'
  8788. ;;
  8789. netbsd*)
  8790. version_type=sunos
  8791. need_lib_prefix=no
  8792. need_version=no
  8793. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8795. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8796. dynamic_linker='NetBSD (a.out) ld.so'
  8797. else
  8798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8799. soname_spec='${libname}${release}${shared_ext}$major'
  8800. dynamic_linker='NetBSD ld.elf_so'
  8801. fi
  8802. shlibpath_var=LD_LIBRARY_PATH
  8803. shlibpath_overrides_runpath=yes
  8804. hardcode_into_libs=yes
  8805. ;;
  8806. newsos6)
  8807. version_type=linux
  8808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8809. shlibpath_var=LD_LIBRARY_PATH
  8810. shlibpath_overrides_runpath=yes
  8811. ;;
  8812. *nto* | *qnx*)
  8813. version_type=qnx
  8814. need_lib_prefix=no
  8815. need_version=no
  8816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8817. soname_spec='${libname}${release}${shared_ext}$major'
  8818. shlibpath_var=LD_LIBRARY_PATH
  8819. shlibpath_overrides_runpath=no
  8820. hardcode_into_libs=yes
  8821. dynamic_linker='ldqnx.so'
  8822. ;;
  8823. openbsd*)
  8824. version_type=sunos
  8825. sys_lib_dlsearch_path_spec="/usr/lib"
  8826. need_lib_prefix=no
  8827. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8828. case $host_os in
  8829. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8830. *) need_version=no ;;
  8831. esac
  8832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8833. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8836. case $host_os in
  8837. openbsd2.[89] | openbsd2.[89].*)
  8838. shlibpath_overrides_runpath=no
  8839. ;;
  8840. *)
  8841. shlibpath_overrides_runpath=yes
  8842. ;;
  8843. esac
  8844. else
  8845. shlibpath_overrides_runpath=yes
  8846. fi
  8847. ;;
  8848. os2*)
  8849. libname_spec='$name'
  8850. shrext_cmds=".dll"
  8851. need_lib_prefix=no
  8852. library_names_spec='$libname${shared_ext} $libname.a'
  8853. dynamic_linker='OS/2 ld.exe'
  8854. shlibpath_var=LIBPATH
  8855. ;;
  8856. osf3* | osf4* | osf5*)
  8857. version_type=osf
  8858. need_lib_prefix=no
  8859. need_version=no
  8860. soname_spec='${libname}${release}${shared_ext}$major'
  8861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8862. shlibpath_var=LD_LIBRARY_PATH
  8863. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8864. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8865. ;;
  8866. rdos*)
  8867. dynamic_linker=no
  8868. ;;
  8869. solaris*)
  8870. version_type=linux
  8871. need_lib_prefix=no
  8872. need_version=no
  8873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8874. soname_spec='${libname}${release}${shared_ext}$major'
  8875. shlibpath_var=LD_LIBRARY_PATH
  8876. shlibpath_overrides_runpath=yes
  8877. hardcode_into_libs=yes
  8878. # ldd complains unless libraries are executable
  8879. postinstall_cmds='chmod +x $lib'
  8880. ;;
  8881. sunos4*)
  8882. version_type=sunos
  8883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8884. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8885. shlibpath_var=LD_LIBRARY_PATH
  8886. shlibpath_overrides_runpath=yes
  8887. if test "$with_gnu_ld" = yes; then
  8888. need_lib_prefix=no
  8889. fi
  8890. need_version=yes
  8891. ;;
  8892. sysv4 | sysv4.3*)
  8893. version_type=linux
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8895. soname_spec='${libname}${release}${shared_ext}$major'
  8896. shlibpath_var=LD_LIBRARY_PATH
  8897. case $host_vendor in
  8898. sni)
  8899. shlibpath_overrides_runpath=no
  8900. need_lib_prefix=no
  8901. runpath_var=LD_RUN_PATH
  8902. ;;
  8903. siemens)
  8904. need_lib_prefix=no
  8905. ;;
  8906. motorola)
  8907. need_lib_prefix=no
  8908. need_version=no
  8909. shlibpath_overrides_runpath=no
  8910. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8911. ;;
  8912. esac
  8913. ;;
  8914. sysv4*MP*)
  8915. if test -d /usr/nec ;then
  8916. version_type=linux
  8917. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8918. soname_spec='$libname${shared_ext}.$major'
  8919. shlibpath_var=LD_LIBRARY_PATH
  8920. fi
  8921. ;;
  8922. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8923. version_type=freebsd-elf
  8924. need_lib_prefix=no
  8925. need_version=no
  8926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8927. soname_spec='${libname}${release}${shared_ext}$major'
  8928. shlibpath_var=LD_LIBRARY_PATH
  8929. shlibpath_overrides_runpath=yes
  8930. hardcode_into_libs=yes
  8931. if test "$with_gnu_ld" = yes; then
  8932. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8933. else
  8934. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8935. case $host_os in
  8936. sco3.2v5*)
  8937. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8938. ;;
  8939. esac
  8940. fi
  8941. sys_lib_dlsearch_path_spec='/usr/lib'
  8942. ;;
  8943. tpf*)
  8944. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8945. version_type=linux
  8946. need_lib_prefix=no
  8947. need_version=no
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8949. shlibpath_var=LD_LIBRARY_PATH
  8950. shlibpath_overrides_runpath=no
  8951. hardcode_into_libs=yes
  8952. ;;
  8953. uts4*)
  8954. version_type=linux
  8955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8956. soname_spec='${libname}${release}${shared_ext}$major'
  8957. shlibpath_var=LD_LIBRARY_PATH
  8958. ;;
  8959. *)
  8960. dynamic_linker=no
  8961. ;;
  8962. esac
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8964. $as_echo "$dynamic_linker" >&6; }
  8965. test "$dynamic_linker" = no && can_build_shared=no
  8966. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8967. if test "$GCC" = yes; then
  8968. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8969. fi
  8970. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8971. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8972. fi
  8973. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8974. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8975. fi
  8976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8977. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8978. hardcode_action=
  8979. if test -n "$hardcode_libdir_flag_spec" ||
  8980. test -n "$runpath_var" ||
  8981. test "X$hardcode_automatic" = "Xyes" ; then
  8982. # We can hardcode non-existent directories.
  8983. if test "$hardcode_direct" != no &&
  8984. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8985. # have to relink, otherwise we might link with an installed library
  8986. # when we should be linking with a yet-to-be-installed one
  8987. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8988. test "$hardcode_minus_L" != no; then
  8989. # Linking always hardcodes the temporary library directory.
  8990. hardcode_action=relink
  8991. else
  8992. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8993. hardcode_action=immediate
  8994. fi
  8995. else
  8996. # We cannot hardcode anything, or else we can only hardcode existing
  8997. # directories.
  8998. hardcode_action=unsupported
  8999. fi
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9001. $as_echo "$hardcode_action" >&6; }
  9002. if test "$hardcode_action" = relink ||
  9003. test "$inherit_rpath" = yes; then
  9004. # Fast installation is not supported
  9005. enable_fast_install=no
  9006. elif test "$shlibpath_overrides_runpath" = yes ||
  9007. test "$enable_shared" = no; then
  9008. # Fast installation is not necessary
  9009. enable_fast_install=needless
  9010. fi
  9011. if test "x$enable_dlopen" != xyes; then
  9012. enable_dlopen=unknown
  9013. enable_dlopen_self=unknown
  9014. enable_dlopen_self_static=unknown
  9015. else
  9016. lt_cv_dlopen=no
  9017. lt_cv_dlopen_libs=
  9018. case $host_os in
  9019. beos*)
  9020. lt_cv_dlopen="load_add_on"
  9021. lt_cv_dlopen_libs=
  9022. lt_cv_dlopen_self=yes
  9023. ;;
  9024. mingw* | pw32* | cegcc*)
  9025. lt_cv_dlopen="LoadLibrary"
  9026. lt_cv_dlopen_libs=
  9027. ;;
  9028. cygwin*)
  9029. lt_cv_dlopen="dlopen"
  9030. lt_cv_dlopen_libs=
  9031. ;;
  9032. darwin*)
  9033. # if libdl is installed we need to link against it
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9035. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9036. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9037. $as_echo_n "(cached) " >&6
  9038. else
  9039. ac_check_lib_save_LIBS=$LIBS
  9040. LIBS="-ldl $LIBS"
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. /* Override any GCC internal prototype to avoid an error.
  9044. Use char because int might match the return type of a GCC
  9045. builtin and then its argument prototype would still apply. */
  9046. #ifdef __cplusplus
  9047. extern "C"
  9048. #endif
  9049. char dlopen ();
  9050. int
  9051. main ()
  9052. {
  9053. return dlopen ();
  9054. ;
  9055. return 0;
  9056. }
  9057. _ACEOF
  9058. if ac_fn_c_try_link "$LINENO"; then :
  9059. ac_cv_lib_dl_dlopen=yes
  9060. else
  9061. ac_cv_lib_dl_dlopen=no
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext \
  9064. conftest$ac_exeext conftest.$ac_ext
  9065. LIBS=$ac_check_lib_save_LIBS
  9066. fi
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9068. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9069. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9070. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9071. else
  9072. lt_cv_dlopen="dyld"
  9073. lt_cv_dlopen_libs=
  9074. lt_cv_dlopen_self=yes
  9075. fi
  9076. ;;
  9077. *)
  9078. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9079. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9080. lt_cv_dlopen="shl_load"
  9081. else
  9082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9083. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9084. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9085. $as_echo_n "(cached) " >&6
  9086. else
  9087. ac_check_lib_save_LIBS=$LIBS
  9088. LIBS="-ldld $LIBS"
  9089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9090. /* end confdefs.h. */
  9091. /* Override any GCC internal prototype to avoid an error.
  9092. Use char because int might match the return type of a GCC
  9093. builtin and then its argument prototype would still apply. */
  9094. #ifdef __cplusplus
  9095. extern "C"
  9096. #endif
  9097. char shl_load ();
  9098. int
  9099. main ()
  9100. {
  9101. return shl_load ();
  9102. ;
  9103. return 0;
  9104. }
  9105. _ACEOF
  9106. if ac_fn_c_try_link "$LINENO"; then :
  9107. ac_cv_lib_dld_shl_load=yes
  9108. else
  9109. ac_cv_lib_dld_shl_load=no
  9110. fi
  9111. rm -f core conftest.err conftest.$ac_objext \
  9112. conftest$ac_exeext conftest.$ac_ext
  9113. LIBS=$ac_check_lib_save_LIBS
  9114. fi
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9116. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9117. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9118. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9119. else
  9120. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9121. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9122. lt_cv_dlopen="dlopen"
  9123. else
  9124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9125. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9126. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9127. $as_echo_n "(cached) " >&6
  9128. else
  9129. ac_check_lib_save_LIBS=$LIBS
  9130. LIBS="-ldl $LIBS"
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. /* Override any GCC internal prototype to avoid an error.
  9134. Use char because int might match the return type of a GCC
  9135. builtin and then its argument prototype would still apply. */
  9136. #ifdef __cplusplus
  9137. extern "C"
  9138. #endif
  9139. char dlopen ();
  9140. int
  9141. main ()
  9142. {
  9143. return dlopen ();
  9144. ;
  9145. return 0;
  9146. }
  9147. _ACEOF
  9148. if ac_fn_c_try_link "$LINENO"; then :
  9149. ac_cv_lib_dl_dlopen=yes
  9150. else
  9151. ac_cv_lib_dl_dlopen=no
  9152. fi
  9153. rm -f core conftest.err conftest.$ac_objext \
  9154. conftest$ac_exeext conftest.$ac_ext
  9155. LIBS=$ac_check_lib_save_LIBS
  9156. fi
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9158. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9159. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9160. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9161. else
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9163. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9164. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9165. $as_echo_n "(cached) " >&6
  9166. else
  9167. ac_check_lib_save_LIBS=$LIBS
  9168. LIBS="-lsvld $LIBS"
  9169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9170. /* end confdefs.h. */
  9171. /* Override any GCC internal prototype to avoid an error.
  9172. Use char because int might match the return type of a GCC
  9173. builtin and then its argument prototype would still apply. */
  9174. #ifdef __cplusplus
  9175. extern "C"
  9176. #endif
  9177. char dlopen ();
  9178. int
  9179. main ()
  9180. {
  9181. return dlopen ();
  9182. ;
  9183. return 0;
  9184. }
  9185. _ACEOF
  9186. if ac_fn_c_try_link "$LINENO"; then :
  9187. ac_cv_lib_svld_dlopen=yes
  9188. else
  9189. ac_cv_lib_svld_dlopen=no
  9190. fi
  9191. rm -f core conftest.err conftest.$ac_objext \
  9192. conftest$ac_exeext conftest.$ac_ext
  9193. LIBS=$ac_check_lib_save_LIBS
  9194. fi
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9196. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9197. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9198. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9199. else
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9201. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9202. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9203. $as_echo_n "(cached) " >&6
  9204. else
  9205. ac_check_lib_save_LIBS=$LIBS
  9206. LIBS="-ldld $LIBS"
  9207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9208. /* end confdefs.h. */
  9209. /* Override any GCC internal prototype to avoid an error.
  9210. Use char because int might match the return type of a GCC
  9211. builtin and then its argument prototype would still apply. */
  9212. #ifdef __cplusplus
  9213. extern "C"
  9214. #endif
  9215. char dld_link ();
  9216. int
  9217. main ()
  9218. {
  9219. return dld_link ();
  9220. ;
  9221. return 0;
  9222. }
  9223. _ACEOF
  9224. if ac_fn_c_try_link "$LINENO"; then :
  9225. ac_cv_lib_dld_dld_link=yes
  9226. else
  9227. ac_cv_lib_dld_dld_link=no
  9228. fi
  9229. rm -f core conftest.err conftest.$ac_objext \
  9230. conftest$ac_exeext conftest.$ac_ext
  9231. LIBS=$ac_check_lib_save_LIBS
  9232. fi
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9234. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9235. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9236. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9237. fi
  9238. fi
  9239. fi
  9240. fi
  9241. fi
  9242. fi
  9243. ;;
  9244. esac
  9245. if test "x$lt_cv_dlopen" != xno; then
  9246. enable_dlopen=yes
  9247. else
  9248. enable_dlopen=no
  9249. fi
  9250. case $lt_cv_dlopen in
  9251. dlopen)
  9252. save_CPPFLAGS="$CPPFLAGS"
  9253. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9254. save_LDFLAGS="$LDFLAGS"
  9255. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9256. save_LIBS="$LIBS"
  9257. LIBS="$lt_cv_dlopen_libs $LIBS"
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9259. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9260. if test "${lt_cv_dlopen_self+set}" = set; then :
  9261. $as_echo_n "(cached) " >&6
  9262. else
  9263. if test "$cross_compiling" = yes; then :
  9264. lt_cv_dlopen_self=cross
  9265. else
  9266. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9267. lt_status=$lt_dlunknown
  9268. cat > conftest.$ac_ext <<_LT_EOF
  9269. #line 10810 "configure"
  9270. #include "confdefs.h"
  9271. #if HAVE_DLFCN_H
  9272. #include <dlfcn.h>
  9273. #endif
  9274. #include <stdio.h>
  9275. #ifdef RTLD_GLOBAL
  9276. # define LT_DLGLOBAL RTLD_GLOBAL
  9277. #else
  9278. # ifdef DL_GLOBAL
  9279. # define LT_DLGLOBAL DL_GLOBAL
  9280. # else
  9281. # define LT_DLGLOBAL 0
  9282. # endif
  9283. #endif
  9284. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9285. find out it does not work in some platform. */
  9286. #ifndef LT_DLLAZY_OR_NOW
  9287. # ifdef RTLD_LAZY
  9288. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9289. # else
  9290. # ifdef DL_LAZY
  9291. # define LT_DLLAZY_OR_NOW DL_LAZY
  9292. # else
  9293. # ifdef RTLD_NOW
  9294. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9295. # else
  9296. # ifdef DL_NOW
  9297. # define LT_DLLAZY_OR_NOW DL_NOW
  9298. # else
  9299. # define LT_DLLAZY_OR_NOW 0
  9300. # endif
  9301. # endif
  9302. # endif
  9303. # endif
  9304. #endif
  9305. /* When -fvisbility=hidden is used, assume the code has been annotated
  9306. correspondingly for the symbols needed. */
  9307. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9308. void fnord () __attribute__((visibility("default")));
  9309. #endif
  9310. void fnord () { int i=42; }
  9311. int main ()
  9312. {
  9313. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9314. int status = $lt_dlunknown;
  9315. if (self)
  9316. {
  9317. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9318. else
  9319. {
  9320. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9321. else puts (dlerror ());
  9322. }
  9323. /* dlclose (self); */
  9324. }
  9325. else
  9326. puts (dlerror ());
  9327. return status;
  9328. }
  9329. _LT_EOF
  9330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9331. (eval $ac_link) 2>&5
  9332. ac_status=$?
  9333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9334. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9335. (./conftest; exit; ) >&5 2>/dev/null
  9336. lt_status=$?
  9337. case x$lt_status in
  9338. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9339. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9340. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9341. esac
  9342. else :
  9343. # compilation failed
  9344. lt_cv_dlopen_self=no
  9345. fi
  9346. fi
  9347. rm -fr conftest*
  9348. fi
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9350. $as_echo "$lt_cv_dlopen_self" >&6; }
  9351. if test "x$lt_cv_dlopen_self" = xyes; then
  9352. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9354. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9355. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9356. $as_echo_n "(cached) " >&6
  9357. else
  9358. if test "$cross_compiling" = yes; then :
  9359. lt_cv_dlopen_self_static=cross
  9360. else
  9361. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9362. lt_status=$lt_dlunknown
  9363. cat > conftest.$ac_ext <<_LT_EOF
  9364. #line 10916 "configure"
  9365. #include "confdefs.h"
  9366. #if HAVE_DLFCN_H
  9367. #include <dlfcn.h>
  9368. #endif
  9369. #include <stdio.h>
  9370. #ifdef RTLD_GLOBAL
  9371. # define LT_DLGLOBAL RTLD_GLOBAL
  9372. #else
  9373. # ifdef DL_GLOBAL
  9374. # define LT_DLGLOBAL DL_GLOBAL
  9375. # else
  9376. # define LT_DLGLOBAL 0
  9377. # endif
  9378. #endif
  9379. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9380. find out it does not work in some platform. */
  9381. #ifndef LT_DLLAZY_OR_NOW
  9382. # ifdef RTLD_LAZY
  9383. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9384. # else
  9385. # ifdef DL_LAZY
  9386. # define LT_DLLAZY_OR_NOW DL_LAZY
  9387. # else
  9388. # ifdef RTLD_NOW
  9389. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9390. # else
  9391. # ifdef DL_NOW
  9392. # define LT_DLLAZY_OR_NOW DL_NOW
  9393. # else
  9394. # define LT_DLLAZY_OR_NOW 0
  9395. # endif
  9396. # endif
  9397. # endif
  9398. # endif
  9399. #endif
  9400. /* When -fvisbility=hidden is used, assume the code has been annotated
  9401. correspondingly for the symbols needed. */
  9402. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9403. void fnord () __attribute__((visibility("default")));
  9404. #endif
  9405. void fnord () { int i=42; }
  9406. int main ()
  9407. {
  9408. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9409. int status = $lt_dlunknown;
  9410. if (self)
  9411. {
  9412. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9413. else
  9414. {
  9415. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9416. else puts (dlerror ());
  9417. }
  9418. /* dlclose (self); */
  9419. }
  9420. else
  9421. puts (dlerror ());
  9422. return status;
  9423. }
  9424. _LT_EOF
  9425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9426. (eval $ac_link) 2>&5
  9427. ac_status=$?
  9428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9429. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9430. (./conftest; exit; ) >&5 2>/dev/null
  9431. lt_status=$?
  9432. case x$lt_status in
  9433. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9434. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9435. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9436. esac
  9437. else :
  9438. # compilation failed
  9439. lt_cv_dlopen_self_static=no
  9440. fi
  9441. fi
  9442. rm -fr conftest*
  9443. fi
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9445. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9446. fi
  9447. CPPFLAGS="$save_CPPFLAGS"
  9448. LDFLAGS="$save_LDFLAGS"
  9449. LIBS="$save_LIBS"
  9450. ;;
  9451. esac
  9452. case $lt_cv_dlopen_self in
  9453. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9454. *) enable_dlopen_self=unknown ;;
  9455. esac
  9456. case $lt_cv_dlopen_self_static in
  9457. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9458. *) enable_dlopen_self_static=unknown ;;
  9459. esac
  9460. fi
  9461. striplib=
  9462. old_striplib=
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9464. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9465. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9466. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9467. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9469. $as_echo "yes" >&6; }
  9470. else
  9471. # FIXME - insert some real tests, host_os isn't really good enough
  9472. case $host_os in
  9473. darwin*)
  9474. if test -n "$STRIP" ; then
  9475. striplib="$STRIP -x"
  9476. old_striplib="$STRIP -S"
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9478. $as_echo "yes" >&6; }
  9479. else
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9481. $as_echo "no" >&6; }
  9482. fi
  9483. ;;
  9484. *)
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9486. $as_echo "no" >&6; }
  9487. ;;
  9488. esac
  9489. fi
  9490. # Report which library types will actually be built
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9492. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9494. $as_echo "$can_build_shared" >&6; }
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9496. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9497. test "$can_build_shared" = "no" && enable_shared=no
  9498. # On AIX, shared libraries and static libraries use the same namespace, and
  9499. # are all built from PIC.
  9500. case $host_os in
  9501. aix3*)
  9502. test "$enable_shared" = yes && enable_static=no
  9503. if test -n "$RANLIB"; then
  9504. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9505. postinstall_cmds='$RANLIB $lib'
  9506. fi
  9507. ;;
  9508. aix[4-9]*)
  9509. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9510. test "$enable_shared" = yes && enable_static=no
  9511. fi
  9512. ;;
  9513. esac
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9515. $as_echo "$enable_shared" >&6; }
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9517. $as_echo_n "checking whether to build static libraries... " >&6; }
  9518. # Make sure either enable_shared or enable_static is yes.
  9519. test "$enable_shared" = yes || enable_static=yes
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9521. $as_echo "$enable_static" >&6; }
  9522. fi
  9523. ac_ext=c
  9524. ac_cpp='$CPP $CPPFLAGS'
  9525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9528. CC="$lt_save_CC"
  9529. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9530. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9531. (test "X$CXX" != "Xg++"))) ; then
  9532. ac_ext=cpp
  9533. ac_cpp='$CXXCPP $CPPFLAGS'
  9534. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9535. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9536. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9538. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9539. if test -z "$CXXCPP"; then
  9540. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. # Double quotes because CXXCPP needs to be expanded
  9544. for CXXCPP in "$CXX -E" "/lib/cpp"
  9545. do
  9546. ac_preproc_ok=false
  9547. for ac_cxx_preproc_warn_flag in '' yes
  9548. do
  9549. # Use a header file that comes with gcc, so configuring glibc
  9550. # with a fresh cross-compiler works.
  9551. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9552. # <limits.h> exists even on freestanding compilers.
  9553. # On the NeXT, cc -E runs the code through the compiler's parser,
  9554. # not just through cpp. "Syntax error" is here to catch this case.
  9555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9556. /* end confdefs.h. */
  9557. #ifdef __STDC__
  9558. # include <limits.h>
  9559. #else
  9560. # include <assert.h>
  9561. #endif
  9562. Syntax error
  9563. _ACEOF
  9564. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9565. else
  9566. # Broken: fails on valid input.
  9567. continue
  9568. fi
  9569. rm -f conftest.err conftest.$ac_ext
  9570. # OK, works on sane cases. Now check whether nonexistent headers
  9571. # can be detected and how.
  9572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9573. /* end confdefs.h. */
  9574. #include <ac_nonexistent.h>
  9575. _ACEOF
  9576. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9577. # Broken: success on invalid input.
  9578. continue
  9579. else
  9580. # Passes both tests.
  9581. ac_preproc_ok=:
  9582. break
  9583. fi
  9584. rm -f conftest.err conftest.$ac_ext
  9585. done
  9586. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9587. rm -f conftest.err conftest.$ac_ext
  9588. if $ac_preproc_ok; then :
  9589. break
  9590. fi
  9591. done
  9592. ac_cv_prog_CXXCPP=$CXXCPP
  9593. fi
  9594. CXXCPP=$ac_cv_prog_CXXCPP
  9595. else
  9596. ac_cv_prog_CXXCPP=$CXXCPP
  9597. fi
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9599. $as_echo "$CXXCPP" >&6; }
  9600. ac_preproc_ok=false
  9601. for ac_cxx_preproc_warn_flag in '' yes
  9602. do
  9603. # Use a header file that comes with gcc, so configuring glibc
  9604. # with a fresh cross-compiler works.
  9605. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9606. # <limits.h> exists even on freestanding compilers.
  9607. # On the NeXT, cc -E runs the code through the compiler's parser,
  9608. # not just through cpp. "Syntax error" is here to catch this case.
  9609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9610. /* end confdefs.h. */
  9611. #ifdef __STDC__
  9612. # include <limits.h>
  9613. #else
  9614. # include <assert.h>
  9615. #endif
  9616. Syntax error
  9617. _ACEOF
  9618. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9619. else
  9620. # Broken: fails on valid input.
  9621. continue
  9622. fi
  9623. rm -f conftest.err conftest.$ac_ext
  9624. # OK, works on sane cases. Now check whether nonexistent headers
  9625. # can be detected and how.
  9626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9627. /* end confdefs.h. */
  9628. #include <ac_nonexistent.h>
  9629. _ACEOF
  9630. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9631. # Broken: success on invalid input.
  9632. continue
  9633. else
  9634. # Passes both tests.
  9635. ac_preproc_ok=:
  9636. break
  9637. fi
  9638. rm -f conftest.err conftest.$ac_ext
  9639. done
  9640. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9641. rm -f conftest.err conftest.$ac_ext
  9642. if $ac_preproc_ok; then :
  9643. else
  9644. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9646. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  9647. See \`config.log' for more details." "$LINENO" 5; }
  9648. fi
  9649. ac_ext=c
  9650. ac_cpp='$CPP $CPPFLAGS'
  9651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9654. else
  9655. _lt_caught_CXX_error=yes
  9656. fi
  9657. ac_ext=cpp
  9658. ac_cpp='$CXXCPP $CPPFLAGS'
  9659. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9660. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9661. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9662. archive_cmds_need_lc_CXX=no
  9663. allow_undefined_flag_CXX=
  9664. always_export_symbols_CXX=no
  9665. archive_expsym_cmds_CXX=
  9666. compiler_needs_object_CXX=no
  9667. export_dynamic_flag_spec_CXX=
  9668. hardcode_direct_CXX=no
  9669. hardcode_direct_absolute_CXX=no
  9670. hardcode_libdir_flag_spec_CXX=
  9671. hardcode_libdir_flag_spec_ld_CXX=
  9672. hardcode_libdir_separator_CXX=
  9673. hardcode_minus_L_CXX=no
  9674. hardcode_shlibpath_var_CXX=unsupported
  9675. hardcode_automatic_CXX=no
  9676. inherit_rpath_CXX=no
  9677. module_cmds_CXX=
  9678. module_expsym_cmds_CXX=
  9679. link_all_deplibs_CXX=unknown
  9680. old_archive_cmds_CXX=$old_archive_cmds
  9681. reload_flag_CXX=$reload_flag
  9682. reload_cmds_CXX=$reload_cmds
  9683. no_undefined_flag_CXX=
  9684. whole_archive_flag_spec_CXX=
  9685. enable_shared_with_static_runtimes_CXX=no
  9686. # Source file extension for C++ test sources.
  9687. ac_ext=cpp
  9688. # Object file extension for compiled C++ test sources.
  9689. objext=o
  9690. objext_CXX=$objext
  9691. # No sense in running all these tests if we already determined that
  9692. # the CXX compiler isn't working. Some variables (like enable_shared)
  9693. # are currently assumed to apply to all compilers on this platform,
  9694. # and will be corrupted by setting them based on a non-working compiler.
  9695. if test "$_lt_caught_CXX_error" != yes; then
  9696. # Code to be used in simple compile tests
  9697. lt_simple_compile_test_code="int some_variable = 0;"
  9698. # Code to be used in simple link tests
  9699. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9700. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9701. # If no C compiler was specified, use CC.
  9702. LTCC=${LTCC-"$CC"}
  9703. # If no C compiler flags were specified, use CFLAGS.
  9704. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9705. # Allow CC to be a program name with arguments.
  9706. compiler=$CC
  9707. # save warnings/boilerplate of simple test code
  9708. ac_outfile=conftest.$ac_objext
  9709. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9710. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9711. _lt_compiler_boilerplate=`cat conftest.err`
  9712. $RM conftest*
  9713. ac_outfile=conftest.$ac_objext
  9714. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9715. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9716. _lt_linker_boilerplate=`cat conftest.err`
  9717. $RM -r conftest*
  9718. # Allow CC to be a program name with arguments.
  9719. lt_save_CC=$CC
  9720. lt_save_LD=$LD
  9721. lt_save_GCC=$GCC
  9722. GCC=$GXX
  9723. lt_save_with_gnu_ld=$with_gnu_ld
  9724. lt_save_path_LD=$lt_cv_path_LD
  9725. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9726. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9727. else
  9728. $as_unset lt_cv_prog_gnu_ld
  9729. fi
  9730. if test -n "${lt_cv_path_LDCXX+set}"; then
  9731. lt_cv_path_LD=$lt_cv_path_LDCXX
  9732. else
  9733. $as_unset lt_cv_path_LD
  9734. fi
  9735. test -z "${LDCXX+set}" || LD=$LDCXX
  9736. CC=${CXX-"c++"}
  9737. compiler=$CC
  9738. compiler_CXX=$CC
  9739. for cc_temp in $compiler""; do
  9740. case $cc_temp in
  9741. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9742. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9743. \-*) ;;
  9744. *) break;;
  9745. esac
  9746. done
  9747. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9748. if test -n "$compiler"; then
  9749. # We don't want -fno-exception when compiling C++ code, so set the
  9750. # no_builtin_flag separately
  9751. if test "$GXX" = yes; then
  9752. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9753. else
  9754. lt_prog_compiler_no_builtin_flag_CXX=
  9755. fi
  9756. if test "$GXX" = yes; then
  9757. # Set up default GNU C++ configuration
  9758. # Check whether --with-gnu-ld was given.
  9759. if test "${with_gnu_ld+set}" = set; then :
  9760. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9761. else
  9762. with_gnu_ld=no
  9763. fi
  9764. ac_prog=ld
  9765. if test "$GCC" = yes; then
  9766. # Check if gcc -print-prog-name=ld gives a path.
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9768. $as_echo_n "checking for ld used by $CC... " >&6; }
  9769. case $host in
  9770. *-*-mingw*)
  9771. # gcc leaves a trailing carriage return which upsets mingw
  9772. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9773. *)
  9774. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9775. esac
  9776. case $ac_prog in
  9777. # Accept absolute paths.
  9778. [\\/]* | ?:[\\/]*)
  9779. re_direlt='/[^/][^/]*/\.\./'
  9780. # Canonicalize the pathname of ld
  9781. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9782. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9783. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9784. done
  9785. test -z "$LD" && LD="$ac_prog"
  9786. ;;
  9787. "")
  9788. # If it fails, then pretend we aren't using GCC.
  9789. ac_prog=ld
  9790. ;;
  9791. *)
  9792. # If it is relative, then search for the first ld in PATH.
  9793. with_gnu_ld=unknown
  9794. ;;
  9795. esac
  9796. elif test "$with_gnu_ld" = yes; then
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9798. $as_echo_n "checking for GNU ld... " >&6; }
  9799. else
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9801. $as_echo_n "checking for non-GNU ld... " >&6; }
  9802. fi
  9803. if test "${lt_cv_path_LD+set}" = set; then :
  9804. $as_echo_n "(cached) " >&6
  9805. else
  9806. if test -z "$LD"; then
  9807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9808. for ac_dir in $PATH; do
  9809. IFS="$lt_save_ifs"
  9810. test -z "$ac_dir" && ac_dir=.
  9811. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9812. lt_cv_path_LD="$ac_dir/$ac_prog"
  9813. # Check to see if the program is GNU ld. I'd rather use --version,
  9814. # but apparently some variants of GNU ld only accept -v.
  9815. # Break only if it was the GNU/non-GNU ld that we prefer.
  9816. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9817. *GNU* | *'with BFD'*)
  9818. test "$with_gnu_ld" != no && break
  9819. ;;
  9820. *)
  9821. test "$with_gnu_ld" != yes && break
  9822. ;;
  9823. esac
  9824. fi
  9825. done
  9826. IFS="$lt_save_ifs"
  9827. else
  9828. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9829. fi
  9830. fi
  9831. LD="$lt_cv_path_LD"
  9832. if test -n "$LD"; then
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9834. $as_echo "$LD" >&6; }
  9835. else
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9837. $as_echo "no" >&6; }
  9838. fi
  9839. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9841. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9842. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9843. $as_echo_n "(cached) " >&6
  9844. else
  9845. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9846. case `$LD -v 2>&1 </dev/null` in
  9847. *GNU* | *'with BFD'*)
  9848. lt_cv_prog_gnu_ld=yes
  9849. ;;
  9850. *)
  9851. lt_cv_prog_gnu_ld=no
  9852. ;;
  9853. esac
  9854. fi
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9856. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9857. with_gnu_ld=$lt_cv_prog_gnu_ld
  9858. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9859. # archiving commands below assume that GNU ld is being used.
  9860. if test "$with_gnu_ld" = yes; then
  9861. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9862. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9863. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9864. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9865. # If archive_cmds runs LD, not CC, wlarc should be empty
  9866. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9867. # investigate it a little bit more. (MM)
  9868. wlarc='${wl}'
  9869. # ancient GNU ld didn't support --whole-archive et. al.
  9870. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9871. $GREP 'no-whole-archive' > /dev/null; then
  9872. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9873. else
  9874. whole_archive_flag_spec_CXX=
  9875. fi
  9876. else
  9877. with_gnu_ld=no
  9878. wlarc=
  9879. # A generic and very simple default shared library creation
  9880. # command for GNU C++ for the case where it uses the native
  9881. # linker, instead of GNU ld. If possible, this setting should
  9882. # overridden to take advantage of the native linker features on
  9883. # the platform it is being used on.
  9884. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9885. fi
  9886. # Commands to make compiler produce verbose output that lists
  9887. # what "hidden" libraries, object files and flags are used when
  9888. # linking a shared library.
  9889. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  9890. else
  9891. GXX=no
  9892. with_gnu_ld=no
  9893. wlarc=
  9894. fi
  9895. # PORTME: fill in a description of your system's C++ link characteristics
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9897. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9898. ld_shlibs_CXX=yes
  9899. case $host_os in
  9900. aix3*)
  9901. # FIXME: insert proper C++ library support
  9902. ld_shlibs_CXX=no
  9903. ;;
  9904. aix[4-9]*)
  9905. if test "$host_cpu" = ia64; then
  9906. # On IA64, the linker does run time linking by default, so we don't
  9907. # have to do anything special.
  9908. aix_use_runtimelinking=no
  9909. exp_sym_flag='-Bexport'
  9910. no_entry_flag=""
  9911. else
  9912. aix_use_runtimelinking=no
  9913. # Test if we are trying to use run time linking or normal
  9914. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9915. # need to do runtime linking.
  9916. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9917. for ld_flag in $LDFLAGS; do
  9918. case $ld_flag in
  9919. *-brtl*)
  9920. aix_use_runtimelinking=yes
  9921. break
  9922. ;;
  9923. esac
  9924. done
  9925. ;;
  9926. esac
  9927. exp_sym_flag='-bexport'
  9928. no_entry_flag='-bnoentry'
  9929. fi
  9930. # When large executables or shared objects are built, AIX ld can
  9931. # have problems creating the table of contents. If linking a library
  9932. # or program results in "error TOC overflow" add -mminimal-toc to
  9933. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9934. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9935. archive_cmds_CXX=''
  9936. hardcode_direct_CXX=yes
  9937. hardcode_direct_absolute_CXX=yes
  9938. hardcode_libdir_separator_CXX=':'
  9939. link_all_deplibs_CXX=yes
  9940. file_list_spec_CXX='${wl}-f,'
  9941. if test "$GXX" = yes; then
  9942. case $host_os in aix4.[012]|aix4.[012].*)
  9943. # We only want to do this on AIX 4.2 and lower, the check
  9944. # below for broken collect2 doesn't work under 4.3+
  9945. collect2name=`${CC} -print-prog-name=collect2`
  9946. if test -f "$collect2name" &&
  9947. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9948. then
  9949. # We have reworked collect2
  9950. :
  9951. else
  9952. # We have old collect2
  9953. hardcode_direct_CXX=unsupported
  9954. # It fails to find uninstalled libraries when the uninstalled
  9955. # path is not listed in the libpath. Setting hardcode_minus_L
  9956. # to unsupported forces relinking
  9957. hardcode_minus_L_CXX=yes
  9958. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9959. hardcode_libdir_separator_CXX=
  9960. fi
  9961. esac
  9962. shared_flag='-shared'
  9963. if test "$aix_use_runtimelinking" = yes; then
  9964. shared_flag="$shared_flag "'${wl}-G'
  9965. fi
  9966. else
  9967. # not using gcc
  9968. if test "$host_cpu" = ia64; then
  9969. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9970. # chokes on -Wl,-G. The following line is correct:
  9971. shared_flag='-G'
  9972. else
  9973. if test "$aix_use_runtimelinking" = yes; then
  9974. shared_flag='${wl}-G'
  9975. else
  9976. shared_flag='${wl}-bM:SRE'
  9977. fi
  9978. fi
  9979. fi
  9980. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  9981. # It seems that -bexpall does not export symbols beginning with
  9982. # underscore (_), so it is better to generate a list of symbols to
  9983. # export.
  9984. always_export_symbols_CXX=yes
  9985. if test "$aix_use_runtimelinking" = yes; then
  9986. # Warning - without using the other runtime loading flags (-brtl),
  9987. # -berok will link without error, but may produce a broken library.
  9988. allow_undefined_flag_CXX='-berok'
  9989. # Determine the default libpath from the value encoded in an empty
  9990. # executable.
  9991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9992. /* end confdefs.h. */
  9993. int
  9994. main ()
  9995. {
  9996. ;
  9997. return 0;
  9998. }
  9999. _ACEOF
  10000. if ac_fn_cxx_try_link "$LINENO"; then :
  10001. lt_aix_libpath_sed='
  10002. /Import File Strings/,/^$/ {
  10003. /^0/ {
  10004. s/^0 *\(.*\)$/\1/
  10005. p
  10006. }
  10007. }'
  10008. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10009. # Check for a 64-bit object if we didn't find anything.
  10010. if test -z "$aix_libpath"; then
  10011. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10012. fi
  10013. fi
  10014. rm -f core conftest.err conftest.$ac_objext \
  10015. conftest$ac_exeext conftest.$ac_ext
  10016. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10017. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10018. 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"
  10019. else
  10020. if test "$host_cpu" = ia64; then
  10021. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10022. allow_undefined_flag_CXX="-z nodefs"
  10023. 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"
  10024. else
  10025. # Determine the default libpath from the value encoded in an
  10026. # empty executable.
  10027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10028. /* end confdefs.h. */
  10029. int
  10030. main ()
  10031. {
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. if ac_fn_cxx_try_link "$LINENO"; then :
  10037. lt_aix_libpath_sed='
  10038. /Import File Strings/,/^$/ {
  10039. /^0/ {
  10040. s/^0 *\(.*\)$/\1/
  10041. p
  10042. }
  10043. }'
  10044. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10045. # Check for a 64-bit object if we didn't find anything.
  10046. if test -z "$aix_libpath"; then
  10047. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10048. fi
  10049. fi
  10050. rm -f core conftest.err conftest.$ac_objext \
  10051. conftest$ac_exeext conftest.$ac_ext
  10052. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10053. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10054. # Warning - without using the other run time loading flags,
  10055. # -berok will link without error, but may produce a broken library.
  10056. no_undefined_flag_CXX=' ${wl}-bernotok'
  10057. allow_undefined_flag_CXX=' ${wl}-berok'
  10058. if test "$with_gnu_ld" = yes; then
  10059. # We only use this code for GNU lds that support --whole-archive.
  10060. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10061. else
  10062. # Exported symbols can be pulled into shared objects from archives
  10063. whole_archive_flag_spec_CXX='$convenience'
  10064. fi
  10065. archive_cmds_need_lc_CXX=yes
  10066. # This is similar to how AIX traditionally builds its shared
  10067. # libraries.
  10068. 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'
  10069. fi
  10070. fi
  10071. ;;
  10072. beos*)
  10073. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10074. allow_undefined_flag_CXX=unsupported
  10075. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10076. # support --undefined. This deserves some investigation. FIXME
  10077. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10078. else
  10079. ld_shlibs_CXX=no
  10080. fi
  10081. ;;
  10082. chorus*)
  10083. case $cc_basename in
  10084. *)
  10085. # FIXME: insert proper C++ library support
  10086. ld_shlibs_CXX=no
  10087. ;;
  10088. esac
  10089. ;;
  10090. cygwin* | mingw* | pw32* | cegcc*)
  10091. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10092. # as there is no search path for DLLs.
  10093. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10094. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10095. allow_undefined_flag_CXX=unsupported
  10096. always_export_symbols_CXX=no
  10097. enable_shared_with_static_runtimes_CXX=yes
  10098. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10099. 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'
  10100. # If the export-symbols file already is a .def file (1st line
  10101. # is EXPORTS), use it as is; otherwise, prepend...
  10102. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10103. cp $export_symbols $output_objdir/$soname.def;
  10104. else
  10105. echo EXPORTS > $output_objdir/$soname.def;
  10106. cat $export_symbols >> $output_objdir/$soname.def;
  10107. fi~
  10108. $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'
  10109. else
  10110. ld_shlibs_CXX=no
  10111. fi
  10112. ;;
  10113. darwin* | rhapsody*)
  10114. archive_cmds_need_lc_CXX=no
  10115. hardcode_direct_CXX=no
  10116. hardcode_automatic_CXX=yes
  10117. hardcode_shlibpath_var_CXX=unsupported
  10118. if test "$lt_cv_ld_force_load" = "yes"; then
  10119. 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\"`'
  10120. else
  10121. whole_archive_flag_spec_CXX=''
  10122. fi
  10123. link_all_deplibs_CXX=yes
  10124. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10125. case $cc_basename in
  10126. ifort*) _lt_dar_can_shared=yes ;;
  10127. *) _lt_dar_can_shared=$GCC ;;
  10128. esac
  10129. if test "$_lt_dar_can_shared" = "yes"; then
  10130. output_verbose_link_cmd=func_echo_all
  10131. 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}"
  10132. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10133. 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}"
  10134. 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}"
  10135. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10136. 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}"
  10137. 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}"
  10138. fi
  10139. else
  10140. ld_shlibs_CXX=no
  10141. fi
  10142. ;;
  10143. dgux*)
  10144. case $cc_basename in
  10145. ec++*)
  10146. # FIXME: insert proper C++ library support
  10147. ld_shlibs_CXX=no
  10148. ;;
  10149. ghcx*)
  10150. # Green Hills C++ Compiler
  10151. # FIXME: insert proper C++ library support
  10152. ld_shlibs_CXX=no
  10153. ;;
  10154. *)
  10155. # FIXME: insert proper C++ library support
  10156. ld_shlibs_CXX=no
  10157. ;;
  10158. esac
  10159. ;;
  10160. freebsd2.*)
  10161. # C++ shared libraries reported to be fairly broken before
  10162. # switch to ELF
  10163. ld_shlibs_CXX=no
  10164. ;;
  10165. freebsd-elf*)
  10166. archive_cmds_need_lc_CXX=no
  10167. ;;
  10168. freebsd* | dragonfly*)
  10169. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10170. # conventions
  10171. ld_shlibs_CXX=yes
  10172. ;;
  10173. gnu*)
  10174. ;;
  10175. haiku*)
  10176. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10177. link_all_deplibs_CXX=yes
  10178. ;;
  10179. hpux9*)
  10180. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10181. hardcode_libdir_separator_CXX=:
  10182. export_dynamic_flag_spec_CXX='${wl}-E'
  10183. hardcode_direct_CXX=yes
  10184. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10185. # but as the default
  10186. # location of the library.
  10187. case $cc_basename in
  10188. CC*)
  10189. # FIXME: insert proper C++ library support
  10190. ld_shlibs_CXX=no
  10191. ;;
  10192. aCC*)
  10193. 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'
  10194. # Commands to make compiler produce verbose output that lists
  10195. # what "hidden" libraries, object files and flags are used when
  10196. # linking a shared library.
  10197. #
  10198. # There doesn't appear to be a way to prevent this compiler from
  10199. # explicitly linking system object files so we need to strip them
  10200. # from the output so that they don't get included in the library
  10201. # dependencies.
  10202. 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"'
  10203. ;;
  10204. *)
  10205. if test "$GXX" = yes; then
  10206. 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'
  10207. else
  10208. # FIXME: insert proper C++ library support
  10209. ld_shlibs_CXX=no
  10210. fi
  10211. ;;
  10212. esac
  10213. ;;
  10214. hpux10*|hpux11*)
  10215. if test $with_gnu_ld = no; then
  10216. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10217. hardcode_libdir_separator_CXX=:
  10218. case $host_cpu in
  10219. hppa*64*|ia64*)
  10220. ;;
  10221. *)
  10222. export_dynamic_flag_spec_CXX='${wl}-E'
  10223. ;;
  10224. esac
  10225. fi
  10226. case $host_cpu in
  10227. hppa*64*|ia64*)
  10228. hardcode_direct_CXX=no
  10229. hardcode_shlibpath_var_CXX=no
  10230. ;;
  10231. *)
  10232. hardcode_direct_CXX=yes
  10233. hardcode_direct_absolute_CXX=yes
  10234. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10235. # but as the default
  10236. # location of the library.
  10237. ;;
  10238. esac
  10239. case $cc_basename in
  10240. CC*)
  10241. # FIXME: insert proper C++ library support
  10242. ld_shlibs_CXX=no
  10243. ;;
  10244. aCC*)
  10245. case $host_cpu in
  10246. hppa*64*)
  10247. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10248. ;;
  10249. ia64*)
  10250. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10251. ;;
  10252. *)
  10253. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10254. ;;
  10255. esac
  10256. # Commands to make compiler produce verbose output that lists
  10257. # what "hidden" libraries, object files and flags are used when
  10258. # linking a shared library.
  10259. #
  10260. # There doesn't appear to be a way to prevent this compiler from
  10261. # explicitly linking system object files so we need to strip them
  10262. # from the output so that they don't get included in the library
  10263. # dependencies.
  10264. 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"'
  10265. ;;
  10266. *)
  10267. if test "$GXX" = yes; then
  10268. if test $with_gnu_ld = no; then
  10269. case $host_cpu in
  10270. hppa*64*)
  10271. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10272. ;;
  10273. ia64*)
  10274. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10275. ;;
  10276. *)
  10277. 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'
  10278. ;;
  10279. esac
  10280. fi
  10281. else
  10282. # FIXME: insert proper C++ library support
  10283. ld_shlibs_CXX=no
  10284. fi
  10285. ;;
  10286. esac
  10287. ;;
  10288. interix[3-9]*)
  10289. hardcode_direct_CXX=no
  10290. hardcode_shlibpath_var_CXX=no
  10291. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10292. export_dynamic_flag_spec_CXX='${wl}-E'
  10293. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10294. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10295. # default) and relocated if they conflict, which is a slow very memory
  10296. # consuming and fragmenting process. To avoid this, we pick a random,
  10297. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10298. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10299. 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'
  10300. 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'
  10301. ;;
  10302. irix5* | irix6*)
  10303. case $cc_basename in
  10304. CC*)
  10305. # SGI C++
  10306. 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'
  10307. # Archives containing C++ object files must be created using
  10308. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10309. # necessary to make sure instantiated templates are included
  10310. # in the archive.
  10311. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10312. ;;
  10313. *)
  10314. if test "$GXX" = yes; then
  10315. if test "$with_gnu_ld" = no; then
  10316. 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'
  10317. else
  10318. 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'
  10319. fi
  10320. fi
  10321. link_all_deplibs_CXX=yes
  10322. ;;
  10323. esac
  10324. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10325. hardcode_libdir_separator_CXX=:
  10326. inherit_rpath_CXX=yes
  10327. ;;
  10328. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10329. case $cc_basename in
  10330. KCC*)
  10331. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10332. # KCC will only create a shared library if the output file
  10333. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10334. # to its proper name (with version) after linking.
  10335. 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'
  10336. 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'
  10337. # Commands to make compiler produce verbose output that lists
  10338. # what "hidden" libraries, object files and flags are used when
  10339. # linking a shared library.
  10340. #
  10341. # There doesn't appear to be a way to prevent this compiler from
  10342. # explicitly linking system object files so we need to strip them
  10343. # from the output so that they don't get included in the library
  10344. # dependencies.
  10345. 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"'
  10346. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10347. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10348. # Archives containing C++ object files must be created using
  10349. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10350. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10351. ;;
  10352. icpc* | ecpc* )
  10353. # Intel C++
  10354. with_gnu_ld=yes
  10355. # version 8.0 and above of icpc choke on multiply defined symbols
  10356. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10357. # earlier do not add the objects themselves.
  10358. case `$CC -V 2>&1` in
  10359. *"Version 7."*)
  10360. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10361. 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'
  10362. ;;
  10363. *) # Version 8.0 or newer
  10364. tmp_idyn=
  10365. case $host_cpu in
  10366. ia64*) tmp_idyn=' -i_dynamic';;
  10367. esac
  10368. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10369. 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'
  10370. ;;
  10371. esac
  10372. archive_cmds_need_lc_CXX=no
  10373. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10374. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10375. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10376. ;;
  10377. pgCC* | pgcpp*)
  10378. # Portland Group C++ compiler
  10379. case `$CC -V` in
  10380. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10381. prelink_cmds_CXX='tpldir=Template.dir~
  10382. rm -rf $tpldir~
  10383. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10384. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10385. old_archive_cmds_CXX='tpldir=Template.dir~
  10386. rm -rf $tpldir~
  10387. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10388. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10389. $RANLIB $oldlib'
  10390. archive_cmds_CXX='tpldir=Template.dir~
  10391. rm -rf $tpldir~
  10392. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10393. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10394. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10395. rm -rf $tpldir~
  10396. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10397. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10398. ;;
  10399. *) # Version 6 and above use weak symbols
  10400. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10401. 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'
  10402. ;;
  10403. esac
  10404. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10405. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10406. 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'
  10407. ;;
  10408. cxx*)
  10409. # Compaq C++
  10410. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10411. 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'
  10412. runpath_var=LD_RUN_PATH
  10413. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10414. hardcode_libdir_separator_CXX=:
  10415. # Commands to make compiler produce verbose output that lists
  10416. # what "hidden" libraries, object files and flags are used when
  10417. # linking a shared library.
  10418. #
  10419. # There doesn't appear to be a way to prevent this compiler from
  10420. # explicitly linking system object files so we need to strip them
  10421. # from the output so that they don't get included in the library
  10422. # dependencies.
  10423. 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'
  10424. ;;
  10425. xl* | mpixl* | bgxl*)
  10426. # IBM XL 8.0 on PPC, with GNU ld
  10427. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10428. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10429. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10430. if test "x$supports_anon_versioning" = xyes; then
  10431. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10432. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10433. echo "local: *; };" >> $output_objdir/$libname.ver~
  10434. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10435. fi
  10436. ;;
  10437. *)
  10438. case `$CC -V 2>&1 | sed 5q` in
  10439. *Sun\ C*)
  10440. # Sun C++ 5.9
  10441. no_undefined_flag_CXX=' -zdefs'
  10442. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10443. 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'
  10444. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10445. 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'
  10446. compiler_needs_object_CXX=yes
  10447. # Not sure whether something based on
  10448. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10449. # would be better.
  10450. output_verbose_link_cmd='func_echo_all'
  10451. # Archives containing C++ object files must be created using
  10452. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10453. # necessary to make sure instantiated templates are included
  10454. # in the archive.
  10455. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10456. ;;
  10457. esac
  10458. ;;
  10459. esac
  10460. ;;
  10461. lynxos*)
  10462. # FIXME: insert proper C++ library support
  10463. ld_shlibs_CXX=no
  10464. ;;
  10465. m88k*)
  10466. # FIXME: insert proper C++ library support
  10467. ld_shlibs_CXX=no
  10468. ;;
  10469. mvs*)
  10470. case $cc_basename in
  10471. cxx*)
  10472. # FIXME: insert proper C++ library support
  10473. ld_shlibs_CXX=no
  10474. ;;
  10475. *)
  10476. # FIXME: insert proper C++ library support
  10477. ld_shlibs_CXX=no
  10478. ;;
  10479. esac
  10480. ;;
  10481. netbsd*)
  10482. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10483. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10484. wlarc=
  10485. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10486. hardcode_direct_CXX=yes
  10487. hardcode_shlibpath_var_CXX=no
  10488. fi
  10489. # Workaround some broken pre-1.5 toolchains
  10490. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10491. ;;
  10492. *nto* | *qnx*)
  10493. ld_shlibs_CXX=yes
  10494. ;;
  10495. openbsd2*)
  10496. # C++ shared libraries are fairly broken
  10497. ld_shlibs_CXX=no
  10498. ;;
  10499. openbsd*)
  10500. if test -f /usr/libexec/ld.so; then
  10501. hardcode_direct_CXX=yes
  10502. hardcode_shlibpath_var_CXX=no
  10503. hardcode_direct_absolute_CXX=yes
  10504. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10505. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10506. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10507. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10508. export_dynamic_flag_spec_CXX='${wl}-E'
  10509. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10510. fi
  10511. output_verbose_link_cmd=func_echo_all
  10512. else
  10513. ld_shlibs_CXX=no
  10514. fi
  10515. ;;
  10516. osf3* | osf4* | osf5*)
  10517. case $cc_basename in
  10518. KCC*)
  10519. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10520. # KCC will only create a shared library if the output file
  10521. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10522. # to its proper name (with version) after linking.
  10523. 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'
  10524. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10525. hardcode_libdir_separator_CXX=:
  10526. # Archives containing C++ object files must be created using
  10527. # the KAI C++ compiler.
  10528. case $host in
  10529. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10530. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10531. esac
  10532. ;;
  10533. RCC*)
  10534. # Rational C++ 2.4.1
  10535. # FIXME: insert proper C++ library support
  10536. ld_shlibs_CXX=no
  10537. ;;
  10538. cxx*)
  10539. case $host in
  10540. osf3*)
  10541. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10542. 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'
  10543. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10544. ;;
  10545. *)
  10546. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10547. 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'
  10548. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10549. echo "-hidden">> $lib.exp~
  10550. $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~
  10551. $RM $lib.exp'
  10552. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10553. ;;
  10554. esac
  10555. hardcode_libdir_separator_CXX=:
  10556. # Commands to make compiler produce verbose output that lists
  10557. # what "hidden" libraries, object files and flags are used when
  10558. # linking a shared library.
  10559. #
  10560. # There doesn't appear to be a way to prevent this compiler from
  10561. # explicitly linking system object files so we need to strip them
  10562. # from the output so that they don't get included in the library
  10563. # dependencies.
  10564. 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"'
  10565. ;;
  10566. *)
  10567. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10568. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10569. case $host in
  10570. osf3*)
  10571. 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'
  10572. ;;
  10573. *)
  10574. 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'
  10575. ;;
  10576. esac
  10577. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10578. hardcode_libdir_separator_CXX=:
  10579. # Commands to make compiler produce verbose output that lists
  10580. # what "hidden" libraries, object files and flags are used when
  10581. # linking a shared library.
  10582. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10583. else
  10584. # FIXME: insert proper C++ library support
  10585. ld_shlibs_CXX=no
  10586. fi
  10587. ;;
  10588. esac
  10589. ;;
  10590. psos*)
  10591. # FIXME: insert proper C++ library support
  10592. ld_shlibs_CXX=no
  10593. ;;
  10594. sunos4*)
  10595. case $cc_basename in
  10596. CC*)
  10597. # Sun C++ 4.x
  10598. # FIXME: insert proper C++ library support
  10599. ld_shlibs_CXX=no
  10600. ;;
  10601. lcc*)
  10602. # Lucid
  10603. # FIXME: insert proper C++ library support
  10604. ld_shlibs_CXX=no
  10605. ;;
  10606. *)
  10607. # FIXME: insert proper C++ library support
  10608. ld_shlibs_CXX=no
  10609. ;;
  10610. esac
  10611. ;;
  10612. solaris*)
  10613. case $cc_basename in
  10614. CC*)
  10615. # Sun C++ 4.2, 5.x and Centerline C++
  10616. archive_cmds_need_lc_CXX=yes
  10617. no_undefined_flag_CXX=' -zdefs'
  10618. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10619. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10620. $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'
  10621. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10622. hardcode_shlibpath_var_CXX=no
  10623. case $host_os in
  10624. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10625. *)
  10626. # The compiler driver will combine and reorder linker options,
  10627. # but understands `-z linker_flag'.
  10628. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10629. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10630. ;;
  10631. esac
  10632. link_all_deplibs_CXX=yes
  10633. output_verbose_link_cmd='func_echo_all'
  10634. # Archives containing C++ object files must be created using
  10635. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10636. # necessary to make sure instantiated templates are included
  10637. # in the archive.
  10638. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10639. ;;
  10640. gcx*)
  10641. # Green Hills C++ Compiler
  10642. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10643. # The C++ compiler must be used to create the archive.
  10644. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10645. ;;
  10646. *)
  10647. # GNU C++ compiler with Solaris linker
  10648. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10649. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10650. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10651. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10652. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10653. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  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. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10658. else
  10659. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10660. # platform.
  10661. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10662. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10663. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10664. # Commands to make compiler produce verbose output that lists
  10665. # what "hidden" libraries, object files and flags are used when
  10666. # linking a shared library.
  10667. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10668. fi
  10669. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10670. case $host_os in
  10671. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10672. *)
  10673. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10674. ;;
  10675. esac
  10676. fi
  10677. ;;
  10678. esac
  10679. ;;
  10680. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10681. no_undefined_flag_CXX='${wl}-z,text'
  10682. archive_cmds_need_lc_CXX=no
  10683. hardcode_shlibpath_var_CXX=no
  10684. runpath_var='LD_RUN_PATH'
  10685. case $cc_basename in
  10686. CC*)
  10687. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10688. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10689. ;;
  10690. *)
  10691. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10692. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10693. ;;
  10694. esac
  10695. ;;
  10696. sysv5* | sco3.2v5* | sco5v6*)
  10697. # Note: We can NOT use -z defs as we might desire, because we do not
  10698. # link with -lc, and that would cause any symbols used from libc to
  10699. # always be unresolved, which means just about no library would
  10700. # ever link correctly. If we're not using GNU ld we use -z text
  10701. # though, which does catch some bad symbols but isn't as heavy-handed
  10702. # as -z defs.
  10703. no_undefined_flag_CXX='${wl}-z,text'
  10704. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10705. archive_cmds_need_lc_CXX=no
  10706. hardcode_shlibpath_var_CXX=no
  10707. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10708. hardcode_libdir_separator_CXX=':'
  10709. link_all_deplibs_CXX=yes
  10710. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10711. runpath_var='LD_RUN_PATH'
  10712. case $cc_basename in
  10713. CC*)
  10714. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10715. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10716. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  10717. '"$old_archive_cmds_CXX"
  10718. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  10719. '"$reload_cmds_CXX"
  10720. ;;
  10721. *)
  10722. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10723. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10724. ;;
  10725. esac
  10726. ;;
  10727. tandem*)
  10728. case $cc_basename in
  10729. NCC*)
  10730. # NonStop-UX NCC 3.20
  10731. # FIXME: insert proper C++ library support
  10732. ld_shlibs_CXX=no
  10733. ;;
  10734. *)
  10735. # FIXME: insert proper C++ library support
  10736. ld_shlibs_CXX=no
  10737. ;;
  10738. esac
  10739. ;;
  10740. vxworks*)
  10741. # FIXME: insert proper C++ library support
  10742. ld_shlibs_CXX=no
  10743. ;;
  10744. *)
  10745. # FIXME: insert proper C++ library support
  10746. ld_shlibs_CXX=no
  10747. ;;
  10748. esac
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10750. $as_echo "$ld_shlibs_CXX" >&6; }
  10751. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10752. GCC_CXX="$GXX"
  10753. LD_CXX="$LD"
  10754. ## CAVEAT EMPTOR:
  10755. ## There is no encapsulation within the following macros, do not change
  10756. ## the running order or otherwise move them around unless you know exactly
  10757. ## what you are doing...
  10758. # Dependencies to place before and after the object being linked:
  10759. predep_objects_CXX=
  10760. postdep_objects_CXX=
  10761. predeps_CXX=
  10762. postdeps_CXX=
  10763. compiler_lib_search_path_CXX=
  10764. cat > conftest.$ac_ext <<_LT_EOF
  10765. class Foo
  10766. {
  10767. public:
  10768. Foo (void) { a = 0; }
  10769. private:
  10770. int a;
  10771. };
  10772. _LT_EOF
  10773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10774. (eval $ac_compile) 2>&5
  10775. ac_status=$?
  10776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10777. test $ac_status = 0; }; then
  10778. # Parse the compiler output and extract the necessary
  10779. # objects, libraries and library flags.
  10780. # Sentinel used to keep track of whether or not we are before
  10781. # the conftest object file.
  10782. pre_test_object_deps_done=no
  10783. for p in `eval "$output_verbose_link_cmd"`; do
  10784. case $p in
  10785. -L* | -R* | -l*)
  10786. # Some compilers place space between "-{L,R}" and the path.
  10787. # Remove the space.
  10788. if test $p = "-L" ||
  10789. test $p = "-R"; then
  10790. prev=$p
  10791. continue
  10792. else
  10793. prev=
  10794. fi
  10795. if test "$pre_test_object_deps_done" = no; then
  10796. case $p in
  10797. -L* | -R*)
  10798. # Internal compiler library paths should come after those
  10799. # provided the user. The postdeps already come after the
  10800. # user supplied libs so there is no need to process them.
  10801. if test -z "$compiler_lib_search_path_CXX"; then
  10802. compiler_lib_search_path_CXX="${prev}${p}"
  10803. else
  10804. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10805. fi
  10806. ;;
  10807. # The "-l" case would never come before the object being
  10808. # linked, so don't bother handling this case.
  10809. esac
  10810. else
  10811. if test -z "$postdeps_CXX"; then
  10812. postdeps_CXX="${prev}${p}"
  10813. else
  10814. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10815. fi
  10816. fi
  10817. ;;
  10818. *.$objext)
  10819. # This assumes that the test object file only shows up
  10820. # once in the compiler output.
  10821. if test "$p" = "conftest.$objext"; then
  10822. pre_test_object_deps_done=yes
  10823. continue
  10824. fi
  10825. if test "$pre_test_object_deps_done" = no; then
  10826. if test -z "$predep_objects_CXX"; then
  10827. predep_objects_CXX="$p"
  10828. else
  10829. predep_objects_CXX="$predep_objects_CXX $p"
  10830. fi
  10831. else
  10832. if test -z "$postdep_objects_CXX"; then
  10833. postdep_objects_CXX="$p"
  10834. else
  10835. postdep_objects_CXX="$postdep_objects_CXX $p"
  10836. fi
  10837. fi
  10838. ;;
  10839. *) ;; # Ignore the rest.
  10840. esac
  10841. done
  10842. # Clean up.
  10843. rm -f a.out a.exe
  10844. else
  10845. echo "libtool.m4: error: problem compiling CXX test program"
  10846. fi
  10847. $RM -f confest.$objext
  10848. # PORTME: override above test on systems where it is broken
  10849. case $host_os in
  10850. interix[3-9]*)
  10851. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10852. # hack all around it, let's just trust "g++" to DTRT.
  10853. predep_objects_CXX=
  10854. postdep_objects_CXX=
  10855. postdeps_CXX=
  10856. ;;
  10857. linux*)
  10858. case `$CC -V 2>&1 | sed 5q` in
  10859. *Sun\ C*)
  10860. # Sun C++ 5.9
  10861. # The more standards-conforming stlport4 library is
  10862. # incompatible with the Cstd library. Avoid specifying
  10863. # it if it's in CXXFLAGS. Ignore libCrun as
  10864. # -library=stlport4 depends on it.
  10865. case " $CXX $CXXFLAGS " in
  10866. *" -library=stlport4 "*)
  10867. solaris_use_stlport4=yes
  10868. ;;
  10869. esac
  10870. if test "$solaris_use_stlport4" != yes; then
  10871. postdeps_CXX='-library=Cstd -library=Crun'
  10872. fi
  10873. ;;
  10874. esac
  10875. ;;
  10876. solaris*)
  10877. case $cc_basename in
  10878. CC*)
  10879. # The more standards-conforming stlport4 library is
  10880. # incompatible with the Cstd library. Avoid specifying
  10881. # it if it's in CXXFLAGS. Ignore libCrun as
  10882. # -library=stlport4 depends on it.
  10883. case " $CXX $CXXFLAGS " in
  10884. *" -library=stlport4 "*)
  10885. solaris_use_stlport4=yes
  10886. ;;
  10887. esac
  10888. # Adding this requires a known-good setup of shared libraries for
  10889. # Sun compiler versions before 5.6, else PIC objects from an old
  10890. # archive will be linked into the output, leading to subtle bugs.
  10891. if test "$solaris_use_stlport4" != yes; then
  10892. postdeps_CXX='-library=Cstd -library=Crun'
  10893. fi
  10894. ;;
  10895. esac
  10896. ;;
  10897. esac
  10898. case " $postdeps_CXX " in
  10899. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10900. esac
  10901. compiler_lib_search_dirs_CXX=
  10902. if test -n "${compiler_lib_search_path_CXX}"; then
  10903. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10904. fi
  10905. lt_prog_compiler_wl_CXX=
  10906. lt_prog_compiler_pic_CXX=
  10907. lt_prog_compiler_static_CXX=
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10909. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10910. # C++ specific cases for pic, static, wl, etc.
  10911. if test "$GXX" = yes; then
  10912. lt_prog_compiler_wl_CXX='-Wl,'
  10913. lt_prog_compiler_static_CXX='-static'
  10914. case $host_os in
  10915. aix*)
  10916. # All AIX code is PIC.
  10917. if test "$host_cpu" = ia64; then
  10918. # AIX 5 now supports IA64 processor
  10919. lt_prog_compiler_static_CXX='-Bstatic'
  10920. fi
  10921. lt_prog_compiler_pic_CXX='-fPIC'
  10922. ;;
  10923. amigaos*)
  10924. case $host_cpu in
  10925. powerpc)
  10926. # see comment about AmigaOS4 .so support
  10927. lt_prog_compiler_pic_CXX='-fPIC'
  10928. ;;
  10929. m68k)
  10930. # FIXME: we need at least 68020 code to build shared libraries, but
  10931. # adding the `-m68020' flag to GCC prevents building anything better,
  10932. # like `-m68040'.
  10933. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10934. ;;
  10935. esac
  10936. ;;
  10937. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10938. # PIC is the default for these OSes.
  10939. ;;
  10940. mingw* | cygwin* | os2* | pw32* | cegcc*)
  10941. # This hack is so that the source file can tell whether it is being
  10942. # built for inclusion in a dll (and should export symbols for example).
  10943. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10944. # (--disable-auto-import) libraries
  10945. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10946. ;;
  10947. darwin* | rhapsody*)
  10948. # PIC is the default on this platform
  10949. # Common symbols not allowed in MH_DYLIB files
  10950. lt_prog_compiler_pic_CXX='-fno-common'
  10951. ;;
  10952. *djgpp*)
  10953. # DJGPP does not support shared libraries at all
  10954. lt_prog_compiler_pic_CXX=
  10955. ;;
  10956. haiku*)
  10957. # PIC is the default for Haiku.
  10958. # The "-static" flag exists, but is broken.
  10959. lt_prog_compiler_static_CXX=
  10960. ;;
  10961. interix[3-9]*)
  10962. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10963. # Instead, we relocate shared libraries at runtime.
  10964. ;;
  10965. sysv4*MP*)
  10966. if test -d /usr/nec; then
  10967. lt_prog_compiler_pic_CXX=-Kconform_pic
  10968. fi
  10969. ;;
  10970. hpux*)
  10971. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10972. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10973. # sets the default TLS model and affects inlining.
  10974. case $host_cpu in
  10975. hppa*64*)
  10976. ;;
  10977. *)
  10978. lt_prog_compiler_pic_CXX='-fPIC'
  10979. ;;
  10980. esac
  10981. ;;
  10982. *qnx* | *nto*)
  10983. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10984. # it will coredump.
  10985. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10986. ;;
  10987. *)
  10988. lt_prog_compiler_pic_CXX='-fPIC'
  10989. ;;
  10990. esac
  10991. else
  10992. case $host_os in
  10993. aix[4-9]*)
  10994. # All AIX code is PIC.
  10995. if test "$host_cpu" = ia64; then
  10996. # AIX 5 now supports IA64 processor
  10997. lt_prog_compiler_static_CXX='-Bstatic'
  10998. else
  10999. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11000. fi
  11001. ;;
  11002. chorus*)
  11003. case $cc_basename in
  11004. cxch68*)
  11005. # Green Hills C++ Compiler
  11006. # _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"
  11007. ;;
  11008. esac
  11009. ;;
  11010. dgux*)
  11011. case $cc_basename in
  11012. ec++*)
  11013. lt_prog_compiler_pic_CXX='-KPIC'
  11014. ;;
  11015. ghcx*)
  11016. # Green Hills C++ Compiler
  11017. lt_prog_compiler_pic_CXX='-pic'
  11018. ;;
  11019. *)
  11020. ;;
  11021. esac
  11022. ;;
  11023. freebsd* | dragonfly*)
  11024. # FreeBSD uses GNU C++
  11025. ;;
  11026. hpux9* | hpux10* | hpux11*)
  11027. case $cc_basename in
  11028. CC*)
  11029. lt_prog_compiler_wl_CXX='-Wl,'
  11030. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11031. if test "$host_cpu" != ia64; then
  11032. lt_prog_compiler_pic_CXX='+Z'
  11033. fi
  11034. ;;
  11035. aCC*)
  11036. lt_prog_compiler_wl_CXX='-Wl,'
  11037. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11038. case $host_cpu in
  11039. hppa*64*|ia64*)
  11040. # +Z the default
  11041. ;;
  11042. *)
  11043. lt_prog_compiler_pic_CXX='+Z'
  11044. ;;
  11045. esac
  11046. ;;
  11047. *)
  11048. ;;
  11049. esac
  11050. ;;
  11051. interix*)
  11052. # This is c89, which is MS Visual C++ (no shared libs)
  11053. # Anyone wants to do a port?
  11054. ;;
  11055. irix5* | irix6* | nonstopux*)
  11056. case $cc_basename in
  11057. CC*)
  11058. lt_prog_compiler_wl_CXX='-Wl,'
  11059. lt_prog_compiler_static_CXX='-non_shared'
  11060. # CC pic flag -KPIC is the default.
  11061. ;;
  11062. *)
  11063. ;;
  11064. esac
  11065. ;;
  11066. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11067. case $cc_basename in
  11068. KCC*)
  11069. # KAI C++ Compiler
  11070. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11071. lt_prog_compiler_pic_CXX='-fPIC'
  11072. ;;
  11073. ecpc* )
  11074. # old Intel C++ for x86_64 which still supported -KPIC.
  11075. lt_prog_compiler_wl_CXX='-Wl,'
  11076. lt_prog_compiler_pic_CXX='-KPIC'
  11077. lt_prog_compiler_static_CXX='-static'
  11078. ;;
  11079. icpc* )
  11080. # Intel C++, used to be incompatible with GCC.
  11081. # ICC 10 doesn't accept -KPIC any more.
  11082. lt_prog_compiler_wl_CXX='-Wl,'
  11083. lt_prog_compiler_pic_CXX='-fPIC'
  11084. lt_prog_compiler_static_CXX='-static'
  11085. ;;
  11086. pgCC* | pgcpp*)
  11087. # Portland Group C++ compiler
  11088. lt_prog_compiler_wl_CXX='-Wl,'
  11089. lt_prog_compiler_pic_CXX='-fpic'
  11090. lt_prog_compiler_static_CXX='-Bstatic'
  11091. ;;
  11092. cxx*)
  11093. # Compaq C++
  11094. # Make sure the PIC flag is empty. It appears that all Alpha
  11095. # Linux and Compaq Tru64 Unix objects are PIC.
  11096. lt_prog_compiler_pic_CXX=
  11097. lt_prog_compiler_static_CXX='-non_shared'
  11098. ;;
  11099. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11100. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11101. lt_prog_compiler_wl_CXX='-Wl,'
  11102. lt_prog_compiler_pic_CXX='-qpic'
  11103. lt_prog_compiler_static_CXX='-qstaticlink'
  11104. ;;
  11105. *)
  11106. case `$CC -V 2>&1 | sed 5q` in
  11107. *Sun\ C*)
  11108. # Sun C++ 5.9
  11109. lt_prog_compiler_pic_CXX='-KPIC'
  11110. lt_prog_compiler_static_CXX='-Bstatic'
  11111. lt_prog_compiler_wl_CXX='-Qoption ld '
  11112. ;;
  11113. esac
  11114. ;;
  11115. esac
  11116. ;;
  11117. lynxos*)
  11118. ;;
  11119. m88k*)
  11120. ;;
  11121. mvs*)
  11122. case $cc_basename in
  11123. cxx*)
  11124. lt_prog_compiler_pic_CXX='-W c,exportall'
  11125. ;;
  11126. *)
  11127. ;;
  11128. esac
  11129. ;;
  11130. netbsd*)
  11131. ;;
  11132. *qnx* | *nto*)
  11133. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11134. # it will coredump.
  11135. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11136. ;;
  11137. osf3* | osf4* | osf5*)
  11138. case $cc_basename in
  11139. KCC*)
  11140. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11141. ;;
  11142. RCC*)
  11143. # Rational C++ 2.4.1
  11144. lt_prog_compiler_pic_CXX='-pic'
  11145. ;;
  11146. cxx*)
  11147. # Digital/Compaq C++
  11148. lt_prog_compiler_wl_CXX='-Wl,'
  11149. # Make sure the PIC flag is empty. It appears that all Alpha
  11150. # Linux and Compaq Tru64 Unix objects are PIC.
  11151. lt_prog_compiler_pic_CXX=
  11152. lt_prog_compiler_static_CXX='-non_shared'
  11153. ;;
  11154. *)
  11155. ;;
  11156. esac
  11157. ;;
  11158. psos*)
  11159. ;;
  11160. solaris*)
  11161. case $cc_basename in
  11162. CC*)
  11163. # Sun C++ 4.2, 5.x and Centerline C++
  11164. lt_prog_compiler_pic_CXX='-KPIC'
  11165. lt_prog_compiler_static_CXX='-Bstatic'
  11166. lt_prog_compiler_wl_CXX='-Qoption ld '
  11167. ;;
  11168. gcx*)
  11169. # Green Hills C++ Compiler
  11170. lt_prog_compiler_pic_CXX='-PIC'
  11171. ;;
  11172. *)
  11173. ;;
  11174. esac
  11175. ;;
  11176. sunos4*)
  11177. case $cc_basename in
  11178. CC*)
  11179. # Sun C++ 4.x
  11180. lt_prog_compiler_pic_CXX='-pic'
  11181. lt_prog_compiler_static_CXX='-Bstatic'
  11182. ;;
  11183. lcc*)
  11184. # Lucid
  11185. lt_prog_compiler_pic_CXX='-pic'
  11186. ;;
  11187. *)
  11188. ;;
  11189. esac
  11190. ;;
  11191. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11192. case $cc_basename in
  11193. CC*)
  11194. lt_prog_compiler_wl_CXX='-Wl,'
  11195. lt_prog_compiler_pic_CXX='-KPIC'
  11196. lt_prog_compiler_static_CXX='-Bstatic'
  11197. ;;
  11198. esac
  11199. ;;
  11200. tandem*)
  11201. case $cc_basename in
  11202. NCC*)
  11203. # NonStop-UX NCC 3.20
  11204. lt_prog_compiler_pic_CXX='-KPIC'
  11205. ;;
  11206. *)
  11207. ;;
  11208. esac
  11209. ;;
  11210. vxworks*)
  11211. ;;
  11212. *)
  11213. lt_prog_compiler_can_build_shared_CXX=no
  11214. ;;
  11215. esac
  11216. fi
  11217. case $host_os in
  11218. # For platforms which do not support PIC, -DPIC is meaningless:
  11219. *djgpp*)
  11220. lt_prog_compiler_pic_CXX=
  11221. ;;
  11222. *)
  11223. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11224. ;;
  11225. esac
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11227. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11228. #
  11229. # Check to make sure the PIC flag actually works.
  11230. #
  11231. if test -n "$lt_prog_compiler_pic_CXX"; then
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11233. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11234. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11235. $as_echo_n "(cached) " >&6
  11236. else
  11237. lt_cv_prog_compiler_pic_works_CXX=no
  11238. ac_outfile=conftest.$ac_objext
  11239. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11240. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11241. # Insert the option either (1) after the last *FLAGS variable, or
  11242. # (2) before a word containing "conftest.", or (3) at the end.
  11243. # Note that $ac_compile itself does not contain backslashes and begins
  11244. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11245. # The option is referenced via a variable to avoid confusing sed.
  11246. lt_compile=`echo "$ac_compile" | $SED \
  11247. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11248. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11249. -e 's:$: $lt_compiler_flag:'`
  11250. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11251. (eval "$lt_compile" 2>conftest.err)
  11252. ac_status=$?
  11253. cat conftest.err >&5
  11254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11255. if (exit $ac_status) && test -s "$ac_outfile"; then
  11256. # The compiler can only warn and ignore the option if not recognized
  11257. # So say no if there are warnings other than the usual output.
  11258. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11259. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11260. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11261. lt_cv_prog_compiler_pic_works_CXX=yes
  11262. fi
  11263. fi
  11264. $RM conftest*
  11265. fi
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11267. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11268. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11269. case $lt_prog_compiler_pic_CXX in
  11270. "" | " "*) ;;
  11271. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11272. esac
  11273. else
  11274. lt_prog_compiler_pic_CXX=
  11275. lt_prog_compiler_can_build_shared_CXX=no
  11276. fi
  11277. fi
  11278. #
  11279. # Check to make sure the static flag actually works.
  11280. #
  11281. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11283. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11284. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11285. $as_echo_n "(cached) " >&6
  11286. else
  11287. lt_cv_prog_compiler_static_works_CXX=no
  11288. save_LDFLAGS="$LDFLAGS"
  11289. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11290. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11291. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11292. # The linker can only warn and ignore the option if not recognized
  11293. # So say no if there are warnings
  11294. if test -s conftest.err; then
  11295. # Append any errors to the config.log.
  11296. cat conftest.err 1>&5
  11297. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11298. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11299. if diff conftest.exp conftest.er2 >/dev/null; then
  11300. lt_cv_prog_compiler_static_works_CXX=yes
  11301. fi
  11302. else
  11303. lt_cv_prog_compiler_static_works_CXX=yes
  11304. fi
  11305. fi
  11306. $RM -r conftest*
  11307. LDFLAGS="$save_LDFLAGS"
  11308. fi
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11310. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11311. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11312. :
  11313. else
  11314. lt_prog_compiler_static_CXX=
  11315. fi
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11317. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11318. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11319. $as_echo_n "(cached) " >&6
  11320. else
  11321. lt_cv_prog_compiler_c_o_CXX=no
  11322. $RM -r conftest 2>/dev/null
  11323. mkdir conftest
  11324. cd conftest
  11325. mkdir out
  11326. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11327. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11328. # Insert the option either (1) after the last *FLAGS variable, or
  11329. # (2) before a word containing "conftest.", or (3) at the end.
  11330. # Note that $ac_compile itself does not contain backslashes and begins
  11331. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11332. lt_compile=`echo "$ac_compile" | $SED \
  11333. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11334. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11335. -e 's:$: $lt_compiler_flag:'`
  11336. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11337. (eval "$lt_compile" 2>out/conftest.err)
  11338. ac_status=$?
  11339. cat out/conftest.err >&5
  11340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11341. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11342. then
  11343. # The compiler can only warn and ignore the option if not recognized
  11344. # So say no if there are warnings
  11345. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11346. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11347. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11348. lt_cv_prog_compiler_c_o_CXX=yes
  11349. fi
  11350. fi
  11351. chmod u+w . 2>&5
  11352. $RM conftest*
  11353. # SGI C++ compiler will create directory out/ii_files/ for
  11354. # template instantiation
  11355. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11356. $RM out/* && rmdir out
  11357. cd ..
  11358. $RM -r conftest
  11359. $RM conftest*
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11362. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11364. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11365. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11366. $as_echo_n "(cached) " >&6
  11367. else
  11368. lt_cv_prog_compiler_c_o_CXX=no
  11369. $RM -r conftest 2>/dev/null
  11370. mkdir conftest
  11371. cd conftest
  11372. mkdir out
  11373. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11374. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11375. # Insert the option either (1) after the last *FLAGS variable, or
  11376. # (2) before a word containing "conftest.", or (3) at the end.
  11377. # Note that $ac_compile itself does not contain backslashes and begins
  11378. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11379. lt_compile=`echo "$ac_compile" | $SED \
  11380. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11381. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11382. -e 's:$: $lt_compiler_flag:'`
  11383. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11384. (eval "$lt_compile" 2>out/conftest.err)
  11385. ac_status=$?
  11386. cat out/conftest.err >&5
  11387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11388. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11389. then
  11390. # The compiler can only warn and ignore the option if not recognized
  11391. # So say no if there are warnings
  11392. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11393. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11394. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11395. lt_cv_prog_compiler_c_o_CXX=yes
  11396. fi
  11397. fi
  11398. chmod u+w . 2>&5
  11399. $RM conftest*
  11400. # SGI C++ compiler will create directory out/ii_files/ for
  11401. # template instantiation
  11402. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11403. $RM out/* && rmdir out
  11404. cd ..
  11405. $RM -r conftest
  11406. $RM conftest*
  11407. fi
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11409. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11410. hard_links="nottested"
  11411. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11412. # do not overwrite the value of need_locks provided by the user
  11413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11414. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11415. hard_links=yes
  11416. $RM conftest*
  11417. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11418. touch conftest.a
  11419. ln conftest.a conftest.b 2>&5 || hard_links=no
  11420. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11422. $as_echo "$hard_links" >&6; }
  11423. if test "$hard_links" = no; then
  11424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11425. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11426. need_locks=warn
  11427. fi
  11428. else
  11429. need_locks=no
  11430. fi
  11431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11432. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11433. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11434. case $host_os in
  11435. aix[4-9]*)
  11436. # If we're using GNU nm, then we don't want the "-C" option.
  11437. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11438. # Also, AIX nm treats weak defined symbols like other global defined
  11439. # symbols, whereas GNU nm marks them as "W".
  11440. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11441. 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'
  11442. else
  11443. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11444. fi
  11445. ;;
  11446. pw32*)
  11447. export_symbols_cmds_CXX="$ltdll_cmds"
  11448. ;;
  11449. cygwin* | mingw* | cegcc*)
  11450. 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'
  11451. ;;
  11452. *)
  11453. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11454. ;;
  11455. esac
  11456. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11458. $as_echo "$ld_shlibs_CXX" >&6; }
  11459. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11460. with_gnu_ld_CXX=$with_gnu_ld
  11461. #
  11462. # Do we need to explicitly link libc?
  11463. #
  11464. case "x$archive_cmds_need_lc_CXX" in
  11465. x|xyes)
  11466. # Assume -lc should be added
  11467. archive_cmds_need_lc_CXX=yes
  11468. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11469. case $archive_cmds_CXX in
  11470. *'~'*)
  11471. # FIXME: we may have to deal with multi-command sequences.
  11472. ;;
  11473. '$CC '*)
  11474. # Test whether the compiler implicitly links with -lc since on some
  11475. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11476. # to ld, don't add -lc before -lgcc.
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11478. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11479. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11480. $as_echo_n "(cached) " >&6
  11481. else
  11482. $RM conftest*
  11483. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11484. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11485. (eval $ac_compile) 2>&5
  11486. ac_status=$?
  11487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11488. test $ac_status = 0; } 2>conftest.err; then
  11489. soname=conftest
  11490. lib=conftest
  11491. libobjs=conftest.$ac_objext
  11492. deplibs=
  11493. wl=$lt_prog_compiler_wl_CXX
  11494. pic_flag=$lt_prog_compiler_pic_CXX
  11495. compiler_flags=-v
  11496. linker_flags=-v
  11497. verstring=
  11498. output_objdir=.
  11499. libname=conftest
  11500. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11501. allow_undefined_flag_CXX=
  11502. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11503. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11504. ac_status=$?
  11505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11506. test $ac_status = 0; }
  11507. then
  11508. lt_cv_archive_cmds_need_lc_CXX=no
  11509. else
  11510. lt_cv_archive_cmds_need_lc_CXX=yes
  11511. fi
  11512. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11513. else
  11514. cat conftest.err 1>&5
  11515. fi
  11516. $RM conftest*
  11517. fi
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11519. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11520. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11521. ;;
  11522. esac
  11523. fi
  11524. ;;
  11525. esac
  11526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11527. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11528. library_names_spec=
  11529. libname_spec='lib$name'
  11530. soname_spec=
  11531. shrext_cmds=".so"
  11532. postinstall_cmds=
  11533. postuninstall_cmds=
  11534. finish_cmds=
  11535. finish_eval=
  11536. shlibpath_var=
  11537. shlibpath_overrides_runpath=unknown
  11538. version_type=none
  11539. dynamic_linker="$host_os ld.so"
  11540. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11541. need_lib_prefix=unknown
  11542. hardcode_into_libs=no
  11543. # when you set need_version to no, make sure it does not cause -set_version
  11544. # flags to be left without arguments
  11545. need_version=unknown
  11546. case $host_os in
  11547. aix3*)
  11548. version_type=linux
  11549. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11550. shlibpath_var=LIBPATH
  11551. # AIX 3 has no versioning support, so we append a major version to the name.
  11552. soname_spec='${libname}${release}${shared_ext}$major'
  11553. ;;
  11554. aix[4-9]*)
  11555. version_type=linux
  11556. need_lib_prefix=no
  11557. need_version=no
  11558. hardcode_into_libs=yes
  11559. if test "$host_cpu" = ia64; then
  11560. # AIX 5 supports IA64
  11561. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11562. shlibpath_var=LD_LIBRARY_PATH
  11563. else
  11564. # With GCC up to 2.95.x, collect2 would create an import file
  11565. # for dependence libraries. The import file would start with
  11566. # the line `#! .'. This would cause the generated library to
  11567. # depend on `.', always an invalid library. This was fixed in
  11568. # development snapshots of GCC prior to 3.0.
  11569. case $host_os in
  11570. aix4 | aix4.[01] | aix4.[01].*)
  11571. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11572. echo ' yes '
  11573. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11574. :
  11575. else
  11576. can_build_shared=no
  11577. fi
  11578. ;;
  11579. esac
  11580. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11581. # soname into executable. Probably we can add versioning support to
  11582. # collect2, so additional links can be useful in future.
  11583. if test "$aix_use_runtimelinking" = yes; then
  11584. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11585. # instead of lib<name>.a to let people know that these are not
  11586. # typical AIX shared libraries.
  11587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11588. else
  11589. # We preserve .a as extension for shared libraries through AIX4.2
  11590. # and later when we are not doing run time linking.
  11591. library_names_spec='${libname}${release}.a $libname.a'
  11592. soname_spec='${libname}${release}${shared_ext}$major'
  11593. fi
  11594. shlibpath_var=LIBPATH
  11595. fi
  11596. ;;
  11597. amigaos*)
  11598. case $host_cpu in
  11599. powerpc)
  11600. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11601. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11603. ;;
  11604. m68k)
  11605. library_names_spec='$libname.ixlibrary $libname.a'
  11606. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11607. 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'
  11608. ;;
  11609. esac
  11610. ;;
  11611. beos*)
  11612. library_names_spec='${libname}${shared_ext}'
  11613. dynamic_linker="$host_os ld.so"
  11614. shlibpath_var=LIBRARY_PATH
  11615. ;;
  11616. bsdi[45]*)
  11617. version_type=linux
  11618. need_version=no
  11619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11620. soname_spec='${libname}${release}${shared_ext}$major'
  11621. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11622. shlibpath_var=LD_LIBRARY_PATH
  11623. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11624. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11625. # the default ld.so.conf also contains /usr/contrib/lib and
  11626. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11627. # libtool to hard-code these into programs
  11628. ;;
  11629. cygwin* | mingw* | pw32* | cegcc*)
  11630. version_type=windows
  11631. shrext_cmds=".dll"
  11632. need_version=no
  11633. need_lib_prefix=no
  11634. case $GCC,$host_os in
  11635. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11636. library_names_spec='$libname.dll.a'
  11637. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11638. postinstall_cmds='base_file=`basename \${file}`~
  11639. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11640. dldir=$destdir/`dirname \$dlpath`~
  11641. test -d \$dldir || mkdir -p \$dldir~
  11642. $install_prog $dir/$dlname \$dldir/$dlname~
  11643. chmod a+x \$dldir/$dlname~
  11644. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11645. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11646. fi'
  11647. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11648. dlpath=$dir/\$dldll~
  11649. $RM \$dlpath'
  11650. shlibpath_overrides_runpath=yes
  11651. case $host_os in
  11652. cygwin*)
  11653. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11654. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11655. ;;
  11656. mingw* | cegcc*)
  11657. # MinGW DLLs use traditional 'lib' prefix
  11658. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11659. ;;
  11660. pw32*)
  11661. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11662. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11663. ;;
  11664. esac
  11665. ;;
  11666. *)
  11667. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11668. ;;
  11669. esac
  11670. dynamic_linker='Win32 ld.exe'
  11671. # FIXME: first we should search . and the directory the executable is in
  11672. shlibpath_var=PATH
  11673. ;;
  11674. darwin* | rhapsody*)
  11675. dynamic_linker="$host_os dyld"
  11676. version_type=darwin
  11677. need_lib_prefix=no
  11678. need_version=no
  11679. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11680. soname_spec='${libname}${release}${major}$shared_ext'
  11681. shlibpath_overrides_runpath=yes
  11682. shlibpath_var=DYLD_LIBRARY_PATH
  11683. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11684. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11685. ;;
  11686. dgux*)
  11687. version_type=linux
  11688. need_lib_prefix=no
  11689. need_version=no
  11690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11691. soname_spec='${libname}${release}${shared_ext}$major'
  11692. shlibpath_var=LD_LIBRARY_PATH
  11693. ;;
  11694. freebsd* | dragonfly*)
  11695. # DragonFly does not have aout. When/if they implement a new
  11696. # versioning mechanism, adjust this.
  11697. if test -x /usr/bin/objformat; then
  11698. objformat=`/usr/bin/objformat`
  11699. else
  11700. case $host_os in
  11701. freebsd[23].*) objformat=aout ;;
  11702. *) objformat=elf ;;
  11703. esac
  11704. fi
  11705. version_type=freebsd-$objformat
  11706. case $version_type in
  11707. freebsd-elf*)
  11708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11709. need_version=no
  11710. need_lib_prefix=no
  11711. ;;
  11712. freebsd-*)
  11713. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11714. need_version=yes
  11715. ;;
  11716. esac
  11717. shlibpath_var=LD_LIBRARY_PATH
  11718. case $host_os in
  11719. freebsd2.*)
  11720. shlibpath_overrides_runpath=yes
  11721. ;;
  11722. freebsd3.[01]* | freebsdelf3.[01]*)
  11723. shlibpath_overrides_runpath=yes
  11724. hardcode_into_libs=yes
  11725. ;;
  11726. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11727. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11728. shlibpath_overrides_runpath=no
  11729. hardcode_into_libs=yes
  11730. ;;
  11731. *) # from 4.6 on, and DragonFly
  11732. shlibpath_overrides_runpath=yes
  11733. hardcode_into_libs=yes
  11734. ;;
  11735. esac
  11736. ;;
  11737. gnu*)
  11738. version_type=linux
  11739. need_lib_prefix=no
  11740. need_version=no
  11741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11742. soname_spec='${libname}${release}${shared_ext}$major'
  11743. shlibpath_var=LD_LIBRARY_PATH
  11744. hardcode_into_libs=yes
  11745. ;;
  11746. haiku*)
  11747. version_type=linux
  11748. need_lib_prefix=no
  11749. need_version=no
  11750. dynamic_linker="$host_os runtime_loader"
  11751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11752. soname_spec='${libname}${release}${shared_ext}$major'
  11753. shlibpath_var=LIBRARY_PATH
  11754. shlibpath_overrides_runpath=yes
  11755. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  11756. hardcode_into_libs=yes
  11757. ;;
  11758. hpux9* | hpux10* | hpux11*)
  11759. # Give a soname corresponding to the major version so that dld.sl refuses to
  11760. # link against other versions.
  11761. version_type=sunos
  11762. need_lib_prefix=no
  11763. need_version=no
  11764. case $host_cpu in
  11765. ia64*)
  11766. shrext_cmds='.so'
  11767. hardcode_into_libs=yes
  11768. dynamic_linker="$host_os dld.so"
  11769. shlibpath_var=LD_LIBRARY_PATH
  11770. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11772. soname_spec='${libname}${release}${shared_ext}$major'
  11773. if test "X$HPUX_IA64_MODE" = X32; then
  11774. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11775. else
  11776. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11777. fi
  11778. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11779. ;;
  11780. hppa*64*)
  11781. shrext_cmds='.sl'
  11782. hardcode_into_libs=yes
  11783. dynamic_linker="$host_os dld.sl"
  11784. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11785. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11787. soname_spec='${libname}${release}${shared_ext}$major'
  11788. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11789. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11790. ;;
  11791. *)
  11792. shrext_cmds='.sl'
  11793. dynamic_linker="$host_os dld.sl"
  11794. shlibpath_var=SHLIB_PATH
  11795. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11797. soname_spec='${libname}${release}${shared_ext}$major'
  11798. ;;
  11799. esac
  11800. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11801. postinstall_cmds='chmod 555 $lib'
  11802. # or fails outright, so override atomically:
  11803. install_override_mode=555
  11804. ;;
  11805. interix[3-9]*)
  11806. version_type=linux
  11807. need_lib_prefix=no
  11808. need_version=no
  11809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11810. soname_spec='${libname}${release}${shared_ext}$major'
  11811. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11812. shlibpath_var=LD_LIBRARY_PATH
  11813. shlibpath_overrides_runpath=no
  11814. hardcode_into_libs=yes
  11815. ;;
  11816. irix5* | irix6* | nonstopux*)
  11817. case $host_os in
  11818. nonstopux*) version_type=nonstopux ;;
  11819. *)
  11820. if test "$lt_cv_prog_gnu_ld" = yes; then
  11821. version_type=linux
  11822. else
  11823. version_type=irix
  11824. fi ;;
  11825. esac
  11826. need_lib_prefix=no
  11827. need_version=no
  11828. soname_spec='${libname}${release}${shared_ext}$major'
  11829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11830. case $host_os in
  11831. irix5* | nonstopux*)
  11832. libsuff= shlibsuff=
  11833. ;;
  11834. *)
  11835. case $LD in # libtool.m4 will add one of these switches to LD
  11836. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11837. libsuff= shlibsuff= libmagic=32-bit;;
  11838. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11839. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11840. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11841. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11842. *) libsuff= shlibsuff= libmagic=never-match;;
  11843. esac
  11844. ;;
  11845. esac
  11846. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11847. shlibpath_overrides_runpath=no
  11848. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11849. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11850. hardcode_into_libs=yes
  11851. ;;
  11852. # No shared lib support for Linux oldld, aout, or coff.
  11853. linux*oldld* | linux*aout* | linux*coff*)
  11854. dynamic_linker=no
  11855. ;;
  11856. # This must be Linux ELF.
  11857. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11858. version_type=linux
  11859. need_lib_prefix=no
  11860. need_version=no
  11861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11862. soname_spec='${libname}${release}${shared_ext}$major'
  11863. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11864. shlibpath_var=LD_LIBRARY_PATH
  11865. shlibpath_overrides_runpath=no
  11866. # Some binutils ld are patched to set DT_RUNPATH
  11867. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  11868. $as_echo_n "(cached) " >&6
  11869. else
  11870. lt_cv_shlibpath_overrides_runpath=no
  11871. save_LDFLAGS=$LDFLAGS
  11872. save_libdir=$libdir
  11873. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11874. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11876. /* end confdefs.h. */
  11877. int
  11878. main ()
  11879. {
  11880. ;
  11881. return 0;
  11882. }
  11883. _ACEOF
  11884. if ac_fn_cxx_try_link "$LINENO"; then :
  11885. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11886. lt_cv_shlibpath_overrides_runpath=yes
  11887. fi
  11888. fi
  11889. rm -f core conftest.err conftest.$ac_objext \
  11890. conftest$ac_exeext conftest.$ac_ext
  11891. LDFLAGS=$save_LDFLAGS
  11892. libdir=$save_libdir
  11893. fi
  11894. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11895. # This implies no fast_install, which is unacceptable.
  11896. # Some rework will be needed to allow for fast_install
  11897. # before this can be enabled.
  11898. hardcode_into_libs=yes
  11899. # Append ld.so.conf contents to the search path
  11900. if test -f /etc/ld.so.conf; then
  11901. 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' ' '`
  11902. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11903. fi
  11904. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11905. # powerpc, because MkLinux only supported shared libraries with the
  11906. # GNU dynamic linker. Since this was broken with cross compilers,
  11907. # most powerpc-linux boxes support dynamic linking these days and
  11908. # people can always --disable-shared, the test was removed, and we
  11909. # assume the GNU/Linux dynamic linker is in use.
  11910. dynamic_linker='GNU/Linux ld.so'
  11911. ;;
  11912. netbsd*)
  11913. version_type=sunos
  11914. need_lib_prefix=no
  11915. need_version=no
  11916. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11918. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11919. dynamic_linker='NetBSD (a.out) ld.so'
  11920. else
  11921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11922. soname_spec='${libname}${release}${shared_ext}$major'
  11923. dynamic_linker='NetBSD ld.elf_so'
  11924. fi
  11925. shlibpath_var=LD_LIBRARY_PATH
  11926. shlibpath_overrides_runpath=yes
  11927. hardcode_into_libs=yes
  11928. ;;
  11929. newsos6)
  11930. version_type=linux
  11931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11932. shlibpath_var=LD_LIBRARY_PATH
  11933. shlibpath_overrides_runpath=yes
  11934. ;;
  11935. *nto* | *qnx*)
  11936. version_type=qnx
  11937. need_lib_prefix=no
  11938. need_version=no
  11939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11940. soname_spec='${libname}${release}${shared_ext}$major'
  11941. shlibpath_var=LD_LIBRARY_PATH
  11942. shlibpath_overrides_runpath=no
  11943. hardcode_into_libs=yes
  11944. dynamic_linker='ldqnx.so'
  11945. ;;
  11946. openbsd*)
  11947. version_type=sunos
  11948. sys_lib_dlsearch_path_spec="/usr/lib"
  11949. need_lib_prefix=no
  11950. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11951. case $host_os in
  11952. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11953. *) need_version=no ;;
  11954. esac
  11955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11956. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11957. shlibpath_var=LD_LIBRARY_PATH
  11958. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11959. case $host_os in
  11960. openbsd2.[89] | openbsd2.[89].*)
  11961. shlibpath_overrides_runpath=no
  11962. ;;
  11963. *)
  11964. shlibpath_overrides_runpath=yes
  11965. ;;
  11966. esac
  11967. else
  11968. shlibpath_overrides_runpath=yes
  11969. fi
  11970. ;;
  11971. os2*)
  11972. libname_spec='$name'
  11973. shrext_cmds=".dll"
  11974. need_lib_prefix=no
  11975. library_names_spec='$libname${shared_ext} $libname.a'
  11976. dynamic_linker='OS/2 ld.exe'
  11977. shlibpath_var=LIBPATH
  11978. ;;
  11979. osf3* | osf4* | osf5*)
  11980. version_type=osf
  11981. need_lib_prefix=no
  11982. need_version=no
  11983. soname_spec='${libname}${release}${shared_ext}$major'
  11984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11985. shlibpath_var=LD_LIBRARY_PATH
  11986. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11987. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11988. ;;
  11989. rdos*)
  11990. dynamic_linker=no
  11991. ;;
  11992. solaris*)
  11993. version_type=linux
  11994. need_lib_prefix=no
  11995. need_version=no
  11996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11997. soname_spec='${libname}${release}${shared_ext}$major'
  11998. shlibpath_var=LD_LIBRARY_PATH
  11999. shlibpath_overrides_runpath=yes
  12000. hardcode_into_libs=yes
  12001. # ldd complains unless libraries are executable
  12002. postinstall_cmds='chmod +x $lib'
  12003. ;;
  12004. sunos4*)
  12005. version_type=sunos
  12006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12007. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12008. shlibpath_var=LD_LIBRARY_PATH
  12009. shlibpath_overrides_runpath=yes
  12010. if test "$with_gnu_ld" = yes; then
  12011. need_lib_prefix=no
  12012. fi
  12013. need_version=yes
  12014. ;;
  12015. sysv4 | sysv4.3*)
  12016. version_type=linux
  12017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12018. soname_spec='${libname}${release}${shared_ext}$major'
  12019. shlibpath_var=LD_LIBRARY_PATH
  12020. case $host_vendor in
  12021. sni)
  12022. shlibpath_overrides_runpath=no
  12023. need_lib_prefix=no
  12024. runpath_var=LD_RUN_PATH
  12025. ;;
  12026. siemens)
  12027. need_lib_prefix=no
  12028. ;;
  12029. motorola)
  12030. need_lib_prefix=no
  12031. need_version=no
  12032. shlibpath_overrides_runpath=no
  12033. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12034. ;;
  12035. esac
  12036. ;;
  12037. sysv4*MP*)
  12038. if test -d /usr/nec ;then
  12039. version_type=linux
  12040. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12041. soname_spec='$libname${shared_ext}.$major'
  12042. shlibpath_var=LD_LIBRARY_PATH
  12043. fi
  12044. ;;
  12045. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12046. version_type=freebsd-elf
  12047. need_lib_prefix=no
  12048. need_version=no
  12049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12050. soname_spec='${libname}${release}${shared_ext}$major'
  12051. shlibpath_var=LD_LIBRARY_PATH
  12052. shlibpath_overrides_runpath=yes
  12053. hardcode_into_libs=yes
  12054. if test "$with_gnu_ld" = yes; then
  12055. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12056. else
  12057. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12058. case $host_os in
  12059. sco3.2v5*)
  12060. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12061. ;;
  12062. esac
  12063. fi
  12064. sys_lib_dlsearch_path_spec='/usr/lib'
  12065. ;;
  12066. tpf*)
  12067. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12068. version_type=linux
  12069. need_lib_prefix=no
  12070. need_version=no
  12071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12072. shlibpath_var=LD_LIBRARY_PATH
  12073. shlibpath_overrides_runpath=no
  12074. hardcode_into_libs=yes
  12075. ;;
  12076. uts4*)
  12077. version_type=linux
  12078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12079. soname_spec='${libname}${release}${shared_ext}$major'
  12080. shlibpath_var=LD_LIBRARY_PATH
  12081. ;;
  12082. *)
  12083. dynamic_linker=no
  12084. ;;
  12085. esac
  12086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12087. $as_echo "$dynamic_linker" >&6; }
  12088. test "$dynamic_linker" = no && can_build_shared=no
  12089. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12090. if test "$GCC" = yes; then
  12091. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12092. fi
  12093. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12094. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12095. fi
  12096. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12097. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12098. fi
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12100. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12101. hardcode_action_CXX=
  12102. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12103. test -n "$runpath_var_CXX" ||
  12104. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12105. # We can hardcode non-existent directories.
  12106. if test "$hardcode_direct_CXX" != no &&
  12107. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12108. # have to relink, otherwise we might link with an installed library
  12109. # when we should be linking with a yet-to-be-installed one
  12110. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12111. test "$hardcode_minus_L_CXX" != no; then
  12112. # Linking always hardcodes the temporary library directory.
  12113. hardcode_action_CXX=relink
  12114. else
  12115. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12116. hardcode_action_CXX=immediate
  12117. fi
  12118. else
  12119. # We cannot hardcode anything, or else we can only hardcode existing
  12120. # directories.
  12121. hardcode_action_CXX=unsupported
  12122. fi
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12124. $as_echo "$hardcode_action_CXX" >&6; }
  12125. if test "$hardcode_action_CXX" = relink ||
  12126. test "$inherit_rpath_CXX" = yes; then
  12127. # Fast installation is not supported
  12128. enable_fast_install=no
  12129. elif test "$shlibpath_overrides_runpath" = yes ||
  12130. test "$enable_shared" = no; then
  12131. # Fast installation is not necessary
  12132. enable_fast_install=needless
  12133. fi
  12134. fi # test -n "$compiler"
  12135. CC=$lt_save_CC
  12136. LDCXX=$LD
  12137. LD=$lt_save_LD
  12138. GCC=$lt_save_GCC
  12139. with_gnu_ld=$lt_save_with_gnu_ld
  12140. lt_cv_path_LDCXX=$lt_cv_path_LD
  12141. lt_cv_path_LD=$lt_save_path_LD
  12142. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12143. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12144. fi # test "$_lt_caught_CXX_error" != yes
  12145. ac_ext=c
  12146. ac_cpp='$CPP $CPPFLAGS'
  12147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12150. ac_config_commands="$ac_config_commands libtool"
  12151. # Only expand once:
  12152. # Forbid libtool to hardcode RPATH, because we want to be able to specify
  12153. # library search directory using LD_LIBRARY_PATH
  12154. hardcode_into_libs=no
  12155. # Must be last
  12156. cat >confcache <<\_ACEOF
  12157. # This file is a shell script that caches the results of configure
  12158. # tests run on this system so they can be shared between configure
  12159. # scripts and configure runs, see configure's option --config-cache.
  12160. # It is not useful on other systems. If it contains results you don't
  12161. # want to keep, you may remove or edit it.
  12162. #
  12163. # config.status only pays attention to the cache file if you give it
  12164. # the --recheck option to rerun configure.
  12165. #
  12166. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12167. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12168. # following values.
  12169. _ACEOF
  12170. # The following way of writing the cache mishandles newlines in values,
  12171. # but we know of no workaround that is simple, portable, and efficient.
  12172. # So, we kill variables containing newlines.
  12173. # Ultrix sh set writes to stderr and can't be redirected directly,
  12174. # and sets the high bit in the cache file unless we assign to the vars.
  12175. (
  12176. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12177. eval ac_val=\$$ac_var
  12178. case $ac_val in #(
  12179. *${as_nl}*)
  12180. case $ac_var in #(
  12181. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12182. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12183. esac
  12184. case $ac_var in #(
  12185. _ | IFS | as_nl) ;; #(
  12186. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12187. *) { eval $ac_var=; unset $ac_var;} ;;
  12188. esac ;;
  12189. esac
  12190. done
  12191. (set) 2>&1 |
  12192. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12193. *${as_nl}ac_space=\ *)
  12194. # `set' does not quote correctly, so add quotes: double-quote
  12195. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12196. sed -n \
  12197. "s/'/'\\\\''/g;
  12198. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12199. ;; #(
  12200. *)
  12201. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12202. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12203. ;;
  12204. esac |
  12205. sort
  12206. ) |
  12207. sed '
  12208. /^ac_cv_env_/b end
  12209. t clear
  12210. :clear
  12211. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12212. t end
  12213. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12214. :end' >>confcache
  12215. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12216. if test -w "$cache_file"; then
  12217. test "x$cache_file" != "x/dev/null" &&
  12218. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12219. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12220. cat confcache >$cache_file
  12221. else
  12222. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12223. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12224. fi
  12225. fi
  12226. rm -f confcache
  12227. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12228. # Let make expand exec_prefix.
  12229. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12230. # Transform confdefs.h into DEFS.
  12231. # Protect against shell expansion while executing Makefile rules.
  12232. # Protect against Makefile macro expansion.
  12233. #
  12234. # If the first sed substitution is executed (which looks for macros that
  12235. # take arguments), then branch to the quote section. Otherwise,
  12236. # look for a macro that doesn't take arguments.
  12237. ac_script='
  12238. :mline
  12239. /\\$/{
  12240. N
  12241. s,\\\n,,
  12242. b mline
  12243. }
  12244. t clear
  12245. :clear
  12246. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12247. t quote
  12248. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12249. t quote
  12250. b any
  12251. :quote
  12252. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12253. s/\[/\\&/g
  12254. s/\]/\\&/g
  12255. s/\$/$$/g
  12256. H
  12257. :any
  12258. ${
  12259. g
  12260. s/^\n//
  12261. s/\n/ /g
  12262. p
  12263. }
  12264. '
  12265. DEFS=`sed -n "$ac_script" confdefs.h`
  12266. ac_libobjs=
  12267. ac_ltlibobjs=
  12268. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12269. # 1. Remove the extension, and $U if already installed.
  12270. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12271. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12272. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12273. # will be set to the directory where LIBOBJS objects are built.
  12274. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12275. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12276. done
  12277. LIBOBJS=$ac_libobjs
  12278. LTLIBOBJS=$ac_ltlibobjs
  12279. if test -n "$EXEEXT"; then
  12280. am__EXEEXT_TRUE=
  12281. am__EXEEXT_FALSE='#'
  12282. else
  12283. am__EXEEXT_TRUE='#'
  12284. am__EXEEXT_FALSE=
  12285. fi
  12286. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12287. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12288. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12289. fi
  12290. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12291. as_fn_error "conditional \"AMDEP\" was never defined.
  12292. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12293. fi
  12294. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12295. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12296. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12297. fi
  12298. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12299. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12300. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12301. fi
  12302. if test -z "${PLUGIN_HOST_TRUE}" && test -z "${PLUGIN_HOST_FALSE}"; then
  12303. as_fn_error "conditional \"PLUGIN_HOST\" was never defined.
  12304. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12305. fi
  12306. : ${CONFIG_STATUS=./config.status}
  12307. ac_write_fail=0
  12308. ac_clean_files_save=$ac_clean_files
  12309. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12310. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12311. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12312. as_write_fail=0
  12313. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12314. #! $SHELL
  12315. # Generated by $as_me.
  12316. # Run this file to recreate the current configuration.
  12317. # Compiler output produced by configure, useful for debugging
  12318. # configure, is in config.log if it exists.
  12319. debug=false
  12320. ac_cs_recheck=false
  12321. ac_cs_silent=false
  12322. SHELL=\${CONFIG_SHELL-$SHELL}
  12323. export SHELL
  12324. _ASEOF
  12325. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12326. ## -------------------- ##
  12327. ## M4sh Initialization. ##
  12328. ## -------------------- ##
  12329. # Be more Bourne compatible
  12330. DUALCASE=1; export DUALCASE # for MKS sh
  12331. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12332. emulate sh
  12333. NULLCMD=:
  12334. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12335. # is contrary to our usage. Disable this feature.
  12336. alias -g '${1+"$@"}'='"$@"'
  12337. setopt NO_GLOB_SUBST
  12338. else
  12339. case `(set -o) 2>/dev/null` in #(
  12340. *posix*) :
  12341. set -o posix ;; #(
  12342. *) :
  12343. ;;
  12344. esac
  12345. fi
  12346. as_nl='
  12347. '
  12348. export as_nl
  12349. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12350. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12351. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12352. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12353. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12354. # but without wasting forks for bash or zsh.
  12355. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12356. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12357. as_echo='print -r --'
  12358. as_echo_n='print -rn --'
  12359. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12360. as_echo='printf %s\n'
  12361. as_echo_n='printf %s'
  12362. else
  12363. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12364. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12365. as_echo_n='/usr/ucb/echo -n'
  12366. else
  12367. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12368. as_echo_n_body='eval
  12369. arg=$1;
  12370. case $arg in #(
  12371. *"$as_nl"*)
  12372. expr "X$arg" : "X\\(.*\\)$as_nl";
  12373. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12374. esac;
  12375. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12376. '
  12377. export as_echo_n_body
  12378. as_echo_n='sh -c $as_echo_n_body as_echo'
  12379. fi
  12380. export as_echo_body
  12381. as_echo='sh -c $as_echo_body as_echo'
  12382. fi
  12383. # The user is always right.
  12384. if test "${PATH_SEPARATOR+set}" != set; then
  12385. PATH_SEPARATOR=:
  12386. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12387. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12388. PATH_SEPARATOR=';'
  12389. }
  12390. fi
  12391. # IFS
  12392. # We need space, tab and new line, in precisely that order. Quoting is
  12393. # there to prevent editors from complaining about space-tab.
  12394. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12395. # splitting by setting IFS to empty value.)
  12396. IFS=" "" $as_nl"
  12397. # Find who we are. Look in the path if we contain no directory separator.
  12398. case $0 in #((
  12399. *[\\/]* ) as_myself=$0 ;;
  12400. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12401. for as_dir in $PATH
  12402. do
  12403. IFS=$as_save_IFS
  12404. test -z "$as_dir" && as_dir=.
  12405. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12406. done
  12407. IFS=$as_save_IFS
  12408. ;;
  12409. esac
  12410. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12411. # in which case we are not to be found in the path.
  12412. if test "x$as_myself" = x; then
  12413. as_myself=$0
  12414. fi
  12415. if test ! -f "$as_myself"; then
  12416. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12417. exit 1
  12418. fi
  12419. # Unset variables that we do not need and which cause bugs (e.g. in
  12420. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12421. # suppresses any "Segmentation fault" message there. '((' could
  12422. # trigger a bug in pdksh 5.2.14.
  12423. for as_var in BASH_ENV ENV MAIL MAILPATH
  12424. do eval test x\${$as_var+set} = xset \
  12425. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12426. done
  12427. PS1='$ '
  12428. PS2='> '
  12429. PS4='+ '
  12430. # NLS nuisances.
  12431. LC_ALL=C
  12432. export LC_ALL
  12433. LANGUAGE=C
  12434. export LANGUAGE
  12435. # CDPATH.
  12436. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12437. # as_fn_error ERROR [LINENO LOG_FD]
  12438. # ---------------------------------
  12439. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12440. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12441. # script with status $?, using 1 if that was 0.
  12442. as_fn_error ()
  12443. {
  12444. as_status=$?; test $as_status -eq 0 && as_status=1
  12445. if test "$3"; then
  12446. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12447. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12448. fi
  12449. $as_echo "$as_me: error: $1" >&2
  12450. as_fn_exit $as_status
  12451. } # as_fn_error
  12452. # as_fn_set_status STATUS
  12453. # -----------------------
  12454. # Set $? to STATUS, without forking.
  12455. as_fn_set_status ()
  12456. {
  12457. return $1
  12458. } # as_fn_set_status
  12459. # as_fn_exit STATUS
  12460. # -----------------
  12461. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12462. as_fn_exit ()
  12463. {
  12464. set +e
  12465. as_fn_set_status $1
  12466. exit $1
  12467. } # as_fn_exit
  12468. # as_fn_unset VAR
  12469. # ---------------
  12470. # Portably unset VAR.
  12471. as_fn_unset ()
  12472. {
  12473. { eval $1=; unset $1;}
  12474. }
  12475. as_unset=as_fn_unset
  12476. # as_fn_append VAR VALUE
  12477. # ----------------------
  12478. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12479. # advantage of any shell optimizations that allow amortized linear growth over
  12480. # repeated appends, instead of the typical quadratic growth present in naive
  12481. # implementations.
  12482. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12483. eval 'as_fn_append ()
  12484. {
  12485. eval $1+=\$2
  12486. }'
  12487. else
  12488. as_fn_append ()
  12489. {
  12490. eval $1=\$$1\$2
  12491. }
  12492. fi # as_fn_append
  12493. # as_fn_arith ARG...
  12494. # ------------------
  12495. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12496. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12497. # must be portable across $(()) and expr.
  12498. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12499. eval 'as_fn_arith ()
  12500. {
  12501. as_val=$(( $* ))
  12502. }'
  12503. else
  12504. as_fn_arith ()
  12505. {
  12506. as_val=`expr "$@" || test $? -eq 1`
  12507. }
  12508. fi # as_fn_arith
  12509. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12510. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12511. as_expr=expr
  12512. else
  12513. as_expr=false
  12514. fi
  12515. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12516. as_basename=basename
  12517. else
  12518. as_basename=false
  12519. fi
  12520. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12521. as_dirname=dirname
  12522. else
  12523. as_dirname=false
  12524. fi
  12525. as_me=`$as_basename -- "$0" ||
  12526. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12527. X"$0" : 'X\(//\)$' \| \
  12528. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12529. $as_echo X/"$0" |
  12530. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12531. s//\1/
  12532. q
  12533. }
  12534. /^X\/\(\/\/\)$/{
  12535. s//\1/
  12536. q
  12537. }
  12538. /^X\/\(\/\).*/{
  12539. s//\1/
  12540. q
  12541. }
  12542. s/.*/./; q'`
  12543. # Avoid depending upon Character Ranges.
  12544. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12545. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12546. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12547. as_cr_digits='0123456789'
  12548. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12549. ECHO_C= ECHO_N= ECHO_T=
  12550. case `echo -n x` in #(((((
  12551. -n*)
  12552. case `echo 'xy\c'` in
  12553. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12554. xy) ECHO_C='\c';;
  12555. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12556. ECHO_T=' ';;
  12557. esac;;
  12558. *)
  12559. ECHO_N='-n';;
  12560. esac
  12561. rm -f conf$$ conf$$.exe conf$$.file
  12562. if test -d conf$$.dir; then
  12563. rm -f conf$$.dir/conf$$.file
  12564. else
  12565. rm -f conf$$.dir
  12566. mkdir conf$$.dir 2>/dev/null
  12567. fi
  12568. if (echo >conf$$.file) 2>/dev/null; then
  12569. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12570. as_ln_s='ln -s'
  12571. # ... but there are two gotchas:
  12572. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12573. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12574. # In both cases, we have to default to `cp -p'.
  12575. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12576. as_ln_s='cp -p'
  12577. elif ln conf$$.file conf$$ 2>/dev/null; then
  12578. as_ln_s=ln
  12579. else
  12580. as_ln_s='cp -p'
  12581. fi
  12582. else
  12583. as_ln_s='cp -p'
  12584. fi
  12585. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12586. rmdir conf$$.dir 2>/dev/null
  12587. # as_fn_mkdir_p
  12588. # -------------
  12589. # Create "$as_dir" as a directory, including parents if necessary.
  12590. as_fn_mkdir_p ()
  12591. {
  12592. case $as_dir in #(
  12593. -*) as_dir=./$as_dir;;
  12594. esac
  12595. test -d "$as_dir" || eval $as_mkdir_p || {
  12596. as_dirs=
  12597. while :; do
  12598. case $as_dir in #(
  12599. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12600. *) as_qdir=$as_dir;;
  12601. esac
  12602. as_dirs="'$as_qdir' $as_dirs"
  12603. as_dir=`$as_dirname -- "$as_dir" ||
  12604. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12605. X"$as_dir" : 'X\(//\)[^/]' \| \
  12606. X"$as_dir" : 'X\(//\)$' \| \
  12607. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12608. $as_echo X"$as_dir" |
  12609. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12610. s//\1/
  12611. q
  12612. }
  12613. /^X\(\/\/\)[^/].*/{
  12614. s//\1/
  12615. q
  12616. }
  12617. /^X\(\/\/\)$/{
  12618. s//\1/
  12619. q
  12620. }
  12621. /^X\(\/\).*/{
  12622. s//\1/
  12623. q
  12624. }
  12625. s/.*/./; q'`
  12626. test -d "$as_dir" && break
  12627. done
  12628. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12629. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12630. } # as_fn_mkdir_p
  12631. if mkdir -p . 2>/dev/null; then
  12632. as_mkdir_p='mkdir -p "$as_dir"'
  12633. else
  12634. test -d ./-p && rmdir ./-p
  12635. as_mkdir_p=false
  12636. fi
  12637. if test -x / >/dev/null 2>&1; then
  12638. as_test_x='test -x'
  12639. else
  12640. if ls -dL / >/dev/null 2>&1; then
  12641. as_ls_L_option=L
  12642. else
  12643. as_ls_L_option=
  12644. fi
  12645. as_test_x='
  12646. eval sh -c '\''
  12647. if test -d "$1"; then
  12648. test -d "$1/.";
  12649. else
  12650. case $1 in #(
  12651. -*)set "./$1";;
  12652. esac;
  12653. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12654. ???[sx]*):;;*)false;;esac;fi
  12655. '\'' sh
  12656. '
  12657. fi
  12658. as_executable_p=$as_test_x
  12659. # Sed expression to map a string onto a valid CPP name.
  12660. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12661. # Sed expression to map a string onto a valid variable name.
  12662. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12663. exec 6>&1
  12664. ## ----------------------------------- ##
  12665. ## Main body of $CONFIG_STATUS script. ##
  12666. ## ----------------------------------- ##
  12667. _ASEOF
  12668. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12670. # Save the log message, to keep $0 and so on meaningful, and to
  12671. # report actual input values of CONFIG_FILES etc. instead of their
  12672. # values after options handling.
  12673. ac_log="
  12674. This file was extended by Intel MIC Offload Plugin $as_me 1.0, which was
  12675. generated by GNU Autoconf 2.64. Invocation command line was
  12676. CONFIG_FILES = $CONFIG_FILES
  12677. CONFIG_HEADERS = $CONFIG_HEADERS
  12678. CONFIG_LINKS = $CONFIG_LINKS
  12679. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12680. $ $0 $@
  12681. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12682. "
  12683. _ACEOF
  12684. case $ac_config_files in *"
  12685. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12686. esac
  12687. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12688. # Files that config.status was made for.
  12689. config_files="$ac_config_files"
  12690. config_commands="$ac_config_commands"
  12691. _ACEOF
  12692. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12693. ac_cs_usage="\
  12694. \`$as_me' instantiates files and other configuration actions
  12695. from templates according to the current configuration. Unless the files
  12696. and actions are specified as TAGs, all are instantiated by default.
  12697. Usage: $0 [OPTION]... [TAG]...
  12698. -h, --help print this help, then exit
  12699. -V, --version print version number and configuration settings, then exit
  12700. -q, --quiet, --silent
  12701. do not print progress messages
  12702. -d, --debug don't remove temporary files
  12703. --recheck update $as_me by reconfiguring in the same conditions
  12704. --file=FILE[:TEMPLATE]
  12705. instantiate the configuration file FILE
  12706. Configuration files:
  12707. $config_files
  12708. Configuration commands:
  12709. $config_commands
  12710. Report bugs to the package provider."
  12711. _ACEOF
  12712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12713. ac_cs_version="\\
  12714. Intel MIC Offload Plugin config.status 1.0
  12715. configured by $0, generated by GNU Autoconf 2.64,
  12716. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12717. Copyright (C) 2009 Free Software Foundation, Inc.
  12718. This config.status script is free software; the Free Software Foundation
  12719. gives unlimited permission to copy, distribute and modify it."
  12720. ac_pwd='$ac_pwd'
  12721. srcdir='$srcdir'
  12722. INSTALL='$INSTALL'
  12723. MKDIR_P='$MKDIR_P'
  12724. AWK='$AWK'
  12725. test -n "\$AWK" || AWK=awk
  12726. _ACEOF
  12727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12728. # The default lists apply if the user does not specify any file.
  12729. ac_need_defaults=:
  12730. while test $# != 0
  12731. do
  12732. case $1 in
  12733. --*=*)
  12734. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12735. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12736. ac_shift=:
  12737. ;;
  12738. *)
  12739. ac_option=$1
  12740. ac_optarg=$2
  12741. ac_shift=shift
  12742. ;;
  12743. esac
  12744. case $ac_option in
  12745. # Handling of the options.
  12746. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12747. ac_cs_recheck=: ;;
  12748. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12749. $as_echo "$ac_cs_version"; exit ;;
  12750. --debug | --debu | --deb | --de | --d | -d )
  12751. debug=: ;;
  12752. --file | --fil | --fi | --f )
  12753. $ac_shift
  12754. case $ac_optarg in
  12755. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12756. esac
  12757. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12758. ac_need_defaults=false;;
  12759. --he | --h | --help | --hel | -h )
  12760. $as_echo "$ac_cs_usage"; exit ;;
  12761. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12762. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12763. ac_cs_silent=: ;;
  12764. # This is an error.
  12765. -*) as_fn_error "unrecognized option: \`$1'
  12766. Try \`$0 --help' for more information." ;;
  12767. *) as_fn_append ac_config_targets " $1"
  12768. ac_need_defaults=false ;;
  12769. esac
  12770. shift
  12771. done
  12772. ac_configure_extra_args=
  12773. if $ac_cs_silent; then
  12774. exec 6>/dev/null
  12775. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12776. fi
  12777. _ACEOF
  12778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12779. if \$ac_cs_recheck; then
  12780. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12781. shift
  12782. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12783. CONFIG_SHELL='$SHELL'
  12784. export CONFIG_SHELL
  12785. exec "\$@"
  12786. fi
  12787. _ACEOF
  12788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12789. exec 5>>config.log
  12790. {
  12791. echo
  12792. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12793. ## Running $as_me. ##
  12794. _ASBOX
  12795. $as_echo "$ac_log"
  12796. } >&5
  12797. _ACEOF
  12798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12799. #
  12800. # INIT-COMMANDS
  12801. #
  12802. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12803. srcdir="$srcdir"
  12804. host="$host"
  12805. target="$target"
  12806. with_multisubdir="$with_multisubdir"
  12807. with_multisrctop="$with_multisrctop"
  12808. with_target_subdir="$with_target_subdir"
  12809. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  12810. multi_basedir="$multi_basedir"
  12811. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  12812. CC="$CC"
  12813. CXX="$CXX"
  12814. GFORTRAN="$GFORTRAN"
  12815. GCJ="$GCJ"
  12816. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12817. # if CDPATH is set.
  12818. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12819. sed_quote_subst='$sed_quote_subst'
  12820. double_quote_subst='$double_quote_subst'
  12821. delay_variable_subst='$delay_variable_subst'
  12822. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12823. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12824. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12825. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12826. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12827. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12828. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12829. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12830. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12831. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12832. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12833. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12834. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12835. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12836. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12837. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12838. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12839. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12840. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12841. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12842. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12843. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12844. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12845. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12846. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12847. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12848. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12849. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12850. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12851. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12852. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12853. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12854. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12855. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12856. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12857. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12858. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12859. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12860. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12861. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12862. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12863. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12864. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12865. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12866. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12867. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12868. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12869. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12870. 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"`'
  12871. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12872. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12873. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12874. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12875. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12876. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12877. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12878. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12879. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12880. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12881. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12882. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12883. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12884. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12885. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12886. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12887. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12888. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12889. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12890. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12891. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12892. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12893. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12894. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12895. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12896. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12897. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12898. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12899. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12900. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12901. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12902. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  12903. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12904. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12905. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12906. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12907. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12908. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12909. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12910. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12911. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  12912. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12913. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12914. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12915. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12916. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12917. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12918. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12919. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12920. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12921. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12922. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12923. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12924. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12925. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12926. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12927. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12928. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12929. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12930. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12931. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12932. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12933. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12934. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12935. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12936. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12937. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12938. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12939. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12940. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12941. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12942. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  12943. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  12944. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  12945. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  12946. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  12947. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  12948. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  12949. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  12950. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12951. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12952. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  12953. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  12954. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  12955. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  12956. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  12957. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  12958. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  12959. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  12960. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  12961. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  12962. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  12963. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  12964. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12965. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12966. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12967. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12968. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12969. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12970. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  12971. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  12972. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  12973. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  12974. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  12975. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  12976. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  12977. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  12978. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  12979. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  12980. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  12981. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  12982. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  12983. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  12984. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  12985. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12986. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  12987. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  12988. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  12989. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  12990. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  12991. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  12992. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  12993. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  12994. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  12995. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  12996. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  12997. LTCC='$LTCC'
  12998. LTCFLAGS='$LTCFLAGS'
  12999. compiler='$compiler_DEFAULT'
  13000. # A function that is used when there is no print builtin or printf.
  13001. func_fallback_echo ()
  13002. {
  13003. eval 'cat <<_LTECHO_EOF
  13004. \$1
  13005. _LTECHO_EOF'
  13006. }
  13007. # Quote evaled strings.
  13008. for var in SHELL \
  13009. ECHO \
  13010. SED \
  13011. GREP \
  13012. EGREP \
  13013. FGREP \
  13014. LD \
  13015. NM \
  13016. LN_S \
  13017. lt_SP2NL \
  13018. lt_NL2SP \
  13019. reload_flag \
  13020. OBJDUMP \
  13021. deplibs_check_method \
  13022. file_magic_cmd \
  13023. AR \
  13024. AR_FLAGS \
  13025. STRIP \
  13026. RANLIB \
  13027. CC \
  13028. CFLAGS \
  13029. compiler \
  13030. lt_cv_sys_global_symbol_pipe \
  13031. lt_cv_sys_global_symbol_to_cdecl \
  13032. lt_cv_sys_global_symbol_to_c_name_address \
  13033. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13034. lt_prog_compiler_no_builtin_flag \
  13035. lt_prog_compiler_wl \
  13036. lt_prog_compiler_pic \
  13037. lt_prog_compiler_static \
  13038. lt_cv_prog_compiler_c_o \
  13039. need_locks \
  13040. DSYMUTIL \
  13041. NMEDIT \
  13042. LIPO \
  13043. OTOOL \
  13044. OTOOL64 \
  13045. shrext_cmds \
  13046. export_dynamic_flag_spec \
  13047. whole_archive_flag_spec \
  13048. compiler_needs_object \
  13049. with_gnu_ld \
  13050. allow_undefined_flag \
  13051. no_undefined_flag \
  13052. hardcode_libdir_flag_spec \
  13053. hardcode_libdir_flag_spec_ld \
  13054. hardcode_libdir_separator \
  13055. fix_srcfile_path \
  13056. exclude_expsyms \
  13057. include_expsyms \
  13058. file_list_spec \
  13059. variables_saved_for_relink \
  13060. libname_spec \
  13061. library_names_spec \
  13062. soname_spec \
  13063. install_override_mode \
  13064. finish_eval \
  13065. old_striplib \
  13066. striplib \
  13067. compiler_lib_search_dirs \
  13068. predep_objects \
  13069. postdep_objects \
  13070. predeps \
  13071. postdeps \
  13072. compiler_lib_search_path \
  13073. LD_CXX \
  13074. reload_flag_CXX \
  13075. compiler_CXX \
  13076. lt_prog_compiler_no_builtin_flag_CXX \
  13077. lt_prog_compiler_wl_CXX \
  13078. lt_prog_compiler_pic_CXX \
  13079. lt_prog_compiler_static_CXX \
  13080. lt_cv_prog_compiler_c_o_CXX \
  13081. export_dynamic_flag_spec_CXX \
  13082. whole_archive_flag_spec_CXX \
  13083. compiler_needs_object_CXX \
  13084. with_gnu_ld_CXX \
  13085. allow_undefined_flag_CXX \
  13086. no_undefined_flag_CXX \
  13087. hardcode_libdir_flag_spec_CXX \
  13088. hardcode_libdir_flag_spec_ld_CXX \
  13089. hardcode_libdir_separator_CXX \
  13090. fix_srcfile_path_CXX \
  13091. exclude_expsyms_CXX \
  13092. include_expsyms_CXX \
  13093. file_list_spec_CXX \
  13094. compiler_lib_search_dirs_CXX \
  13095. predep_objects_CXX \
  13096. postdep_objects_CXX \
  13097. predeps_CXX \
  13098. postdeps_CXX \
  13099. compiler_lib_search_path_CXX; do
  13100. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13101. *[\\\\\\\`\\"\\\$]*)
  13102. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13103. ;;
  13104. *)
  13105. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13106. ;;
  13107. esac
  13108. done
  13109. # Double-quote double-evaled strings.
  13110. for var in reload_cmds \
  13111. old_postinstall_cmds \
  13112. old_postuninstall_cmds \
  13113. old_archive_cmds \
  13114. extract_expsyms_cmds \
  13115. old_archive_from_new_cmds \
  13116. old_archive_from_expsyms_cmds \
  13117. archive_cmds \
  13118. archive_expsym_cmds \
  13119. module_cmds \
  13120. module_expsym_cmds \
  13121. export_symbols_cmds \
  13122. prelink_cmds \
  13123. postinstall_cmds \
  13124. postuninstall_cmds \
  13125. finish_cmds \
  13126. sys_lib_search_path_spec \
  13127. sys_lib_dlsearch_path_spec \
  13128. reload_cmds_CXX \
  13129. old_archive_cmds_CXX \
  13130. old_archive_from_new_cmds_CXX \
  13131. old_archive_from_expsyms_cmds_CXX \
  13132. archive_cmds_CXX \
  13133. archive_expsym_cmds_CXX \
  13134. module_cmds_CXX \
  13135. module_expsym_cmds_CXX \
  13136. export_symbols_cmds_CXX \
  13137. prelink_cmds_CXX; do
  13138. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13139. *[\\\\\\\`\\"\\\$]*)
  13140. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13141. ;;
  13142. *)
  13143. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13144. ;;
  13145. esac
  13146. done
  13147. ac_aux_dir='$ac_aux_dir'
  13148. xsi_shell='$xsi_shell'
  13149. lt_shell_append='$lt_shell_append'
  13150. # See if we are running on zsh, and set the options which allow our
  13151. # commands through without removal of \ escapes INIT.
  13152. if test -n "\${ZSH_VERSION+set}" ; then
  13153. setopt NO_GLOB_SUBST
  13154. fi
  13155. PACKAGE='$PACKAGE'
  13156. VERSION='$VERSION'
  13157. TIMESTAMP='$TIMESTAMP'
  13158. RM='$RM'
  13159. ofile='$ofile'
  13160. _ACEOF
  13161. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13162. # Handling of arguments.
  13163. for ac_config_target in $ac_config_targets
  13164. do
  13165. case $ac_config_target in
  13166. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13167. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13168. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13169. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13170. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13171. esac
  13172. done
  13173. # If the user did not use the arguments to specify the items to instantiate,
  13174. # then the envvar interface is used. Set only those that are not.
  13175. # We use the long form for the default assignment because of an extremely
  13176. # bizarre bug on SunOS 4.1.3.
  13177. if $ac_need_defaults; then
  13178. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13179. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13180. fi
  13181. # Have a temporary directory for convenience. Make it in the build tree
  13182. # simply because there is no reason against having it here, and in addition,
  13183. # creating and moving files from /tmp can sometimes cause problems.
  13184. # Hook for its removal unless debugging.
  13185. # Note that there is a small window in which the directory will not be cleaned:
  13186. # after its creation but before its name has been assigned to `$tmp'.
  13187. $debug ||
  13188. {
  13189. tmp=
  13190. trap 'exit_status=$?
  13191. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13192. ' 0
  13193. trap 'as_fn_exit 1' 1 2 13 15
  13194. }
  13195. # Create a (secure) tmp directory for tmp files.
  13196. {
  13197. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13198. test -n "$tmp" && test -d "$tmp"
  13199. } ||
  13200. {
  13201. tmp=./conf$$-$RANDOM
  13202. (umask 077 && mkdir "$tmp")
  13203. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13204. # Set up the scripts for CONFIG_FILES section.
  13205. # No need to generate them if there are no CONFIG_FILES.
  13206. # This happens for instance with `./config.status config.h'.
  13207. if test -n "$CONFIG_FILES"; then
  13208. ac_cr=`echo X | tr X '\015'`
  13209. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13210. # But we know of no other shell where ac_cr would be empty at this
  13211. # point, so we can use a bashism as a fallback.
  13212. if test "x$ac_cr" = x; then
  13213. eval ac_cr=\$\'\\r\'
  13214. fi
  13215. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13216. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13217. ac_cs_awk_cr='\r'
  13218. else
  13219. ac_cs_awk_cr=$ac_cr
  13220. fi
  13221. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13222. _ACEOF
  13223. {
  13224. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13225. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13226. echo "_ACEOF"
  13227. } >conf$$subs.sh ||
  13228. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13229. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13230. ac_delim='%!_!# '
  13231. for ac_last_try in false false false false false :; do
  13232. . ./conf$$subs.sh ||
  13233. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13234. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13235. if test $ac_delim_n = $ac_delim_num; then
  13236. break
  13237. elif $ac_last_try; then
  13238. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13239. else
  13240. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13241. fi
  13242. done
  13243. rm -f conf$$subs.sh
  13244. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13245. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13246. _ACEOF
  13247. sed -n '
  13248. h
  13249. s/^/S["/; s/!.*/"]=/
  13250. p
  13251. g
  13252. s/^[^!]*!//
  13253. :repl
  13254. t repl
  13255. s/'"$ac_delim"'$//
  13256. t delim
  13257. :nl
  13258. h
  13259. s/\(.\{148\}\).*/\1/
  13260. t more1
  13261. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13262. p
  13263. n
  13264. b repl
  13265. :more1
  13266. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13267. p
  13268. g
  13269. s/.\{148\}//
  13270. t nl
  13271. :delim
  13272. h
  13273. s/\(.\{148\}\).*/\1/
  13274. t more2
  13275. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13276. p
  13277. b
  13278. :more2
  13279. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13280. p
  13281. g
  13282. s/.\{148\}//
  13283. t delim
  13284. ' <conf$$subs.awk | sed '
  13285. /^[^""]/{
  13286. N
  13287. s/\n//
  13288. }
  13289. ' >>$CONFIG_STATUS || ac_write_fail=1
  13290. rm -f conf$$subs.awk
  13291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13292. _ACAWK
  13293. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13294. for (key in S) S_is_set[key] = 1
  13295. FS = ""
  13296. }
  13297. {
  13298. line = $ 0
  13299. nfields = split(line, field, "@")
  13300. substed = 0
  13301. len = length(field[1])
  13302. for (i = 2; i < nfields; i++) {
  13303. key = field[i]
  13304. keylen = length(key)
  13305. if (S_is_set[key]) {
  13306. value = S[key]
  13307. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13308. len += length(value) + length(field[++i])
  13309. substed = 1
  13310. } else
  13311. len += 1 + keylen
  13312. }
  13313. print line
  13314. }
  13315. _ACAWK
  13316. _ACEOF
  13317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13318. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13319. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13320. else
  13321. cat
  13322. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13323. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13324. _ACEOF
  13325. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13326. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13327. # trailing colons and then remove the whole line if VPATH becomes empty
  13328. # (actually we leave an empty line to preserve line numbers).
  13329. if test "x$srcdir" = x.; then
  13330. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13331. s/:*\$(srcdir):*/:/
  13332. s/:*\${srcdir}:*/:/
  13333. s/:*@srcdir@:*/:/
  13334. s/^\([^=]*=[ ]*\):*/\1/
  13335. s/:*$//
  13336. s/^[^=]*=[ ]*$//
  13337. }'
  13338. fi
  13339. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13340. fi # test -n "$CONFIG_FILES"
  13341. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13342. shift
  13343. for ac_tag
  13344. do
  13345. case $ac_tag in
  13346. :[FHLC]) ac_mode=$ac_tag; continue;;
  13347. esac
  13348. case $ac_mode$ac_tag in
  13349. :[FHL]*:*);;
  13350. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13351. :[FH]-) ac_tag=-:-;;
  13352. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13353. esac
  13354. ac_save_IFS=$IFS
  13355. IFS=:
  13356. set x $ac_tag
  13357. IFS=$ac_save_IFS
  13358. shift
  13359. ac_file=$1
  13360. shift
  13361. case $ac_mode in
  13362. :L) ac_source=$1;;
  13363. :[FH])
  13364. ac_file_inputs=
  13365. for ac_f
  13366. do
  13367. case $ac_f in
  13368. -) ac_f="$tmp/stdin";;
  13369. *) # Look for the file first in the build tree, then in the source tree
  13370. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13371. # because $ac_f cannot contain `:'.
  13372. test -f "$ac_f" ||
  13373. case $ac_f in
  13374. [\\/$]*) false;;
  13375. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13376. esac ||
  13377. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13378. esac
  13379. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13380. as_fn_append ac_file_inputs " '$ac_f'"
  13381. done
  13382. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13383. # use $as_me), people would be surprised to read:
  13384. # /* config.h. Generated by config.status. */
  13385. configure_input='Generated from '`
  13386. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13387. `' by configure.'
  13388. if test x"$ac_file" != x-; then
  13389. configure_input="$ac_file. $configure_input"
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13391. $as_echo "$as_me: creating $ac_file" >&6;}
  13392. fi
  13393. # Neutralize special characters interpreted by sed in replacement strings.
  13394. case $configure_input in #(
  13395. *\&* | *\|* | *\\* )
  13396. ac_sed_conf_input=`$as_echo "$configure_input" |
  13397. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13398. *) ac_sed_conf_input=$configure_input;;
  13399. esac
  13400. case $ac_tag in
  13401. *:-:* | *:-) cat >"$tmp/stdin" \
  13402. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13403. esac
  13404. ;;
  13405. esac
  13406. ac_dir=`$as_dirname -- "$ac_file" ||
  13407. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13408. X"$ac_file" : 'X\(//\)[^/]' \| \
  13409. X"$ac_file" : 'X\(//\)$' \| \
  13410. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13411. $as_echo X"$ac_file" |
  13412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13413. s//\1/
  13414. q
  13415. }
  13416. /^X\(\/\/\)[^/].*/{
  13417. s//\1/
  13418. q
  13419. }
  13420. /^X\(\/\/\)$/{
  13421. s//\1/
  13422. q
  13423. }
  13424. /^X\(\/\).*/{
  13425. s//\1/
  13426. q
  13427. }
  13428. s/.*/./; q'`
  13429. as_dir="$ac_dir"; as_fn_mkdir_p
  13430. ac_builddir=.
  13431. case "$ac_dir" in
  13432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13433. *)
  13434. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13435. # A ".." for each directory in $ac_dir_suffix.
  13436. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13437. case $ac_top_builddir_sub in
  13438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13440. esac ;;
  13441. esac
  13442. ac_abs_top_builddir=$ac_pwd
  13443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13444. # for backward compatibility:
  13445. ac_top_builddir=$ac_top_build_prefix
  13446. case $srcdir in
  13447. .) # We are building in place.
  13448. ac_srcdir=.
  13449. ac_top_srcdir=$ac_top_builddir_sub
  13450. ac_abs_top_srcdir=$ac_pwd ;;
  13451. [\\/]* | ?:[\\/]* ) # Absolute name.
  13452. ac_srcdir=$srcdir$ac_dir_suffix;
  13453. ac_top_srcdir=$srcdir
  13454. ac_abs_top_srcdir=$srcdir ;;
  13455. *) # Relative name.
  13456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13459. esac
  13460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13461. case $ac_mode in
  13462. :F)
  13463. #
  13464. # CONFIG_FILE
  13465. #
  13466. case $INSTALL in
  13467. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13468. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13469. esac
  13470. ac_MKDIR_P=$MKDIR_P
  13471. case $MKDIR_P in
  13472. [\\/$]* | ?:[\\/]* ) ;;
  13473. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13474. esac
  13475. _ACEOF
  13476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13477. # If the template does not know about datarootdir, expand it.
  13478. # FIXME: This hack should be removed a few years after 2.60.
  13479. ac_datarootdir_hack=; ac_datarootdir_seen=
  13480. ac_sed_dataroot='
  13481. /datarootdir/ {
  13482. p
  13483. q
  13484. }
  13485. /@datadir@/p
  13486. /@docdir@/p
  13487. /@infodir@/p
  13488. /@localedir@/p
  13489. /@mandir@/p'
  13490. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13491. *datarootdir*) ac_datarootdir_seen=yes;;
  13492. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13494. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13495. _ACEOF
  13496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13497. ac_datarootdir_hack='
  13498. s&@datadir@&$datadir&g
  13499. s&@docdir@&$docdir&g
  13500. s&@infodir@&$infodir&g
  13501. s&@localedir@&$localedir&g
  13502. s&@mandir@&$mandir&g
  13503. s&\\\${datarootdir}&$datarootdir&g' ;;
  13504. esac
  13505. _ACEOF
  13506. # Neutralize VPATH when `$srcdir' = `.'.
  13507. # Shell code in configure.ac might set extrasub.
  13508. # FIXME: do we really want to maintain this feature?
  13509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13510. ac_sed_extra="$ac_vpsub
  13511. $extrasub
  13512. _ACEOF
  13513. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13514. :t
  13515. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13516. s|@configure_input@|$ac_sed_conf_input|;t t
  13517. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13518. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13519. s&@srcdir@&$ac_srcdir&;t t
  13520. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13521. s&@top_srcdir@&$ac_top_srcdir&;t t
  13522. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13523. s&@builddir@&$ac_builddir&;t t
  13524. s&@abs_builddir@&$ac_abs_builddir&;t t
  13525. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13526. s&@INSTALL@&$ac_INSTALL&;t t
  13527. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13528. $ac_datarootdir_hack
  13529. "
  13530. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13531. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13532. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13533. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13534. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13536. which seems to be undefined. Please make sure it is defined." >&5
  13537. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13538. which seems to be undefined. Please make sure it is defined." >&2;}
  13539. rm -f "$tmp/stdin"
  13540. case $ac_file in
  13541. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13542. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13543. esac \
  13544. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13545. ;;
  13546. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13547. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13548. ;;
  13549. esac
  13550. case $ac_file$ac_mode in
  13551. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13552. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13553. # are listed without --file. Let's play safe and only enable the eval
  13554. # if we detect the quoting.
  13555. case $CONFIG_FILES in
  13556. *\'*) eval set x "$CONFIG_FILES" ;;
  13557. *) set x $CONFIG_FILES ;;
  13558. esac
  13559. shift
  13560. for mf
  13561. do
  13562. # Strip MF so we end up with the name of the file.
  13563. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13564. # Check whether this is an Automake generated Makefile or not.
  13565. # We used to match only the files named `Makefile.in', but
  13566. # some people rename them; so instead we look at the file content.
  13567. # Grep'ing the first line is not enough: some people post-process
  13568. # each Makefile.in and add a new line on top of each file to say so.
  13569. # Grep'ing the whole file is not good either: AIX grep has a line
  13570. # limit of 2048, but all sed's we know have understand at least 4000.
  13571. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13572. dirpart=`$as_dirname -- "$mf" ||
  13573. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13574. X"$mf" : 'X\(//\)[^/]' \| \
  13575. X"$mf" : 'X\(//\)$' \| \
  13576. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13577. $as_echo X"$mf" |
  13578. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13579. s//\1/
  13580. q
  13581. }
  13582. /^X\(\/\/\)[^/].*/{
  13583. s//\1/
  13584. q
  13585. }
  13586. /^X\(\/\/\)$/{
  13587. s//\1/
  13588. q
  13589. }
  13590. /^X\(\/\).*/{
  13591. s//\1/
  13592. q
  13593. }
  13594. s/.*/./; q'`
  13595. else
  13596. continue
  13597. fi
  13598. # Extract the definition of DEPDIR, am__include, and am__quote
  13599. # from the Makefile without running `make'.
  13600. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13601. test -z "$DEPDIR" && continue
  13602. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13603. test -z "am__include" && continue
  13604. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13605. # When using ansi2knr, U may be empty or an underscore; expand it
  13606. U=`sed -n 's/^U = //p' < "$mf"`
  13607. # Find all dependency output files, they are included files with
  13608. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13609. # simplest approach to changing $(DEPDIR) to its actual value in the
  13610. # expansion.
  13611. for file in `sed -n "
  13612. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13613. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13614. # Make sure the directory exists.
  13615. test -f "$dirpart/$file" && continue
  13616. fdir=`$as_dirname -- "$file" ||
  13617. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13618. X"$file" : 'X\(//\)[^/]' \| \
  13619. X"$file" : 'X\(//\)$' \| \
  13620. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13621. $as_echo X"$file" |
  13622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13623. s//\1/
  13624. q
  13625. }
  13626. /^X\(\/\/\)[^/].*/{
  13627. s//\1/
  13628. q
  13629. }
  13630. /^X\(\/\/\)$/{
  13631. s//\1/
  13632. q
  13633. }
  13634. /^X\(\/\).*/{
  13635. s//\1/
  13636. q
  13637. }
  13638. s/.*/./; q'`
  13639. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13640. # echo "creating $dirpart/$file"
  13641. echo '# dummy' > "$dirpart/$file"
  13642. done
  13643. done
  13644. }
  13645. ;;
  13646. "default-1":C)
  13647. # Only add multilib support code if we just rebuilt the top-level
  13648. # Makefile.
  13649. case " $CONFIG_FILES " in
  13650. *" Makefile "*)
  13651. ac_file=Makefile . ${multi_basedir}/config-ml.in
  13652. ;;
  13653. esac ;;
  13654. "libtool":C)
  13655. # See if we are running on zsh, and set the options which allow our
  13656. # commands through without removal of \ escapes.
  13657. if test -n "${ZSH_VERSION+set}" ; then
  13658. setopt NO_GLOB_SUBST
  13659. fi
  13660. cfgfile="${ofile}T"
  13661. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13662. $RM "$cfgfile"
  13663. cat <<_LT_EOF >> "$cfgfile"
  13664. #! $SHELL
  13665. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13666. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13667. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13668. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13669. #
  13670. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13671. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13672. # Written by Gordon Matzigkeit, 1996
  13673. #
  13674. # This file is part of GNU Libtool.
  13675. #
  13676. # GNU Libtool is free software; you can redistribute it and/or
  13677. # modify it under the terms of the GNU General Public License as
  13678. # published by the Free Software Foundation; either version 2 of
  13679. # the License, or (at your option) any later version.
  13680. #
  13681. # As a special exception to the GNU General Public License,
  13682. # if you distribute this file as part of a program or library that
  13683. # is built using GNU Libtool, you may include this file under the
  13684. # same distribution terms that you use for the rest of that program.
  13685. #
  13686. # GNU Libtool is distributed in the hope that it will be useful,
  13687. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13688. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13689. # GNU General Public License for more details.
  13690. #
  13691. # You should have received a copy of the GNU General Public License
  13692. # along with GNU Libtool; see the file COPYING. If not, a copy
  13693. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13694. # obtained by writing to the Free Software Foundation, Inc.,
  13695. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13696. # The names of the tagged configurations supported by this script.
  13697. available_tags="CXX "
  13698. # ### BEGIN LIBTOOL CONFIG
  13699. # Which release of libtool.m4 was used?
  13700. macro_version=$macro_version
  13701. macro_revision=$macro_revision
  13702. # Whether or not to build shared libraries.
  13703. build_libtool_libs=$enable_shared
  13704. # Whether or not to build static libraries.
  13705. build_old_libs=$enable_static
  13706. # What type of objects to build.
  13707. pic_mode=$pic_mode
  13708. # Whether or not to optimize for fast installation.
  13709. fast_install=$enable_fast_install
  13710. # Shell to use when invoking shell scripts.
  13711. SHELL=$lt_SHELL
  13712. # An echo program that protects backslashes.
  13713. ECHO=$lt_ECHO
  13714. # The host system.
  13715. host_alias=$host_alias
  13716. host=$host
  13717. host_os=$host_os
  13718. # The build system.
  13719. build_alias=$build_alias
  13720. build=$build
  13721. build_os=$build_os
  13722. # A sed program that does not truncate output.
  13723. SED=$lt_SED
  13724. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13725. Xsed="\$SED -e 1s/^X//"
  13726. # A grep program that handles long lines.
  13727. GREP=$lt_GREP
  13728. # An ERE matcher.
  13729. EGREP=$lt_EGREP
  13730. # A literal string matcher.
  13731. FGREP=$lt_FGREP
  13732. # A BSD- or MS-compatible name lister.
  13733. NM=$lt_NM
  13734. # Whether we need soft or hard links.
  13735. LN_S=$lt_LN_S
  13736. # What is the maximum length of a command?
  13737. max_cmd_len=$max_cmd_len
  13738. # Object file suffix (normally "o").
  13739. objext=$ac_objext
  13740. # Executable file suffix (normally "").
  13741. exeext=$exeext
  13742. # whether the shell understands "unset".
  13743. lt_unset=$lt_unset
  13744. # turn spaces into newlines.
  13745. SP2NL=$lt_lt_SP2NL
  13746. # turn newlines into spaces.
  13747. NL2SP=$lt_lt_NL2SP
  13748. # An object symbol dumper.
  13749. OBJDUMP=$lt_OBJDUMP
  13750. # Method to check whether dependent libraries are shared objects.
  13751. deplibs_check_method=$lt_deplibs_check_method
  13752. # Command to use when deplibs_check_method == "file_magic".
  13753. file_magic_cmd=$lt_file_magic_cmd
  13754. # The archiver.
  13755. AR=$lt_AR
  13756. AR_FLAGS=$lt_AR_FLAGS
  13757. # A symbol stripping program.
  13758. STRIP=$lt_STRIP
  13759. # Commands used to install an old-style archive.
  13760. RANLIB=$lt_RANLIB
  13761. old_postinstall_cmds=$lt_old_postinstall_cmds
  13762. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13763. # Whether to use a lock for old archive extraction.
  13764. lock_old_archive_extraction=$lock_old_archive_extraction
  13765. # A C compiler.
  13766. LTCC=$lt_CC
  13767. # LTCC compiler flags.
  13768. LTCFLAGS=$lt_CFLAGS
  13769. # Take the output of nm and produce a listing of raw symbols and C names.
  13770. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13771. # Transform the output of nm in a proper C declaration.
  13772. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13773. # Transform the output of nm in a C name address pair.
  13774. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13775. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13776. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13777. # The name of the directory that contains temporary libtool files.
  13778. objdir=$objdir
  13779. # Used to examine libraries when file_magic_cmd begins with "file".
  13780. MAGIC_CMD=$MAGIC_CMD
  13781. # Must we lock files when doing compilation?
  13782. need_locks=$lt_need_locks
  13783. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13784. DSYMUTIL=$lt_DSYMUTIL
  13785. # Tool to change global to local symbols on Mac OS X.
  13786. NMEDIT=$lt_NMEDIT
  13787. # Tool to manipulate fat objects and archives on Mac OS X.
  13788. LIPO=$lt_LIPO
  13789. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13790. OTOOL=$lt_OTOOL
  13791. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13792. OTOOL64=$lt_OTOOL64
  13793. # Old archive suffix (normally "a").
  13794. libext=$libext
  13795. # Shared library suffix (normally ".so").
  13796. shrext_cmds=$lt_shrext_cmds
  13797. # The commands to extract the exported symbol list from a shared archive.
  13798. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13799. # Variables whose values should be saved in libtool wrapper scripts and
  13800. # restored at link time.
  13801. variables_saved_for_relink=$lt_variables_saved_for_relink
  13802. # Do we need the "lib" prefix for modules?
  13803. need_lib_prefix=$need_lib_prefix
  13804. # Do we need a version for libraries?
  13805. need_version=$need_version
  13806. # Library versioning type.
  13807. version_type=$version_type
  13808. # Shared library runtime path variable.
  13809. runpath_var=$runpath_var
  13810. # Shared library path variable.
  13811. shlibpath_var=$shlibpath_var
  13812. # Is shlibpath searched before the hard-coded library search path?
  13813. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13814. # Format of library name prefix.
  13815. libname_spec=$lt_libname_spec
  13816. # List of archive names. First name is the real one, the rest are links.
  13817. # The last name is the one that the linker finds with -lNAME
  13818. library_names_spec=$lt_library_names_spec
  13819. # The coded name of the library, if different from the real name.
  13820. soname_spec=$lt_soname_spec
  13821. # Permission mode override for installation of shared libraries.
  13822. install_override_mode=$lt_install_override_mode
  13823. # Command to use after installation of a shared archive.
  13824. postinstall_cmds=$lt_postinstall_cmds
  13825. # Command to use after uninstallation of a shared archive.
  13826. postuninstall_cmds=$lt_postuninstall_cmds
  13827. # Commands used to finish a libtool library installation in a directory.
  13828. finish_cmds=$lt_finish_cmds
  13829. # As "finish_cmds", except a single script fragment to be evaled but
  13830. # not shown.
  13831. finish_eval=$lt_finish_eval
  13832. # Whether we should hardcode library paths into libraries.
  13833. hardcode_into_libs=$hardcode_into_libs
  13834. # Compile-time system search path for libraries.
  13835. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13836. # Run-time system search path for libraries.
  13837. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13838. # Whether dlopen is supported.
  13839. dlopen_support=$enable_dlopen
  13840. # Whether dlopen of programs is supported.
  13841. dlopen_self=$enable_dlopen_self
  13842. # Whether dlopen of statically linked programs is supported.
  13843. dlopen_self_static=$enable_dlopen_self_static
  13844. # Commands to strip libraries.
  13845. old_striplib=$lt_old_striplib
  13846. striplib=$lt_striplib
  13847. # The linker used to build libraries.
  13848. LD=$lt_LD
  13849. # How to create reloadable object files.
  13850. reload_flag=$lt_reload_flag
  13851. reload_cmds=$lt_reload_cmds
  13852. # Commands used to build an old-style archive.
  13853. old_archive_cmds=$lt_old_archive_cmds
  13854. # A language specific compiler.
  13855. CC=$lt_compiler
  13856. # Is the compiler the GNU compiler?
  13857. with_gcc=$GCC
  13858. # Compiler flag to turn off builtin functions.
  13859. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13860. # How to pass a linker flag through the compiler.
  13861. wl=$lt_lt_prog_compiler_wl
  13862. # Additional compiler flags for building library objects.
  13863. pic_flag=$lt_lt_prog_compiler_pic
  13864. # Compiler flag to prevent dynamic linking.
  13865. link_static_flag=$lt_lt_prog_compiler_static
  13866. # Does compiler simultaneously support -c and -o options?
  13867. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13868. # Whether or not to add -lc for building shared libraries.
  13869. build_libtool_need_lc=$archive_cmds_need_lc
  13870. # Whether or not to disallow shared libs when runtime libs are static.
  13871. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13872. # Compiler flag to allow reflexive dlopens.
  13873. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13874. # Compiler flag to generate shared objects directly from archives.
  13875. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13876. # Whether the compiler copes with passing no objects directly.
  13877. compiler_needs_object=$lt_compiler_needs_object
  13878. # Create an old-style archive from a shared archive.
  13879. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13880. # Create a temporary old-style archive to link instead of a shared archive.
  13881. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13882. # Commands used to build a shared archive.
  13883. archive_cmds=$lt_archive_cmds
  13884. archive_expsym_cmds=$lt_archive_expsym_cmds
  13885. # Commands used to build a loadable module if different from building
  13886. # a shared archive.
  13887. module_cmds=$lt_module_cmds
  13888. module_expsym_cmds=$lt_module_expsym_cmds
  13889. # Whether we are building with GNU ld or not.
  13890. with_gnu_ld=$lt_with_gnu_ld
  13891. # Flag that allows shared libraries with undefined symbols to be built.
  13892. allow_undefined_flag=$lt_allow_undefined_flag
  13893. # Flag that enforces no undefined symbols.
  13894. no_undefined_flag=$lt_no_undefined_flag
  13895. # Flag to hardcode \$libdir into a binary during linking.
  13896. # This must work even if \$libdir does not exist
  13897. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13898. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13899. # during linking. This must work even if \$libdir does not exist.
  13900. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13901. # Whether we need a single "-rpath" flag with a separated argument.
  13902. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13903. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13904. # DIR into the resulting binary.
  13905. hardcode_direct=$hardcode_direct
  13906. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13907. # DIR into the resulting binary and the resulting library dependency is
  13908. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13909. # library is relocated.
  13910. hardcode_direct_absolute=$hardcode_direct_absolute
  13911. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13912. # into the resulting binary.
  13913. hardcode_minus_L=$hardcode_minus_L
  13914. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13915. # into the resulting binary.
  13916. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13917. # Set to "yes" if building a shared library automatically hardcodes DIR
  13918. # into the library and all subsequent libraries and executables linked
  13919. # against it.
  13920. hardcode_automatic=$hardcode_automatic
  13921. # Set to yes if linker adds runtime paths of dependent libraries
  13922. # to runtime path list.
  13923. inherit_rpath=$inherit_rpath
  13924. # Whether libtool must link a program against all its dependency libraries.
  13925. link_all_deplibs=$link_all_deplibs
  13926. # Fix the shell variable \$srcfile for the compiler.
  13927. fix_srcfile_path=$lt_fix_srcfile_path
  13928. # Set to "yes" if exported symbols are required.
  13929. always_export_symbols=$always_export_symbols
  13930. # The commands to list exported symbols.
  13931. export_symbols_cmds=$lt_export_symbols_cmds
  13932. # Symbols that should not be listed in the preloaded symbols.
  13933. exclude_expsyms=$lt_exclude_expsyms
  13934. # Symbols that must always be exported.
  13935. include_expsyms=$lt_include_expsyms
  13936. # Commands necessary for linking programs (against libraries) with templates.
  13937. prelink_cmds=$lt_prelink_cmds
  13938. # Specify filename containing input files.
  13939. file_list_spec=$lt_file_list_spec
  13940. # How to hardcode a shared library path into an executable.
  13941. hardcode_action=$hardcode_action
  13942. # The directories searched by this compiler when creating a shared library.
  13943. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  13944. # Dependencies to place before and after the objects being linked to
  13945. # create a shared library.
  13946. predep_objects=$lt_predep_objects
  13947. postdep_objects=$lt_postdep_objects
  13948. predeps=$lt_predeps
  13949. postdeps=$lt_postdeps
  13950. # The library search path used internally by the compiler when linking
  13951. # a shared library.
  13952. compiler_lib_search_path=$lt_compiler_lib_search_path
  13953. # ### END LIBTOOL CONFIG
  13954. _LT_EOF
  13955. case $host_os in
  13956. aix3*)
  13957. cat <<\_LT_EOF >> "$cfgfile"
  13958. # AIX sometimes has problems with the GCC collect2 program. For some
  13959. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13960. # vanish in a puff of smoke.
  13961. if test "X${COLLECT_NAMES+set}" != Xset; then
  13962. COLLECT_NAMES=
  13963. export COLLECT_NAMES
  13964. fi
  13965. _LT_EOF
  13966. ;;
  13967. esac
  13968. ltmain="$ac_aux_dir/ltmain.sh"
  13969. # We use sed instead of cat because bash on DJGPP gets confused if
  13970. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13971. # text mode, it properly converts lines to CR/LF. This bash problem
  13972. # is reportedly fixed, but why not run on old versions too?
  13973. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13974. || (rm -f "$cfgfile"; exit 1)
  13975. case $xsi_shell in
  13976. yes)
  13977. cat << \_LT_EOF >> "$cfgfile"
  13978. # func_dirname file append nondir_replacement
  13979. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13980. # otherwise set result to NONDIR_REPLACEMENT.
  13981. func_dirname ()
  13982. {
  13983. case ${1} in
  13984. */*) func_dirname_result="${1%/*}${2}" ;;
  13985. * ) func_dirname_result="${3}" ;;
  13986. esac
  13987. }
  13988. # func_basename file
  13989. func_basename ()
  13990. {
  13991. func_basename_result="${1##*/}"
  13992. }
  13993. # func_dirname_and_basename file append nondir_replacement
  13994. # perform func_basename and func_dirname in a single function
  13995. # call:
  13996. # dirname: Compute the dirname of FILE. If nonempty,
  13997. # add APPEND to the result, otherwise set result
  13998. # to NONDIR_REPLACEMENT.
  13999. # value returned in "$func_dirname_result"
  14000. # basename: Compute filename of FILE.
  14001. # value retuned in "$func_basename_result"
  14002. # Implementation must be kept synchronized with func_dirname
  14003. # and func_basename. For efficiency, we do not delegate to
  14004. # those functions but instead duplicate the functionality here.
  14005. func_dirname_and_basename ()
  14006. {
  14007. case ${1} in
  14008. */*) func_dirname_result="${1%/*}${2}" ;;
  14009. * ) func_dirname_result="${3}" ;;
  14010. esac
  14011. func_basename_result="${1##*/}"
  14012. }
  14013. # func_stripname prefix suffix name
  14014. # strip PREFIX and SUFFIX off of NAME.
  14015. # PREFIX and SUFFIX must not contain globbing or regex special
  14016. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14017. # dot (in which case that matches only a dot).
  14018. func_stripname ()
  14019. {
  14020. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14021. # positional parameters, so assign one to ordinary parameter first.
  14022. func_stripname_result=${3}
  14023. func_stripname_result=${func_stripname_result#"${1}"}
  14024. func_stripname_result=${func_stripname_result%"${2}"}
  14025. }
  14026. # func_opt_split
  14027. func_opt_split ()
  14028. {
  14029. func_opt_split_opt=${1%%=*}
  14030. func_opt_split_arg=${1#*=}
  14031. }
  14032. # func_lo2o object
  14033. func_lo2o ()
  14034. {
  14035. case ${1} in
  14036. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14037. *) func_lo2o_result=${1} ;;
  14038. esac
  14039. }
  14040. # func_xform libobj-or-source
  14041. func_xform ()
  14042. {
  14043. func_xform_result=${1%.*}.lo
  14044. }
  14045. # func_arith arithmetic-term...
  14046. func_arith ()
  14047. {
  14048. func_arith_result=$(( $* ))
  14049. }
  14050. # func_len string
  14051. # STRING may not start with a hyphen.
  14052. func_len ()
  14053. {
  14054. func_len_result=${#1}
  14055. }
  14056. _LT_EOF
  14057. ;;
  14058. *) # Bourne compatible functions.
  14059. cat << \_LT_EOF >> "$cfgfile"
  14060. # func_dirname file append nondir_replacement
  14061. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14062. # otherwise set result to NONDIR_REPLACEMENT.
  14063. func_dirname ()
  14064. {
  14065. # Extract subdirectory from the argument.
  14066. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14067. if test "X$func_dirname_result" = "X${1}"; then
  14068. func_dirname_result="${3}"
  14069. else
  14070. func_dirname_result="$func_dirname_result${2}"
  14071. fi
  14072. }
  14073. # func_basename file
  14074. func_basename ()
  14075. {
  14076. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14077. }
  14078. # func_stripname prefix suffix name
  14079. # strip PREFIX and SUFFIX off of NAME.
  14080. # PREFIX and SUFFIX must not contain globbing or regex special
  14081. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14082. # dot (in which case that matches only a dot).
  14083. # func_strip_suffix prefix name
  14084. func_stripname ()
  14085. {
  14086. case ${2} in
  14087. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14088. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14089. esac
  14090. }
  14091. # sed scripts:
  14092. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14093. my_sed_long_arg='1s/^-[^=]*=//'
  14094. # func_opt_split
  14095. func_opt_split ()
  14096. {
  14097. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14098. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14099. }
  14100. # func_lo2o object
  14101. func_lo2o ()
  14102. {
  14103. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14104. }
  14105. # func_xform libobj-or-source
  14106. func_xform ()
  14107. {
  14108. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14109. }
  14110. # func_arith arithmetic-term...
  14111. func_arith ()
  14112. {
  14113. func_arith_result=`expr "$@"`
  14114. }
  14115. # func_len string
  14116. # STRING may not start with a hyphen.
  14117. func_len ()
  14118. {
  14119. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14120. }
  14121. _LT_EOF
  14122. esac
  14123. case $lt_shell_append in
  14124. yes)
  14125. cat << \_LT_EOF >> "$cfgfile"
  14126. # func_append var value
  14127. # Append VALUE to the end of shell variable VAR.
  14128. func_append ()
  14129. {
  14130. eval "$1+=\$2"
  14131. }
  14132. _LT_EOF
  14133. ;;
  14134. *)
  14135. cat << \_LT_EOF >> "$cfgfile"
  14136. # func_append var value
  14137. # Append VALUE to the end of shell variable VAR.
  14138. func_append ()
  14139. {
  14140. eval "$1=\$$1\$2"
  14141. }
  14142. _LT_EOF
  14143. ;;
  14144. esac
  14145. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14146. || (rm -f "$cfgfile"; exit 1)
  14147. mv -f "$cfgfile" "$ofile" ||
  14148. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14149. chmod +x "$ofile"
  14150. cat <<_LT_EOF >> "$ofile"
  14151. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14152. # The linker used to build libraries.
  14153. LD=$lt_LD_CXX
  14154. # How to create reloadable object files.
  14155. reload_flag=$lt_reload_flag_CXX
  14156. reload_cmds=$lt_reload_cmds_CXX
  14157. # Commands used to build an old-style archive.
  14158. old_archive_cmds=$lt_old_archive_cmds_CXX
  14159. # A language specific compiler.
  14160. CC=$lt_compiler_CXX
  14161. # Is the compiler the GNU compiler?
  14162. with_gcc=$GCC_CXX
  14163. # Compiler flag to turn off builtin functions.
  14164. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14165. # How to pass a linker flag through the compiler.
  14166. wl=$lt_lt_prog_compiler_wl_CXX
  14167. # Additional compiler flags for building library objects.
  14168. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14169. # Compiler flag to prevent dynamic linking.
  14170. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14171. # Does compiler simultaneously support -c and -o options?
  14172. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14173. # Whether or not to add -lc for building shared libraries.
  14174. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14175. # Whether or not to disallow shared libs when runtime libs are static.
  14176. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14177. # Compiler flag to allow reflexive dlopens.
  14178. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14179. # Compiler flag to generate shared objects directly from archives.
  14180. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14181. # Whether the compiler copes with passing no objects directly.
  14182. compiler_needs_object=$lt_compiler_needs_object_CXX
  14183. # Create an old-style archive from a shared archive.
  14184. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14185. # Create a temporary old-style archive to link instead of a shared archive.
  14186. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14187. # Commands used to build a shared archive.
  14188. archive_cmds=$lt_archive_cmds_CXX
  14189. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14190. # Commands used to build a loadable module if different from building
  14191. # a shared archive.
  14192. module_cmds=$lt_module_cmds_CXX
  14193. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14194. # Whether we are building with GNU ld or not.
  14195. with_gnu_ld=$lt_with_gnu_ld_CXX
  14196. # Flag that allows shared libraries with undefined symbols to be built.
  14197. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14198. # Flag that enforces no undefined symbols.
  14199. no_undefined_flag=$lt_no_undefined_flag_CXX
  14200. # Flag to hardcode \$libdir into a binary during linking.
  14201. # This must work even if \$libdir does not exist
  14202. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14203. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14204. # during linking. This must work even if \$libdir does not exist.
  14205. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14206. # Whether we need a single "-rpath" flag with a separated argument.
  14207. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14208. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14209. # DIR into the resulting binary.
  14210. hardcode_direct=$hardcode_direct_CXX
  14211. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14212. # DIR into the resulting binary and the resulting library dependency is
  14213. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14214. # library is relocated.
  14215. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14216. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14217. # into the resulting binary.
  14218. hardcode_minus_L=$hardcode_minus_L_CXX
  14219. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14220. # into the resulting binary.
  14221. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14222. # Set to "yes" if building a shared library automatically hardcodes DIR
  14223. # into the library and all subsequent libraries and executables linked
  14224. # against it.
  14225. hardcode_automatic=$hardcode_automatic_CXX
  14226. # Set to yes if linker adds runtime paths of dependent libraries
  14227. # to runtime path list.
  14228. inherit_rpath=$inherit_rpath_CXX
  14229. # Whether libtool must link a program against all its dependency libraries.
  14230. link_all_deplibs=$link_all_deplibs_CXX
  14231. # Fix the shell variable \$srcfile for the compiler.
  14232. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14233. # Set to "yes" if exported symbols are required.
  14234. always_export_symbols=$always_export_symbols_CXX
  14235. # The commands to list exported symbols.
  14236. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14237. # Symbols that should not be listed in the preloaded symbols.
  14238. exclude_expsyms=$lt_exclude_expsyms_CXX
  14239. # Symbols that must always be exported.
  14240. include_expsyms=$lt_include_expsyms_CXX
  14241. # Commands necessary for linking programs (against libraries) with templates.
  14242. prelink_cmds=$lt_prelink_cmds_CXX
  14243. # Specify filename containing input files.
  14244. file_list_spec=$lt_file_list_spec_CXX
  14245. # How to hardcode a shared library path into an executable.
  14246. hardcode_action=$hardcode_action_CXX
  14247. # The directories searched by this compiler when creating a shared library.
  14248. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14249. # Dependencies to place before and after the objects being linked to
  14250. # create a shared library.
  14251. predep_objects=$lt_predep_objects_CXX
  14252. postdep_objects=$lt_postdep_objects_CXX
  14253. predeps=$lt_predeps_CXX
  14254. postdeps=$lt_postdeps_CXX
  14255. # The library search path used internally by the compiler when linking
  14256. # a shared library.
  14257. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14258. # ### END LIBTOOL TAG CONFIG: CXX
  14259. _LT_EOF
  14260. ;;
  14261. esac
  14262. done # for ac_tag
  14263. as_fn_exit 0
  14264. _ACEOF
  14265. ac_clean_files=$ac_clean_files_save
  14266. test $ac_write_fail = 0 ||
  14267. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14268. # configure is writing to config.log, and then calls config.status.
  14269. # config.status does its own redirection, appending to config.log.
  14270. # Unfortunately, on DOS this fails, as config.log is still kept open
  14271. # by configure, so config.status won't be able to write to it; its
  14272. # output is simply discarded. So we exec the FD to /dev/null,
  14273. # effectively closing config.log, so it can be properly (re)opened and
  14274. # appended to by config.status. When coming back to configure, we
  14275. # need to make the FD available again.
  14276. if test "$no_create" != yes; then
  14277. ac_cs_success=:
  14278. ac_config_status_args=
  14279. test "$silent" = yes &&
  14280. ac_config_status_args="$ac_config_status_args --quiet"
  14281. exec 5>/dev/null
  14282. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14283. exec 5>>config.log
  14284. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14285. # would make configure fail if this is the last instruction.
  14286. $ac_cs_success || as_fn_exit $?
  14287. fi
  14288. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14290. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14291. fi