configure 513 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for MIC Offload Runtime Library 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 \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='MIC Offload Runtime Library'
  509. PACKAGE_TARNAME='liboffloadmic'
  510. PACKAGE_VERSION='1.0'
  511. PACKAGE_STRING='MIC Offload Runtime Library 1.0'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. enable_option_checking=no
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. link_offloadmic_target
  555. link_offloadmic_host
  556. lt_cv_dlopen_libs
  557. toolexeclibdir
  558. toolexecdir
  559. CXXCPP
  560. OTOOL64
  561. OTOOL
  562. LIPO
  563. NMEDIT
  564. DSYMUTIL
  565. RANLIB
  566. AR
  567. OBJDUMP
  568. LN_S
  569. NM
  570. ac_ct_DUMPBIN
  571. DUMPBIN
  572. LD
  573. FGREP
  574. SED
  575. LIBTOOL
  576. LIBOFFLOADMIC_HOST_FALSE
  577. LIBOFFLOADMIC_HOST_TRUE
  578. EGREP
  579. GREP
  580. CPP
  581. ALLOCA
  582. subdirs
  583. multi_basedir
  584. am__fastdepCXX_FALSE
  585. am__fastdepCXX_TRUE
  586. CXXDEPMODE
  587. ac_ct_CXX
  588. CXXFLAGS
  589. CXX
  590. am__fastdepCC_FALSE
  591. am__fastdepCC_TRUE
  592. CCDEPMODE
  593. AMDEPBACKSLASH
  594. AMDEP_FALSE
  595. AMDEP_TRUE
  596. am__quote
  597. am__include
  598. DEPDIR
  599. OBJEXT
  600. EXEEXT
  601. ac_ct_CC
  602. CPPFLAGS
  603. LDFLAGS
  604. CFLAGS
  605. CC
  606. MAINT
  607. MAINTAINER_MODE_FALSE
  608. MAINTAINER_MODE_TRUE
  609. am__untar
  610. am__tar
  611. AMTAR
  612. am__leading_dot
  613. SET_MAKE
  614. AWK
  615. mkdir_p
  616. MKDIR_P
  617. INSTALL_STRIP_PROGRAM
  618. STRIP
  619. install_sh
  620. MAKEINFO
  621. AUTOHEADER
  622. AUTOMAKE
  623. AUTOCONF
  624. ACLOCAL
  625. VERSION
  626. PACKAGE
  627. CYGPATH_W
  628. am__isrc
  629. INSTALL_DATA
  630. INSTALL_SCRIPT
  631. INSTALL_PROGRAM
  632. target_os
  633. target_vendor
  634. target_cpu
  635. target
  636. host_os
  637. host_vendor
  638. host_cpu
  639. host
  640. build_os
  641. build_vendor
  642. build_cpu
  643. build
  644. target_alias
  645. host_alias
  646. build_alias
  647. LIBS
  648. ECHO_T
  649. ECHO_N
  650. ECHO_C
  651. DEFS
  652. mandir
  653. localedir
  654. libdir
  655. psdir
  656. pdfdir
  657. dvidir
  658. htmldir
  659. infodir
  660. docdir
  661. oldincludedir
  662. includedir
  663. localstatedir
  664. sharedstatedir
  665. sysconfdir
  666. datadir
  667. datarootdir
  668. libexecdir
  669. sbindir
  670. bindir
  671. program_transform_name
  672. prefix
  673. exec_prefix
  674. PACKAGE_URL
  675. PACKAGE_BUGREPORT
  676. PACKAGE_STRING
  677. PACKAGE_VERSION
  678. PACKAGE_TARNAME
  679. PACKAGE_NAME
  680. PATH_SEPARATOR
  681. SHELL'
  682. ac_subst_files=''
  683. ac_user_opts='
  684. enable_option_checking
  685. enable_maintainer_mode
  686. enable_dependency_tracking
  687. enable_multilib
  688. enable_version_specific_runtime_libs
  689. enable_shared
  690. enable_static
  691. with_pic
  692. enable_fast_install
  693. with_gnu_ld
  694. enable_libtool_lock
  695. '
  696. ac_precious_vars='build_alias
  697. host_alias
  698. target_alias
  699. CC
  700. CFLAGS
  701. LDFLAGS
  702. LIBS
  703. CPPFLAGS
  704. CXX
  705. CXXFLAGS
  706. CCC
  707. CPP
  708. CXXCPP'
  709. ac_subdirs_all='plugin'
  710. # Initialize some variables set by options.
  711. ac_init_help=
  712. ac_init_version=false
  713. ac_unrecognized_opts=
  714. ac_unrecognized_sep=
  715. # The variables have the same names as the options, with
  716. # dashes changed to underlines.
  717. cache_file=/dev/null
  718. exec_prefix=NONE
  719. no_create=
  720. no_recursion=
  721. prefix=NONE
  722. program_prefix=NONE
  723. program_suffix=NONE
  724. program_transform_name=s,x,x,
  725. silent=
  726. site=
  727. srcdir=
  728. verbose=
  729. x_includes=NONE
  730. x_libraries=NONE
  731. # Installation directory options.
  732. # These are left unexpanded so users can "make install exec_prefix=/foo"
  733. # and all the variables that are supposed to be based on exec_prefix
  734. # by default will actually change.
  735. # Use braces instead of parens because sh, perl, etc. also accept them.
  736. # (The list follows the same order as the GNU Coding Standards.)
  737. bindir='${exec_prefix}/bin'
  738. sbindir='${exec_prefix}/sbin'
  739. libexecdir='${exec_prefix}/libexec'
  740. datarootdir='${prefix}/share'
  741. datadir='${datarootdir}'
  742. sysconfdir='${prefix}/etc'
  743. sharedstatedir='${prefix}/com'
  744. localstatedir='${prefix}/var'
  745. includedir='${prefix}/include'
  746. oldincludedir='/usr/include'
  747. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  748. infodir='${datarootdir}/info'
  749. htmldir='${docdir}'
  750. dvidir='${docdir}'
  751. pdfdir='${docdir}'
  752. psdir='${docdir}'
  753. libdir='${exec_prefix}/lib'
  754. localedir='${datarootdir}/locale'
  755. mandir='${datarootdir}/man'
  756. ac_prev=
  757. ac_dashdash=
  758. for ac_option
  759. do
  760. # If the previous option needs an argument, assign it.
  761. if test -n "$ac_prev"; then
  762. eval $ac_prev=\$ac_option
  763. ac_prev=
  764. continue
  765. fi
  766. case $ac_option in
  767. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  768. *) ac_optarg=yes ;;
  769. esac
  770. # Accept the important Cygnus configure options, so we can diagnose typos.
  771. case $ac_dashdash$ac_option in
  772. --)
  773. ac_dashdash=yes ;;
  774. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  775. ac_prev=bindir ;;
  776. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  777. bindir=$ac_optarg ;;
  778. -build | --build | --buil | --bui | --bu)
  779. ac_prev=build_alias ;;
  780. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  781. build_alias=$ac_optarg ;;
  782. -cache-file | --cache-file | --cache-fil | --cache-fi \
  783. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  784. ac_prev=cache_file ;;
  785. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  786. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  787. cache_file=$ac_optarg ;;
  788. --config-cache | -C)
  789. cache_file=config.cache ;;
  790. -datadir | --datadir | --datadi | --datad)
  791. ac_prev=datadir ;;
  792. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  793. datadir=$ac_optarg ;;
  794. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  795. | --dataroo | --dataro | --datar)
  796. ac_prev=datarootdir ;;
  797. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  798. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  799. datarootdir=$ac_optarg ;;
  800. -disable-* | --disable-*)
  801. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  802. # Reject names that are not valid shell variable names.
  803. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  804. as_fn_error "invalid feature name: $ac_useropt"
  805. ac_useropt_orig=$ac_useropt
  806. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  807. case $ac_user_opts in
  808. *"
  809. "enable_$ac_useropt"
  810. "*) ;;
  811. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  812. ac_unrecognized_sep=', ';;
  813. esac
  814. eval enable_$ac_useropt=no ;;
  815. -docdir | --docdir | --docdi | --doc | --do)
  816. ac_prev=docdir ;;
  817. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  818. docdir=$ac_optarg ;;
  819. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  820. ac_prev=dvidir ;;
  821. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  822. dvidir=$ac_optarg ;;
  823. -enable-* | --enable-*)
  824. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  825. # Reject names that are not valid shell variable names.
  826. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  827. as_fn_error "invalid feature name: $ac_useropt"
  828. ac_useropt_orig=$ac_useropt
  829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  830. case $ac_user_opts in
  831. *"
  832. "enable_$ac_useropt"
  833. "*) ;;
  834. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  835. ac_unrecognized_sep=', ';;
  836. esac
  837. eval enable_$ac_useropt=\$ac_optarg ;;
  838. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  839. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  840. | --exec | --exe | --ex)
  841. ac_prev=exec_prefix ;;
  842. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  843. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  844. | --exec=* | --exe=* | --ex=*)
  845. exec_prefix=$ac_optarg ;;
  846. -gas | --gas | --ga | --g)
  847. # Obsolete; use --with-gas.
  848. with_gas=yes ;;
  849. -help | --help | --hel | --he | -h)
  850. ac_init_help=long ;;
  851. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  852. ac_init_help=recursive ;;
  853. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  854. ac_init_help=short ;;
  855. -host | --host | --hos | --ho)
  856. ac_prev=host_alias ;;
  857. -host=* | --host=* | --hos=* | --ho=*)
  858. host_alias=$ac_optarg ;;
  859. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  860. ac_prev=htmldir ;;
  861. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  862. | --ht=*)
  863. htmldir=$ac_optarg ;;
  864. -includedir | --includedir | --includedi | --included | --include \
  865. | --includ | --inclu | --incl | --inc)
  866. ac_prev=includedir ;;
  867. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  868. | --includ=* | --inclu=* | --incl=* | --inc=*)
  869. includedir=$ac_optarg ;;
  870. -infodir | --infodir | --infodi | --infod | --info | --inf)
  871. ac_prev=infodir ;;
  872. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  873. infodir=$ac_optarg ;;
  874. -libdir | --libdir | --libdi | --libd)
  875. ac_prev=libdir ;;
  876. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  877. libdir=$ac_optarg ;;
  878. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  879. | --libexe | --libex | --libe)
  880. ac_prev=libexecdir ;;
  881. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  882. | --libexe=* | --libex=* | --libe=*)
  883. libexecdir=$ac_optarg ;;
  884. -localedir | --localedir | --localedi | --localed | --locale)
  885. ac_prev=localedir ;;
  886. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  887. localedir=$ac_optarg ;;
  888. -localstatedir | --localstatedir | --localstatedi | --localstated \
  889. | --localstate | --localstat | --localsta | --localst | --locals)
  890. ac_prev=localstatedir ;;
  891. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  892. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  893. localstatedir=$ac_optarg ;;
  894. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  895. ac_prev=mandir ;;
  896. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  897. mandir=$ac_optarg ;;
  898. -nfp | --nfp | --nf)
  899. # Obsolete; use --without-fp.
  900. with_fp=no ;;
  901. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  902. | --no-cr | --no-c | -n)
  903. no_create=yes ;;
  904. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  905. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  906. no_recursion=yes ;;
  907. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  908. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  909. | --oldin | --oldi | --old | --ol | --o)
  910. ac_prev=oldincludedir ;;
  911. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  912. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  913. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  914. oldincludedir=$ac_optarg ;;
  915. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  916. ac_prev=prefix ;;
  917. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  918. prefix=$ac_optarg ;;
  919. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  920. | --program-pre | --program-pr | --program-p)
  921. ac_prev=program_prefix ;;
  922. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  923. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  924. program_prefix=$ac_optarg ;;
  925. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  926. | --program-suf | --program-su | --program-s)
  927. ac_prev=program_suffix ;;
  928. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  929. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  930. program_suffix=$ac_optarg ;;
  931. -program-transform-name | --program-transform-name \
  932. | --program-transform-nam | --program-transform-na \
  933. | --program-transform-n | --program-transform- \
  934. | --program-transform | --program-transfor \
  935. | --program-transfo | --program-transf \
  936. | --program-trans | --program-tran \
  937. | --progr-tra | --program-tr | --program-t)
  938. ac_prev=program_transform_name ;;
  939. -program-transform-name=* | --program-transform-name=* \
  940. | --program-transform-nam=* | --program-transform-na=* \
  941. | --program-transform-n=* | --program-transform-=* \
  942. | --program-transform=* | --program-transfor=* \
  943. | --program-transfo=* | --program-transf=* \
  944. | --program-trans=* | --program-tran=* \
  945. | --progr-tra=* | --program-tr=* | --program-t=*)
  946. program_transform_name=$ac_optarg ;;
  947. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  948. ac_prev=pdfdir ;;
  949. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  950. pdfdir=$ac_optarg ;;
  951. -psdir | --psdir | --psdi | --psd | --ps)
  952. ac_prev=psdir ;;
  953. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  954. psdir=$ac_optarg ;;
  955. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  956. | -silent | --silent | --silen | --sile | --sil)
  957. silent=yes ;;
  958. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  959. ac_prev=sbindir ;;
  960. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  961. | --sbi=* | --sb=*)
  962. sbindir=$ac_optarg ;;
  963. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  964. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  965. | --sharedst | --shareds | --shared | --share | --shar \
  966. | --sha | --sh)
  967. ac_prev=sharedstatedir ;;
  968. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  969. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  970. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  971. | --sha=* | --sh=*)
  972. sharedstatedir=$ac_optarg ;;
  973. -site | --site | --sit)
  974. ac_prev=site ;;
  975. -site=* | --site=* | --sit=*)
  976. site=$ac_optarg ;;
  977. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  978. ac_prev=srcdir ;;
  979. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  980. srcdir=$ac_optarg ;;
  981. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  982. | --syscon | --sysco | --sysc | --sys | --sy)
  983. ac_prev=sysconfdir ;;
  984. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  985. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  986. sysconfdir=$ac_optarg ;;
  987. -target | --target | --targe | --targ | --tar | --ta | --t)
  988. ac_prev=target_alias ;;
  989. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  990. target_alias=$ac_optarg ;;
  991. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  992. verbose=yes ;;
  993. -version | --version | --versio | --versi | --vers | -V)
  994. ac_init_version=: ;;
  995. -with-* | --with-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. as_fn_error "invalid package name: $ac_useropt"
  1000. ac_useropt_orig=$ac_useropt
  1001. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1002. case $ac_user_opts in
  1003. *"
  1004. "with_$ac_useropt"
  1005. "*) ;;
  1006. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1007. ac_unrecognized_sep=', ';;
  1008. esac
  1009. eval with_$ac_useropt=\$ac_optarg ;;
  1010. -without-* | --without-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=no ;;
  1025. --x)
  1026. # Obsolete; use --with-x.
  1027. with_x=yes ;;
  1028. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1029. | --x-incl | --x-inc | --x-in | --x-i)
  1030. ac_prev=x_includes ;;
  1031. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1032. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1033. x_includes=$ac_optarg ;;
  1034. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1035. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1036. ac_prev=x_libraries ;;
  1037. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1038. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1039. x_libraries=$ac_optarg ;;
  1040. -*) as_fn_error "unrecognized option: \`$ac_option'
  1041. Try \`$0 --help' for more information."
  1042. ;;
  1043. *=*)
  1044. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1045. # Reject names that are not valid shell variable names.
  1046. case $ac_envvar in #(
  1047. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1048. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1049. esac
  1050. eval $ac_envvar=\$ac_optarg
  1051. export $ac_envvar ;;
  1052. *)
  1053. # FIXME: should be removed in autoconf 3.0.
  1054. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1055. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1056. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1057. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1058. ;;
  1059. esac
  1060. done
  1061. if test -n "$ac_prev"; then
  1062. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1063. as_fn_error "missing argument to $ac_option"
  1064. fi
  1065. if test -n "$ac_unrecognized_opts"; then
  1066. case $enable_option_checking in
  1067. no) ;;
  1068. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1069. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1070. esac
  1071. fi
  1072. # Check all directory arguments for consistency.
  1073. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1074. datadir sysconfdir sharedstatedir localstatedir includedir \
  1075. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1076. libdir localedir mandir
  1077. do
  1078. eval ac_val=\$$ac_var
  1079. # Remove trailing slashes.
  1080. case $ac_val in
  1081. */ )
  1082. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1083. eval $ac_var=\$ac_val;;
  1084. esac
  1085. # Be sure to have absolute directory names.
  1086. case $ac_val in
  1087. [\\/$]* | ?:[\\/]* ) continue;;
  1088. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1089. esac
  1090. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1091. done
  1092. # There might be people who depend on the old broken behavior: `$host'
  1093. # used to hold the argument of --host etc.
  1094. # FIXME: To remove some day.
  1095. build=$build_alias
  1096. host=$host_alias
  1097. target=$target_alias
  1098. # FIXME: To remove some day.
  1099. if test "x$host_alias" != x; then
  1100. if test "x$build_alias" = x; then
  1101. cross_compiling=maybe
  1102. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1103. If a cross compiler is detected then cross compile mode will be used." >&2
  1104. elif test "x$build_alias" != "x$host_alias"; then
  1105. cross_compiling=yes
  1106. fi
  1107. fi
  1108. ac_tool_prefix=
  1109. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1110. test "$silent" = yes && exec 6>/dev/null
  1111. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1112. ac_ls_di=`ls -di .` &&
  1113. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1114. as_fn_error "working directory cannot be determined"
  1115. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1116. as_fn_error "pwd does not report name of working directory"
  1117. # Find the source files, if location was not specified.
  1118. if test -z "$srcdir"; then
  1119. ac_srcdir_defaulted=yes
  1120. # Try the directory containing this script, then the parent directory.
  1121. ac_confdir=`$as_dirname -- "$as_myself" ||
  1122. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1123. X"$as_myself" : 'X\(//\)[^/]' \| \
  1124. X"$as_myself" : 'X\(//\)$' \| \
  1125. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1126. $as_echo X"$as_myself" |
  1127. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1128. s//\1/
  1129. q
  1130. }
  1131. /^X\(\/\/\)[^/].*/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)$/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\).*/{
  1140. s//\1/
  1141. q
  1142. }
  1143. s/.*/./; q'`
  1144. srcdir=$ac_confdir
  1145. if test ! -r "$srcdir/$ac_unique_file"; then
  1146. srcdir=..
  1147. fi
  1148. else
  1149. ac_srcdir_defaulted=no
  1150. fi
  1151. if test ! -r "$srcdir/$ac_unique_file"; then
  1152. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1153. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1154. fi
  1155. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1156. ac_abs_confdir=`(
  1157. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1158. pwd)`
  1159. # When building in place, set srcdir=.
  1160. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1161. srcdir=.
  1162. fi
  1163. # Remove unnecessary trailing slashes from srcdir.
  1164. # Double slashes in file names in object file debugging info
  1165. # mess up M-x gdb in Emacs.
  1166. case $srcdir in
  1167. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1168. esac
  1169. for ac_var in $ac_precious_vars; do
  1170. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_env_${ac_var}_value=\$${ac_var}
  1172. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1173. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1174. done
  1175. #
  1176. # Report the --help message.
  1177. #
  1178. if test "$ac_init_help" = "long"; then
  1179. # Omit some internal or obsolete options to make the list less imposing.
  1180. # This message is too long to be a string in the A/UX 3.1 sh.
  1181. cat <<_ACEOF
  1182. \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
  1183. Usage: $0 [OPTION]... [VAR=VALUE]...
  1184. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1185. VAR=VALUE. See below for descriptions of some of the useful variables.
  1186. Defaults for the options are specified in brackets.
  1187. Configuration:
  1188. -h, --help display this help and exit
  1189. --help=short display options specific to this package
  1190. --help=recursive display the short help of all the included packages
  1191. -V, --version display version information and exit
  1192. -q, --quiet, --silent do not print \`checking...' messages
  1193. --cache-file=FILE cache test results in FILE [disabled]
  1194. -C, --config-cache alias for \`--cache-file=config.cache'
  1195. -n, --no-create do not create output files
  1196. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1197. Installation directories:
  1198. --prefix=PREFIX install architecture-independent files in PREFIX
  1199. [$ac_default_prefix]
  1200. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1201. [PREFIX]
  1202. By default, \`make install' will install all the files in
  1203. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1204. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1205. for instance \`--prefix=\$HOME'.
  1206. For better control, use the options below.
  1207. Fine tuning of the installation directories:
  1208. --bindir=DIR user executables [EPREFIX/bin]
  1209. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1210. --libexecdir=DIR program executables [EPREFIX/libexec]
  1211. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1212. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1213. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1214. --libdir=DIR object code libraries [EPREFIX/lib]
  1215. --includedir=DIR C header files [PREFIX/include]
  1216. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1217. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1218. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1219. --infodir=DIR info documentation [DATAROOTDIR/info]
  1220. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1221. --mandir=DIR man documentation [DATAROOTDIR/man]
  1222. --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
  1223. --htmldir=DIR html documentation [DOCDIR]
  1224. --dvidir=DIR dvi documentation [DOCDIR]
  1225. --pdfdir=DIR pdf documentation [DOCDIR]
  1226. --psdir=DIR ps documentation [DOCDIR]
  1227. _ACEOF
  1228. cat <<\_ACEOF
  1229. Program names:
  1230. --program-prefix=PREFIX prepend PREFIX to installed program names
  1231. --program-suffix=SUFFIX append SUFFIX to installed program names
  1232. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1233. System types:
  1234. --build=BUILD configure for building on BUILD [guessed]
  1235. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1236. --target=TARGET configure for building compilers for TARGET [HOST]
  1237. _ACEOF
  1238. fi
  1239. if test -n "$ac_init_help"; then
  1240. case $ac_init_help in
  1241. short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
  1242. esac
  1243. cat <<\_ACEOF
  1244. Optional Features:
  1245. --disable-option-checking ignore unrecognized --enable/--with options
  1246. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1247. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1248. --enable-maintainer-mode enable make rules and dependencies not useful
  1249. (and sometimes confusing) to the casual installer
  1250. --disable-dependency-tracking speeds up one-time build
  1251. --enable-dependency-tracking do not reject slow dependency extractors
  1252. --enable-multilib build many library versions (default)
  1253. --enable-version-specific-runtime-libs
  1254. Specify that runtime libraries should be installed
  1255. in a compiler-specific directory
  1256. --enable-shared[=PKGS] build shared libraries [default=yes]
  1257. --enable-static[=PKGS] build static libraries [default=yes]
  1258. --enable-fast-install[=PKGS]
  1259. optimize for fast installation [default=yes]
  1260. --disable-libtool-lock avoid locking (might break parallel builds)
  1261. Optional Packages:
  1262. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1263. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1264. --with-pic try to use only PIC/non-PIC objects [default=use
  1265. both]
  1266. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1267. Some influential environment variables:
  1268. CC C compiler command
  1269. CFLAGS C compiler flags
  1270. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1271. nonstandard directory <lib dir>
  1272. LIBS libraries to pass to the linker, e.g. -l<library>
  1273. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1274. you have headers in a nonstandard directory <include dir>
  1275. CXX C++ compiler command
  1276. CXXFLAGS C++ compiler flags
  1277. CPP C preprocessor
  1278. CXXCPP C++ preprocessor
  1279. Use these variables to override the choices made by `configure' or to help
  1280. it to find libraries and programs with nonstandard names/locations.
  1281. Report bugs to the package provider.
  1282. _ACEOF
  1283. ac_status=$?
  1284. fi
  1285. if test "$ac_init_help" = "recursive"; then
  1286. # If there are subdirs, report their specific --help.
  1287. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1288. test -d "$ac_dir" ||
  1289. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1290. continue
  1291. ac_builddir=.
  1292. case "$ac_dir" in
  1293. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1294. *)
  1295. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1296. # A ".." for each directory in $ac_dir_suffix.
  1297. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1298. case $ac_top_builddir_sub in
  1299. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1300. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1301. esac ;;
  1302. esac
  1303. ac_abs_top_builddir=$ac_pwd
  1304. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1305. # for backward compatibility:
  1306. ac_top_builddir=$ac_top_build_prefix
  1307. case $srcdir in
  1308. .) # We are building in place.
  1309. ac_srcdir=.
  1310. ac_top_srcdir=$ac_top_builddir_sub
  1311. ac_abs_top_srcdir=$ac_pwd ;;
  1312. [\\/]* | ?:[\\/]* ) # Absolute name.
  1313. ac_srcdir=$srcdir$ac_dir_suffix;
  1314. ac_top_srcdir=$srcdir
  1315. ac_abs_top_srcdir=$srcdir ;;
  1316. *) # Relative name.
  1317. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1318. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1319. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1320. esac
  1321. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1322. cd "$ac_dir" || { ac_status=$?; continue; }
  1323. # Check for guested configure.
  1324. if test -f "$ac_srcdir/configure.gnu"; then
  1325. echo &&
  1326. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1327. elif test -f "$ac_srcdir/configure"; then
  1328. echo &&
  1329. $SHELL "$ac_srcdir/configure" --help=recursive
  1330. else
  1331. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1332. fi || ac_status=$?
  1333. cd "$ac_pwd" || { ac_status=$?; break; }
  1334. done
  1335. fi
  1336. test -n "$ac_init_help" && exit $ac_status
  1337. if $ac_init_version; then
  1338. cat <<\_ACEOF
  1339. MIC Offload Runtime Library configure 1.0
  1340. generated by GNU Autoconf 2.64
  1341. Copyright (C) 2009 Free Software Foundation, Inc.
  1342. This configure script is free software; the Free Software Foundation
  1343. gives unlimited permission to copy, distribute and modify it.
  1344. _ACEOF
  1345. exit
  1346. fi
  1347. ## ------------------------ ##
  1348. ## Autoconf initialization. ##
  1349. ## ------------------------ ##
  1350. # ac_fn_c_try_compile LINENO
  1351. # --------------------------
  1352. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1353. ac_fn_c_try_compile ()
  1354. {
  1355. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1356. rm -f conftest.$ac_objext
  1357. if { { ac_try="$ac_compile"
  1358. case "(($ac_try" in
  1359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1360. *) ac_try_echo=$ac_try;;
  1361. esac
  1362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1363. $as_echo "$ac_try_echo"; } >&5
  1364. (eval "$ac_compile") 2>conftest.err
  1365. ac_status=$?
  1366. if test -s conftest.err; then
  1367. grep -v '^ *+' conftest.err >conftest.er1
  1368. cat conftest.er1 >&5
  1369. mv -f conftest.er1 conftest.err
  1370. fi
  1371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1372. test $ac_status = 0; } && {
  1373. test -z "$ac_c_werror_flag" ||
  1374. test ! -s conftest.err
  1375. } && test -s conftest.$ac_objext; then :
  1376. ac_retval=0
  1377. else
  1378. $as_echo "$as_me: failed program was:" >&5
  1379. sed 's/^/| /' conftest.$ac_ext >&5
  1380. ac_retval=1
  1381. fi
  1382. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1383. return $ac_retval
  1384. } # ac_fn_c_try_compile
  1385. # ac_fn_cxx_try_compile LINENO
  1386. # ----------------------------
  1387. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1388. ac_fn_cxx_try_compile ()
  1389. {
  1390. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1391. rm -f conftest.$ac_objext
  1392. if { { ac_try="$ac_compile"
  1393. case "(($ac_try" in
  1394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1395. *) ac_try_echo=$ac_try;;
  1396. esac
  1397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1398. $as_echo "$ac_try_echo"; } >&5
  1399. (eval "$ac_compile") 2>conftest.err
  1400. ac_status=$?
  1401. if test -s conftest.err; then
  1402. grep -v '^ *+' conftest.err >conftest.er1
  1403. cat conftest.er1 >&5
  1404. mv -f conftest.er1 conftest.err
  1405. fi
  1406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1407. test $ac_status = 0; } && {
  1408. test -z "$ac_cxx_werror_flag" ||
  1409. test ! -s conftest.err
  1410. } && test -s conftest.$ac_objext; then :
  1411. ac_retval=0
  1412. else
  1413. $as_echo "$as_me: failed program was:" >&5
  1414. sed 's/^/| /' conftest.$ac_ext >&5
  1415. ac_retval=1
  1416. fi
  1417. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1418. return $ac_retval
  1419. } # ac_fn_cxx_try_compile
  1420. # ac_fn_c_try_link LINENO
  1421. # -----------------------
  1422. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1423. ac_fn_c_try_link ()
  1424. {
  1425. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1426. rm -f conftest.$ac_objext conftest$ac_exeext
  1427. if { { ac_try="$ac_link"
  1428. case "(($ac_try" in
  1429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1430. *) ac_try_echo=$ac_try;;
  1431. esac
  1432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1433. $as_echo "$ac_try_echo"; } >&5
  1434. (eval "$ac_link") 2>conftest.err
  1435. ac_status=$?
  1436. if test -s conftest.err; then
  1437. grep -v '^ *+' conftest.err >conftest.er1
  1438. cat conftest.er1 >&5
  1439. mv -f conftest.er1 conftest.err
  1440. fi
  1441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1442. test $ac_status = 0; } && {
  1443. test -z "$ac_c_werror_flag" ||
  1444. test ! -s conftest.err
  1445. } && test -s conftest$ac_exeext && {
  1446. test "$cross_compiling" = yes ||
  1447. $as_test_x conftest$ac_exeext
  1448. }; then :
  1449. ac_retval=0
  1450. else
  1451. $as_echo "$as_me: failed program was:" >&5
  1452. sed 's/^/| /' conftest.$ac_ext >&5
  1453. ac_retval=1
  1454. fi
  1455. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1456. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1457. # interfere with the next link command; also delete a directory that is
  1458. # left behind by Apple's compiler. We do this before executing the actions.
  1459. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1460. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1461. return $ac_retval
  1462. } # ac_fn_c_try_link
  1463. # ac_fn_c_try_cpp LINENO
  1464. # ----------------------
  1465. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1466. ac_fn_c_try_cpp ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1470. case "(($ac_try" in
  1471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1472. *) ac_try_echo=$ac_try;;
  1473. esac
  1474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1475. $as_echo "$ac_try_echo"; } >&5
  1476. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1477. ac_status=$?
  1478. if test -s conftest.err; then
  1479. grep -v '^ *+' conftest.err >conftest.er1
  1480. cat conftest.er1 >&5
  1481. mv -f conftest.er1 conftest.err
  1482. fi
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } >/dev/null && {
  1485. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1486. test ! -s conftest.err
  1487. }; then :
  1488. ac_retval=0
  1489. else
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=1
  1493. fi
  1494. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1495. return $ac_retval
  1496. } # ac_fn_c_try_cpp
  1497. # ac_fn_c_check_func LINENO FUNC VAR
  1498. # ----------------------------------
  1499. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1500. ac_fn_c_check_func ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1504. $as_echo_n "checking for $2... " >&6; }
  1505. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1506. $as_echo_n "(cached) " >&6
  1507. else
  1508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1509. /* end confdefs.h. */
  1510. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1511. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1512. #define $2 innocuous_$2
  1513. /* System header to define __stub macros and hopefully few prototypes,
  1514. which can conflict with char $2 (); below.
  1515. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1516. <limits.h> exists even on freestanding compilers. */
  1517. #ifdef __STDC__
  1518. # include <limits.h>
  1519. #else
  1520. # include <assert.h>
  1521. #endif
  1522. #undef $2
  1523. /* Override any GCC internal prototype to avoid an error.
  1524. Use char because int might match the return type of a GCC
  1525. builtin and then its argument prototype would still apply. */
  1526. #ifdef __cplusplus
  1527. extern "C"
  1528. #endif
  1529. char $2 ();
  1530. /* The GNU C library defines this for functions which it implements
  1531. to always fail with ENOSYS. Some functions are actually named
  1532. something starting with __ and the normal name is an alias. */
  1533. #if defined __stub_$2 || defined __stub___$2
  1534. choke me
  1535. #endif
  1536. int
  1537. main ()
  1538. {
  1539. return $2 ();
  1540. ;
  1541. return 0;
  1542. }
  1543. _ACEOF
  1544. if ac_fn_c_try_link "$LINENO"; then :
  1545. eval "$3=yes"
  1546. else
  1547. eval "$3=no"
  1548. fi
  1549. rm -f core conftest.err conftest.$ac_objext \
  1550. conftest$ac_exeext conftest.$ac_ext
  1551. fi
  1552. eval ac_res=\$$3
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1554. $as_echo "$ac_res" >&6; }
  1555. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1556. } # ac_fn_c_check_func
  1557. # ac_fn_c_try_run LINENO
  1558. # ----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1560. # that executables *can* be run.
  1561. ac_fn_c_try_run ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>&5
  1572. ac_status=$?
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1575. { { case "(($ac_try" in
  1576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1577. *) ac_try_echo=$ac_try;;
  1578. esac
  1579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1580. $as_echo "$ac_try_echo"; } >&5
  1581. (eval "$ac_try") 2>&5
  1582. ac_status=$?
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; }; }; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: program exited with status $ac_status" >&5
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=$ac_status
  1591. fi
  1592. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1593. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1594. return $ac_retval
  1595. } # ac_fn_c_try_run
  1596. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1597. # -------------------------------------------------------
  1598. # Tests whether HEADER exists and can be compiled using the include files in
  1599. # INCLUDES, setting the cache variable VAR accordingly.
  1600. ac_fn_c_check_header_compile ()
  1601. {
  1602. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1604. $as_echo_n "checking for $2... " >&6; }
  1605. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1606. $as_echo_n "(cached) " >&6
  1607. else
  1608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1609. /* end confdefs.h. */
  1610. $4
  1611. #include <$2>
  1612. _ACEOF
  1613. if ac_fn_c_try_compile "$LINENO"; then :
  1614. eval "$3=yes"
  1615. else
  1616. eval "$3=no"
  1617. fi
  1618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1619. fi
  1620. eval ac_res=\$$3
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1622. $as_echo "$ac_res" >&6; }
  1623. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1624. } # ac_fn_c_check_header_compile
  1625. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1626. # -------------------------------------------------------
  1627. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1628. # the include files in INCLUDES and setting the cache variable VAR
  1629. # accordingly.
  1630. ac_fn_c_check_header_mongrel ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1637. $as_echo_n "(cached) " >&6
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. else
  1643. # Is the header compilable?
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1645. $as_echo_n "checking $2 usability... " >&6; }
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. #include <$2>
  1650. _ACEOF
  1651. if ac_fn_c_try_compile "$LINENO"; then :
  1652. ac_header_compiler=yes
  1653. else
  1654. ac_header_compiler=no
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1658. $as_echo "$ac_header_compiler" >&6; }
  1659. # Is the header present?
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1661. $as_echo_n "checking $2 presence... " >&6; }
  1662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1663. /* end confdefs.h. */
  1664. #include <$2>
  1665. _ACEOF
  1666. if ac_fn_c_try_cpp "$LINENO"; then :
  1667. ac_header_preproc=yes
  1668. else
  1669. ac_header_preproc=no
  1670. fi
  1671. rm -f conftest.err conftest.$ac_ext
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1673. $as_echo "$ac_header_preproc" >&6; }
  1674. # So? What about this header?
  1675. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1676. yes:no: )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1678. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1680. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1681. ;;
  1682. no:yes:* )
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1684. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1686. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1688. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1690. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1692. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1693. ;;
  1694. esac
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. eval "$3=\$ac_header_compiler"
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. fi
  1706. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1707. } # ac_fn_c_check_header_mongrel
  1708. # ac_fn_cxx_try_cpp LINENO
  1709. # ------------------------
  1710. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1711. ac_fn_cxx_try_cpp ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1715. case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1722. ac_status=$?
  1723. if test -s conftest.err; then
  1724. grep -v '^ *+' conftest.err >conftest.er1
  1725. cat conftest.er1 >&5
  1726. mv -f conftest.er1 conftest.err
  1727. fi
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; } >/dev/null && {
  1730. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1731. test ! -s conftest.err
  1732. }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. ac_retval=1
  1738. fi
  1739. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1740. return $ac_retval
  1741. } # ac_fn_cxx_try_cpp
  1742. # ac_fn_cxx_try_link LINENO
  1743. # -------------------------
  1744. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1745. ac_fn_cxx_try_link ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. rm -f conftest.$ac_objext conftest$ac_exeext
  1749. if { { ac_try="$ac_link"
  1750. case "(($ac_try" in
  1751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752. *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756. (eval "$ac_link") 2>conftest.err
  1757. ac_status=$?
  1758. if test -s conftest.err; then
  1759. grep -v '^ *+' conftest.err >conftest.er1
  1760. cat conftest.er1 >&5
  1761. mv -f conftest.er1 conftest.err
  1762. fi
  1763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1764. test $ac_status = 0; } && {
  1765. test -z "$ac_cxx_werror_flag" ||
  1766. test ! -s conftest.err
  1767. } && test -s conftest$ac_exeext && {
  1768. test "$cross_compiling" = yes ||
  1769. $as_test_x conftest$ac_exeext
  1770. }; then :
  1771. ac_retval=0
  1772. else
  1773. $as_echo "$as_me: failed program was:" >&5
  1774. sed 's/^/| /' conftest.$ac_ext >&5
  1775. ac_retval=1
  1776. fi
  1777. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1778. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1779. # interfere with the next link command; also delete a directory that is
  1780. # left behind by Apple's compiler. We do this before executing the actions.
  1781. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1782. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1783. return $ac_retval
  1784. } # ac_fn_cxx_try_link
  1785. cat >config.log <<_ACEOF
  1786. This file contains any messages produced by compilers while
  1787. running configure, to aid debugging if configure makes a mistake.
  1788. It was created by MIC Offload Runtime Library $as_me 1.0, which was
  1789. generated by GNU Autoconf 2.64. Invocation command line was
  1790. $ $0 $@
  1791. _ACEOF
  1792. exec 5>>config.log
  1793. {
  1794. cat <<_ASUNAME
  1795. ## --------- ##
  1796. ## Platform. ##
  1797. ## --------- ##
  1798. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1799. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1800. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1801. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1802. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1803. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1804. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1805. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1806. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1807. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1808. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1809. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1810. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1811. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1812. _ASUNAME
  1813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1814. for as_dir in $PATH
  1815. do
  1816. IFS=$as_save_IFS
  1817. test -z "$as_dir" && as_dir=.
  1818. $as_echo "PATH: $as_dir"
  1819. done
  1820. IFS=$as_save_IFS
  1821. } >&5
  1822. cat >&5 <<_ACEOF
  1823. ## ----------- ##
  1824. ## Core tests. ##
  1825. ## ----------- ##
  1826. _ACEOF
  1827. # Keep a trace of the command line.
  1828. # Strip out --no-create and --no-recursion so they do not pile up.
  1829. # Strip out --silent because we don't want to record it for future runs.
  1830. # Also quote any args containing shell meta-characters.
  1831. # Make two passes to allow for proper duplicate-argument suppression.
  1832. ac_configure_args=
  1833. ac_configure_args0=
  1834. ac_configure_args1=
  1835. ac_must_keep_next=false
  1836. for ac_pass in 1 2
  1837. do
  1838. for ac_arg
  1839. do
  1840. case $ac_arg in
  1841. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1842. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1843. | -silent | --silent | --silen | --sile | --sil)
  1844. continue ;;
  1845. *\'*)
  1846. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1847. esac
  1848. case $ac_pass in
  1849. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1850. 2)
  1851. as_fn_append ac_configure_args1 " '$ac_arg'"
  1852. if test $ac_must_keep_next = true; then
  1853. ac_must_keep_next=false # Got value, back to normal.
  1854. else
  1855. case $ac_arg in
  1856. *=* | --config-cache | -C | -disable-* | --disable-* \
  1857. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1858. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1859. | -with-* | --with-* | -without-* | --without-* | --x)
  1860. case "$ac_configure_args0 " in
  1861. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1862. esac
  1863. ;;
  1864. -* ) ac_must_keep_next=true ;;
  1865. esac
  1866. fi
  1867. as_fn_append ac_configure_args " '$ac_arg'"
  1868. ;;
  1869. esac
  1870. done
  1871. done
  1872. { ac_configure_args0=; unset ac_configure_args0;}
  1873. { ac_configure_args1=; unset ac_configure_args1;}
  1874. # When interrupted or exit'd, cleanup temporary files, and complete
  1875. # config.log. We remove comments because anyway the quotes in there
  1876. # would cause problems or look ugly.
  1877. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1878. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1879. trap 'exit_status=$?
  1880. # Save into config.log some information that might help in debugging.
  1881. {
  1882. echo
  1883. cat <<\_ASBOX
  1884. ## ---------------- ##
  1885. ## Cache variables. ##
  1886. ## ---------------- ##
  1887. _ASBOX
  1888. echo
  1889. # The following way of writing the cache mishandles newlines in values,
  1890. (
  1891. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1892. eval ac_val=\$$ac_var
  1893. case $ac_val in #(
  1894. *${as_nl}*)
  1895. case $ac_var in #(
  1896. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1897. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1898. esac
  1899. case $ac_var in #(
  1900. _ | IFS | as_nl) ;; #(
  1901. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1902. *) { eval $ac_var=; unset $ac_var;} ;;
  1903. esac ;;
  1904. esac
  1905. done
  1906. (set) 2>&1 |
  1907. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1908. *${as_nl}ac_space=\ *)
  1909. sed -n \
  1910. "s/'\''/'\''\\\\'\'''\''/g;
  1911. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1912. ;; #(
  1913. *)
  1914. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1915. ;;
  1916. esac |
  1917. sort
  1918. )
  1919. echo
  1920. cat <<\_ASBOX
  1921. ## ----------------- ##
  1922. ## Output variables. ##
  1923. ## ----------------- ##
  1924. _ASBOX
  1925. echo
  1926. for ac_var in $ac_subst_vars
  1927. do
  1928. eval ac_val=\$$ac_var
  1929. case $ac_val in
  1930. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1931. esac
  1932. $as_echo "$ac_var='\''$ac_val'\''"
  1933. done | sort
  1934. echo
  1935. if test -n "$ac_subst_files"; then
  1936. cat <<\_ASBOX
  1937. ## ------------------- ##
  1938. ## File substitutions. ##
  1939. ## ------------------- ##
  1940. _ASBOX
  1941. echo
  1942. for ac_var in $ac_subst_files
  1943. do
  1944. eval ac_val=\$$ac_var
  1945. case $ac_val in
  1946. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1947. esac
  1948. $as_echo "$ac_var='\''$ac_val'\''"
  1949. done | sort
  1950. echo
  1951. fi
  1952. if test -s confdefs.h; then
  1953. cat <<\_ASBOX
  1954. ## ----------- ##
  1955. ## confdefs.h. ##
  1956. ## ----------- ##
  1957. _ASBOX
  1958. echo
  1959. cat confdefs.h
  1960. echo
  1961. fi
  1962. test "$ac_signal" != 0 &&
  1963. $as_echo "$as_me: caught signal $ac_signal"
  1964. $as_echo "$as_me: exit $exit_status"
  1965. } >&5
  1966. rm -f core *.core core.conftest.* &&
  1967. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1968. exit $exit_status
  1969. ' 0
  1970. for ac_signal in 1 2 13 15; do
  1971. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1972. done
  1973. ac_signal=0
  1974. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1975. rm -f -r conftest* confdefs.h
  1976. $as_echo "/* confdefs.h */" > confdefs.h
  1977. # Predefined preprocessor variables.
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_NAME "$PACKAGE_NAME"
  1980. _ACEOF
  1981. cat >>confdefs.h <<_ACEOF
  1982. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1983. _ACEOF
  1984. cat >>confdefs.h <<_ACEOF
  1985. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1986. _ACEOF
  1987. cat >>confdefs.h <<_ACEOF
  1988. #define PACKAGE_STRING "$PACKAGE_STRING"
  1989. _ACEOF
  1990. cat >>confdefs.h <<_ACEOF
  1991. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1992. _ACEOF
  1993. cat >>confdefs.h <<_ACEOF
  1994. #define PACKAGE_URL "$PACKAGE_URL"
  1995. _ACEOF
  1996. # Let the site file select an alternate cache file if it wants to.
  1997. # Prefer an explicitly selected file to automatically selected ones.
  1998. ac_site_file1=NONE
  1999. ac_site_file2=NONE
  2000. if test -n "$CONFIG_SITE"; then
  2001. ac_site_file1=$CONFIG_SITE
  2002. elif test "x$prefix" != xNONE; then
  2003. ac_site_file1=$prefix/share/config.site
  2004. ac_site_file2=$prefix/etc/config.site
  2005. else
  2006. ac_site_file1=$ac_default_prefix/share/config.site
  2007. ac_site_file2=$ac_default_prefix/etc/config.site
  2008. fi
  2009. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2010. do
  2011. test "x$ac_site_file" = xNONE && continue
  2012. if test -r "$ac_site_file"; then
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2014. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2015. sed 's/^/| /' "$ac_site_file" >&5
  2016. . "$ac_site_file"
  2017. fi
  2018. done
  2019. if test -r "$cache_file"; then
  2020. # Some versions of bash will fail to source /dev/null (special
  2021. # files actually), so we avoid doing that.
  2022. if test -f "$cache_file"; then
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2024. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2025. case $cache_file in
  2026. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2027. *) . "./$cache_file";;
  2028. esac
  2029. fi
  2030. else
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2032. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2033. >$cache_file
  2034. fi
  2035. # Check that the precious variables saved in the cache have kept the same
  2036. # value.
  2037. ac_cache_corrupted=false
  2038. for ac_var in $ac_precious_vars; do
  2039. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2040. eval ac_new_set=\$ac_env_${ac_var}_set
  2041. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2042. eval ac_new_val=\$ac_env_${ac_var}_value
  2043. case $ac_old_set,$ac_new_set in
  2044. set,)
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2046. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2047. ac_cache_corrupted=: ;;
  2048. ,set)
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2050. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2051. ac_cache_corrupted=: ;;
  2052. ,);;
  2053. *)
  2054. if test "x$ac_old_val" != "x$ac_new_val"; then
  2055. # differences in whitespace do not lead to failure.
  2056. ac_old_val_w=`echo x $ac_old_val`
  2057. ac_new_val_w=`echo x $ac_new_val`
  2058. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2060. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2061. ac_cache_corrupted=:
  2062. else
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2064. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2065. eval $ac_var=\$ac_old_val
  2066. fi
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2068. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2070. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2071. fi;;
  2072. esac
  2073. # Pass precious variables to config.status.
  2074. if test "$ac_new_set" = set; then
  2075. case $ac_new_val in
  2076. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2077. *) ac_arg=$ac_var=$ac_new_val ;;
  2078. esac
  2079. case " $ac_configure_args " in
  2080. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2081. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2082. esac
  2083. fi
  2084. done
  2085. if $ac_cache_corrupted; then
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2089. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2090. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2091. fi
  2092. ## -------------------- ##
  2093. ## Main body of script. ##
  2094. ## -------------------- ##
  2095. ac_ext=c
  2096. ac_cpp='$CPP $CPPFLAGS'
  2097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2100. ac_aux_dir=
  2101. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2102. for ac_t in install-sh install.sh shtool; do
  2103. if test -f "$ac_dir/$ac_t"; then
  2104. ac_aux_dir=$ac_dir
  2105. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2106. break 2
  2107. fi
  2108. done
  2109. done
  2110. if test -z "$ac_aux_dir"; then
  2111. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2112. fi
  2113. # These three variables are undocumented and unsupported,
  2114. # and are intended to be withdrawn in a future Autoconf release.
  2115. # They can cause serious problems if a builder's source tree is in a directory
  2116. # whose full name contains unusual characters.
  2117. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2118. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2119. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2120. # Make sure we can run config.sub.
  2121. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2122. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2124. $as_echo_n "checking build system type... " >&6; }
  2125. if test "${ac_cv_build+set}" = set; then :
  2126. $as_echo_n "(cached) " >&6
  2127. else
  2128. ac_build_alias=$build_alias
  2129. test "x$ac_build_alias" = x &&
  2130. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2131. test "x$ac_build_alias" = x &&
  2132. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2133. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2134. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2135. fi
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2137. $as_echo "$ac_cv_build" >&6; }
  2138. case $ac_cv_build in
  2139. *-*-*) ;;
  2140. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2141. esac
  2142. build=$ac_cv_build
  2143. ac_save_IFS=$IFS; IFS='-'
  2144. set x $ac_cv_build
  2145. shift
  2146. build_cpu=$1
  2147. build_vendor=$2
  2148. shift; shift
  2149. # Remember, the first character of IFS is used to create $*,
  2150. # except with old shells:
  2151. build_os=$*
  2152. IFS=$ac_save_IFS
  2153. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2155. $as_echo_n "checking host system type... " >&6; }
  2156. if test "${ac_cv_host+set}" = set; then :
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. if test "x$host_alias" = x; then
  2160. ac_cv_host=$ac_cv_build
  2161. else
  2162. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2163. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2164. fi
  2165. fi
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2167. $as_echo "$ac_cv_host" >&6; }
  2168. case $ac_cv_host in
  2169. *-*-*) ;;
  2170. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2171. esac
  2172. host=$ac_cv_host
  2173. ac_save_IFS=$IFS; IFS='-'
  2174. set x $ac_cv_host
  2175. shift
  2176. host_cpu=$1
  2177. host_vendor=$2
  2178. shift; shift
  2179. # Remember, the first character of IFS is used to create $*,
  2180. # except with old shells:
  2181. host_os=$*
  2182. IFS=$ac_save_IFS
  2183. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2185. $as_echo_n "checking target system type... " >&6; }
  2186. if test "${ac_cv_target+set}" = set; then :
  2187. $as_echo_n "(cached) " >&6
  2188. else
  2189. if test "x$target_alias" = x; then
  2190. ac_cv_target=$ac_cv_host
  2191. else
  2192. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2193. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2194. fi
  2195. fi
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2197. $as_echo "$ac_cv_target" >&6; }
  2198. case $ac_cv_target in
  2199. *-*-*) ;;
  2200. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2201. esac
  2202. target=$ac_cv_target
  2203. ac_save_IFS=$IFS; IFS='-'
  2204. set x $ac_cv_target
  2205. shift
  2206. target_cpu=$1
  2207. target_vendor=$2
  2208. shift; shift
  2209. # Remember, the first character of IFS is used to create $*,
  2210. # except with old shells:
  2211. target_os=$*
  2212. IFS=$ac_save_IFS
  2213. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2214. # The aliases save the names the user supplied, while $host etc.
  2215. # will get canonicalized.
  2216. test -n "$target_alias" &&
  2217. test "$program_prefix$program_suffix$program_transform_name" = \
  2218. NONENONEs,x,x, &&
  2219. program_prefix=${target_alias}-
  2220. target_alias=${target_alias-$host_alias}
  2221. am__api_version='1.11'
  2222. # Find a good install program. We prefer a C program (faster),
  2223. # so one script is as good as another. But avoid the broken or
  2224. # incompatible versions:
  2225. # SysV /etc/install, /usr/sbin/install
  2226. # SunOS /usr/etc/install
  2227. # IRIX /sbin/install
  2228. # AIX /bin/install
  2229. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2230. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2231. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2232. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2233. # OS/2's system install, which has a completely different semantic
  2234. # ./install, which can be erroneously created by make from ./install.sh.
  2235. # Reject install programs that cannot install multiple files.
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2237. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2238. if test -z "$INSTALL"; then
  2239. if test "${ac_cv_path_install+set}" = set; then :
  2240. $as_echo_n "(cached) " >&6
  2241. else
  2242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2243. for as_dir in $PATH
  2244. do
  2245. IFS=$as_save_IFS
  2246. test -z "$as_dir" && as_dir=.
  2247. # Account for people who put trailing slashes in PATH elements.
  2248. case $as_dir/ in #((
  2249. ./ | .// | /[cC]/* | \
  2250. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2251. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2252. /usr/ucb/* ) ;;
  2253. *)
  2254. # OSF1 and SCO ODT 3.0 have their own names for install.
  2255. # Don't use installbsd from OSF since it installs stuff as root
  2256. # by default.
  2257. for ac_prog in ginstall scoinst install; do
  2258. for ac_exec_ext in '' $ac_executable_extensions; do
  2259. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2260. if test $ac_prog = install &&
  2261. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2262. # AIX install. It has an incompatible calling convention.
  2263. :
  2264. elif test $ac_prog = install &&
  2265. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2266. # program-specific install script used by HP pwplus--don't use.
  2267. :
  2268. else
  2269. rm -rf conftest.one conftest.two conftest.dir
  2270. echo one > conftest.one
  2271. echo two > conftest.two
  2272. mkdir conftest.dir
  2273. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2274. test -s conftest.one && test -s conftest.two &&
  2275. test -s conftest.dir/conftest.one &&
  2276. test -s conftest.dir/conftest.two
  2277. then
  2278. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2279. break 3
  2280. fi
  2281. fi
  2282. fi
  2283. done
  2284. done
  2285. ;;
  2286. esac
  2287. done
  2288. IFS=$as_save_IFS
  2289. rm -rf conftest.one conftest.two conftest.dir
  2290. fi
  2291. if test "${ac_cv_path_install+set}" = set; then
  2292. INSTALL=$ac_cv_path_install
  2293. else
  2294. # As a last resort, use the slow shell script. Don't cache a
  2295. # value for INSTALL within a source directory, because that will
  2296. # break other packages using the cache if that directory is
  2297. # removed, or if the value is a relative name.
  2298. INSTALL=$ac_install_sh
  2299. fi
  2300. fi
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2302. $as_echo "$INSTALL" >&6; }
  2303. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2304. # It thinks the first close brace ends the variable substitution.
  2305. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2306. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2307. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2309. $as_echo_n "checking whether build environment is sane... " >&6; }
  2310. # Just in case
  2311. sleep 1
  2312. echo timestamp > conftest.file
  2313. # Reject unsafe characters in $srcdir or the absolute working directory
  2314. # name. Accept space and tab only in the latter.
  2315. am_lf='
  2316. '
  2317. case `pwd` in
  2318. *[\\\"\#\$\&\'\`$am_lf]*)
  2319. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2320. esac
  2321. case $srcdir in
  2322. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2323. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2324. esac
  2325. # Do `set' in a subshell so we don't clobber the current shell's
  2326. # arguments. Must try -L first in case configure is actually a
  2327. # symlink; some systems play weird games with the mod time of symlinks
  2328. # (eg FreeBSD returns the mod time of the symlink's containing
  2329. # directory).
  2330. if (
  2331. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2332. if test "$*" = "X"; then
  2333. # -L didn't work.
  2334. set X `ls -t "$srcdir/configure" conftest.file`
  2335. fi
  2336. rm -f conftest.file
  2337. if test "$*" != "X $srcdir/configure conftest.file" \
  2338. && test "$*" != "X conftest.file $srcdir/configure"; then
  2339. # If neither matched, then we have a broken ls. This can happen
  2340. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2341. # broken ls alias from the environment. This has actually
  2342. # happened. Such a system could not be considered "sane".
  2343. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2344. alias in your environment" "$LINENO" 5
  2345. fi
  2346. test "$2" = conftest.file
  2347. )
  2348. then
  2349. # Ok.
  2350. :
  2351. else
  2352. as_fn_error "newly created file is older than distributed files!
  2353. Check your system clock" "$LINENO" 5
  2354. fi
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2356. $as_echo "yes" >&6; }
  2357. test "$program_prefix" != NONE &&
  2358. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2359. # Use a double $ so make ignores it.
  2360. test "$program_suffix" != NONE &&
  2361. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2362. # Double any \ or $.
  2363. # By default was `s,x,x', remove it if useless.
  2364. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2365. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2366. # expand $ac_aux_dir to an absolute path
  2367. am_aux_dir=`cd $ac_aux_dir && pwd`
  2368. if test x"${MISSING+set}" != xset; then
  2369. case $am_aux_dir in
  2370. *\ * | *\ *)
  2371. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2372. *)
  2373. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2374. esac
  2375. fi
  2376. # Use eval to expand $SHELL
  2377. if eval "$MISSING --run true"; then
  2378. am_missing_run="$MISSING --run "
  2379. else
  2380. am_missing_run=
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2382. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2383. fi
  2384. if test x"${install_sh}" != xset; then
  2385. case $am_aux_dir in
  2386. *\ * | *\ *)
  2387. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2388. *)
  2389. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2390. esac
  2391. fi
  2392. # Installed binaries are usually stripped using `strip' when the user
  2393. # run `make install-strip'. However `strip' might not be the right
  2394. # tool to use in cross-compilation environments, therefore Automake
  2395. # will honor the `STRIP' environment variable to overrule this program.
  2396. if test "$cross_compiling" != no; then
  2397. if test -n "$ac_tool_prefix"; then
  2398. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2399. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2401. $as_echo_n "checking for $ac_word... " >&6; }
  2402. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2403. $as_echo_n "(cached) " >&6
  2404. else
  2405. if test -n "$STRIP"; then
  2406. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2407. else
  2408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2409. for as_dir in $PATH
  2410. do
  2411. IFS=$as_save_IFS
  2412. test -z "$as_dir" && as_dir=.
  2413. for ac_exec_ext in '' $ac_executable_extensions; do
  2414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2415. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2417. break 2
  2418. fi
  2419. done
  2420. done
  2421. IFS=$as_save_IFS
  2422. fi
  2423. fi
  2424. STRIP=$ac_cv_prog_STRIP
  2425. if test -n "$STRIP"; then
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2427. $as_echo "$STRIP" >&6; }
  2428. else
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2430. $as_echo "no" >&6; }
  2431. fi
  2432. fi
  2433. if test -z "$ac_cv_prog_STRIP"; then
  2434. ac_ct_STRIP=$STRIP
  2435. # Extract the first word of "strip", so it can be a program name with args.
  2436. set dummy strip; ac_word=$2
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2438. $as_echo_n "checking for $ac_word... " >&6; }
  2439. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2440. $as_echo_n "(cached) " >&6
  2441. else
  2442. if test -n "$ac_ct_STRIP"; then
  2443. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2444. else
  2445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446. for as_dir in $PATH
  2447. do
  2448. IFS=$as_save_IFS
  2449. test -z "$as_dir" && as_dir=.
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452. ac_cv_prog_ac_ct_STRIP="strip"
  2453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454. break 2
  2455. fi
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. fi
  2461. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2462. if test -n "$ac_ct_STRIP"; then
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2464. $as_echo "$ac_ct_STRIP" >&6; }
  2465. else
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2467. $as_echo "no" >&6; }
  2468. fi
  2469. if test "x$ac_ct_STRIP" = x; then
  2470. STRIP=":"
  2471. else
  2472. case $cross_compiling:$ac_tool_warned in
  2473. yes:)
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2476. ac_tool_warned=yes ;;
  2477. esac
  2478. STRIP=$ac_ct_STRIP
  2479. fi
  2480. else
  2481. STRIP="$ac_cv_prog_STRIP"
  2482. fi
  2483. fi
  2484. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2486. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2487. if test -z "$MKDIR_P"; then
  2488. if test "${ac_cv_path_mkdir+set}" = set; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2492. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2493. do
  2494. IFS=$as_save_IFS
  2495. test -z "$as_dir" && as_dir=.
  2496. for ac_prog in mkdir gmkdir; do
  2497. for ac_exec_ext in '' $ac_executable_extensions; do
  2498. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2499. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2500. 'mkdir (GNU coreutils) '* | \
  2501. 'mkdir (coreutils) '* | \
  2502. 'mkdir (fileutils) '4.1*)
  2503. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2504. break 3;;
  2505. esac
  2506. done
  2507. done
  2508. done
  2509. IFS=$as_save_IFS
  2510. fi
  2511. if test "${ac_cv_path_mkdir+set}" = set; then
  2512. MKDIR_P="$ac_cv_path_mkdir -p"
  2513. else
  2514. # As a last resort, use the slow shell script. Don't cache a
  2515. # value for MKDIR_P within a source directory, because that will
  2516. # break other packages using the cache if that directory is
  2517. # removed, or if the value is a relative name.
  2518. test -d ./--version && rmdir ./--version
  2519. MKDIR_P="$ac_install_sh -d"
  2520. fi
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2523. $as_echo "$MKDIR_P" >&6; }
  2524. mkdir_p="$MKDIR_P"
  2525. case $mkdir_p in
  2526. [\\/$]* | ?:[\\/]*) ;;
  2527. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2528. esac
  2529. for ac_prog in gawk mawk nawk awk
  2530. do
  2531. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2532. set dummy $ac_prog; ac_word=$2
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2534. $as_echo_n "checking for $ac_word... " >&6; }
  2535. if test "${ac_cv_prog_AWK+set}" = set; then :
  2536. $as_echo_n "(cached) " >&6
  2537. else
  2538. if test -n "$AWK"; then
  2539. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2540. else
  2541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2542. for as_dir in $PATH
  2543. do
  2544. IFS=$as_save_IFS
  2545. test -z "$as_dir" && as_dir=.
  2546. for ac_exec_ext in '' $ac_executable_extensions; do
  2547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2548. ac_cv_prog_AWK="$ac_prog"
  2549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2550. break 2
  2551. fi
  2552. done
  2553. done
  2554. IFS=$as_save_IFS
  2555. fi
  2556. fi
  2557. AWK=$ac_cv_prog_AWK
  2558. if test -n "$AWK"; then
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2560. $as_echo "$AWK" >&6; }
  2561. else
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2563. $as_echo "no" >&6; }
  2564. fi
  2565. test -n "$AWK" && break
  2566. done
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2568. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2569. set x ${MAKE-make}
  2570. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2571. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. cat >conftest.make <<\_ACEOF
  2575. SHELL = /bin/sh
  2576. all:
  2577. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2578. _ACEOF
  2579. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2580. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2581. *@@@%%%=?*=@@@%%%*)
  2582. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2583. *)
  2584. eval ac_cv_prog_make_${ac_make}_set=no;;
  2585. esac
  2586. rm -f conftest.make
  2587. fi
  2588. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2590. $as_echo "yes" >&6; }
  2591. SET_MAKE=
  2592. else
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. $as_echo "no" >&6; }
  2595. SET_MAKE="MAKE=${MAKE-make}"
  2596. fi
  2597. rm -rf .tst 2>/dev/null
  2598. mkdir .tst 2>/dev/null
  2599. if test -d .tst; then
  2600. am__leading_dot=.
  2601. else
  2602. am__leading_dot=_
  2603. fi
  2604. rmdir .tst 2>/dev/null
  2605. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2606. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2607. # is not polluted with repeated "-I."
  2608. am__isrc=' -I$(srcdir)'
  2609. # test to see if srcdir already configured
  2610. if test -f $srcdir/config.status; then
  2611. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2612. fi
  2613. fi
  2614. # test whether we have cygpath
  2615. if test -z "$CYGPATH_W"; then
  2616. if (cygpath --version) >/dev/null 2>/dev/null; then
  2617. CYGPATH_W='cygpath -w'
  2618. else
  2619. CYGPATH_W=echo
  2620. fi
  2621. fi
  2622. # Define the identity of the package.
  2623. PACKAGE='liboffloadmic'
  2624. VERSION='1.0'
  2625. cat >>confdefs.h <<_ACEOF
  2626. #define PACKAGE "$PACKAGE"
  2627. _ACEOF
  2628. cat >>confdefs.h <<_ACEOF
  2629. #define VERSION "$VERSION"
  2630. _ACEOF
  2631. # Some tools Automake needs.
  2632. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2633. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2634. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2635. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2636. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2637. # We need awk for the "check" target. The system "awk" is bad on
  2638. # some platforms.
  2639. # Always define AMTAR for backward compatibility.
  2640. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2641. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2643. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2644. # Check whether --enable-maintainer-mode was given.
  2645. if test "${enable_maintainer_mode+set}" = set; then :
  2646. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2647. else
  2648. USE_MAINTAINER_MODE=no
  2649. fi
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2651. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2652. if test $USE_MAINTAINER_MODE = yes; then
  2653. MAINTAINER_MODE_TRUE=
  2654. MAINTAINER_MODE_FALSE='#'
  2655. else
  2656. MAINTAINER_MODE_TRUE='#'
  2657. MAINTAINER_MODE_FALSE=
  2658. fi
  2659. MAINT=$MAINTAINER_MODE_TRUE
  2660. ac_ext=c
  2661. ac_cpp='$CPP $CPPFLAGS'
  2662. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2663. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2664. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2665. if test -n "$ac_tool_prefix"; then
  2666. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2667. set dummy ${ac_tool_prefix}gcc; 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}gcc"
  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. if test -z "$ac_cv_prog_CC"; then
  2702. ac_ct_CC=$CC
  2703. # Extract the first word of "gcc", so it can be a program name with args.
  2704. set dummy gcc; 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_ac_ct_CC+set}" = set; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$ac_ct_CC"; then
  2711. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2712. else
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720. ac_cv_prog_ac_ct_CC="gcc"
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. fi
  2728. fi
  2729. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2730. if test -n "$ac_ct_CC"; then
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2732. $as_echo "$ac_ct_CC" >&6; }
  2733. else
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2735. $as_echo "no" >&6; }
  2736. fi
  2737. if test "x$ac_ct_CC" = x; then
  2738. CC=""
  2739. else
  2740. case $cross_compiling:$ac_tool_warned in
  2741. yes:)
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2744. ac_tool_warned=yes ;;
  2745. esac
  2746. CC=$ac_ct_CC
  2747. fi
  2748. else
  2749. CC="$ac_cv_prog_CC"
  2750. fi
  2751. if test -z "$CC"; then
  2752. if test -n "$ac_tool_prefix"; then
  2753. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2754. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2756. $as_echo_n "checking for $ac_word... " >&6; }
  2757. if test "${ac_cv_prog_CC+set}" = set; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. if test -n "$CC"; then
  2761. ac_cv_prog_CC="$CC" # Let the user override the test.
  2762. else
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2770. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. fi
  2778. fi
  2779. CC=$ac_cv_prog_CC
  2780. if test -n "$CC"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2782. $as_echo "$CC" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787. fi
  2788. fi
  2789. if test -z "$CC"; then
  2790. # Extract the first word of "cc", so it can be a program name with args.
  2791. set dummy cc; ac_word=$2
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2793. $as_echo_n "checking for $ac_word... " >&6; }
  2794. if test "${ac_cv_prog_CC+set}" = set; then :
  2795. $as_echo_n "(cached) " >&6
  2796. else
  2797. if test -n "$CC"; then
  2798. ac_cv_prog_CC="$CC" # Let the user override the test.
  2799. else
  2800. ac_prog_rejected=no
  2801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2802. for as_dir in $PATH
  2803. do
  2804. IFS=$as_save_IFS
  2805. test -z "$as_dir" && as_dir=.
  2806. for ac_exec_ext in '' $ac_executable_extensions; do
  2807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2808. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2809. ac_prog_rejected=yes
  2810. continue
  2811. fi
  2812. ac_cv_prog_CC="cc"
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2814. break 2
  2815. fi
  2816. done
  2817. done
  2818. IFS=$as_save_IFS
  2819. if test $ac_prog_rejected = yes; then
  2820. # We found a bogon in the path, so make sure we never use it.
  2821. set dummy $ac_cv_prog_CC
  2822. shift
  2823. if test $# != 0; then
  2824. # We chose a different compiler from the bogus one.
  2825. # However, it has the same basename, so the bogon will be chosen
  2826. # first if we set CC to just the basename; use the full file name.
  2827. shift
  2828. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2829. fi
  2830. fi
  2831. fi
  2832. fi
  2833. CC=$ac_cv_prog_CC
  2834. if test -n "$CC"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2836. $as_echo "$CC" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. fi
  2842. if test -z "$CC"; then
  2843. if test -n "$ac_tool_prefix"; then
  2844. for ac_prog in cl.exe
  2845. do
  2846. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2847. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if test "${ac_cv_prog_CC+set}" = set; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$CC"; then
  2854. ac_cv_prog_CC="$CC" # Let the user override the test.
  2855. else
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2863. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865. break 2
  2866. fi
  2867. done
  2868. done
  2869. IFS=$as_save_IFS
  2870. fi
  2871. fi
  2872. CC=$ac_cv_prog_CC
  2873. if test -n "$CC"; then
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2875. $as_echo "$CC" >&6; }
  2876. else
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. fi
  2880. test -n "$CC" && break
  2881. done
  2882. fi
  2883. if test -z "$CC"; then
  2884. ac_ct_CC=$CC
  2885. for ac_prog in cl.exe
  2886. do
  2887. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2888. set dummy $ac_prog; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$ac_ct_CC"; then
  2895. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2896. else
  2897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2898. for as_dir in $PATH
  2899. do
  2900. IFS=$as_save_IFS
  2901. test -z "$as_dir" && as_dir=.
  2902. for ac_exec_ext in '' $ac_executable_extensions; do
  2903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2904. ac_cv_prog_ac_ct_CC="$ac_prog"
  2905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2906. break 2
  2907. fi
  2908. done
  2909. done
  2910. IFS=$as_save_IFS
  2911. fi
  2912. fi
  2913. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2914. if test -n "$ac_ct_CC"; then
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2916. $as_echo "$ac_ct_CC" >&6; }
  2917. else
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fi
  2921. test -n "$ac_ct_CC" && break
  2922. done
  2923. if test "x$ac_ct_CC" = x; then
  2924. CC=""
  2925. else
  2926. case $cross_compiling:$ac_tool_warned in
  2927. yes:)
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2930. ac_tool_warned=yes ;;
  2931. esac
  2932. CC=$ac_ct_CC
  2933. fi
  2934. fi
  2935. fi
  2936. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2937. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2938. as_fn_error "no acceptable C compiler found in \$PATH
  2939. See \`config.log' for more details." "$LINENO" 5; }
  2940. # Provide some information about the compiler.
  2941. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2942. set X $ac_compile
  2943. ac_compiler=$2
  2944. for ac_option in --version -v -V -qversion; do
  2945. { { ac_try="$ac_compiler $ac_option >&5"
  2946. case "(($ac_try" in
  2947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2948. *) ac_try_echo=$ac_try;;
  2949. esac
  2950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2951. $as_echo "$ac_try_echo"; } >&5
  2952. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2953. ac_status=$?
  2954. if test -s conftest.err; then
  2955. sed '10a\
  2956. ... rest of stderr output deleted ...
  2957. 10q' conftest.err >conftest.er1
  2958. cat conftest.er1 >&5
  2959. rm -f conftest.er1 conftest.err
  2960. fi
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2962. test $ac_status = 0; }
  2963. done
  2964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2965. /* end confdefs.h. */
  2966. int
  2967. main ()
  2968. {
  2969. ;
  2970. return 0;
  2971. }
  2972. _ACEOF
  2973. ac_clean_files_save=$ac_clean_files
  2974. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2975. # Try to create an executable without -o first, disregard a.out.
  2976. # It will help us diagnose broken compilers, and finding out an intuition
  2977. # of exeext.
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2979. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2980. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2981. # The possible output files:
  2982. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2983. ac_rmfiles=
  2984. for ac_file in $ac_files
  2985. do
  2986. case $ac_file in
  2987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2988. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2989. esac
  2990. done
  2991. rm -f $ac_rmfiles
  2992. if { { ac_try="$ac_link_default"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2998. $as_echo "$ac_try_echo"; } >&5
  2999. (eval "$ac_link_default") 2>&5
  3000. ac_status=$?
  3001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3002. test $ac_status = 0; }; then :
  3003. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3004. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3005. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3006. # so that the user can short-circuit this test for compilers unknown to
  3007. # Autoconf.
  3008. for ac_file in $ac_files ''
  3009. do
  3010. test -f "$ac_file" || continue
  3011. case $ac_file in
  3012. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3013. ;;
  3014. [ab].out )
  3015. # We found the default executable, but exeext='' is most
  3016. # certainly right.
  3017. break;;
  3018. *.* )
  3019. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3020. then :; else
  3021. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3022. fi
  3023. # We set ac_cv_exeext here because the later test for it is not
  3024. # safe: cross compilers may not add the suffix if given an `-o'
  3025. # argument, so we may need to know it at that point already.
  3026. # Even if this section looks crufty: it has the advantage of
  3027. # actually working.
  3028. break;;
  3029. * )
  3030. break;;
  3031. esac
  3032. done
  3033. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3034. else
  3035. ac_file=''
  3036. fi
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3038. $as_echo "$ac_file" >&6; }
  3039. if test -z "$ac_file"; then :
  3040. $as_echo "$as_me: failed program was:" >&5
  3041. sed 's/^/| /' conftest.$ac_ext >&5
  3042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3044. { as_fn_set_status 77
  3045. as_fn_error "C compiler cannot create executables
  3046. See \`config.log' for more details." "$LINENO" 5; }; }
  3047. fi
  3048. ac_exeext=$ac_cv_exeext
  3049. # Check that the compiler produces executables we can run. If not, either
  3050. # the compiler is broken, or we cross compile.
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3052. $as_echo_n "checking whether the C compiler works... " >&6; }
  3053. # If not cross compiling, check that we can run a simple program.
  3054. if test "$cross_compiling" != yes; then
  3055. if { ac_try='./$ac_file'
  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_try") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; }; then
  3066. cross_compiling=no
  3067. else
  3068. if test "$cross_compiling" = maybe; then
  3069. cross_compiling=yes
  3070. else
  3071. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3072. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3073. as_fn_error "cannot run C compiled programs.
  3074. If you meant to cross compile, use \`--host'.
  3075. See \`config.log' for more details." "$LINENO" 5; }
  3076. fi
  3077. fi
  3078. fi
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3080. $as_echo "yes" >&6; }
  3081. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3082. ac_clean_files=$ac_clean_files_save
  3083. # Check that the compiler produces executables we can run. If not, either
  3084. # the compiler is broken, or we cross compile.
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3086. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3088. $as_echo "$cross_compiling" >&6; }
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3090. $as_echo_n "checking for suffix of executables... " >&6; }
  3091. if { { ac_try="$ac_link"
  3092. case "(($ac_try" in
  3093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094. *) ac_try_echo=$ac_try;;
  3095. esac
  3096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3097. $as_echo "$ac_try_echo"; } >&5
  3098. (eval "$ac_link") 2>&5
  3099. ac_status=$?
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3101. test $ac_status = 0; }; then :
  3102. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3103. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3104. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3105. # `rm'.
  3106. for ac_file in conftest.exe conftest conftest.*; do
  3107. test -f "$ac_file" || continue
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3110. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3111. break;;
  3112. * ) break;;
  3113. esac
  3114. done
  3115. else
  3116. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3117. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3118. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3119. See \`config.log' for more details." "$LINENO" 5; }
  3120. fi
  3121. rm -f conftest$ac_cv_exeext
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3123. $as_echo "$ac_cv_exeext" >&6; }
  3124. rm -f conftest.$ac_ext
  3125. EXEEXT=$ac_cv_exeext
  3126. ac_exeext=$EXEEXT
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3128. $as_echo_n "checking for suffix of object files... " >&6; }
  3129. if test "${ac_cv_objext+set}" = set; then :
  3130. $as_echo_n "(cached) " >&6
  3131. else
  3132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3133. /* end confdefs.h. */
  3134. int
  3135. main ()
  3136. {
  3137. ;
  3138. return 0;
  3139. }
  3140. _ACEOF
  3141. rm -f conftest.o conftest.obj
  3142. if { { ac_try="$ac_compile"
  3143. case "(($ac_try" in
  3144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145. *) ac_try_echo=$ac_try;;
  3146. esac
  3147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3148. $as_echo "$ac_try_echo"; } >&5
  3149. (eval "$ac_compile") 2>&5
  3150. ac_status=$?
  3151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3152. test $ac_status = 0; }; then :
  3153. for ac_file in conftest.o conftest.obj conftest.*; do
  3154. test -f "$ac_file" || continue;
  3155. case $ac_file in
  3156. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3157. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3158. break;;
  3159. esac
  3160. done
  3161. else
  3162. $as_echo "$as_me: failed program was:" >&5
  3163. sed 's/^/| /' conftest.$ac_ext >&5
  3164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3166. as_fn_error "cannot compute suffix of object files: cannot compile
  3167. See \`config.log' for more details." "$LINENO" 5; }
  3168. fi
  3169. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3170. fi
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3172. $as_echo "$ac_cv_objext" >&6; }
  3173. OBJEXT=$ac_cv_objext
  3174. ac_objext=$OBJEXT
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3176. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3177. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3178. $as_echo_n "(cached) " >&6
  3179. else
  3180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181. /* end confdefs.h. */
  3182. int
  3183. main ()
  3184. {
  3185. #ifndef __GNUC__
  3186. choke me
  3187. #endif
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. if ac_fn_c_try_compile "$LINENO"; then :
  3193. ac_compiler_gnu=yes
  3194. else
  3195. ac_compiler_gnu=no
  3196. fi
  3197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3198. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3199. fi
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3201. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3202. if test $ac_compiler_gnu = yes; then
  3203. GCC=yes
  3204. else
  3205. GCC=
  3206. fi
  3207. ac_test_CFLAGS=${CFLAGS+set}
  3208. ac_save_CFLAGS=$CFLAGS
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3210. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3211. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. ac_save_c_werror_flag=$ac_c_werror_flag
  3215. ac_c_werror_flag=yes
  3216. ac_cv_prog_cc_g=no
  3217. CFLAGS="-g"
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_c_try_compile "$LINENO"; then :
  3228. ac_cv_prog_cc_g=yes
  3229. else
  3230. CFLAGS=""
  3231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3232. /* end confdefs.h. */
  3233. int
  3234. main ()
  3235. {
  3236. ;
  3237. return 0;
  3238. }
  3239. _ACEOF
  3240. if ac_fn_c_try_compile "$LINENO"; then :
  3241. else
  3242. ac_c_werror_flag=$ac_save_c_werror_flag
  3243. CFLAGS="-g"
  3244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3245. /* end confdefs.h. */
  3246. int
  3247. main ()
  3248. {
  3249. ;
  3250. return 0;
  3251. }
  3252. _ACEOF
  3253. if ac_fn_c_try_compile "$LINENO"; then :
  3254. ac_cv_prog_cc_g=yes
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259. fi
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. ac_c_werror_flag=$ac_save_c_werror_flag
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3264. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3265. if test "$ac_test_CFLAGS" = set; then
  3266. CFLAGS=$ac_save_CFLAGS
  3267. elif test $ac_cv_prog_cc_g = yes; then
  3268. if test "$GCC" = yes; then
  3269. CFLAGS="-g -O2"
  3270. else
  3271. CFLAGS="-g"
  3272. fi
  3273. else
  3274. if test "$GCC" = yes; then
  3275. CFLAGS="-O2"
  3276. else
  3277. CFLAGS=
  3278. fi
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3281. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3282. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. ac_cv_prog_cc_c89=no
  3286. ac_save_CC=$CC
  3287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3288. /* end confdefs.h. */
  3289. #include <stdarg.h>
  3290. #include <stdio.h>
  3291. #include <sys/types.h>
  3292. #include <sys/stat.h>
  3293. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3294. struct buf { int x; };
  3295. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3296. static char *e (p, i)
  3297. char **p;
  3298. int i;
  3299. {
  3300. return p[i];
  3301. }
  3302. static char *f (char * (*g) (char **, int), char **p, ...)
  3303. {
  3304. char *s;
  3305. va_list v;
  3306. va_start (v,p);
  3307. s = g (p, va_arg (v,int));
  3308. va_end (v);
  3309. return s;
  3310. }
  3311. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3312. function prototypes and stuff, but not '\xHH' hex character constants.
  3313. These don't provoke an error unfortunately, instead are silently treated
  3314. as 'x'. The following induces an error, until -std is added to get
  3315. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3316. array size at least. It's necessary to write '\x00'==0 to get something
  3317. that's true only with -std. */
  3318. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3319. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3320. inside strings and character constants. */
  3321. #define FOO(x) 'x'
  3322. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3323. int test (int i, double x);
  3324. struct s1 {int (*f) (int a);};
  3325. struct s2 {int (*f) (double a);};
  3326. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3327. int argc;
  3328. char **argv;
  3329. int
  3330. main ()
  3331. {
  3332. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3333. ;
  3334. return 0;
  3335. }
  3336. _ACEOF
  3337. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3338. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3339. do
  3340. CC="$ac_save_CC $ac_arg"
  3341. if ac_fn_c_try_compile "$LINENO"; then :
  3342. ac_cv_prog_cc_c89=$ac_arg
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext
  3345. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3346. done
  3347. rm -f conftest.$ac_ext
  3348. CC=$ac_save_CC
  3349. fi
  3350. # AC_CACHE_VAL
  3351. case "x$ac_cv_prog_cc_c89" in
  3352. x)
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3354. $as_echo "none needed" >&6; } ;;
  3355. xno)
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3357. $as_echo "unsupported" >&6; } ;;
  3358. *)
  3359. CC="$CC $ac_cv_prog_cc_c89"
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3361. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3362. esac
  3363. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3364. fi
  3365. ac_ext=c
  3366. ac_cpp='$CPP $CPPFLAGS'
  3367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3370. DEPDIR="${am__leading_dot}deps"
  3371. ac_config_commands="$ac_config_commands depfiles"
  3372. am_make=${MAKE-make}
  3373. cat > confinc << 'END'
  3374. am__doit:
  3375. @echo this is the am__doit target
  3376. .PHONY: am__doit
  3377. END
  3378. # If we don't find an include directive, just comment out the code.
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3380. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3381. am__include="#"
  3382. am__quote=
  3383. _am_result=none
  3384. # First try GNU make style include.
  3385. echo "include confinc" > confmf
  3386. # Ignore all kinds of additional output from `make'.
  3387. case `$am_make -s -f confmf 2> /dev/null` in #(
  3388. *the\ am__doit\ target*)
  3389. am__include=include
  3390. am__quote=
  3391. _am_result=GNU
  3392. ;;
  3393. esac
  3394. # Now try BSD make style include.
  3395. if test "$am__include" = "#"; then
  3396. echo '.include "confinc"' > confmf
  3397. case `$am_make -s -f confmf 2> /dev/null` in #(
  3398. *the\ am__doit\ target*)
  3399. am__include=.include
  3400. am__quote="\""
  3401. _am_result=BSD
  3402. ;;
  3403. esac
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3406. $as_echo "$_am_result" >&6; }
  3407. rm -f confinc confmf
  3408. # Check whether --enable-dependency-tracking was given.
  3409. if test "${enable_dependency_tracking+set}" = set; then :
  3410. enableval=$enable_dependency_tracking;
  3411. fi
  3412. if test "x$enable_dependency_tracking" != xno; then
  3413. am_depcomp="$ac_aux_dir/depcomp"
  3414. AMDEPBACKSLASH='\'
  3415. fi
  3416. if test "x$enable_dependency_tracking" != xno; then
  3417. AMDEP_TRUE=
  3418. AMDEP_FALSE='#'
  3419. else
  3420. AMDEP_TRUE='#'
  3421. AMDEP_FALSE=
  3422. fi
  3423. depcc="$CC" am_compiler_list=
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3425. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3426. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3427. $as_echo_n "(cached) " >&6
  3428. else
  3429. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3430. # We make a subdir and do the tests there. Otherwise we can end up
  3431. # making bogus files that we don't know about and never remove. For
  3432. # instance it was reported that on HP-UX the gcc test will end up
  3433. # making a dummy file named `D' -- because `-MD' means `put the output
  3434. # in D'.
  3435. mkdir conftest.dir
  3436. # Copy depcomp to subdir because otherwise we won't find it if we're
  3437. # using a relative directory.
  3438. cp "$am_depcomp" conftest.dir
  3439. cd conftest.dir
  3440. # We will build objects and dependencies in a subdirectory because
  3441. # it helps to detect inapplicable dependency modes. For instance
  3442. # both Tru64's cc and ICC support -MD to output dependencies as a
  3443. # side effect of compilation, but ICC will put the dependencies in
  3444. # the current directory while Tru64 will put them in the object
  3445. # directory.
  3446. mkdir sub
  3447. am_cv_CC_dependencies_compiler_type=none
  3448. if test "$am_compiler_list" = ""; then
  3449. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3450. fi
  3451. am__universal=false
  3452. case " $depcc " in #(
  3453. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3454. esac
  3455. for depmode in $am_compiler_list; do
  3456. # Setup a source with many dependencies, because some compilers
  3457. # like to wrap large dependency lists on column 80 (with \), and
  3458. # we should not choose a depcomp mode which is confused by this.
  3459. #
  3460. # We need to recreate these files for each test, as the compiler may
  3461. # overwrite some of them when testing with obscure command lines.
  3462. # This happens at least with the AIX C compiler.
  3463. : > sub/conftest.c
  3464. for i in 1 2 3 4 5 6; do
  3465. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3466. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3467. # Solaris 8's {/usr,}/bin/sh.
  3468. touch sub/conftst$i.h
  3469. done
  3470. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3471. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3472. # mode. It turns out that the SunPro C++ compiler does not properly
  3473. # handle `-M -o', and we need to detect this. Also, some Intel
  3474. # versions had trouble with output in subdirs
  3475. am__obj=sub/conftest.${OBJEXT-o}
  3476. am__minus_obj="-o $am__obj"
  3477. case $depmode in
  3478. gcc)
  3479. # This depmode causes a compiler race in universal mode.
  3480. test "$am__universal" = false || continue
  3481. ;;
  3482. nosideeffect)
  3483. # after this tag, mechanisms are not by side-effect, so they'll
  3484. # only be used when explicitly requested
  3485. if test "x$enable_dependency_tracking" = xyes; then
  3486. continue
  3487. else
  3488. break
  3489. fi
  3490. ;;
  3491. msvisualcpp | msvcmsys)
  3492. # This compiler won't grok `-c -o', but also, the minuso test has
  3493. # not run yet. These depmodes are late enough in the game, and
  3494. # so weak that their functioning should not be impacted.
  3495. am__obj=conftest.${OBJEXT-o}
  3496. am__minus_obj=
  3497. ;;
  3498. none) break ;;
  3499. esac
  3500. if depmode=$depmode \
  3501. source=sub/conftest.c object=$am__obj \
  3502. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3503. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3504. >/dev/null 2>conftest.err &&
  3505. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3506. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3507. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3508. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3509. # icc doesn't choke on unknown options, it will just issue warnings
  3510. # or remarks (even with -Werror). So we grep stderr for any message
  3511. # that says an option was ignored or not supported.
  3512. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3513. # icc: Command line warning: ignoring option '-M'; no argument required
  3514. # The diagnosis changed in icc 8.0:
  3515. # icc: Command line remark: option '-MP' not supported
  3516. if (grep 'ignoring option' conftest.err ||
  3517. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3518. am_cv_CC_dependencies_compiler_type=$depmode
  3519. break
  3520. fi
  3521. fi
  3522. done
  3523. cd ..
  3524. rm -rf conftest.dir
  3525. else
  3526. am_cv_CC_dependencies_compiler_type=none
  3527. fi
  3528. fi
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3530. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3531. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3532. if
  3533. test "x$enable_dependency_tracking" != xno \
  3534. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3535. am__fastdepCC_TRUE=
  3536. am__fastdepCC_FALSE='#'
  3537. else
  3538. am__fastdepCC_TRUE='#'
  3539. am__fastdepCC_FALSE=
  3540. fi
  3541. ac_ext=cpp
  3542. ac_cpp='$CXXCPP $CPPFLAGS'
  3543. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3544. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3545. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3546. if test -z "$CXX"; then
  3547. if test -n "$CCC"; then
  3548. CXX=$CCC
  3549. else
  3550. if test -n "$ac_tool_prefix"; then
  3551. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3552. do
  3553. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3554. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3556. $as_echo_n "checking for $ac_word... " >&6; }
  3557. if test "${ac_cv_prog_CXX+set}" = set; then :
  3558. $as_echo_n "(cached) " >&6
  3559. else
  3560. if test -n "$CXX"; then
  3561. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3562. else
  3563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3564. for as_dir in $PATH
  3565. do
  3566. IFS=$as_save_IFS
  3567. test -z "$as_dir" && as_dir=.
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3570. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3572. break 2
  3573. fi
  3574. done
  3575. done
  3576. IFS=$as_save_IFS
  3577. fi
  3578. fi
  3579. CXX=$ac_cv_prog_CXX
  3580. if test -n "$CXX"; then
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3582. $as_echo "$CXX" >&6; }
  3583. else
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3585. $as_echo "no" >&6; }
  3586. fi
  3587. test -n "$CXX" && break
  3588. done
  3589. fi
  3590. if test -z "$CXX"; then
  3591. ac_ct_CXX=$CXX
  3592. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3593. do
  3594. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3595. set dummy $ac_prog; ac_word=$2
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3597. $as_echo_n "checking for $ac_word... " >&6; }
  3598. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. if test -n "$ac_ct_CXX"; then
  3602. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3611. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3613. break 2
  3614. fi
  3615. done
  3616. done
  3617. IFS=$as_save_IFS
  3618. fi
  3619. fi
  3620. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3621. if test -n "$ac_ct_CXX"; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3623. $as_echo "$ac_ct_CXX" >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3626. $as_echo "no" >&6; }
  3627. fi
  3628. test -n "$ac_ct_CXX" && break
  3629. done
  3630. if test "x$ac_ct_CXX" = x; then
  3631. CXX="g++"
  3632. else
  3633. case $cross_compiling:$ac_tool_warned in
  3634. yes:)
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3637. ac_tool_warned=yes ;;
  3638. esac
  3639. CXX=$ac_ct_CXX
  3640. fi
  3641. fi
  3642. fi
  3643. fi
  3644. # Provide some information about the compiler.
  3645. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3646. set X $ac_compile
  3647. ac_compiler=$2
  3648. for ac_option in --version -v -V -qversion; do
  3649. { { ac_try="$ac_compiler $ac_option >&5"
  3650. case "(($ac_try" in
  3651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3652. *) ac_try_echo=$ac_try;;
  3653. esac
  3654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3655. $as_echo "$ac_try_echo"; } >&5
  3656. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3657. ac_status=$?
  3658. if test -s conftest.err; then
  3659. sed '10a\
  3660. ... rest of stderr output deleted ...
  3661. 10q' conftest.err >conftest.er1
  3662. cat conftest.er1 >&5
  3663. rm -f conftest.er1 conftest.err
  3664. fi
  3665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3666. test $ac_status = 0; }
  3667. done
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3669. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3670. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3674. /* end confdefs.h. */
  3675. int
  3676. main ()
  3677. {
  3678. #ifndef __GNUC__
  3679. choke me
  3680. #endif
  3681. ;
  3682. return 0;
  3683. }
  3684. _ACEOF
  3685. if ac_fn_cxx_try_compile "$LINENO"; then :
  3686. ac_compiler_gnu=yes
  3687. else
  3688. ac_compiler_gnu=no
  3689. fi
  3690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3691. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3692. fi
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3694. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3695. if test $ac_compiler_gnu = yes; then
  3696. GXX=yes
  3697. else
  3698. GXX=
  3699. fi
  3700. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3701. ac_save_CXXFLAGS=$CXXFLAGS
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3703. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3704. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3708. ac_cxx_werror_flag=yes
  3709. ac_cv_prog_cxx_g=no
  3710. CXXFLAGS="-g"
  3711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3712. /* end confdefs.h. */
  3713. int
  3714. main ()
  3715. {
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. if ac_fn_cxx_try_compile "$LINENO"; then :
  3721. ac_cv_prog_cxx_g=yes
  3722. else
  3723. CXXFLAGS=""
  3724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3725. /* end confdefs.h. */
  3726. int
  3727. main ()
  3728. {
  3729. ;
  3730. return 0;
  3731. }
  3732. _ACEOF
  3733. if ac_fn_cxx_try_compile "$LINENO"; then :
  3734. else
  3735. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3736. CXXFLAGS="-g"
  3737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3738. /* end confdefs.h. */
  3739. int
  3740. main ()
  3741. {
  3742. ;
  3743. return 0;
  3744. }
  3745. _ACEOF
  3746. if ac_fn_cxx_try_compile "$LINENO"; then :
  3747. ac_cv_prog_cxx_g=yes
  3748. fi
  3749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3750. fi
  3751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3752. fi
  3753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3754. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3755. fi
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3757. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3758. if test "$ac_test_CXXFLAGS" = set; then
  3759. CXXFLAGS=$ac_save_CXXFLAGS
  3760. elif test $ac_cv_prog_cxx_g = yes; then
  3761. if test "$GXX" = yes; then
  3762. CXXFLAGS="-g -O2"
  3763. else
  3764. CXXFLAGS="-g"
  3765. fi
  3766. else
  3767. if test "$GXX" = yes; then
  3768. CXXFLAGS="-O2"
  3769. else
  3770. CXXFLAGS=
  3771. fi
  3772. fi
  3773. ac_ext=c
  3774. ac_cpp='$CPP $CPPFLAGS'
  3775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3778. depcc="$CXX" am_compiler_list=
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3780. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3781. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3785. # We make a subdir and do the tests there. Otherwise we can end up
  3786. # making bogus files that we don't know about and never remove. For
  3787. # instance it was reported that on HP-UX the gcc test will end up
  3788. # making a dummy file named `D' -- because `-MD' means `put the output
  3789. # in D'.
  3790. mkdir conftest.dir
  3791. # Copy depcomp to subdir because otherwise we won't find it if we're
  3792. # using a relative directory.
  3793. cp "$am_depcomp" conftest.dir
  3794. cd conftest.dir
  3795. # We will build objects and dependencies in a subdirectory because
  3796. # it helps to detect inapplicable dependency modes. For instance
  3797. # both Tru64's cc and ICC support -MD to output dependencies as a
  3798. # side effect of compilation, but ICC will put the dependencies in
  3799. # the current directory while Tru64 will put them in the object
  3800. # directory.
  3801. mkdir sub
  3802. am_cv_CXX_dependencies_compiler_type=none
  3803. if test "$am_compiler_list" = ""; then
  3804. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3805. fi
  3806. am__universal=false
  3807. case " $depcc " in #(
  3808. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3809. esac
  3810. for depmode in $am_compiler_list; do
  3811. # Setup a source with many dependencies, because some compilers
  3812. # like to wrap large dependency lists on column 80 (with \), and
  3813. # we should not choose a depcomp mode which is confused by this.
  3814. #
  3815. # We need to recreate these files for each test, as the compiler may
  3816. # overwrite some of them when testing with obscure command lines.
  3817. # This happens at least with the AIX C compiler.
  3818. : > sub/conftest.c
  3819. for i in 1 2 3 4 5 6; do
  3820. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3821. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3822. # Solaris 8's {/usr,}/bin/sh.
  3823. touch sub/conftst$i.h
  3824. done
  3825. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3826. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3827. # mode. It turns out that the SunPro C++ compiler does not properly
  3828. # handle `-M -o', and we need to detect this. Also, some Intel
  3829. # versions had trouble with output in subdirs
  3830. am__obj=sub/conftest.${OBJEXT-o}
  3831. am__minus_obj="-o $am__obj"
  3832. case $depmode in
  3833. gcc)
  3834. # This depmode causes a compiler race in universal mode.
  3835. test "$am__universal" = false || continue
  3836. ;;
  3837. nosideeffect)
  3838. # after this tag, mechanisms are not by side-effect, so they'll
  3839. # only be used when explicitly requested
  3840. if test "x$enable_dependency_tracking" = xyes; then
  3841. continue
  3842. else
  3843. break
  3844. fi
  3845. ;;
  3846. msvisualcpp | msvcmsys)
  3847. # This compiler won't grok `-c -o', but also, the minuso test has
  3848. # not run yet. These depmodes are late enough in the game, and
  3849. # so weak that their functioning should not be impacted.
  3850. am__obj=conftest.${OBJEXT-o}
  3851. am__minus_obj=
  3852. ;;
  3853. none) break ;;
  3854. esac
  3855. if depmode=$depmode \
  3856. source=sub/conftest.c object=$am__obj \
  3857. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3858. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3859. >/dev/null 2>conftest.err &&
  3860. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3861. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3862. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3863. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3864. # icc doesn't choke on unknown options, it will just issue warnings
  3865. # or remarks (even with -Werror). So we grep stderr for any message
  3866. # that says an option was ignored or not supported.
  3867. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3868. # icc: Command line warning: ignoring option '-M'; no argument required
  3869. # The diagnosis changed in icc 8.0:
  3870. # icc: Command line remark: option '-MP' not supported
  3871. if (grep 'ignoring option' conftest.err ||
  3872. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3873. am_cv_CXX_dependencies_compiler_type=$depmode
  3874. break
  3875. fi
  3876. fi
  3877. done
  3878. cd ..
  3879. rm -rf conftest.dir
  3880. else
  3881. am_cv_CXX_dependencies_compiler_type=none
  3882. fi
  3883. fi
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3885. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3886. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3887. if
  3888. test "x$enable_dependency_tracking" != xno \
  3889. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3890. am__fastdepCXX_TRUE=
  3891. am__fastdepCXX_FALSE='#'
  3892. else
  3893. am__fastdepCXX_TRUE='#'
  3894. am__fastdepCXX_FALSE=
  3895. fi
  3896. ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
  3897. # Default to --enable-multilib
  3898. # Check whether --enable-multilib was given.
  3899. if test "${enable_multilib+set}" = set; then :
  3900. enableval=$enable_multilib; case "$enableval" in
  3901. yes) multilib=yes ;;
  3902. no) multilib=no ;;
  3903. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3904. esac
  3905. else
  3906. multilib=yes
  3907. fi
  3908. # We may get other options which we leave undocumented:
  3909. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3910. # See config-ml.in if you want the gory details.
  3911. if test "$srcdir" = "."; then
  3912. if test "$with_target_subdir" != "."; then
  3913. multi_basedir="$srcdir/$with_multisrctop../.."
  3914. else
  3915. multi_basedir="$srcdir/$with_multisrctop.."
  3916. fi
  3917. else
  3918. multi_basedir="$srcdir/.."
  3919. fi
  3920. # Even if the default multilib is not a cross compilation,
  3921. # it may be that some of the other multilibs are.
  3922. if test $cross_compiling = no && test $multilib = yes \
  3923. && test "x${with_multisubdir}" != x ; then
  3924. cross_compiling=maybe
  3925. fi
  3926. ac_config_commands="$ac_config_commands default-1"
  3927. subdirs="$subdirs plugin"
  3928. ac_ext=c
  3929. ac_cpp='$CPP $CPPFLAGS'
  3930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3934. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3935. # On Suns, sometimes $CPP names a directory.
  3936. if test -n "$CPP" && test -d "$CPP"; then
  3937. CPP=
  3938. fi
  3939. if test -z "$CPP"; then
  3940. if test "${ac_cv_prog_CPP+set}" = set; then :
  3941. $as_echo_n "(cached) " >&6
  3942. else
  3943. # Double quotes because CPP needs to be expanded
  3944. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3945. do
  3946. ac_preproc_ok=false
  3947. for ac_c_preproc_warn_flag in '' yes
  3948. do
  3949. # Use a header file that comes with gcc, so configuring glibc
  3950. # with a fresh cross-compiler works.
  3951. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3952. # <limits.h> exists even on freestanding compilers.
  3953. # On the NeXT, cc -E runs the code through the compiler's parser,
  3954. # not just through cpp. "Syntax error" is here to catch this case.
  3955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3956. /* end confdefs.h. */
  3957. #ifdef __STDC__
  3958. # include <limits.h>
  3959. #else
  3960. # include <assert.h>
  3961. #endif
  3962. Syntax error
  3963. _ACEOF
  3964. if ac_fn_c_try_cpp "$LINENO"; then :
  3965. else
  3966. # Broken: fails on valid input.
  3967. continue
  3968. fi
  3969. rm -f conftest.err conftest.$ac_ext
  3970. # OK, works on sane cases. Now check whether nonexistent headers
  3971. # can be detected and how.
  3972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3973. /* end confdefs.h. */
  3974. #include <ac_nonexistent.h>
  3975. _ACEOF
  3976. if ac_fn_c_try_cpp "$LINENO"; then :
  3977. # Broken: success on invalid input.
  3978. continue
  3979. else
  3980. # Passes both tests.
  3981. ac_preproc_ok=:
  3982. break
  3983. fi
  3984. rm -f conftest.err conftest.$ac_ext
  3985. done
  3986. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3987. rm -f conftest.err conftest.$ac_ext
  3988. if $ac_preproc_ok; then :
  3989. break
  3990. fi
  3991. done
  3992. ac_cv_prog_CPP=$CPP
  3993. fi
  3994. CPP=$ac_cv_prog_CPP
  3995. else
  3996. ac_cv_prog_CPP=$CPP
  3997. fi
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3999. $as_echo "$CPP" >&6; }
  4000. ac_preproc_ok=false
  4001. for ac_c_preproc_warn_flag in '' yes
  4002. do
  4003. # Use a header file that comes with gcc, so configuring glibc
  4004. # with a fresh cross-compiler works.
  4005. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4006. # <limits.h> exists even on freestanding compilers.
  4007. # On the NeXT, cc -E runs the code through the compiler's parser,
  4008. # not just through cpp. "Syntax error" is here to catch this case.
  4009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4010. /* end confdefs.h. */
  4011. #ifdef __STDC__
  4012. # include <limits.h>
  4013. #else
  4014. # include <assert.h>
  4015. #endif
  4016. Syntax error
  4017. _ACEOF
  4018. if ac_fn_c_try_cpp "$LINENO"; then :
  4019. else
  4020. # Broken: fails on valid input.
  4021. continue
  4022. fi
  4023. rm -f conftest.err conftest.$ac_ext
  4024. # OK, works on sane cases. Now check whether nonexistent headers
  4025. # can be detected and how.
  4026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4027. /* end confdefs.h. */
  4028. #include <ac_nonexistent.h>
  4029. _ACEOF
  4030. if ac_fn_c_try_cpp "$LINENO"; then :
  4031. # Broken: success on invalid input.
  4032. continue
  4033. else
  4034. # Passes both tests.
  4035. ac_preproc_ok=:
  4036. break
  4037. fi
  4038. rm -f conftest.err conftest.$ac_ext
  4039. done
  4040. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4041. rm -f conftest.err conftest.$ac_ext
  4042. if $ac_preproc_ok; then :
  4043. else
  4044. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4045. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4046. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4047. See \`config.log' for more details." "$LINENO" 5; }
  4048. fi
  4049. ac_ext=c
  4050. ac_cpp='$CPP $CPPFLAGS'
  4051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4055. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4056. if test "${ac_cv_path_GREP+set}" = set; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. if test -z "$GREP"; then
  4060. ac_path_GREP_found=false
  4061. # Loop through the user's path and test for each of PROGNAME-LIST
  4062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4063. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4064. do
  4065. IFS=$as_save_IFS
  4066. test -z "$as_dir" && as_dir=.
  4067. for ac_prog in grep ggrep; do
  4068. for ac_exec_ext in '' $ac_executable_extensions; do
  4069. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4070. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4071. # Check for GNU ac_path_GREP and select it if it is found.
  4072. # Check for GNU $ac_path_GREP
  4073. case `"$ac_path_GREP" --version 2>&1` in
  4074. *GNU*)
  4075. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4076. *)
  4077. ac_count=0
  4078. $as_echo_n 0123456789 >"conftest.in"
  4079. while :
  4080. do
  4081. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4082. mv "conftest.tmp" "conftest.in"
  4083. cp "conftest.in" "conftest.nl"
  4084. $as_echo 'GREP' >> "conftest.nl"
  4085. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4086. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4087. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4088. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4089. # Best one so far, save it but keep looking for a better one
  4090. ac_cv_path_GREP="$ac_path_GREP"
  4091. ac_path_GREP_max=$ac_count
  4092. fi
  4093. # 10*(2^10) chars as input seems more than enough
  4094. test $ac_count -gt 10 && break
  4095. done
  4096. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4097. esac
  4098. $ac_path_GREP_found && break 3
  4099. done
  4100. done
  4101. done
  4102. IFS=$as_save_IFS
  4103. if test -z "$ac_cv_path_GREP"; then
  4104. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4105. fi
  4106. else
  4107. ac_cv_path_GREP=$GREP
  4108. fi
  4109. fi
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4111. $as_echo "$ac_cv_path_GREP" >&6; }
  4112. GREP="$ac_cv_path_GREP"
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4114. $as_echo_n "checking for egrep... " >&6; }
  4115. if test "${ac_cv_path_EGREP+set}" = set; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4119. then ac_cv_path_EGREP="$GREP -E"
  4120. else
  4121. if test -z "$EGREP"; then
  4122. ac_path_EGREP_found=false
  4123. # Loop through the user's path and test for each of PROGNAME-LIST
  4124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4125. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4126. do
  4127. IFS=$as_save_IFS
  4128. test -z "$as_dir" && as_dir=.
  4129. for ac_prog in egrep; do
  4130. for ac_exec_ext in '' $ac_executable_extensions; do
  4131. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4132. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4133. # Check for GNU ac_path_EGREP and select it if it is found.
  4134. # Check for GNU $ac_path_EGREP
  4135. case `"$ac_path_EGREP" --version 2>&1` in
  4136. *GNU*)
  4137. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4138. *)
  4139. ac_count=0
  4140. $as_echo_n 0123456789 >"conftest.in"
  4141. while :
  4142. do
  4143. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4144. mv "conftest.tmp" "conftest.in"
  4145. cp "conftest.in" "conftest.nl"
  4146. $as_echo 'EGREP' >> "conftest.nl"
  4147. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4148. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4149. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4150. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4151. # Best one so far, save it but keep looking for a better one
  4152. ac_cv_path_EGREP="$ac_path_EGREP"
  4153. ac_path_EGREP_max=$ac_count
  4154. fi
  4155. # 10*(2^10) chars as input seems more than enough
  4156. test $ac_count -gt 10 && break
  4157. done
  4158. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4159. esac
  4160. $ac_path_EGREP_found && break 3
  4161. done
  4162. done
  4163. done
  4164. IFS=$as_save_IFS
  4165. if test -z "$ac_cv_path_EGREP"; then
  4166. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4167. fi
  4168. else
  4169. ac_cv_path_EGREP=$EGREP
  4170. fi
  4171. fi
  4172. fi
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4174. $as_echo "$ac_cv_path_EGREP" >&6; }
  4175. EGREP="$ac_cv_path_EGREP"
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4177. $as_echo_n "checking for ANSI C header files... " >&6; }
  4178. if test "${ac_cv_header_stdc+set}" = set; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4182. /* end confdefs.h. */
  4183. #include <stdlib.h>
  4184. #include <stdarg.h>
  4185. #include <string.h>
  4186. #include <float.h>
  4187. int
  4188. main ()
  4189. {
  4190. ;
  4191. return 0;
  4192. }
  4193. _ACEOF
  4194. if ac_fn_c_try_compile "$LINENO"; then :
  4195. ac_cv_header_stdc=yes
  4196. else
  4197. ac_cv_header_stdc=no
  4198. fi
  4199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4200. if test $ac_cv_header_stdc = yes; then
  4201. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4203. /* end confdefs.h. */
  4204. #include <string.h>
  4205. _ACEOF
  4206. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4207. $EGREP "memchr" >/dev/null 2>&1; then :
  4208. else
  4209. ac_cv_header_stdc=no
  4210. fi
  4211. rm -f conftest*
  4212. fi
  4213. if test $ac_cv_header_stdc = yes; then
  4214. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4216. /* end confdefs.h. */
  4217. #include <stdlib.h>
  4218. _ACEOF
  4219. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4220. $EGREP "free" >/dev/null 2>&1; then :
  4221. else
  4222. ac_cv_header_stdc=no
  4223. fi
  4224. rm -f conftest*
  4225. fi
  4226. if test $ac_cv_header_stdc = yes; then
  4227. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4228. if test "$cross_compiling" = yes; then :
  4229. :
  4230. else
  4231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4232. /* end confdefs.h. */
  4233. #include <ctype.h>
  4234. #include <stdlib.h>
  4235. #if ((' ' & 0x0FF) == 0x020)
  4236. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4237. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4238. #else
  4239. # define ISLOWER(c) \
  4240. (('a' <= (c) && (c) <= 'i') \
  4241. || ('j' <= (c) && (c) <= 'r') \
  4242. || ('s' <= (c) && (c) <= 'z'))
  4243. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4244. #endif
  4245. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4246. int
  4247. main ()
  4248. {
  4249. int i;
  4250. for (i = 0; i < 256; i++)
  4251. if (XOR (islower (i), ISLOWER (i))
  4252. || toupper (i) != TOUPPER (i))
  4253. return 2;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. if ac_fn_c_try_run "$LINENO"; then :
  4258. else
  4259. ac_cv_header_stdc=no
  4260. fi
  4261. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4262. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4263. fi
  4264. fi
  4265. fi
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4267. $as_echo "$ac_cv_header_stdc" >&6; }
  4268. if test $ac_cv_header_stdc = yes; then
  4269. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4270. fi
  4271. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4272. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4273. inttypes.h stdint.h unistd.h
  4274. do :
  4275. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4276. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4277. "
  4278. eval as_val=\$$as_ac_Header
  4279. if test "x$as_val" = x""yes; then :
  4280. cat >>confdefs.h <<_ACEOF
  4281. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4282. _ACEOF
  4283. fi
  4284. done
  4285. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4286. # for constant arguments. Useless!
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  4288. $as_echo_n "checking for working alloca.h... " >&6; }
  4289. if test "${ac_cv_working_alloca_h+set}" = set; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. #include <alloca.h>
  4295. int
  4296. main ()
  4297. {
  4298. char *p = (char *) alloca (2 * sizeof (int));
  4299. if (p) return 0;
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. if ac_fn_c_try_link "$LINENO"; then :
  4305. ac_cv_working_alloca_h=yes
  4306. else
  4307. ac_cv_working_alloca_h=no
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext \
  4310. conftest$ac_exeext conftest.$ac_ext
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  4313. $as_echo "$ac_cv_working_alloca_h" >&6; }
  4314. if test $ac_cv_working_alloca_h = yes; then
  4315. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  4316. fi
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  4318. $as_echo_n "checking for alloca... " >&6; }
  4319. if test "${ac_cv_func_alloca_works+set}" = set; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4323. /* end confdefs.h. */
  4324. #ifdef __GNUC__
  4325. # define alloca __builtin_alloca
  4326. #else
  4327. # ifdef _MSC_VER
  4328. # include <malloc.h>
  4329. # define alloca _alloca
  4330. # else
  4331. # ifdef HAVE_ALLOCA_H
  4332. # include <alloca.h>
  4333. # else
  4334. # ifdef _AIX
  4335. #pragma alloca
  4336. # else
  4337. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4338. char *alloca ();
  4339. # endif
  4340. # endif
  4341. # endif
  4342. # endif
  4343. #endif
  4344. int
  4345. main ()
  4346. {
  4347. char *p = (char *) alloca (1);
  4348. if (p) return 0;
  4349. ;
  4350. return 0;
  4351. }
  4352. _ACEOF
  4353. if ac_fn_c_try_link "$LINENO"; then :
  4354. ac_cv_func_alloca_works=yes
  4355. else
  4356. ac_cv_func_alloca_works=no
  4357. fi
  4358. rm -f core conftest.err conftest.$ac_objext \
  4359. conftest$ac_exeext conftest.$ac_ext
  4360. fi
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  4362. $as_echo "$ac_cv_func_alloca_works" >&6; }
  4363. if test $ac_cv_func_alloca_works = yes; then
  4364. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  4365. else
  4366. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4367. # that cause trouble. Some versions do not even contain alloca or
  4368. # contain a buggy version. If you still want to use their alloca,
  4369. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4370. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  4371. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  4373. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  4374. if test "${ac_cv_os_cray+set}" = set; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4378. /* end confdefs.h. */
  4379. #if defined CRAY && ! defined CRAY2
  4380. webecray
  4381. #else
  4382. wenotbecray
  4383. #endif
  4384. _ACEOF
  4385. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4386. $EGREP "webecray" >/dev/null 2>&1; then :
  4387. ac_cv_os_cray=yes
  4388. else
  4389. ac_cv_os_cray=no
  4390. fi
  4391. rm -f conftest*
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  4394. $as_echo "$ac_cv_os_cray" >&6; }
  4395. if test $ac_cv_os_cray = yes; then
  4396. for ac_func in _getb67 GETB67 getb67; do
  4397. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4398. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4399. eval as_val=\$$as_ac_var
  4400. if test "x$as_val" = x""yes; then :
  4401. cat >>confdefs.h <<_ACEOF
  4402. #define CRAY_STACKSEG_END $ac_func
  4403. _ACEOF
  4404. break
  4405. fi
  4406. done
  4407. fi
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  4409. $as_echo_n "checking stack direction for C alloca... " >&6; }
  4410. if test "${ac_cv_c_stack_direction+set}" = set; then :
  4411. $as_echo_n "(cached) " >&6
  4412. else
  4413. if test "$cross_compiling" = yes; then :
  4414. ac_cv_c_stack_direction=0
  4415. else
  4416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4417. /* end confdefs.h. */
  4418. $ac_includes_default
  4419. int
  4420. find_stack_direction ()
  4421. {
  4422. static char *addr = 0;
  4423. auto char dummy;
  4424. if (addr == 0)
  4425. {
  4426. addr = &dummy;
  4427. return find_stack_direction ();
  4428. }
  4429. else
  4430. return (&dummy > addr) ? 1 : -1;
  4431. }
  4432. int
  4433. main ()
  4434. {
  4435. return find_stack_direction () < 0;
  4436. }
  4437. _ACEOF
  4438. if ac_fn_c_try_run "$LINENO"; then :
  4439. ac_cv_c_stack_direction=1
  4440. else
  4441. ac_cv_c_stack_direction=-1
  4442. fi
  4443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4445. fi
  4446. fi
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  4448. $as_echo "$ac_cv_c_stack_direction" >&6; }
  4449. cat >>confdefs.h <<_ACEOF
  4450. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4451. _ACEOF
  4452. fi
  4453. for ac_header in mm_malloc.h
  4454. do :
  4455. ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
  4456. if test "x$ac_cv_header_mm_malloc_h" = x""yes; then :
  4457. cat >>confdefs.h <<_ACEOF
  4458. #define HAVE_MM_MALLOC_H 1
  4459. _ACEOF
  4460. else
  4461. as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
  4462. fi
  4463. done
  4464. for ac_func in __secure_getenv secure_getenv
  4465. do :
  4466. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4467. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4468. eval as_val=\$$as_ac_var
  4469. if test "x$as_val" = x""yes; then :
  4470. cat >>confdefs.h <<_ACEOF
  4471. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4472. _ACEOF
  4473. fi
  4474. done
  4475. # Get target configure.
  4476. . ${srcdir}/configure.tgt
  4477. if test -n "$UNSUPPORTED"; then
  4478. as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5
  4479. fi
  4480. if test "${multilib}" = "yes"; then
  4481. multilib_arg="--enable-multilib"
  4482. else
  4483. multilib_arg=
  4484. fi
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  4486. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  4487. # Check whether --enable-version-specific-runtime-libs was given.
  4488. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  4489. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  4490. yes) enable_version_specific_runtime_libs=yes ;;
  4491. no) enable_version_specific_runtime_libs=no ;;
  4492. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  4493. esac
  4494. else
  4495. enable_version_specific_runtime_libs=no
  4496. fi
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  4498. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  4499. # Make sure liboffloadmic is enabled
  4500. case "$enable_liboffloadmic" in
  4501. host | target)
  4502. ;;
  4503. *)
  4504. as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
  4505. esac
  4506. if test x"$enable_liboffloadmic" = xhost; then
  4507. LIBOFFLOADMIC_HOST_TRUE=
  4508. LIBOFFLOADMIC_HOST_FALSE='#'
  4509. else
  4510. LIBOFFLOADMIC_HOST_TRUE='#'
  4511. LIBOFFLOADMIC_HOST_FALSE=
  4512. fi
  4513. # Calculate toolexeclibdir.
  4514. # Also toolexecdir, though it's only used in toolexeclibdir.
  4515. case ${enable_version_specific_runtime_libs} in
  4516. yes)
  4517. # Need the gcc compiler version to know where to install libraries
  4518. # and header files if --enable-version-specific-runtime-libs option
  4519. # is selected.
  4520. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4521. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4522. ;;
  4523. no)
  4524. if test -n "$with_cross_host" &&
  4525. test x"$with_cross_host" != x"no"; then
  4526. # Install a library built with a cross compiler in tooldir, not libdir.
  4527. toolexecdir='$(exec_prefix)/$(target_alias)'
  4528. toolexeclibdir='$(toolexecdir)/lib'
  4529. else
  4530. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4531. toolexeclibdir='$(libdir)'
  4532. fi
  4533. multi_os_directory=`$CC -print-multi-os-directory`
  4534. case $multi_os_directory in
  4535. .) ;; # Avoid trailing /.
  4536. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4537. esac
  4538. ;;
  4539. esac
  4540. enable_dlopen=yes
  4541. case `pwd` in
  4542. *\ * | *\ *)
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4544. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4545. esac
  4546. macro_version='2.2.7a'
  4547. macro_revision='1.3134'
  4548. ltmain="$ac_aux_dir/ltmain.sh"
  4549. # Backslashify metacharacters that are still active within
  4550. # double-quoted strings.
  4551. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4552. # Same as above, but do not quote variable references.
  4553. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4554. # Sed substitution to delay expansion of an escaped shell variable in a
  4555. # double_quote_subst'ed string.
  4556. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4557. # Sed substitution to delay expansion of an escaped single quote.
  4558. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4559. # Sed substitution to avoid accidental globbing in evaled expressions
  4560. no_glob_subst='s/\*/\\\*/g'
  4561. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4562. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4563. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4565. $as_echo_n "checking how to print strings... " >&6; }
  4566. # Test print first, because it will be a builtin if present.
  4567. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4568. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4569. ECHO='print -r --'
  4570. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4571. ECHO='printf %s\n'
  4572. else
  4573. # Use this function as a fallback that always works.
  4574. func_fallback_echo ()
  4575. {
  4576. eval 'cat <<_LTECHO_EOF
  4577. $1
  4578. _LTECHO_EOF'
  4579. }
  4580. ECHO='func_fallback_echo'
  4581. fi
  4582. # func_echo_all arg...
  4583. # Invoke $ECHO with all args, space-separated.
  4584. func_echo_all ()
  4585. {
  4586. $ECHO ""
  4587. }
  4588. case "$ECHO" in
  4589. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4590. $as_echo "printf" >&6; } ;;
  4591. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4592. $as_echo "print -r" >&6; } ;;
  4593. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4594. $as_echo "cat" >&6; } ;;
  4595. esac
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4597. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4598. if test "${ac_cv_path_SED+set}" = set; then :
  4599. $as_echo_n "(cached) " >&6
  4600. else
  4601. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4602. for ac_i in 1 2 3 4 5 6 7; do
  4603. ac_script="$ac_script$as_nl$ac_script"
  4604. done
  4605. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4606. { ac_script=; unset ac_script;}
  4607. if test -z "$SED"; then
  4608. ac_path_SED_found=false
  4609. # Loop through the user's path and test for each of PROGNAME-LIST
  4610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4611. for as_dir in $PATH
  4612. do
  4613. IFS=$as_save_IFS
  4614. test -z "$as_dir" && as_dir=.
  4615. for ac_prog in sed gsed; do
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4618. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4619. # Check for GNU ac_path_SED and select it if it is found.
  4620. # Check for GNU $ac_path_SED
  4621. case `"$ac_path_SED" --version 2>&1` in
  4622. *GNU*)
  4623. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4624. *)
  4625. ac_count=0
  4626. $as_echo_n 0123456789 >"conftest.in"
  4627. while :
  4628. do
  4629. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4630. mv "conftest.tmp" "conftest.in"
  4631. cp "conftest.in" "conftest.nl"
  4632. $as_echo '' >> "conftest.nl"
  4633. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4634. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4635. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4636. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4637. # Best one so far, save it but keep looking for a better one
  4638. ac_cv_path_SED="$ac_path_SED"
  4639. ac_path_SED_max=$ac_count
  4640. fi
  4641. # 10*(2^10) chars as input seems more than enough
  4642. test $ac_count -gt 10 && break
  4643. done
  4644. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4645. esac
  4646. $ac_path_SED_found && break 3
  4647. done
  4648. done
  4649. done
  4650. IFS=$as_save_IFS
  4651. if test -z "$ac_cv_path_SED"; then
  4652. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4653. fi
  4654. else
  4655. ac_cv_path_SED=$SED
  4656. fi
  4657. fi
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4659. $as_echo "$ac_cv_path_SED" >&6; }
  4660. SED="$ac_cv_path_SED"
  4661. rm -f conftest.sed
  4662. test -z "$SED" && SED=sed
  4663. Xsed="$SED -e 1s/^X//"
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4665. $as_echo_n "checking for fgrep... " >&6; }
  4666. if test "${ac_cv_path_FGREP+set}" = set; then :
  4667. $as_echo_n "(cached) " >&6
  4668. else
  4669. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4670. then ac_cv_path_FGREP="$GREP -F"
  4671. else
  4672. if test -z "$FGREP"; then
  4673. ac_path_FGREP_found=false
  4674. # Loop through the user's path and test for each of PROGNAME-LIST
  4675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4676. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4677. do
  4678. IFS=$as_save_IFS
  4679. test -z "$as_dir" && as_dir=.
  4680. for ac_prog in fgrep; do
  4681. for ac_exec_ext in '' $ac_executable_extensions; do
  4682. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4683. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4684. # Check for GNU ac_path_FGREP and select it if it is found.
  4685. # Check for GNU $ac_path_FGREP
  4686. case `"$ac_path_FGREP" --version 2>&1` in
  4687. *GNU*)
  4688. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4689. *)
  4690. ac_count=0
  4691. $as_echo_n 0123456789 >"conftest.in"
  4692. while :
  4693. do
  4694. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4695. mv "conftest.tmp" "conftest.in"
  4696. cp "conftest.in" "conftest.nl"
  4697. $as_echo 'FGREP' >> "conftest.nl"
  4698. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4699. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4700. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4701. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4702. # Best one so far, save it but keep looking for a better one
  4703. ac_cv_path_FGREP="$ac_path_FGREP"
  4704. ac_path_FGREP_max=$ac_count
  4705. fi
  4706. # 10*(2^10) chars as input seems more than enough
  4707. test $ac_count -gt 10 && break
  4708. done
  4709. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4710. esac
  4711. $ac_path_FGREP_found && break 3
  4712. done
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. if test -z "$ac_cv_path_FGREP"; then
  4717. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4718. fi
  4719. else
  4720. ac_cv_path_FGREP=$FGREP
  4721. fi
  4722. fi
  4723. fi
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4725. $as_echo "$ac_cv_path_FGREP" >&6; }
  4726. FGREP="$ac_cv_path_FGREP"
  4727. test -z "$GREP" && GREP=grep
  4728. # Check whether --with-gnu-ld was given.
  4729. if test "${with_gnu_ld+set}" = set; then :
  4730. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4731. else
  4732. with_gnu_ld=no
  4733. fi
  4734. ac_prog=ld
  4735. if test "$GCC" = yes; then
  4736. # Check if gcc -print-prog-name=ld gives a path.
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4738. $as_echo_n "checking for ld used by $CC... " >&6; }
  4739. case $host in
  4740. *-*-mingw*)
  4741. # gcc leaves a trailing carriage return which upsets mingw
  4742. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4743. *)
  4744. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4745. esac
  4746. case $ac_prog in
  4747. # Accept absolute paths.
  4748. [\\/]* | ?:[\\/]*)
  4749. re_direlt='/[^/][^/]*/\.\./'
  4750. # Canonicalize the pathname of ld
  4751. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4752. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4753. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4754. done
  4755. test -z "$LD" && LD="$ac_prog"
  4756. ;;
  4757. "")
  4758. # If it fails, then pretend we aren't using GCC.
  4759. ac_prog=ld
  4760. ;;
  4761. *)
  4762. # If it is relative, then search for the first ld in PATH.
  4763. with_gnu_ld=unknown
  4764. ;;
  4765. esac
  4766. elif test "$with_gnu_ld" = yes; then
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4768. $as_echo_n "checking for GNU ld... " >&6; }
  4769. else
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4771. $as_echo_n "checking for non-GNU ld... " >&6; }
  4772. fi
  4773. if test "${lt_cv_path_LD+set}" = set; then :
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. if test -z "$LD"; then
  4777. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4778. for ac_dir in $PATH; do
  4779. IFS="$lt_save_ifs"
  4780. test -z "$ac_dir" && ac_dir=.
  4781. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4782. lt_cv_path_LD="$ac_dir/$ac_prog"
  4783. # Check to see if the program is GNU ld. I'd rather use --version,
  4784. # but apparently some variants of GNU ld only accept -v.
  4785. # Break only if it was the GNU/non-GNU ld that we prefer.
  4786. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4787. *GNU* | *'with BFD'*)
  4788. test "$with_gnu_ld" != no && break
  4789. ;;
  4790. *)
  4791. test "$with_gnu_ld" != yes && break
  4792. ;;
  4793. esac
  4794. fi
  4795. done
  4796. IFS="$lt_save_ifs"
  4797. else
  4798. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4799. fi
  4800. fi
  4801. LD="$lt_cv_path_LD"
  4802. if test -n "$LD"; then
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4804. $as_echo "$LD" >&6; }
  4805. else
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4807. $as_echo "no" >&6; }
  4808. fi
  4809. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4811. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4812. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4816. case `$LD -v 2>&1 </dev/null` in
  4817. *GNU* | *'with BFD'*)
  4818. lt_cv_prog_gnu_ld=yes
  4819. ;;
  4820. *)
  4821. lt_cv_prog_gnu_ld=no
  4822. ;;
  4823. esac
  4824. fi
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4826. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4827. with_gnu_ld=$lt_cv_prog_gnu_ld
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4829. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4830. if test "${lt_cv_path_NM+set}" = set; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. if test -n "$NM"; then
  4834. # Let the user override the test.
  4835. lt_cv_path_NM="$NM"
  4836. else
  4837. lt_nm_to_check="${ac_tool_prefix}nm"
  4838. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4839. lt_nm_to_check="$lt_nm_to_check nm"
  4840. fi
  4841. for lt_tmp_nm in $lt_nm_to_check; do
  4842. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4843. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4844. IFS="$lt_save_ifs"
  4845. test -z "$ac_dir" && ac_dir=.
  4846. tmp_nm="$ac_dir/$lt_tmp_nm"
  4847. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4848. # Check to see if the nm accepts a BSD-compat flag.
  4849. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4850. # nm: unknown option "B" ignored
  4851. # Tru64's nm complains that /dev/null is an invalid object file
  4852. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4853. */dev/null* | *'Invalid file or object type'*)
  4854. lt_cv_path_NM="$tmp_nm -B"
  4855. break
  4856. ;;
  4857. *)
  4858. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4859. */dev/null*)
  4860. lt_cv_path_NM="$tmp_nm -p"
  4861. break
  4862. ;;
  4863. *)
  4864. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4865. continue # so that we can try to find one that supports BSD flags
  4866. ;;
  4867. esac
  4868. ;;
  4869. esac
  4870. fi
  4871. done
  4872. IFS="$lt_save_ifs"
  4873. done
  4874. : ${lt_cv_path_NM=no}
  4875. fi
  4876. fi
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4878. $as_echo "$lt_cv_path_NM" >&6; }
  4879. if test "$lt_cv_path_NM" != "no"; then
  4880. NM="$lt_cv_path_NM"
  4881. else
  4882. # Didn't find any BSD compatible name lister, look for dumpbin.
  4883. if test -n "$DUMPBIN"; then :
  4884. # Let the user override the test.
  4885. else
  4886. if test -n "$ac_tool_prefix"; then
  4887. for ac_prog in dumpbin "link -dump"
  4888. do
  4889. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4890. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4892. $as_echo_n "checking for $ac_word... " >&6; }
  4893. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4894. $as_echo_n "(cached) " >&6
  4895. else
  4896. if test -n "$DUMPBIN"; then
  4897. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4898. else
  4899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4900. for as_dir in $PATH
  4901. do
  4902. IFS=$as_save_IFS
  4903. test -z "$as_dir" && as_dir=.
  4904. for ac_exec_ext in '' $ac_executable_extensions; do
  4905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4906. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4908. break 2
  4909. fi
  4910. done
  4911. done
  4912. IFS=$as_save_IFS
  4913. fi
  4914. fi
  4915. DUMPBIN=$ac_cv_prog_DUMPBIN
  4916. if test -n "$DUMPBIN"; then
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4918. $as_echo "$DUMPBIN" >&6; }
  4919. else
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4921. $as_echo "no" >&6; }
  4922. fi
  4923. test -n "$DUMPBIN" && break
  4924. done
  4925. fi
  4926. if test -z "$DUMPBIN"; then
  4927. ac_ct_DUMPBIN=$DUMPBIN
  4928. for ac_prog in dumpbin "link -dump"
  4929. do
  4930. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4931. set dummy $ac_prog; ac_word=$2
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4933. $as_echo_n "checking for $ac_word... " >&6; }
  4934. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. if test -n "$ac_ct_DUMPBIN"; then
  4938. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4939. else
  4940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4941. for as_dir in $PATH
  4942. do
  4943. IFS=$as_save_IFS
  4944. test -z "$as_dir" && as_dir=.
  4945. for ac_exec_ext in '' $ac_executable_extensions; do
  4946. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4947. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4949. break 2
  4950. fi
  4951. done
  4952. done
  4953. IFS=$as_save_IFS
  4954. fi
  4955. fi
  4956. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4957. if test -n "$ac_ct_DUMPBIN"; then
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4959. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4960. else
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4962. $as_echo "no" >&6; }
  4963. fi
  4964. test -n "$ac_ct_DUMPBIN" && break
  4965. done
  4966. if test "x$ac_ct_DUMPBIN" = x; then
  4967. DUMPBIN=":"
  4968. else
  4969. case $cross_compiling:$ac_tool_warned in
  4970. yes:)
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4972. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4973. ac_tool_warned=yes ;;
  4974. esac
  4975. DUMPBIN=$ac_ct_DUMPBIN
  4976. fi
  4977. fi
  4978. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4979. *COFF*)
  4980. DUMPBIN="$DUMPBIN -symbols"
  4981. ;;
  4982. *)
  4983. DUMPBIN=:
  4984. ;;
  4985. esac
  4986. fi
  4987. if test "$DUMPBIN" != ":"; then
  4988. NM="$DUMPBIN"
  4989. fi
  4990. fi
  4991. test -z "$NM" && NM=nm
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4993. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4994. if test "${lt_cv_nm_interface+set}" = set; then :
  4995. $as_echo_n "(cached) " >&6
  4996. else
  4997. lt_cv_nm_interface="BSD nm"
  4998. echo "int some_variable = 0;" > conftest.$ac_ext
  4999. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5000. (eval "$ac_compile" 2>conftest.err)
  5001. cat conftest.err >&5
  5002. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5003. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5004. cat conftest.err >&5
  5005. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5006. cat conftest.out >&5
  5007. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5008. lt_cv_nm_interface="MS dumpbin"
  5009. fi
  5010. rm -f conftest*
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5013. $as_echo "$lt_cv_nm_interface" >&6; }
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5015. $as_echo_n "checking whether ln -s works... " >&6; }
  5016. LN_S=$as_ln_s
  5017. if test "$LN_S" = "ln -s"; then
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5019. $as_echo "yes" >&6; }
  5020. else
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5022. $as_echo "no, using $LN_S" >&6; }
  5023. fi
  5024. # find the maximum length of command line arguments
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5026. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5027. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. i=0
  5031. teststring="ABCD"
  5032. case $build_os in
  5033. msdosdjgpp*)
  5034. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5035. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5036. # during glob expansion). Even if it were fixed, the result of this
  5037. # check would be larger than it should be.
  5038. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5039. ;;
  5040. gnu*)
  5041. # Under GNU Hurd, this test is not required because there is
  5042. # no limit to the length of command line arguments.
  5043. # Libtool will interpret -1 as no limit whatsoever
  5044. lt_cv_sys_max_cmd_len=-1;
  5045. ;;
  5046. cygwin* | mingw* | cegcc*)
  5047. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5048. # about 5 minutes as the teststring grows exponentially.
  5049. # Worse, since 9x/ME are not pre-emptively multitasking,
  5050. # you end up with a "frozen" computer, even though with patience
  5051. # the test eventually succeeds (with a max line length of 256k).
  5052. # Instead, let's just punt: use the minimum linelength reported by
  5053. # all of the supported platforms: 8192 (on NT/2K/XP).
  5054. lt_cv_sys_max_cmd_len=8192;
  5055. ;;
  5056. mint*)
  5057. # On MiNT this can take a long time and run out of memory.
  5058. lt_cv_sys_max_cmd_len=8192;
  5059. ;;
  5060. amigaos*)
  5061. # On AmigaOS with pdksh, this test takes hours, literally.
  5062. # So we just punt and use a minimum line length of 8192.
  5063. lt_cv_sys_max_cmd_len=8192;
  5064. ;;
  5065. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5066. # This has been around since 386BSD, at least. Likely further.
  5067. if test -x /sbin/sysctl; then
  5068. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5069. elif test -x /usr/sbin/sysctl; then
  5070. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5071. else
  5072. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5073. fi
  5074. # And add a safety zone
  5075. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5076. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5077. ;;
  5078. interix*)
  5079. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5080. lt_cv_sys_max_cmd_len=196608
  5081. ;;
  5082. osf*)
  5083. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5084. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5085. # nice to cause kernel panics so lets avoid the loop below.
  5086. # First set a reasonable default.
  5087. lt_cv_sys_max_cmd_len=16384
  5088. #
  5089. if test -x /sbin/sysconfig; then
  5090. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5091. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5092. esac
  5093. fi
  5094. ;;
  5095. sco3.2v5*)
  5096. lt_cv_sys_max_cmd_len=102400
  5097. ;;
  5098. sysv5* | sco5v6* | sysv4.2uw2*)
  5099. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5100. if test -n "$kargmax"; then
  5101. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5102. else
  5103. lt_cv_sys_max_cmd_len=32768
  5104. fi
  5105. ;;
  5106. *)
  5107. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5108. if test -n "$lt_cv_sys_max_cmd_len"; then
  5109. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5110. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5111. else
  5112. # Make teststring a little bigger before we do anything with it.
  5113. # a 1K string should be a reasonable start.
  5114. for i in 1 2 3 4 5 6 7 8 ; do
  5115. teststring=$teststring$teststring
  5116. done
  5117. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5118. # If test is not a shell built-in, we'll probably end up computing a
  5119. # maximum length that is only half of the actual maximum length, but
  5120. # we can't tell.
  5121. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5122. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5123. test $i != 17 # 1/2 MB should be enough
  5124. do
  5125. i=`expr $i + 1`
  5126. teststring=$teststring$teststring
  5127. done
  5128. # Only check the string length outside the loop.
  5129. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5130. teststring=
  5131. # Add a significant safety factor because C++ compilers can tack on
  5132. # massive amounts of additional arguments before passing them to the
  5133. # linker. It appears as though 1/2 is a usable value.
  5134. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5135. fi
  5136. ;;
  5137. esac
  5138. fi
  5139. if test -n $lt_cv_sys_max_cmd_len ; then
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5141. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5142. else
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5144. $as_echo "none" >&6; }
  5145. fi
  5146. max_cmd_len=$lt_cv_sys_max_cmd_len
  5147. : ${CP="cp -f"}
  5148. : ${MV="mv -f"}
  5149. : ${RM="rm -f"}
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5151. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5152. # Try some XSI features
  5153. xsi_shell=no
  5154. ( _lt_dummy="a/b/c"
  5155. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5156. = c,a/b,, \
  5157. && eval 'test $(( 1 + 1 )) -eq 2 \
  5158. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5159. && xsi_shell=yes
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5161. $as_echo "$xsi_shell" >&6; }
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5163. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5164. lt_shell_append=no
  5165. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5166. >/dev/null 2>&1 \
  5167. && lt_shell_append=yes
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5169. $as_echo "$lt_shell_append" >&6; }
  5170. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5171. lt_unset=unset
  5172. else
  5173. lt_unset=false
  5174. fi
  5175. # test EBCDIC or ASCII
  5176. case `echo X|tr X '\101'` in
  5177. A) # ASCII based system
  5178. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5179. lt_SP2NL='tr \040 \012'
  5180. lt_NL2SP='tr \015\012 \040\040'
  5181. ;;
  5182. *) # EBCDIC based system
  5183. lt_SP2NL='tr \100 \n'
  5184. lt_NL2SP='tr \r\n \100\100'
  5185. ;;
  5186. esac
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5188. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5189. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. lt_cv_ld_reload_flag='-r'
  5193. fi
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5195. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5196. reload_flag=$lt_cv_ld_reload_flag
  5197. case $reload_flag in
  5198. "" | " "*) ;;
  5199. *) reload_flag=" $reload_flag" ;;
  5200. esac
  5201. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5202. case $host_os in
  5203. darwin*)
  5204. if test "$GCC" = yes; then
  5205. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5206. else
  5207. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5208. fi
  5209. ;;
  5210. esac
  5211. if test -n "$ac_tool_prefix"; then
  5212. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5213. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5215. $as_echo_n "checking for $ac_word... " >&6; }
  5216. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. if test -n "$OBJDUMP"; then
  5220. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5221. else
  5222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5223. for as_dir in $PATH
  5224. do
  5225. IFS=$as_save_IFS
  5226. test -z "$as_dir" && as_dir=.
  5227. for ac_exec_ext in '' $ac_executable_extensions; do
  5228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5229. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5231. break 2
  5232. fi
  5233. done
  5234. done
  5235. IFS=$as_save_IFS
  5236. fi
  5237. fi
  5238. OBJDUMP=$ac_cv_prog_OBJDUMP
  5239. if test -n "$OBJDUMP"; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5241. $as_echo "$OBJDUMP" >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5244. $as_echo "no" >&6; }
  5245. fi
  5246. fi
  5247. if test -z "$ac_cv_prog_OBJDUMP"; then
  5248. ac_ct_OBJDUMP=$OBJDUMP
  5249. # Extract the first word of "objdump", so it can be a program name with args.
  5250. set dummy objdump; ac_word=$2
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5252. $as_echo_n "checking for $ac_word... " >&6; }
  5253. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5254. $as_echo_n "(cached) " >&6
  5255. else
  5256. if test -n "$ac_ct_OBJDUMP"; then
  5257. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5258. else
  5259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5260. for as_dir in $PATH
  5261. do
  5262. IFS=$as_save_IFS
  5263. test -z "$as_dir" && as_dir=.
  5264. for ac_exec_ext in '' $ac_executable_extensions; do
  5265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5266. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5268. break 2
  5269. fi
  5270. done
  5271. done
  5272. IFS=$as_save_IFS
  5273. fi
  5274. fi
  5275. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5276. if test -n "$ac_ct_OBJDUMP"; then
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5278. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5279. else
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5281. $as_echo "no" >&6; }
  5282. fi
  5283. if test "x$ac_ct_OBJDUMP" = x; then
  5284. OBJDUMP="false"
  5285. else
  5286. case $cross_compiling:$ac_tool_warned in
  5287. yes:)
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5289. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5290. ac_tool_warned=yes ;;
  5291. esac
  5292. OBJDUMP=$ac_ct_OBJDUMP
  5293. fi
  5294. else
  5295. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5296. fi
  5297. test -z "$OBJDUMP" && OBJDUMP=objdump
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5299. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5300. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5301. $as_echo_n "(cached) " >&6
  5302. else
  5303. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5304. lt_cv_file_magic_test_file=
  5305. lt_cv_deplibs_check_method='unknown'
  5306. # Need to set the preceding variable on all platforms that support
  5307. # interlibrary dependencies.
  5308. # 'none' -- dependencies not supported.
  5309. # `unknown' -- same as none, but documents that we really don't know.
  5310. # 'pass_all' -- all dependencies passed with no checks.
  5311. # 'test_compile' -- check by making test program.
  5312. # 'file_magic [[regex]]' -- check by looking for files in library path
  5313. # which responds to the $file_magic_cmd with a given extended regex.
  5314. # If you have `file' or equivalent on your system and you're not sure
  5315. # whether `pass_all' will *always* work, you probably want this one.
  5316. case $host_os in
  5317. aix[4-9]*)
  5318. lt_cv_deplibs_check_method=pass_all
  5319. ;;
  5320. beos*)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. bsdi[45]*)
  5324. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5325. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5326. lt_cv_file_magic_test_file=/shlib/libc.so
  5327. ;;
  5328. cygwin*)
  5329. # func_win32_libid is a shell function defined in ltmain.sh
  5330. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5331. lt_cv_file_magic_cmd='func_win32_libid'
  5332. ;;
  5333. mingw* | pw32*)
  5334. # Base MSYS/MinGW do not provide the 'file' command needed by
  5335. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5336. # unless we find 'file', for example because we are cross-compiling.
  5337. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5338. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5339. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5340. lt_cv_file_magic_cmd='func_win32_libid'
  5341. else
  5342. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5343. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5344. fi
  5345. ;;
  5346. cegcc*)
  5347. # use the weaker test based on 'objdump'. See mingw*.
  5348. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5349. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5350. ;;
  5351. darwin* | rhapsody*)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. freebsd* | dragonfly*)
  5355. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5356. case $host_cpu in
  5357. i*86 )
  5358. # Not sure whether the presence of OpenBSD here was a mistake.
  5359. # Let's accept both of them until this is cleared up.
  5360. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5361. lt_cv_file_magic_cmd=/usr/bin/file
  5362. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5363. ;;
  5364. esac
  5365. else
  5366. lt_cv_deplibs_check_method=pass_all
  5367. fi
  5368. ;;
  5369. gnu*)
  5370. lt_cv_deplibs_check_method=pass_all
  5371. ;;
  5372. haiku*)
  5373. lt_cv_deplibs_check_method=pass_all
  5374. ;;
  5375. hpux10.20* | hpux11*)
  5376. lt_cv_file_magic_cmd=/usr/bin/file
  5377. case $host_cpu in
  5378. ia64*)
  5379. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5380. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5381. ;;
  5382. hppa*64*)
  5383. 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]'
  5384. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5385. ;;
  5386. *)
  5387. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5388. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5389. ;;
  5390. esac
  5391. ;;
  5392. interix[3-9]*)
  5393. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5394. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5395. ;;
  5396. irix5* | irix6* | nonstopux*)
  5397. case $LD in
  5398. *-32|*"-32 ") libmagic=32-bit;;
  5399. *-n32|*"-n32 ") libmagic=N32;;
  5400. *-64|*"-64 ") libmagic=64-bit;;
  5401. *) libmagic=never-match;;
  5402. esac
  5403. lt_cv_deplibs_check_method=pass_all
  5404. ;;
  5405. # This must be Linux ELF.
  5406. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5407. lt_cv_deplibs_check_method=pass_all
  5408. ;;
  5409. netbsd*)
  5410. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5411. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5412. else
  5413. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5414. fi
  5415. ;;
  5416. newos6*)
  5417. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5418. lt_cv_file_magic_cmd=/usr/bin/file
  5419. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5420. ;;
  5421. *nto* | *qnx*)
  5422. lt_cv_deplibs_check_method=pass_all
  5423. ;;
  5424. openbsd*)
  5425. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5426. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5427. else
  5428. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5429. fi
  5430. ;;
  5431. osf3* | osf4* | osf5*)
  5432. lt_cv_deplibs_check_method=pass_all
  5433. ;;
  5434. rdos*)
  5435. lt_cv_deplibs_check_method=pass_all
  5436. ;;
  5437. solaris*)
  5438. lt_cv_deplibs_check_method=pass_all
  5439. ;;
  5440. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5441. lt_cv_deplibs_check_method=pass_all
  5442. ;;
  5443. sysv4 | sysv4.3*)
  5444. case $host_vendor in
  5445. motorola)
  5446. 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]'
  5447. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5448. ;;
  5449. ncr)
  5450. lt_cv_deplibs_check_method=pass_all
  5451. ;;
  5452. sequent)
  5453. lt_cv_file_magic_cmd='/bin/file'
  5454. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5455. ;;
  5456. sni)
  5457. lt_cv_file_magic_cmd='/bin/file'
  5458. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5459. lt_cv_file_magic_test_file=/lib/libc.so
  5460. ;;
  5461. siemens)
  5462. lt_cv_deplibs_check_method=pass_all
  5463. ;;
  5464. pc)
  5465. lt_cv_deplibs_check_method=pass_all
  5466. ;;
  5467. esac
  5468. ;;
  5469. tpf*)
  5470. lt_cv_deplibs_check_method=pass_all
  5471. ;;
  5472. esac
  5473. fi
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5475. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5476. file_magic_cmd=$lt_cv_file_magic_cmd
  5477. deplibs_check_method=$lt_cv_deplibs_check_method
  5478. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5479. if test -n "$ac_tool_prefix"; then
  5480. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5481. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5483. $as_echo_n "checking for $ac_word... " >&6; }
  5484. if test "${ac_cv_prog_AR+set}" = set; then :
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. if test -n "$AR"; then
  5488. ac_cv_prog_AR="$AR" # Let the user override the test.
  5489. else
  5490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5491. for as_dir in $PATH
  5492. do
  5493. IFS=$as_save_IFS
  5494. test -z "$as_dir" && as_dir=.
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5497. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5499. break 2
  5500. fi
  5501. done
  5502. done
  5503. IFS=$as_save_IFS
  5504. fi
  5505. fi
  5506. AR=$ac_cv_prog_AR
  5507. if test -n "$AR"; then
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5509. $as_echo "$AR" >&6; }
  5510. else
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5512. $as_echo "no" >&6; }
  5513. fi
  5514. fi
  5515. if test -z "$ac_cv_prog_AR"; then
  5516. ac_ct_AR=$AR
  5517. # Extract the first word of "ar", so it can be a program name with args.
  5518. set dummy ar; ac_word=$2
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. $as_echo_n "checking for $ac_word... " >&6; }
  5521. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test -n "$ac_ct_AR"; then
  5525. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5526. else
  5527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5528. for as_dir in $PATH
  5529. do
  5530. IFS=$as_save_IFS
  5531. test -z "$as_dir" && as_dir=.
  5532. for ac_exec_ext in '' $ac_executable_extensions; do
  5533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5534. ac_cv_prog_ac_ct_AR="ar"
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. fi
  5543. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5544. if test -n "$ac_ct_AR"; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5546. $as_echo "$ac_ct_AR" >&6; }
  5547. else
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5549. $as_echo "no" >&6; }
  5550. fi
  5551. if test "x$ac_ct_AR" = x; then
  5552. AR="false"
  5553. else
  5554. case $cross_compiling:$ac_tool_warned in
  5555. yes:)
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5557. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5558. ac_tool_warned=yes ;;
  5559. esac
  5560. AR=$ac_ct_AR
  5561. fi
  5562. else
  5563. AR="$ac_cv_prog_AR"
  5564. fi
  5565. test -z "$AR" && AR=ar
  5566. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5567. if test -n "$ac_tool_prefix"; then
  5568. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5569. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5571. $as_echo_n "checking for $ac_word... " >&6; }
  5572. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. if test -n "$STRIP"; then
  5576. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5577. else
  5578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5579. for as_dir in $PATH
  5580. do
  5581. IFS=$as_save_IFS
  5582. test -z "$as_dir" && as_dir=.
  5583. for ac_exec_ext in '' $ac_executable_extensions; do
  5584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5585. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5587. break 2
  5588. fi
  5589. done
  5590. done
  5591. IFS=$as_save_IFS
  5592. fi
  5593. fi
  5594. STRIP=$ac_cv_prog_STRIP
  5595. if test -n "$STRIP"; then
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5597. $as_echo "$STRIP" >&6; }
  5598. else
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5600. $as_echo "no" >&6; }
  5601. fi
  5602. fi
  5603. if test -z "$ac_cv_prog_STRIP"; then
  5604. ac_ct_STRIP=$STRIP
  5605. # Extract the first word of "strip", so it can be a program name with args.
  5606. set dummy strip; ac_word=$2
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. $as_echo_n "checking for $ac_word... " >&6; }
  5609. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. if test -n "$ac_ct_STRIP"; then
  5613. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5622. ac_cv_prog_ac_ct_STRIP="strip"
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5632. if test -n "$ac_ct_STRIP"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5634. $as_echo "$ac_ct_STRIP" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. if test "x$ac_ct_STRIP" = x; then
  5640. STRIP=":"
  5641. else
  5642. case $cross_compiling:$ac_tool_warned in
  5643. yes:)
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5646. ac_tool_warned=yes ;;
  5647. esac
  5648. STRIP=$ac_ct_STRIP
  5649. fi
  5650. else
  5651. STRIP="$ac_cv_prog_STRIP"
  5652. fi
  5653. test -z "$STRIP" && STRIP=:
  5654. if test -n "$ac_tool_prefix"; then
  5655. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5656. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5658. $as_echo_n "checking for $ac_word... " >&6; }
  5659. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. if test -n "$RANLIB"; then
  5663. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5664. else
  5665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5666. for as_dir in $PATH
  5667. do
  5668. IFS=$as_save_IFS
  5669. test -z "$as_dir" && as_dir=.
  5670. for ac_exec_ext in '' $ac_executable_extensions; do
  5671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5672. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5674. break 2
  5675. fi
  5676. done
  5677. done
  5678. IFS=$as_save_IFS
  5679. fi
  5680. fi
  5681. RANLIB=$ac_cv_prog_RANLIB
  5682. if test -n "$RANLIB"; then
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5684. $as_echo "$RANLIB" >&6; }
  5685. else
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5687. $as_echo "no" >&6; }
  5688. fi
  5689. fi
  5690. if test -z "$ac_cv_prog_RANLIB"; then
  5691. ac_ct_RANLIB=$RANLIB
  5692. # Extract the first word of "ranlib", so it can be a program name with args.
  5693. set dummy ranlib; ac_word=$2
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5695. $as_echo_n "checking for $ac_word... " >&6; }
  5696. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. if test -n "$ac_ct_RANLIB"; then
  5700. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5701. else
  5702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5703. for as_dir in $PATH
  5704. do
  5705. IFS=$as_save_IFS
  5706. test -z "$as_dir" && as_dir=.
  5707. for ac_exec_ext in '' $ac_executable_extensions; do
  5708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5709. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5711. break 2
  5712. fi
  5713. done
  5714. done
  5715. IFS=$as_save_IFS
  5716. fi
  5717. fi
  5718. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5719. if test -n "$ac_ct_RANLIB"; then
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5721. $as_echo "$ac_ct_RANLIB" >&6; }
  5722. else
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5724. $as_echo "no" >&6; }
  5725. fi
  5726. if test "x$ac_ct_RANLIB" = x; then
  5727. RANLIB=":"
  5728. else
  5729. case $cross_compiling:$ac_tool_warned in
  5730. yes:)
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5733. ac_tool_warned=yes ;;
  5734. esac
  5735. RANLIB=$ac_ct_RANLIB
  5736. fi
  5737. else
  5738. RANLIB="$ac_cv_prog_RANLIB"
  5739. fi
  5740. test -z "$RANLIB" && RANLIB=:
  5741. # Determine commands to create old-style static archives.
  5742. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5743. old_postinstall_cmds='chmod 644 $oldlib'
  5744. old_postuninstall_cmds=
  5745. if test -n "$RANLIB"; then
  5746. case $host_os in
  5747. openbsd*)
  5748. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5749. ;;
  5750. *)
  5751. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5752. ;;
  5753. esac
  5754. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5755. fi
  5756. case $host_os in
  5757. darwin*)
  5758. lock_old_archive_extraction=yes ;;
  5759. *)
  5760. lock_old_archive_extraction=no ;;
  5761. esac
  5762. # If no C compiler was specified, use CC.
  5763. LTCC=${LTCC-"$CC"}
  5764. # If no C compiler flags were specified, use CFLAGS.
  5765. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5766. # Allow CC to be a program name with arguments.
  5767. compiler=$CC
  5768. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5770. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5771. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5772. $as_echo_n "(cached) " >&6
  5773. else
  5774. # These are sane defaults that work on at least a few old systems.
  5775. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5776. # Character class describing NM global symbol codes.
  5777. symcode='[BCDEGRST]'
  5778. # Regexp to match symbols that can be accessed directly from C.
  5779. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5780. # Define system-specific variables.
  5781. case $host_os in
  5782. aix*)
  5783. symcode='[BCDT]'
  5784. ;;
  5785. cygwin* | mingw* | pw32* | cegcc*)
  5786. symcode='[ABCDGISTW]'
  5787. ;;
  5788. hpux*)
  5789. if test "$host_cpu" = ia64; then
  5790. symcode='[ABCDEGRST]'
  5791. fi
  5792. ;;
  5793. irix* | nonstopux*)
  5794. symcode='[BCDEGRST]'
  5795. ;;
  5796. osf*)
  5797. symcode='[BCDEGQRST]'
  5798. ;;
  5799. solaris*)
  5800. symcode='[BDRT]'
  5801. ;;
  5802. sco3.2v5*)
  5803. symcode='[DT]'
  5804. ;;
  5805. sysv4.2uw2*)
  5806. symcode='[DT]'
  5807. ;;
  5808. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5809. symcode='[ABDT]'
  5810. ;;
  5811. sysv4)
  5812. symcode='[DFNSTU]'
  5813. ;;
  5814. esac
  5815. # If we're using GNU nm, then use its standard symbol codes.
  5816. case `$NM -V 2>&1` in
  5817. *GNU* | *'with BFD'*)
  5818. symcode='[ABCDGIRSTW]' ;;
  5819. esac
  5820. # Transform an extracted symbol line into a proper C declaration.
  5821. # Some systems (esp. on ia64) link data and code symbols differently,
  5822. # so use this general approach.
  5823. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5824. # Transform an extracted symbol line into symbol name and symbol address
  5825. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5826. 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'"
  5827. # Handle CRLF in mingw tool chain
  5828. opt_cr=
  5829. case $build_os in
  5830. mingw*)
  5831. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5832. ;;
  5833. esac
  5834. # Try without a prefix underscore, then with it.
  5835. for ac_symprfx in "" "_"; do
  5836. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5837. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5838. # Write the raw and C identifiers.
  5839. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5840. # Fake it for dumpbin and say T for any non-static function
  5841. # and D for any global variable.
  5842. # Also find C++ and __fastcall symbols from MSVC++,
  5843. # which start with @ or ?.
  5844. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5845. " {last_section=section; section=\$ 3};"\
  5846. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5847. " \$ 0!~/External *\|/{next};"\
  5848. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5849. " {if(hide[section]) next};"\
  5850. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5851. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5852. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5853. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5854. " ' prfx=^$ac_symprfx"
  5855. else
  5856. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5857. fi
  5858. # Check to see that the pipe works correctly.
  5859. pipe_works=no
  5860. rm -f conftest*
  5861. cat > conftest.$ac_ext <<_LT_EOF
  5862. #ifdef __cplusplus
  5863. extern "C" {
  5864. #endif
  5865. char nm_test_var;
  5866. void nm_test_func(void);
  5867. void nm_test_func(void){}
  5868. #ifdef __cplusplus
  5869. }
  5870. #endif
  5871. int main(){nm_test_var='a';nm_test_func();return(0);}
  5872. _LT_EOF
  5873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5874. (eval $ac_compile) 2>&5
  5875. ac_status=$?
  5876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5877. test $ac_status = 0; }; then
  5878. # Now try to grab the symbols.
  5879. nlist=conftest.nm
  5880. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5881. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5882. ac_status=$?
  5883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5884. test $ac_status = 0; } && test -s "$nlist"; then
  5885. # Try sorting and uniquifying the output.
  5886. if sort "$nlist" | uniq > "$nlist"T; then
  5887. mv -f "$nlist"T "$nlist"
  5888. else
  5889. rm -f "$nlist"T
  5890. fi
  5891. # Make sure that we snagged all the symbols we need.
  5892. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5893. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5894. cat <<_LT_EOF > conftest.$ac_ext
  5895. #ifdef __cplusplus
  5896. extern "C" {
  5897. #endif
  5898. _LT_EOF
  5899. # Now generate the symbol file.
  5900. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5901. cat <<_LT_EOF >> conftest.$ac_ext
  5902. /* The mapping between symbol names and symbols. */
  5903. const struct {
  5904. const char *name;
  5905. void *address;
  5906. }
  5907. lt__PROGRAM__LTX_preloaded_symbols[] =
  5908. {
  5909. { "@PROGRAM@", (void *) 0 },
  5910. _LT_EOF
  5911. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5912. cat <<\_LT_EOF >> conftest.$ac_ext
  5913. {0, (void *) 0}
  5914. };
  5915. /* This works around a problem in FreeBSD linker */
  5916. #ifdef FREEBSD_WORKAROUND
  5917. static const void *lt_preloaded_setup() {
  5918. return lt__PROGRAM__LTX_preloaded_symbols;
  5919. }
  5920. #endif
  5921. #ifdef __cplusplus
  5922. }
  5923. #endif
  5924. _LT_EOF
  5925. # Now try linking the two files.
  5926. mv conftest.$ac_objext conftstm.$ac_objext
  5927. lt_save_LIBS="$LIBS"
  5928. lt_save_CFLAGS="$CFLAGS"
  5929. LIBS="conftstm.$ac_objext"
  5930. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5931. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5932. (eval $ac_link) 2>&5
  5933. ac_status=$?
  5934. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5935. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5936. pipe_works=yes
  5937. fi
  5938. LIBS="$lt_save_LIBS"
  5939. CFLAGS="$lt_save_CFLAGS"
  5940. else
  5941. echo "cannot find nm_test_func in $nlist" >&5
  5942. fi
  5943. else
  5944. echo "cannot find nm_test_var in $nlist" >&5
  5945. fi
  5946. else
  5947. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5948. fi
  5949. else
  5950. echo "$progname: failed program was:" >&5
  5951. cat conftest.$ac_ext >&5
  5952. fi
  5953. rm -rf conftest* conftst*
  5954. # Do not use the global_symbol_pipe unless it works.
  5955. if test "$pipe_works" = yes; then
  5956. break
  5957. else
  5958. lt_cv_sys_global_symbol_pipe=
  5959. fi
  5960. done
  5961. fi
  5962. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5963. lt_cv_sys_global_symbol_to_cdecl=
  5964. fi
  5965. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5967. $as_echo "failed" >&6; }
  5968. else
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5970. $as_echo "ok" >&6; }
  5971. fi
  5972. # Check whether --enable-libtool-lock was given.
  5973. if test "${enable_libtool_lock+set}" = set; then :
  5974. enableval=$enable_libtool_lock;
  5975. fi
  5976. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5977. # Some flags need to be propagated to the compiler or linker for good
  5978. # libtool support.
  5979. case $host in
  5980. ia64-*-hpux*)
  5981. # Find out which ABI we are using.
  5982. echo 'int i;' > conftest.$ac_ext
  5983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5984. (eval $ac_compile) 2>&5
  5985. ac_status=$?
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5987. test $ac_status = 0; }; then
  5988. case `/usr/bin/file conftest.$ac_objext` in
  5989. *ELF-32*)
  5990. HPUX_IA64_MODE="32"
  5991. ;;
  5992. *ELF-64*)
  5993. HPUX_IA64_MODE="64"
  5994. ;;
  5995. esac
  5996. fi
  5997. rm -rf conftest*
  5998. ;;
  5999. *-*-irix6*)
  6000. # Find out which ABI we are using.
  6001. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6002. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6003. (eval $ac_compile) 2>&5
  6004. ac_status=$?
  6005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6006. test $ac_status = 0; }; then
  6007. if test "$lt_cv_prog_gnu_ld" = yes; then
  6008. case `/usr/bin/file conftest.$ac_objext` in
  6009. *32-bit*)
  6010. LD="${LD-ld} -melf32bsmip"
  6011. ;;
  6012. *N32*)
  6013. LD="${LD-ld} -melf32bmipn32"
  6014. ;;
  6015. *64-bit*)
  6016. LD="${LD-ld} -melf64bmip"
  6017. ;;
  6018. esac
  6019. else
  6020. case `/usr/bin/file conftest.$ac_objext` in
  6021. *32-bit*)
  6022. LD="${LD-ld} -32"
  6023. ;;
  6024. *N32*)
  6025. LD="${LD-ld} -n32"
  6026. ;;
  6027. *64-bit*)
  6028. LD="${LD-ld} -64"
  6029. ;;
  6030. esac
  6031. fi
  6032. fi
  6033. rm -rf conftest*
  6034. ;;
  6035. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6036. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6037. # Find out which ABI we are using.
  6038. echo 'int i;' > conftest.$ac_ext
  6039. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6040. (eval $ac_compile) 2>&5
  6041. ac_status=$?
  6042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6043. test $ac_status = 0; }; then
  6044. case `/usr/bin/file conftest.o` in
  6045. *32-bit*)
  6046. case $host in
  6047. x86_64-*kfreebsd*-gnu)
  6048. LD="${LD-ld} -m elf_i386_fbsd"
  6049. ;;
  6050. x86_64-*linux*)
  6051. case `/usr/bin/file conftest.o` in
  6052. *x86-64*)
  6053. LD="${LD-ld} -m elf32_x86_64"
  6054. ;;
  6055. *)
  6056. LD="${LD-ld} -m elf_i386"
  6057. ;;
  6058. esac
  6059. ;;
  6060. powerpc64le-*linux*)
  6061. LD="${LD-ld} -m elf32lppclinux"
  6062. ;;
  6063. powerpc64-*linux*)
  6064. LD="${LD-ld} -m elf32ppclinux"
  6065. ;;
  6066. s390x-*linux*)
  6067. LD="${LD-ld} -m elf_s390"
  6068. ;;
  6069. sparc64-*linux*)
  6070. LD="${LD-ld} -m elf32_sparc"
  6071. ;;
  6072. esac
  6073. ;;
  6074. *64-bit*)
  6075. case $host in
  6076. x86_64-*kfreebsd*-gnu)
  6077. LD="${LD-ld} -m elf_x86_64_fbsd"
  6078. ;;
  6079. x86_64-*linux*)
  6080. LD="${LD-ld} -m elf_x86_64"
  6081. ;;
  6082. powerpcle-*linux*)
  6083. LD="${LD-ld} -m elf64lppc"
  6084. ;;
  6085. powerpc-*linux*)
  6086. LD="${LD-ld} -m elf64ppc"
  6087. ;;
  6088. s390*-*linux*|s390*-*tpf*)
  6089. LD="${LD-ld} -m elf64_s390"
  6090. ;;
  6091. sparc*-*linux*)
  6092. LD="${LD-ld} -m elf64_sparc"
  6093. ;;
  6094. esac
  6095. ;;
  6096. esac
  6097. fi
  6098. rm -rf conftest*
  6099. ;;
  6100. *-*-sco3.2v5*)
  6101. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6102. SAVE_CFLAGS="$CFLAGS"
  6103. CFLAGS="$CFLAGS -belf"
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6105. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6106. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6107. $as_echo_n "(cached) " >&6
  6108. else
  6109. ac_ext=c
  6110. ac_cpp='$CPP $CPPFLAGS'
  6111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6115. /* end confdefs.h. */
  6116. int
  6117. main ()
  6118. {
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. if ac_fn_c_try_link "$LINENO"; then :
  6124. lt_cv_cc_needs_belf=yes
  6125. else
  6126. lt_cv_cc_needs_belf=no
  6127. fi
  6128. rm -f core conftest.err conftest.$ac_objext \
  6129. conftest$ac_exeext conftest.$ac_ext
  6130. ac_ext=c
  6131. ac_cpp='$CPP $CPPFLAGS'
  6132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6135. fi
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6137. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6138. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6139. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6140. CFLAGS="$SAVE_CFLAGS"
  6141. fi
  6142. ;;
  6143. sparc*-*solaris*)
  6144. # Find out which ABI we are using.
  6145. echo 'int i;' > conftest.$ac_ext
  6146. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6147. (eval $ac_compile) 2>&5
  6148. ac_status=$?
  6149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6150. test $ac_status = 0; }; then
  6151. case `/usr/bin/file conftest.o` in
  6152. *64-bit*)
  6153. case $lt_cv_prog_gnu_ld in
  6154. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6155. *)
  6156. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6157. LD="${LD-ld} -64"
  6158. fi
  6159. ;;
  6160. esac
  6161. ;;
  6162. esac
  6163. fi
  6164. rm -rf conftest*
  6165. ;;
  6166. esac
  6167. need_locks="$enable_libtool_lock"
  6168. case $host_os in
  6169. rhapsody* | darwin*)
  6170. if test -n "$ac_tool_prefix"; then
  6171. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6172. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. if test -n "$DSYMUTIL"; then
  6179. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6180. else
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6188. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. fi
  6196. fi
  6197. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6198. if test -n "$DSYMUTIL"; then
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6200. $as_echo "$DSYMUTIL" >&6; }
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6203. $as_echo "no" >&6; }
  6204. fi
  6205. fi
  6206. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6207. ac_ct_DSYMUTIL=$DSYMUTIL
  6208. # Extract the first word of "dsymutil", so it can be a program name with args.
  6209. set dummy dsymutil; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$ac_ct_DSYMUTIL"; then
  6216. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6225. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6235. if test -n "$ac_ct_DSYMUTIL"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6237. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. if test "x$ac_ct_DSYMUTIL" = x; then
  6243. DSYMUTIL=":"
  6244. else
  6245. case $cross_compiling:$ac_tool_warned in
  6246. yes:)
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6249. ac_tool_warned=yes ;;
  6250. esac
  6251. DSYMUTIL=$ac_ct_DSYMUTIL
  6252. fi
  6253. else
  6254. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6255. fi
  6256. if test -n "$ac_tool_prefix"; then
  6257. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6258. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6260. $as_echo_n "checking for $ac_word... " >&6; }
  6261. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6262. $as_echo_n "(cached) " >&6
  6263. else
  6264. if test -n "$NMEDIT"; then
  6265. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6266. else
  6267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6268. for as_dir in $PATH
  6269. do
  6270. IFS=$as_save_IFS
  6271. test -z "$as_dir" && as_dir=.
  6272. for ac_exec_ext in '' $ac_executable_extensions; do
  6273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6274. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6276. break 2
  6277. fi
  6278. done
  6279. done
  6280. IFS=$as_save_IFS
  6281. fi
  6282. fi
  6283. NMEDIT=$ac_cv_prog_NMEDIT
  6284. if test -n "$NMEDIT"; then
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6286. $as_echo "$NMEDIT" >&6; }
  6287. else
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6289. $as_echo "no" >&6; }
  6290. fi
  6291. fi
  6292. if test -z "$ac_cv_prog_NMEDIT"; then
  6293. ac_ct_NMEDIT=$NMEDIT
  6294. # Extract the first word of "nmedit", so it can be a program name with args.
  6295. set dummy nmedit; ac_word=$2
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6297. $as_echo_n "checking for $ac_word... " >&6; }
  6298. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. if test -n "$ac_ct_NMEDIT"; then
  6302. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6303. else
  6304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6305. for as_dir in $PATH
  6306. do
  6307. IFS=$as_save_IFS
  6308. test -z "$as_dir" && as_dir=.
  6309. for ac_exec_ext in '' $ac_executable_extensions; do
  6310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6311. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6313. break 2
  6314. fi
  6315. done
  6316. done
  6317. IFS=$as_save_IFS
  6318. fi
  6319. fi
  6320. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6321. if test -n "$ac_ct_NMEDIT"; then
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6323. $as_echo "$ac_ct_NMEDIT" >&6; }
  6324. else
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6326. $as_echo "no" >&6; }
  6327. fi
  6328. if test "x$ac_ct_NMEDIT" = x; then
  6329. NMEDIT=":"
  6330. else
  6331. case $cross_compiling:$ac_tool_warned in
  6332. yes:)
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6335. ac_tool_warned=yes ;;
  6336. esac
  6337. NMEDIT=$ac_ct_NMEDIT
  6338. fi
  6339. else
  6340. NMEDIT="$ac_cv_prog_NMEDIT"
  6341. fi
  6342. if test -n "$ac_tool_prefix"; then
  6343. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6344. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6346. $as_echo_n "checking for $ac_word... " >&6; }
  6347. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6348. $as_echo_n "(cached) " >&6
  6349. else
  6350. if test -n "$LIPO"; then
  6351. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6352. else
  6353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6354. for as_dir in $PATH
  6355. do
  6356. IFS=$as_save_IFS
  6357. test -z "$as_dir" && as_dir=.
  6358. for ac_exec_ext in '' $ac_executable_extensions; do
  6359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6360. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6362. break 2
  6363. fi
  6364. done
  6365. done
  6366. IFS=$as_save_IFS
  6367. fi
  6368. fi
  6369. LIPO=$ac_cv_prog_LIPO
  6370. if test -n "$LIPO"; then
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6372. $as_echo "$LIPO" >&6; }
  6373. else
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6375. $as_echo "no" >&6; }
  6376. fi
  6377. fi
  6378. if test -z "$ac_cv_prog_LIPO"; then
  6379. ac_ct_LIPO=$LIPO
  6380. # Extract the first word of "lipo", so it can be a program name with args.
  6381. set dummy lipo; ac_word=$2
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6383. $as_echo_n "checking for $ac_word... " >&6; }
  6384. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. if test -n "$ac_ct_LIPO"; then
  6388. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_prog_ac_ct_LIPO="lipo"
  6398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6407. if test -n "$ac_ct_LIPO"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6409. $as_echo "$ac_ct_LIPO" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. $as_echo "no" >&6; }
  6413. fi
  6414. if test "x$ac_ct_LIPO" = x; then
  6415. LIPO=":"
  6416. else
  6417. case $cross_compiling:$ac_tool_warned in
  6418. yes:)
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6421. ac_tool_warned=yes ;;
  6422. esac
  6423. LIPO=$ac_ct_LIPO
  6424. fi
  6425. else
  6426. LIPO="$ac_cv_prog_LIPO"
  6427. fi
  6428. if test -n "$ac_tool_prefix"; then
  6429. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6430. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6432. $as_echo_n "checking for $ac_word... " >&6; }
  6433. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6434. $as_echo_n "(cached) " >&6
  6435. else
  6436. if test -n "$OTOOL"; then
  6437. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6438. else
  6439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6440. for as_dir in $PATH
  6441. do
  6442. IFS=$as_save_IFS
  6443. test -z "$as_dir" && as_dir=.
  6444. for ac_exec_ext in '' $ac_executable_extensions; do
  6445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6446. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6448. break 2
  6449. fi
  6450. done
  6451. done
  6452. IFS=$as_save_IFS
  6453. fi
  6454. fi
  6455. OTOOL=$ac_cv_prog_OTOOL
  6456. if test -n "$OTOOL"; then
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6458. $as_echo "$OTOOL" >&6; }
  6459. else
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6461. $as_echo "no" >&6; }
  6462. fi
  6463. fi
  6464. if test -z "$ac_cv_prog_OTOOL"; then
  6465. ac_ct_OTOOL=$OTOOL
  6466. # Extract the first word of "otool", so it can be a program name with args.
  6467. set dummy otool; ac_word=$2
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6469. $as_echo_n "checking for $ac_word... " >&6; }
  6470. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. if test -n "$ac_ct_OTOOL"; then
  6474. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6475. else
  6476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477. for as_dir in $PATH
  6478. do
  6479. IFS=$as_save_IFS
  6480. test -z "$as_dir" && as_dir=.
  6481. for ac_exec_ext in '' $ac_executable_extensions; do
  6482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6483. ac_cv_prog_ac_ct_OTOOL="otool"
  6484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6485. break 2
  6486. fi
  6487. done
  6488. done
  6489. IFS=$as_save_IFS
  6490. fi
  6491. fi
  6492. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6493. if test -n "$ac_ct_OTOOL"; then
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6495. $as_echo "$ac_ct_OTOOL" >&6; }
  6496. else
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499. fi
  6500. if test "x$ac_ct_OTOOL" = x; then
  6501. OTOOL=":"
  6502. else
  6503. case $cross_compiling:$ac_tool_warned in
  6504. yes:)
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6506. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6507. ac_tool_warned=yes ;;
  6508. esac
  6509. OTOOL=$ac_ct_OTOOL
  6510. fi
  6511. else
  6512. OTOOL="$ac_cv_prog_OTOOL"
  6513. fi
  6514. if test -n "$ac_tool_prefix"; then
  6515. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6516. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6518. $as_echo_n "checking for $ac_word... " >&6; }
  6519. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6520. $as_echo_n "(cached) " >&6
  6521. else
  6522. if test -n "$OTOOL64"; then
  6523. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6524. else
  6525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6526. for as_dir in $PATH
  6527. do
  6528. IFS=$as_save_IFS
  6529. test -z "$as_dir" && as_dir=.
  6530. for ac_exec_ext in '' $ac_executable_extensions; do
  6531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6532. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6534. break 2
  6535. fi
  6536. done
  6537. done
  6538. IFS=$as_save_IFS
  6539. fi
  6540. fi
  6541. OTOOL64=$ac_cv_prog_OTOOL64
  6542. if test -n "$OTOOL64"; then
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6544. $as_echo "$OTOOL64" >&6; }
  6545. else
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6547. $as_echo "no" >&6; }
  6548. fi
  6549. fi
  6550. if test -z "$ac_cv_prog_OTOOL64"; then
  6551. ac_ct_OTOOL64=$OTOOL64
  6552. # Extract the first word of "otool64", so it can be a program name with args.
  6553. set dummy otool64; ac_word=$2
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6555. $as_echo_n "checking for $ac_word... " >&6; }
  6556. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. if test -n "$ac_ct_OTOOL64"; then
  6560. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6561. else
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_exec_ext in '' $ac_executable_extensions; do
  6568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6569. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6571. break 2
  6572. fi
  6573. done
  6574. done
  6575. IFS=$as_save_IFS
  6576. fi
  6577. fi
  6578. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6579. if test -n "$ac_ct_OTOOL64"; then
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6581. $as_echo "$ac_ct_OTOOL64" >&6; }
  6582. else
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. if test "x$ac_ct_OTOOL64" = x; then
  6587. OTOOL64=":"
  6588. else
  6589. case $cross_compiling:$ac_tool_warned in
  6590. yes:)
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6593. ac_tool_warned=yes ;;
  6594. esac
  6595. OTOOL64=$ac_ct_OTOOL64
  6596. fi
  6597. else
  6598. OTOOL64="$ac_cv_prog_OTOOL64"
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6601. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6602. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. lt_cv_apple_cc_single_mod=no
  6606. if test -z "${LT_MULTI_MODULE}"; then
  6607. # By default we will add the -single_module flag. You can override
  6608. # by either setting the environment variable LT_MULTI_MODULE
  6609. # non-empty at configure time, or by adding -multi_module to the
  6610. # link flags.
  6611. rm -rf libconftest.dylib*
  6612. echo "int foo(void){return 1;}" > conftest.c
  6613. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6614. -dynamiclib -Wl,-single_module conftest.c" >&5
  6615. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6616. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6617. _lt_result=$?
  6618. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6619. lt_cv_apple_cc_single_mod=yes
  6620. else
  6621. cat conftest.err >&5
  6622. fi
  6623. rm -rf libconftest.dylib*
  6624. rm -f conftest.*
  6625. fi
  6626. fi
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6628. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6630. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6631. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. lt_cv_ld_exported_symbols_list=no
  6635. save_LDFLAGS=$LDFLAGS
  6636. echo "_main" > conftest.sym
  6637. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6639. /* end confdefs.h. */
  6640. int
  6641. main ()
  6642. {
  6643. ;
  6644. return 0;
  6645. }
  6646. _ACEOF
  6647. if ac_fn_c_try_link "$LINENO"; then :
  6648. lt_cv_ld_exported_symbols_list=yes
  6649. else
  6650. lt_cv_ld_exported_symbols_list=no
  6651. fi
  6652. rm -f core conftest.err conftest.$ac_objext \
  6653. conftest$ac_exeext conftest.$ac_ext
  6654. LDFLAGS="$save_LDFLAGS"
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6657. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6659. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6660. if test "${lt_cv_ld_force_load+set}" = set; then :
  6661. $as_echo_n "(cached) " >&6
  6662. else
  6663. lt_cv_ld_force_load=no
  6664. cat > conftest.c << _LT_EOF
  6665. int forced_loaded() { return 2;}
  6666. _LT_EOF
  6667. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6668. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6669. echo "$AR cru libconftest.a conftest.o" >&5
  6670. $AR cru libconftest.a conftest.o 2>&5
  6671. cat > conftest.c << _LT_EOF
  6672. int main() { return 0;}
  6673. _LT_EOF
  6674. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6675. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6676. _lt_result=$?
  6677. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6678. lt_cv_ld_force_load=yes
  6679. else
  6680. cat conftest.err >&5
  6681. fi
  6682. rm -f conftest.err libconftest.a conftest conftest.c
  6683. rm -rf conftest.dSYM
  6684. fi
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6686. $as_echo "$lt_cv_ld_force_load" >&6; }
  6687. case $host_os in
  6688. rhapsody* | darwin1.[012])
  6689. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6690. darwin1.*)
  6691. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6692. darwin*) # darwin 5.x on
  6693. # if running on 10.5 or later, the deployment target defaults
  6694. # to the OS version, if on x86, and 10.4, the deployment
  6695. # target defaults to 10.4. Don't you love it?
  6696. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6697. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6698. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6699. 10.[012]*)
  6700. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6701. 10.*)
  6702. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6703. esac
  6704. ;;
  6705. esac
  6706. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6707. _lt_dar_single_mod='$single_module'
  6708. fi
  6709. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6710. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6711. else
  6712. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6713. fi
  6714. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6715. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6716. else
  6717. _lt_dsymutil=
  6718. fi
  6719. ;;
  6720. esac
  6721. for ac_header in dlfcn.h
  6722. do :
  6723. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6724. "
  6725. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6726. cat >>confdefs.h <<_ACEOF
  6727. #define HAVE_DLFCN_H 1
  6728. _ACEOF
  6729. fi
  6730. done
  6731. # Set options
  6732. enable_win32_dll=no
  6733. # Check whether --enable-shared was given.
  6734. if test "${enable_shared+set}" = set; then :
  6735. enableval=$enable_shared; p=${PACKAGE-default}
  6736. case $enableval in
  6737. yes) enable_shared=yes ;;
  6738. no) enable_shared=no ;;
  6739. *)
  6740. enable_shared=no
  6741. # Look at the argument we got. We use all the common list separators.
  6742. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6743. for pkg in $enableval; do
  6744. IFS="$lt_save_ifs"
  6745. if test "X$pkg" = "X$p"; then
  6746. enable_shared=yes
  6747. fi
  6748. done
  6749. IFS="$lt_save_ifs"
  6750. ;;
  6751. esac
  6752. else
  6753. enable_shared=yes
  6754. fi
  6755. # Check whether --enable-static was given.
  6756. if test "${enable_static+set}" = set; then :
  6757. enableval=$enable_static; p=${PACKAGE-default}
  6758. case $enableval in
  6759. yes) enable_static=yes ;;
  6760. no) enable_static=no ;;
  6761. *)
  6762. enable_static=no
  6763. # Look at the argument we got. We use all the common list separators.
  6764. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6765. for pkg in $enableval; do
  6766. IFS="$lt_save_ifs"
  6767. if test "X$pkg" = "X$p"; then
  6768. enable_static=yes
  6769. fi
  6770. done
  6771. IFS="$lt_save_ifs"
  6772. ;;
  6773. esac
  6774. else
  6775. enable_static=yes
  6776. fi
  6777. # Check whether --with-pic was given.
  6778. if test "${with_pic+set}" = set; then :
  6779. withval=$with_pic; pic_mode="$withval"
  6780. else
  6781. pic_mode=default
  6782. fi
  6783. test -z "$pic_mode" && pic_mode=default
  6784. # Check whether --enable-fast-install was given.
  6785. if test "${enable_fast_install+set}" = set; then :
  6786. enableval=$enable_fast_install; p=${PACKAGE-default}
  6787. case $enableval in
  6788. yes) enable_fast_install=yes ;;
  6789. no) enable_fast_install=no ;;
  6790. *)
  6791. enable_fast_install=no
  6792. # Look at the argument we got. We use all the common list separators.
  6793. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6794. for pkg in $enableval; do
  6795. IFS="$lt_save_ifs"
  6796. if test "X$pkg" = "X$p"; then
  6797. enable_fast_install=yes
  6798. fi
  6799. done
  6800. IFS="$lt_save_ifs"
  6801. ;;
  6802. esac
  6803. else
  6804. enable_fast_install=yes
  6805. fi
  6806. # This can be used to rebuild libtool when needed
  6807. LIBTOOL_DEPS="$ltmain"
  6808. # Always use our own libtool.
  6809. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6810. test -z "$LN_S" && LN_S="ln -s"
  6811. if test -n "${ZSH_VERSION+set}" ; then
  6812. setopt NO_GLOB_SUBST
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6815. $as_echo_n "checking for objdir... " >&6; }
  6816. if test "${lt_cv_objdir+set}" = set; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. rm -f .libs 2>/dev/null
  6820. mkdir .libs 2>/dev/null
  6821. if test -d .libs; then
  6822. lt_cv_objdir=.libs
  6823. else
  6824. # MS-DOS does not allow filenames that begin with a dot.
  6825. lt_cv_objdir=_libs
  6826. fi
  6827. rmdir .libs 2>/dev/null
  6828. fi
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6830. $as_echo "$lt_cv_objdir" >&6; }
  6831. objdir=$lt_cv_objdir
  6832. cat >>confdefs.h <<_ACEOF
  6833. #define LT_OBJDIR "$lt_cv_objdir/"
  6834. _ACEOF
  6835. case $host_os in
  6836. aix3*)
  6837. # AIX sometimes has problems with the GCC collect2 program. For some
  6838. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6839. # vanish in a puff of smoke.
  6840. if test "X${COLLECT_NAMES+set}" != Xset; then
  6841. COLLECT_NAMES=
  6842. export COLLECT_NAMES
  6843. fi
  6844. ;;
  6845. esac
  6846. # Global variables:
  6847. ofile=libtool
  6848. can_build_shared=yes
  6849. # All known linkers require a `.a' archive for static linking (except MSVC,
  6850. # which needs '.lib').
  6851. libext=a
  6852. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6853. old_CC="$CC"
  6854. old_CFLAGS="$CFLAGS"
  6855. # Set sane defaults for various variables
  6856. test -z "$CC" && CC=cc
  6857. test -z "$LTCC" && LTCC=$CC
  6858. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6859. test -z "$LD" && LD=ld
  6860. test -z "$ac_objext" && ac_objext=o
  6861. for cc_temp in $compiler""; do
  6862. case $cc_temp in
  6863. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6864. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6865. \-*) ;;
  6866. *) break;;
  6867. esac
  6868. done
  6869. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6870. # Only perform the check for file, if the check method requires it
  6871. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6872. case $deplibs_check_method in
  6873. file_magic*)
  6874. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6876. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6877. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. case $MAGIC_CMD in
  6881. [\\/*] | ?:[\\/]*)
  6882. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6883. ;;
  6884. *)
  6885. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6886. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6887. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6888. for ac_dir in $ac_dummy; do
  6889. IFS="$lt_save_ifs"
  6890. test -z "$ac_dir" && ac_dir=.
  6891. if test -f $ac_dir/${ac_tool_prefix}file; then
  6892. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6893. if test -n "$file_magic_test_file"; then
  6894. case $deplibs_check_method in
  6895. "file_magic "*)
  6896. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6897. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6898. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6899. $EGREP "$file_magic_regex" > /dev/null; then
  6900. :
  6901. else
  6902. cat <<_LT_EOF 1>&2
  6903. *** Warning: the command libtool uses to detect shared libraries,
  6904. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6905. *** The result is that libtool may fail to recognize shared libraries
  6906. *** as such. This will affect the creation of libtool libraries that
  6907. *** depend on shared libraries, but programs linked with such libtool
  6908. *** libraries will work regardless of this problem. Nevertheless, you
  6909. *** may want to report the problem to your system manager and/or to
  6910. *** bug-libtool@gnu.org
  6911. _LT_EOF
  6912. fi ;;
  6913. esac
  6914. fi
  6915. break
  6916. fi
  6917. done
  6918. IFS="$lt_save_ifs"
  6919. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6920. ;;
  6921. esac
  6922. fi
  6923. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6924. if test -n "$MAGIC_CMD"; then
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6926. $as_echo "$MAGIC_CMD" >&6; }
  6927. else
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. $as_echo "no" >&6; }
  6930. fi
  6931. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6932. if test -n "$ac_tool_prefix"; then
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6934. $as_echo_n "checking for file... " >&6; }
  6935. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6936. $as_echo_n "(cached) " >&6
  6937. else
  6938. case $MAGIC_CMD in
  6939. [\\/*] | ?:[\\/]*)
  6940. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6941. ;;
  6942. *)
  6943. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6944. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6945. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6946. for ac_dir in $ac_dummy; do
  6947. IFS="$lt_save_ifs"
  6948. test -z "$ac_dir" && ac_dir=.
  6949. if test -f $ac_dir/file; then
  6950. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6951. if test -n "$file_magic_test_file"; then
  6952. case $deplibs_check_method in
  6953. "file_magic "*)
  6954. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6955. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6956. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6957. $EGREP "$file_magic_regex" > /dev/null; then
  6958. :
  6959. else
  6960. cat <<_LT_EOF 1>&2
  6961. *** Warning: the command libtool uses to detect shared libraries,
  6962. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6963. *** The result is that libtool may fail to recognize shared libraries
  6964. *** as such. This will affect the creation of libtool libraries that
  6965. *** depend on shared libraries, but programs linked with such libtool
  6966. *** libraries will work regardless of this problem. Nevertheless, you
  6967. *** may want to report the problem to your system manager and/or to
  6968. *** bug-libtool@gnu.org
  6969. _LT_EOF
  6970. fi ;;
  6971. esac
  6972. fi
  6973. break
  6974. fi
  6975. done
  6976. IFS="$lt_save_ifs"
  6977. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6978. ;;
  6979. esac
  6980. fi
  6981. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6982. if test -n "$MAGIC_CMD"; then
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6984. $as_echo "$MAGIC_CMD" >&6; }
  6985. else
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6987. $as_echo "no" >&6; }
  6988. fi
  6989. else
  6990. MAGIC_CMD=:
  6991. fi
  6992. fi
  6993. fi
  6994. ;;
  6995. esac
  6996. # Use C for the default configuration in the libtool script
  6997. lt_save_CC="$CC"
  6998. ac_ext=c
  6999. ac_cpp='$CPP $CPPFLAGS'
  7000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7003. # Source file extension for C test sources.
  7004. ac_ext=c
  7005. # Object file extension for compiled C test sources.
  7006. objext=o
  7007. objext=$objext
  7008. # Code to be used in simple compile tests
  7009. lt_simple_compile_test_code="int some_variable = 0;"
  7010. # Code to be used in simple link tests
  7011. lt_simple_link_test_code='int main(){return(0);}'
  7012. # If no C compiler was specified, use CC.
  7013. LTCC=${LTCC-"$CC"}
  7014. # If no C compiler flags were specified, use CFLAGS.
  7015. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7016. # Allow CC to be a program name with arguments.
  7017. compiler=$CC
  7018. # Save the default compiler, since it gets overwritten when the other
  7019. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7020. compiler_DEFAULT=$CC
  7021. # save warnings/boilerplate of simple test code
  7022. ac_outfile=conftest.$ac_objext
  7023. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7024. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7025. _lt_compiler_boilerplate=`cat conftest.err`
  7026. $RM conftest*
  7027. ac_outfile=conftest.$ac_objext
  7028. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7029. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7030. _lt_linker_boilerplate=`cat conftest.err`
  7031. $RM -r conftest*
  7032. ## CAVEAT EMPTOR:
  7033. ## There is no encapsulation within the following macros, do not change
  7034. ## the running order or otherwise move them around unless you know exactly
  7035. ## what you are doing...
  7036. if test -n "$compiler"; then
  7037. lt_prog_compiler_no_builtin_flag=
  7038. if test "$GCC" = yes; then
  7039. case $cc_basename in
  7040. nvcc*)
  7041. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7042. *)
  7043. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7044. esac
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7046. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7047. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. lt_cv_prog_compiler_rtti_exceptions=no
  7051. ac_outfile=conftest.$ac_objext
  7052. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7053. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7054. # Insert the option either (1) after the last *FLAGS variable, or
  7055. # (2) before a word containing "conftest.", or (3) at the end.
  7056. # Note that $ac_compile itself does not contain backslashes and begins
  7057. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7058. # The option is referenced via a variable to avoid confusing sed.
  7059. lt_compile=`echo "$ac_compile" | $SED \
  7060. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7061. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7062. -e 's:$: $lt_compiler_flag:'`
  7063. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7064. (eval "$lt_compile" 2>conftest.err)
  7065. ac_status=$?
  7066. cat conftest.err >&5
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. if (exit $ac_status) && test -s "$ac_outfile"; then
  7069. # The compiler can only warn and ignore the option if not recognized
  7070. # So say no if there are warnings other than the usual output.
  7071. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7072. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7073. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7074. lt_cv_prog_compiler_rtti_exceptions=yes
  7075. fi
  7076. fi
  7077. $RM conftest*
  7078. fi
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7080. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7081. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7082. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7083. else
  7084. :
  7085. fi
  7086. fi
  7087. lt_prog_compiler_wl=
  7088. lt_prog_compiler_pic=
  7089. lt_prog_compiler_static=
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7091. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7092. if test "$GCC" = yes; then
  7093. lt_prog_compiler_wl='-Wl,'
  7094. lt_prog_compiler_static='-static'
  7095. case $host_os in
  7096. aix*)
  7097. # All AIX code is PIC.
  7098. if test "$host_cpu" = ia64; then
  7099. # AIX 5 now supports IA64 processor
  7100. lt_prog_compiler_static='-Bstatic'
  7101. fi
  7102. lt_prog_compiler_pic='-fPIC'
  7103. ;;
  7104. amigaos*)
  7105. case $host_cpu in
  7106. powerpc)
  7107. # see comment about AmigaOS4 .so support
  7108. lt_prog_compiler_pic='-fPIC'
  7109. ;;
  7110. m68k)
  7111. # FIXME: we need at least 68020 code to build shared libraries, but
  7112. # adding the `-m68020' flag to GCC prevents building anything better,
  7113. # like `-m68040'.
  7114. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7115. ;;
  7116. esac
  7117. ;;
  7118. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7119. # PIC is the default for these OSes.
  7120. ;;
  7121. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7122. # This hack is so that the source file can tell whether it is being
  7123. # built for inclusion in a dll (and should export symbols for example).
  7124. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7125. # (--disable-auto-import) libraries
  7126. lt_prog_compiler_pic='-DDLL_EXPORT'
  7127. ;;
  7128. darwin* | rhapsody*)
  7129. # PIC is the default on this platform
  7130. # Common symbols not allowed in MH_DYLIB files
  7131. lt_prog_compiler_pic='-fno-common'
  7132. ;;
  7133. haiku*)
  7134. # PIC is the default for Haiku.
  7135. # The "-static" flag exists, but is broken.
  7136. lt_prog_compiler_static=
  7137. ;;
  7138. hpux*)
  7139. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7140. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7141. # sets the default TLS model and affects inlining.
  7142. case $host_cpu in
  7143. hppa*64*)
  7144. # +Z the default
  7145. ;;
  7146. *)
  7147. lt_prog_compiler_pic='-fPIC'
  7148. ;;
  7149. esac
  7150. ;;
  7151. interix[3-9]*)
  7152. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7153. # Instead, we relocate shared libraries at runtime.
  7154. ;;
  7155. msdosdjgpp*)
  7156. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7157. # on systems that don't support them.
  7158. lt_prog_compiler_can_build_shared=no
  7159. enable_shared=no
  7160. ;;
  7161. *nto* | *qnx*)
  7162. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7163. # it will coredump.
  7164. lt_prog_compiler_pic='-fPIC -shared'
  7165. ;;
  7166. sysv4*MP*)
  7167. if test -d /usr/nec; then
  7168. lt_prog_compiler_pic=-Kconform_pic
  7169. fi
  7170. ;;
  7171. *)
  7172. lt_prog_compiler_pic='-fPIC'
  7173. ;;
  7174. esac
  7175. case $cc_basename in
  7176. nvcc*) # Cuda Compiler Driver 2.2
  7177. lt_prog_compiler_wl='-Xlinker '
  7178. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7179. ;;
  7180. esac
  7181. else
  7182. # PORTME Check for flag to pass linker flags through the system compiler.
  7183. case $host_os in
  7184. aix*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. if test "$host_cpu" = ia64; then
  7187. # AIX 5 now supports IA64 processor
  7188. lt_prog_compiler_static='-Bstatic'
  7189. else
  7190. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7191. fi
  7192. ;;
  7193. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7194. # This hack is so that the source file can tell whether it is being
  7195. # built for inclusion in a dll (and should export symbols for example).
  7196. lt_prog_compiler_pic='-DDLL_EXPORT'
  7197. ;;
  7198. hpux9* | hpux10* | hpux11*)
  7199. lt_prog_compiler_wl='-Wl,'
  7200. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7201. # not for PA HP-UX.
  7202. case $host_cpu in
  7203. hppa*64*|ia64*)
  7204. # +Z the default
  7205. ;;
  7206. *)
  7207. lt_prog_compiler_pic='+Z'
  7208. ;;
  7209. esac
  7210. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7211. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7212. ;;
  7213. irix5* | irix6* | nonstopux*)
  7214. lt_prog_compiler_wl='-Wl,'
  7215. # PIC (with -KPIC) is the default.
  7216. lt_prog_compiler_static='-non_shared'
  7217. ;;
  7218. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7219. case $cc_basename in
  7220. # old Intel for x86_64 which still supported -KPIC.
  7221. ecc*)
  7222. lt_prog_compiler_wl='-Wl,'
  7223. lt_prog_compiler_pic='-KPIC'
  7224. lt_prog_compiler_static='-static'
  7225. ;;
  7226. # icc used to be incompatible with GCC.
  7227. # ICC 10 doesn't accept -KPIC any more.
  7228. icc* | ifort*)
  7229. lt_prog_compiler_wl='-Wl,'
  7230. lt_prog_compiler_pic='-fPIC'
  7231. lt_prog_compiler_static='-static'
  7232. ;;
  7233. # Lahey Fortran 8.1.
  7234. lf95*)
  7235. lt_prog_compiler_wl='-Wl,'
  7236. lt_prog_compiler_pic='--shared'
  7237. lt_prog_compiler_static='--static'
  7238. ;;
  7239. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7240. # Portland Group compilers (*not* the Pentium gcc compiler,
  7241. # which looks to be a dead project)
  7242. lt_prog_compiler_wl='-Wl,'
  7243. lt_prog_compiler_pic='-fpic'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. ;;
  7246. ccc*)
  7247. lt_prog_compiler_wl='-Wl,'
  7248. # All Alpha code is PIC.
  7249. lt_prog_compiler_static='-non_shared'
  7250. ;;
  7251. xl* | bgxl* | bgf* | mpixl*)
  7252. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7253. lt_prog_compiler_wl='-Wl,'
  7254. lt_prog_compiler_pic='-qpic'
  7255. lt_prog_compiler_static='-qstaticlink'
  7256. ;;
  7257. *)
  7258. case `$CC -V 2>&1 | sed 5q` in
  7259. *Sun\ F* | *Sun*Fortran*)
  7260. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7261. lt_prog_compiler_pic='-KPIC'
  7262. lt_prog_compiler_static='-Bstatic'
  7263. lt_prog_compiler_wl=''
  7264. ;;
  7265. *Sun\ C*)
  7266. # Sun C 5.9
  7267. lt_prog_compiler_pic='-KPIC'
  7268. lt_prog_compiler_static='-Bstatic'
  7269. lt_prog_compiler_wl='-Wl,'
  7270. ;;
  7271. esac
  7272. ;;
  7273. esac
  7274. ;;
  7275. newsos6)
  7276. lt_prog_compiler_pic='-KPIC'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. ;;
  7279. *nto* | *qnx*)
  7280. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7281. # it will coredump.
  7282. lt_prog_compiler_pic='-fPIC -shared'
  7283. ;;
  7284. osf3* | osf4* | osf5*)
  7285. lt_prog_compiler_wl='-Wl,'
  7286. # All OSF/1 code is PIC.
  7287. lt_prog_compiler_static='-non_shared'
  7288. ;;
  7289. rdos*)
  7290. lt_prog_compiler_static='-non_shared'
  7291. ;;
  7292. solaris*)
  7293. lt_prog_compiler_pic='-KPIC'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. case $cc_basename in
  7296. f77* | f90* | f95*)
  7297. lt_prog_compiler_wl='-Qoption ld ';;
  7298. *)
  7299. lt_prog_compiler_wl='-Wl,';;
  7300. esac
  7301. ;;
  7302. sunos4*)
  7303. lt_prog_compiler_wl='-Qoption ld '
  7304. lt_prog_compiler_pic='-PIC'
  7305. lt_prog_compiler_static='-Bstatic'
  7306. ;;
  7307. sysv4 | sysv4.2uw2* | sysv4.3*)
  7308. lt_prog_compiler_wl='-Wl,'
  7309. lt_prog_compiler_pic='-KPIC'
  7310. lt_prog_compiler_static='-Bstatic'
  7311. ;;
  7312. sysv4*MP*)
  7313. if test -d /usr/nec ;then
  7314. lt_prog_compiler_pic='-Kconform_pic'
  7315. lt_prog_compiler_static='-Bstatic'
  7316. fi
  7317. ;;
  7318. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7319. lt_prog_compiler_wl='-Wl,'
  7320. lt_prog_compiler_pic='-KPIC'
  7321. lt_prog_compiler_static='-Bstatic'
  7322. ;;
  7323. unicos*)
  7324. lt_prog_compiler_wl='-Wl,'
  7325. lt_prog_compiler_can_build_shared=no
  7326. ;;
  7327. uts4*)
  7328. lt_prog_compiler_pic='-pic'
  7329. lt_prog_compiler_static='-Bstatic'
  7330. ;;
  7331. *)
  7332. lt_prog_compiler_can_build_shared=no
  7333. ;;
  7334. esac
  7335. fi
  7336. case $host_os in
  7337. # For platforms which do not support PIC, -DPIC is meaningless:
  7338. *djgpp*)
  7339. lt_prog_compiler_pic=
  7340. ;;
  7341. *)
  7342. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7343. ;;
  7344. esac
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7346. $as_echo "$lt_prog_compiler_pic" >&6; }
  7347. #
  7348. # Check to make sure the PIC flag actually works.
  7349. #
  7350. if test -n "$lt_prog_compiler_pic"; then
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7352. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7353. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. lt_cv_prog_compiler_pic_works=no
  7357. ac_outfile=conftest.$ac_objext
  7358. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7359. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7360. # Insert the option either (1) after the last *FLAGS variable, or
  7361. # (2) before a word containing "conftest.", or (3) at the end.
  7362. # Note that $ac_compile itself does not contain backslashes and begins
  7363. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7364. # The option is referenced via a variable to avoid confusing sed.
  7365. lt_compile=`echo "$ac_compile" | $SED \
  7366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7368. -e 's:$: $lt_compiler_flag:'`
  7369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7370. (eval "$lt_compile" 2>conftest.err)
  7371. ac_status=$?
  7372. cat conftest.err >&5
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. if (exit $ac_status) && test -s "$ac_outfile"; then
  7375. # The compiler can only warn and ignore the option if not recognized
  7376. # So say no if there are warnings other than the usual output.
  7377. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7378. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7379. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7380. lt_cv_prog_compiler_pic_works=yes
  7381. fi
  7382. fi
  7383. $RM conftest*
  7384. fi
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7386. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7387. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7388. case $lt_prog_compiler_pic in
  7389. "" | " "*) ;;
  7390. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7391. esac
  7392. else
  7393. lt_prog_compiler_pic=
  7394. lt_prog_compiler_can_build_shared=no
  7395. fi
  7396. fi
  7397. #
  7398. # Check to make sure the static flag actually works.
  7399. #
  7400. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7402. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7403. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7404. $as_echo_n "(cached) " >&6
  7405. else
  7406. lt_cv_prog_compiler_static_works=no
  7407. save_LDFLAGS="$LDFLAGS"
  7408. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7409. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7410. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7411. # The linker can only warn and ignore the option if not recognized
  7412. # So say no if there are warnings
  7413. if test -s conftest.err; then
  7414. # Append any errors to the config.log.
  7415. cat conftest.err 1>&5
  7416. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7417. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7418. if diff conftest.exp conftest.er2 >/dev/null; then
  7419. lt_cv_prog_compiler_static_works=yes
  7420. fi
  7421. else
  7422. lt_cv_prog_compiler_static_works=yes
  7423. fi
  7424. fi
  7425. $RM -r conftest*
  7426. LDFLAGS="$save_LDFLAGS"
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7429. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7430. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7431. :
  7432. else
  7433. lt_prog_compiler_static=
  7434. fi
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7436. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7437. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7438. $as_echo_n "(cached) " >&6
  7439. else
  7440. lt_cv_prog_compiler_c_o=no
  7441. $RM -r conftest 2>/dev/null
  7442. mkdir conftest
  7443. cd conftest
  7444. mkdir out
  7445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7447. # Insert the option either (1) after the last *FLAGS variable, or
  7448. # (2) before a word containing "conftest.", or (3) at the end.
  7449. # Note that $ac_compile itself does not contain backslashes and begins
  7450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7451. lt_compile=`echo "$ac_compile" | $SED \
  7452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7454. -e 's:$: $lt_compiler_flag:'`
  7455. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7456. (eval "$lt_compile" 2>out/conftest.err)
  7457. ac_status=$?
  7458. cat out/conftest.err >&5
  7459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7461. then
  7462. # The compiler can only warn and ignore the option if not recognized
  7463. # So say no if there are warnings
  7464. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7467. lt_cv_prog_compiler_c_o=yes
  7468. fi
  7469. fi
  7470. chmod u+w . 2>&5
  7471. $RM conftest*
  7472. # SGI C++ compiler will create directory out/ii_files/ for
  7473. # template instantiation
  7474. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7475. $RM out/* && rmdir out
  7476. cd ..
  7477. $RM -r conftest
  7478. $RM conftest*
  7479. fi
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7481. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7483. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7484. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. lt_cv_prog_compiler_c_o=no
  7488. $RM -r conftest 2>/dev/null
  7489. mkdir conftest
  7490. cd conftest
  7491. mkdir out
  7492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7493. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7494. # Insert the option either (1) after the last *FLAGS variable, or
  7495. # (2) before a word containing "conftest.", or (3) at the end.
  7496. # Note that $ac_compile itself does not contain backslashes and begins
  7497. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7498. lt_compile=`echo "$ac_compile" | $SED \
  7499. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7500. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7501. -e 's:$: $lt_compiler_flag:'`
  7502. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7503. (eval "$lt_compile" 2>out/conftest.err)
  7504. ac_status=$?
  7505. cat out/conftest.err >&5
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7508. then
  7509. # The compiler can only warn and ignore the option if not recognized
  7510. # So say no if there are warnings
  7511. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7512. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7513. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7514. lt_cv_prog_compiler_c_o=yes
  7515. fi
  7516. fi
  7517. chmod u+w . 2>&5
  7518. $RM conftest*
  7519. # SGI C++ compiler will create directory out/ii_files/ for
  7520. # template instantiation
  7521. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7522. $RM out/* && rmdir out
  7523. cd ..
  7524. $RM -r conftest
  7525. $RM conftest*
  7526. fi
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7528. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7529. hard_links="nottested"
  7530. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7531. # do not overwrite the value of need_locks provided by the user
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7533. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7534. hard_links=yes
  7535. $RM conftest*
  7536. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7537. touch conftest.a
  7538. ln conftest.a conftest.b 2>&5 || hard_links=no
  7539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7541. $as_echo "$hard_links" >&6; }
  7542. if test "$hard_links" = no; then
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7544. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7545. need_locks=warn
  7546. fi
  7547. else
  7548. need_locks=no
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7551. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7552. runpath_var=
  7553. allow_undefined_flag=
  7554. always_export_symbols=no
  7555. archive_cmds=
  7556. archive_expsym_cmds=
  7557. compiler_needs_object=no
  7558. enable_shared_with_static_runtimes=no
  7559. export_dynamic_flag_spec=
  7560. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7561. hardcode_automatic=no
  7562. hardcode_direct=no
  7563. hardcode_direct_absolute=no
  7564. hardcode_libdir_flag_spec=
  7565. hardcode_libdir_flag_spec_ld=
  7566. hardcode_libdir_separator=
  7567. hardcode_minus_L=no
  7568. hardcode_shlibpath_var=unsupported
  7569. inherit_rpath=no
  7570. link_all_deplibs=unknown
  7571. module_cmds=
  7572. module_expsym_cmds=
  7573. old_archive_from_new_cmds=
  7574. old_archive_from_expsyms_cmds=
  7575. thread_safe_flag_spec=
  7576. whole_archive_flag_spec=
  7577. # include_expsyms should be a list of space-separated symbols to be *always*
  7578. # included in the symbol list
  7579. include_expsyms=
  7580. # exclude_expsyms can be an extended regexp of symbols to exclude
  7581. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7582. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7583. # as well as any symbol that contains `d'.
  7584. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7585. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7586. # platforms (ab)use it in PIC code, but their linkers get confused if
  7587. # the symbol is explicitly referenced. Since portable code cannot
  7588. # rely on this symbol name, it's probably fine to never include it in
  7589. # preloaded symbol tables.
  7590. # Exclude shared library initialization/finalization symbols.
  7591. extract_expsyms_cmds=
  7592. case $host_os in
  7593. cygwin* | mingw* | pw32* | cegcc*)
  7594. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7595. # When not using gcc, we currently assume that we are using
  7596. # Microsoft Visual C++.
  7597. if test "$GCC" != yes; then
  7598. with_gnu_ld=no
  7599. fi
  7600. ;;
  7601. interix*)
  7602. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7603. with_gnu_ld=yes
  7604. ;;
  7605. openbsd*)
  7606. with_gnu_ld=no
  7607. ;;
  7608. esac
  7609. ld_shlibs=yes
  7610. # On some targets, GNU ld is compatible enough with the native linker
  7611. # that we're better off using the native interface for both.
  7612. lt_use_gnu_ld_interface=no
  7613. if test "$with_gnu_ld" = yes; then
  7614. case $host_os in
  7615. aix*)
  7616. # The AIX port of GNU ld has always aspired to compatibility
  7617. # with the native linker. However, as the warning in the GNU ld
  7618. # block says, versions before 2.19.5* couldn't really create working
  7619. # shared libraries, regardless of the interface used.
  7620. case `$LD -v 2>&1` in
  7621. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7622. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7623. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7624. *)
  7625. lt_use_gnu_ld_interface=yes
  7626. ;;
  7627. esac
  7628. ;;
  7629. *)
  7630. lt_use_gnu_ld_interface=yes
  7631. ;;
  7632. esac
  7633. fi
  7634. if test "$lt_use_gnu_ld_interface" = yes; then
  7635. # If archive_cmds runs LD, not CC, wlarc should be empty
  7636. wlarc='${wl}'
  7637. # Set some defaults for GNU ld with shared library support. These
  7638. # are reset later if shared libraries are not supported. Putting them
  7639. # here allows them to be overridden if necessary.
  7640. runpath_var=LD_RUN_PATH
  7641. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7642. export_dynamic_flag_spec='${wl}--export-dynamic'
  7643. # ancient GNU ld didn't support --whole-archive et. al.
  7644. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7645. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7646. else
  7647. whole_archive_flag_spec=
  7648. fi
  7649. supports_anon_versioning=no
  7650. case `$LD -v 2>&1` in
  7651. *GNU\ gold*) supports_anon_versioning=yes ;;
  7652. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7653. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7654. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7655. *\ 2.11.*) ;; # other 2.11 versions
  7656. *) supports_anon_versioning=yes ;;
  7657. esac
  7658. # See if GNU ld supports shared libraries.
  7659. case $host_os in
  7660. aix[3-9]*)
  7661. # On AIX/PPC, the GNU linker is very broken
  7662. if test "$host_cpu" != ia64; then
  7663. ld_shlibs=no
  7664. cat <<_LT_EOF 1>&2
  7665. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7666. *** to be unable to reliably create shared libraries on AIX.
  7667. *** Therefore, libtool is disabling shared libraries support. If you
  7668. *** really care for shared libraries, you may want to install binutils
  7669. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7670. *** You will then need to restart the configuration process.
  7671. _LT_EOF
  7672. fi
  7673. ;;
  7674. amigaos*)
  7675. case $host_cpu in
  7676. powerpc)
  7677. # see comment about AmigaOS4 .so support
  7678. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7679. archive_expsym_cmds=''
  7680. ;;
  7681. m68k)
  7682. 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)'
  7683. hardcode_libdir_flag_spec='-L$libdir'
  7684. hardcode_minus_L=yes
  7685. ;;
  7686. esac
  7687. ;;
  7688. beos*)
  7689. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7690. allow_undefined_flag=unsupported
  7691. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7692. # support --undefined. This deserves some investigation. FIXME
  7693. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7694. else
  7695. ld_shlibs=no
  7696. fi
  7697. ;;
  7698. cygwin* | mingw* | pw32* | cegcc*)
  7699. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7700. # as there is no search path for DLLs.
  7701. hardcode_libdir_flag_spec='-L$libdir'
  7702. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7703. allow_undefined_flag=unsupported
  7704. always_export_symbols=no
  7705. enable_shared_with_static_runtimes=yes
  7706. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7707. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7708. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7709. # If the export-symbols file already is a .def file (1st line
  7710. # is EXPORTS), use it as is; otherwise, prepend...
  7711. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7712. cp $export_symbols $output_objdir/$soname.def;
  7713. else
  7714. echo EXPORTS > $output_objdir/$soname.def;
  7715. cat $export_symbols >> $output_objdir/$soname.def;
  7716. fi~
  7717. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7718. else
  7719. ld_shlibs=no
  7720. fi
  7721. ;;
  7722. haiku*)
  7723. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7724. link_all_deplibs=yes
  7725. ;;
  7726. interix[3-9]*)
  7727. hardcode_direct=no
  7728. hardcode_shlibpath_var=no
  7729. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7730. export_dynamic_flag_spec='${wl}-E'
  7731. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7732. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7733. # default) and relocated if they conflict, which is a slow very memory
  7734. # consuming and fragmenting process. To avoid this, we pick a random,
  7735. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7736. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7737. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7738. 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'
  7739. ;;
  7740. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7741. tmp_diet=no
  7742. if test "$host_os" = linux-dietlibc; then
  7743. case $cc_basename in
  7744. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7745. esac
  7746. fi
  7747. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7748. && test "$tmp_diet" = no
  7749. then
  7750. tmp_addflag=
  7751. tmp_sharedflag='-shared'
  7752. case $cc_basename,$host_cpu in
  7753. pgcc*) # Portland Group C compiler
  7754. 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'
  7755. tmp_addflag=' $pic_flag'
  7756. ;;
  7757. pgf77* | pgf90* | pgf95* | pgfortran*)
  7758. # Portland Group f77 and f90 compilers
  7759. 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'
  7760. tmp_addflag=' $pic_flag -Mnomain' ;;
  7761. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7762. tmp_addflag=' -i_dynamic' ;;
  7763. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7764. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7765. ifc* | ifort*) # Intel Fortran compiler
  7766. tmp_addflag=' -nofor_main' ;;
  7767. lf95*) # Lahey Fortran 8.1
  7768. whole_archive_flag_spec=
  7769. tmp_sharedflag='--shared' ;;
  7770. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7771. tmp_sharedflag='-qmkshrobj'
  7772. tmp_addflag= ;;
  7773. nvcc*) # Cuda Compiler Driver 2.2
  7774. 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'
  7775. compiler_needs_object=yes
  7776. ;;
  7777. esac
  7778. case `$CC -V 2>&1 | sed 5q` in
  7779. *Sun\ C*) # Sun C 5.9
  7780. 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'
  7781. compiler_needs_object=yes
  7782. tmp_sharedflag='-G' ;;
  7783. *Sun\ F*) # Sun Fortran 8.3
  7784. tmp_sharedflag='-G' ;;
  7785. esac
  7786. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7787. if test "x$supports_anon_versioning" = xyes; then
  7788. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7789. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7790. echo "local: *; };" >> $output_objdir/$libname.ver~
  7791. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7792. fi
  7793. case $cc_basename in
  7794. xlf* | bgf* | bgxlf* | mpixlf*)
  7795. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7796. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7797. hardcode_libdir_flag_spec=
  7798. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7799. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7800. if test "x$supports_anon_versioning" = xyes; then
  7801. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7802. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7803. echo "local: *; };" >> $output_objdir/$libname.ver~
  7804. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7805. fi
  7806. ;;
  7807. esac
  7808. else
  7809. ld_shlibs=no
  7810. fi
  7811. ;;
  7812. netbsd*)
  7813. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7814. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7815. wlarc=
  7816. else
  7817. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7818. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7819. fi
  7820. ;;
  7821. solaris*)
  7822. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7823. ld_shlibs=no
  7824. cat <<_LT_EOF 1>&2
  7825. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7826. *** create shared libraries on Solaris systems. Therefore, libtool
  7827. *** is disabling shared libraries support. We urge you to upgrade GNU
  7828. *** binutils to release 2.9.1 or newer. Another option is to modify
  7829. *** your PATH or compiler configuration so that the native linker is
  7830. *** used, and then restart.
  7831. _LT_EOF
  7832. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7833. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7834. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7835. else
  7836. ld_shlibs=no
  7837. fi
  7838. ;;
  7839. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7840. case `$LD -v 2>&1` in
  7841. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7842. ld_shlibs=no
  7843. cat <<_LT_EOF 1>&2
  7844. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7845. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7846. *** is disabling shared libraries support. We urge you to upgrade GNU
  7847. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7848. *** your PATH or compiler configuration so that the native linker is
  7849. *** used, and then restart.
  7850. _LT_EOF
  7851. ;;
  7852. *)
  7853. # For security reasons, it is highly recommended that you always
  7854. # use absolute paths for naming shared libraries, and exclude the
  7855. # DT_RUNPATH tag from executables and libraries. But doing so
  7856. # requires that you compile everything twice, which is a pain.
  7857. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7858. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7859. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7860. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7861. else
  7862. ld_shlibs=no
  7863. fi
  7864. ;;
  7865. esac
  7866. ;;
  7867. sunos4*)
  7868. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7869. wlarc=
  7870. hardcode_direct=yes
  7871. hardcode_shlibpath_var=no
  7872. ;;
  7873. *)
  7874. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7875. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7876. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7877. else
  7878. ld_shlibs=no
  7879. fi
  7880. ;;
  7881. esac
  7882. if test "$ld_shlibs" = no; then
  7883. runpath_var=
  7884. hardcode_libdir_flag_spec=
  7885. export_dynamic_flag_spec=
  7886. whole_archive_flag_spec=
  7887. fi
  7888. else
  7889. # PORTME fill in a description of your system's linker (not GNU ld)
  7890. case $host_os in
  7891. aix3*)
  7892. allow_undefined_flag=unsupported
  7893. always_export_symbols=yes
  7894. 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'
  7895. # Note: this linker hardcodes the directories in LIBPATH if there
  7896. # are no directories specified by -L.
  7897. hardcode_minus_L=yes
  7898. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7899. # Neither direct hardcoding nor static linking is supported with a
  7900. # broken collect2.
  7901. hardcode_direct=unsupported
  7902. fi
  7903. ;;
  7904. aix[4-9]*)
  7905. if test "$host_cpu" = ia64; then
  7906. # On IA64, the linker does run time linking by default, so we don't
  7907. # have to do anything special.
  7908. aix_use_runtimelinking=no
  7909. exp_sym_flag='-Bexport'
  7910. no_entry_flag=""
  7911. else
  7912. # If we're using GNU nm, then we don't want the "-C" option.
  7913. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7914. # Also, AIX nm treats weak defined symbols like other global
  7915. # defined symbols, whereas GNU nm marks them as "W".
  7916. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7917. 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'
  7918. else
  7919. 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'
  7920. fi
  7921. aix_use_runtimelinking=no
  7922. # Test if we are trying to use run time linking or normal
  7923. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7924. # need to do runtime linking.
  7925. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7926. for ld_flag in $LDFLAGS; do
  7927. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7928. aix_use_runtimelinking=yes
  7929. break
  7930. fi
  7931. done
  7932. ;;
  7933. esac
  7934. exp_sym_flag='-bexport'
  7935. no_entry_flag='-bnoentry'
  7936. fi
  7937. # When large executables or shared objects are built, AIX ld can
  7938. # have problems creating the table of contents. If linking a library
  7939. # or program results in "error TOC overflow" add -mminimal-toc to
  7940. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7941. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7942. archive_cmds=''
  7943. hardcode_direct=yes
  7944. hardcode_direct_absolute=yes
  7945. hardcode_libdir_separator=':'
  7946. link_all_deplibs=yes
  7947. file_list_spec='${wl}-f,'
  7948. if test "$GCC" = yes; then
  7949. case $host_os in aix4.[012]|aix4.[012].*)
  7950. # We only want to do this on AIX 4.2 and lower, the check
  7951. # below for broken collect2 doesn't work under 4.3+
  7952. collect2name=`${CC} -print-prog-name=collect2`
  7953. if test -f "$collect2name" &&
  7954. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7955. then
  7956. # We have reworked collect2
  7957. :
  7958. else
  7959. # We have old collect2
  7960. hardcode_direct=unsupported
  7961. # It fails to find uninstalled libraries when the uninstalled
  7962. # path is not listed in the libpath. Setting hardcode_minus_L
  7963. # to unsupported forces relinking
  7964. hardcode_minus_L=yes
  7965. hardcode_libdir_flag_spec='-L$libdir'
  7966. hardcode_libdir_separator=
  7967. fi
  7968. ;;
  7969. esac
  7970. shared_flag='-shared'
  7971. if test "$aix_use_runtimelinking" = yes; then
  7972. shared_flag="$shared_flag "'${wl}-G'
  7973. fi
  7974. else
  7975. # not using gcc
  7976. if test "$host_cpu" = ia64; then
  7977. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7978. # chokes on -Wl,-G. The following line is correct:
  7979. shared_flag='-G'
  7980. else
  7981. if test "$aix_use_runtimelinking" = yes; then
  7982. shared_flag='${wl}-G'
  7983. else
  7984. shared_flag='${wl}-bM:SRE'
  7985. fi
  7986. fi
  7987. fi
  7988. export_dynamic_flag_spec='${wl}-bexpall'
  7989. # It seems that -bexpall does not export symbols beginning with
  7990. # underscore (_), so it is better to generate a list of symbols to export.
  7991. always_export_symbols=yes
  7992. if test "$aix_use_runtimelinking" = yes; then
  7993. # Warning - without using the other runtime loading flags (-brtl),
  7994. # -berok will link without error, but may produce a broken library.
  7995. allow_undefined_flag='-berok'
  7996. # Determine the default libpath from the value encoded in an
  7997. # empty executable.
  7998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7999. /* end confdefs.h. */
  8000. int
  8001. main ()
  8002. {
  8003. ;
  8004. return 0;
  8005. }
  8006. _ACEOF
  8007. if ac_fn_c_try_link "$LINENO"; then :
  8008. lt_aix_libpath_sed='
  8009. /Import File Strings/,/^$/ {
  8010. /^0/ {
  8011. s/^0 *\(.*\)$/\1/
  8012. p
  8013. }
  8014. }'
  8015. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8016. # Check for a 64-bit object if we didn't find anything.
  8017. if test -z "$aix_libpath"; then
  8018. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8019. fi
  8020. fi
  8021. rm -f core conftest.err conftest.$ac_objext \
  8022. conftest$ac_exeext conftest.$ac_ext
  8023. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8024. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8025. 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"
  8026. else
  8027. if test "$host_cpu" = ia64; then
  8028. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8029. allow_undefined_flag="-z nodefs"
  8030. 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"
  8031. else
  8032. # Determine the default libpath from the value encoded in an
  8033. # empty executable.
  8034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8035. /* end confdefs.h. */
  8036. int
  8037. main ()
  8038. {
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. if ac_fn_c_try_link "$LINENO"; then :
  8044. lt_aix_libpath_sed='
  8045. /Import File Strings/,/^$/ {
  8046. /^0/ {
  8047. s/^0 *\(.*\)$/\1/
  8048. p
  8049. }
  8050. }'
  8051. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8052. # Check for a 64-bit object if we didn't find anything.
  8053. if test -z "$aix_libpath"; then
  8054. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8055. fi
  8056. fi
  8057. rm -f core conftest.err conftest.$ac_objext \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8060. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8061. # Warning - without using the other run time loading flags,
  8062. # -berok will link without error, but may produce a broken library.
  8063. no_undefined_flag=' ${wl}-bernotok'
  8064. allow_undefined_flag=' ${wl}-berok'
  8065. if test "$with_gnu_ld" = yes; then
  8066. # We only use this code for GNU lds that support --whole-archive.
  8067. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8068. else
  8069. # Exported symbols can be pulled into shared objects from archives
  8070. whole_archive_flag_spec='$convenience'
  8071. fi
  8072. archive_cmds_need_lc=yes
  8073. # This is similar to how AIX traditionally builds its shared libraries.
  8074. 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'
  8075. fi
  8076. fi
  8077. ;;
  8078. amigaos*)
  8079. case $host_cpu in
  8080. powerpc)
  8081. # see comment about AmigaOS4 .so support
  8082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8083. archive_expsym_cmds=''
  8084. ;;
  8085. m68k)
  8086. 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)'
  8087. hardcode_libdir_flag_spec='-L$libdir'
  8088. hardcode_minus_L=yes
  8089. ;;
  8090. esac
  8091. ;;
  8092. bsdi[45]*)
  8093. export_dynamic_flag_spec=-rdynamic
  8094. ;;
  8095. cygwin* | mingw* | pw32* | cegcc*)
  8096. # When not using gcc, we currently assume that we are using
  8097. # Microsoft Visual C++.
  8098. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8099. # no search path for DLLs.
  8100. hardcode_libdir_flag_spec=' '
  8101. allow_undefined_flag=unsupported
  8102. # Tell ltmain to make .lib files, not .a files.
  8103. libext=lib
  8104. # Tell ltmain to make .dll files, not .so files.
  8105. shrext_cmds=".dll"
  8106. # FIXME: Setting linknames here is a bad hack.
  8107. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8108. # The linker will automatically build a .lib file if we build a DLL.
  8109. old_archive_from_new_cmds='true'
  8110. # FIXME: Should let the user specify the lib program.
  8111. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8112. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8113. enable_shared_with_static_runtimes=yes
  8114. ;;
  8115. darwin* | rhapsody*)
  8116. archive_cmds_need_lc=no
  8117. hardcode_direct=no
  8118. hardcode_automatic=yes
  8119. hardcode_shlibpath_var=unsupported
  8120. if test "$lt_cv_ld_force_load" = "yes"; then
  8121. 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\"`'
  8122. else
  8123. whole_archive_flag_spec=''
  8124. fi
  8125. link_all_deplibs=yes
  8126. allow_undefined_flag="$_lt_dar_allow_undefined"
  8127. case $cc_basename in
  8128. ifort*) _lt_dar_can_shared=yes ;;
  8129. *) _lt_dar_can_shared=$GCC ;;
  8130. esac
  8131. if test "$_lt_dar_can_shared" = "yes"; then
  8132. output_verbose_link_cmd=func_echo_all
  8133. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8134. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8135. 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}"
  8136. 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}"
  8137. else
  8138. ld_shlibs=no
  8139. fi
  8140. ;;
  8141. dgux*)
  8142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8143. hardcode_libdir_flag_spec='-L$libdir'
  8144. hardcode_shlibpath_var=no
  8145. ;;
  8146. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8147. # support. Future versions do this automatically, but an explicit c++rt0.o
  8148. # does not break anything, and helps significantly (at the cost of a little
  8149. # extra space).
  8150. freebsd2.2*)
  8151. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8152. hardcode_libdir_flag_spec='-R$libdir'
  8153. hardcode_direct=yes
  8154. hardcode_shlibpath_var=no
  8155. ;;
  8156. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8157. freebsd2.*)
  8158. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8159. hardcode_direct=yes
  8160. hardcode_minus_L=yes
  8161. hardcode_shlibpath_var=no
  8162. ;;
  8163. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8164. freebsd* | dragonfly*)
  8165. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8166. hardcode_libdir_flag_spec='-R$libdir'
  8167. hardcode_direct=yes
  8168. hardcode_shlibpath_var=no
  8169. ;;
  8170. hpux9*)
  8171. if test "$GCC" = yes; then
  8172. 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'
  8173. else
  8174. 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'
  8175. fi
  8176. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8177. hardcode_libdir_separator=:
  8178. hardcode_direct=yes
  8179. # hardcode_minus_L: Not really in the search PATH,
  8180. # but as the default location of the library.
  8181. hardcode_minus_L=yes
  8182. export_dynamic_flag_spec='${wl}-E'
  8183. ;;
  8184. hpux10*)
  8185. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8186. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8187. else
  8188. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8189. fi
  8190. if test "$with_gnu_ld" = no; then
  8191. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8192. hardcode_libdir_flag_spec_ld='+b $libdir'
  8193. hardcode_libdir_separator=:
  8194. hardcode_direct=yes
  8195. hardcode_direct_absolute=yes
  8196. export_dynamic_flag_spec='${wl}-E'
  8197. # hardcode_minus_L: Not really in the search PATH,
  8198. # but as the default location of the library.
  8199. hardcode_minus_L=yes
  8200. fi
  8201. ;;
  8202. hpux11*)
  8203. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8204. case $host_cpu in
  8205. hppa*64*)
  8206. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8207. ;;
  8208. ia64*)
  8209. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8210. ;;
  8211. *)
  8212. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8213. ;;
  8214. esac
  8215. else
  8216. case $host_cpu in
  8217. hppa*64*)
  8218. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8219. ;;
  8220. ia64*)
  8221. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8222. ;;
  8223. *)
  8224. # Older versions of the 11.00 compiler do not understand -b yet
  8225. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8227. $as_echo_n "checking if $CC understands -b... " >&6; }
  8228. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8229. $as_echo_n "(cached) " >&6
  8230. else
  8231. lt_cv_prog_compiler__b=no
  8232. save_LDFLAGS="$LDFLAGS"
  8233. LDFLAGS="$LDFLAGS -b"
  8234. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8235. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8236. # The linker can only warn and ignore the option if not recognized
  8237. # So say no if there are warnings
  8238. if test -s conftest.err; then
  8239. # Append any errors to the config.log.
  8240. cat conftest.err 1>&5
  8241. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8242. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8243. if diff conftest.exp conftest.er2 >/dev/null; then
  8244. lt_cv_prog_compiler__b=yes
  8245. fi
  8246. else
  8247. lt_cv_prog_compiler__b=yes
  8248. fi
  8249. fi
  8250. $RM -r conftest*
  8251. LDFLAGS="$save_LDFLAGS"
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8254. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8255. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8256. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8257. else
  8258. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8259. fi
  8260. ;;
  8261. esac
  8262. fi
  8263. if test "$with_gnu_ld" = no; then
  8264. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8265. hardcode_libdir_separator=:
  8266. case $host_cpu in
  8267. hppa*64*|ia64*)
  8268. hardcode_direct=no
  8269. hardcode_shlibpath_var=no
  8270. ;;
  8271. *)
  8272. hardcode_direct=yes
  8273. hardcode_direct_absolute=yes
  8274. export_dynamic_flag_spec='${wl}-E'
  8275. # hardcode_minus_L: Not really in the search PATH,
  8276. # but as the default location of the library.
  8277. hardcode_minus_L=yes
  8278. ;;
  8279. esac
  8280. fi
  8281. ;;
  8282. irix5* | irix6* | nonstopux*)
  8283. if test "$GCC" = yes; then
  8284. 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'
  8285. # Try to use the -exported_symbol ld option, if it does not
  8286. # work, assume that -exports_file does not work either and
  8287. # implicitly export all symbols.
  8288. save_LDFLAGS="$LDFLAGS"
  8289. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8291. /* end confdefs.h. */
  8292. int foo(void) {}
  8293. _ACEOF
  8294. if ac_fn_c_try_link "$LINENO"; then :
  8295. 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'
  8296. fi
  8297. rm -f core conftest.err conftest.$ac_objext \
  8298. conftest$ac_exeext conftest.$ac_ext
  8299. LDFLAGS="$save_LDFLAGS"
  8300. else
  8301. 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'
  8302. 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'
  8303. fi
  8304. archive_cmds_need_lc='no'
  8305. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8306. hardcode_libdir_separator=:
  8307. inherit_rpath=yes
  8308. link_all_deplibs=yes
  8309. ;;
  8310. netbsd*)
  8311. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8312. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8313. else
  8314. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8315. fi
  8316. hardcode_libdir_flag_spec='-R$libdir'
  8317. hardcode_direct=yes
  8318. hardcode_shlibpath_var=no
  8319. ;;
  8320. newsos6)
  8321. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8322. hardcode_direct=yes
  8323. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8324. hardcode_libdir_separator=:
  8325. hardcode_shlibpath_var=no
  8326. ;;
  8327. *nto* | *qnx*)
  8328. ;;
  8329. openbsd*)
  8330. if test -f /usr/libexec/ld.so; then
  8331. hardcode_direct=yes
  8332. hardcode_shlibpath_var=no
  8333. hardcode_direct_absolute=yes
  8334. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8335. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8336. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8337. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8338. export_dynamic_flag_spec='${wl}-E'
  8339. else
  8340. case $host_os in
  8341. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8342. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8343. hardcode_libdir_flag_spec='-R$libdir'
  8344. ;;
  8345. *)
  8346. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8347. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8348. ;;
  8349. esac
  8350. fi
  8351. else
  8352. ld_shlibs=no
  8353. fi
  8354. ;;
  8355. os2*)
  8356. hardcode_libdir_flag_spec='-L$libdir'
  8357. hardcode_minus_L=yes
  8358. allow_undefined_flag=unsupported
  8359. 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'
  8360. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8361. ;;
  8362. osf3*)
  8363. if test "$GCC" = yes; then
  8364. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8365. 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'
  8366. else
  8367. allow_undefined_flag=' -expect_unresolved \*'
  8368. 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'
  8369. fi
  8370. archive_cmds_need_lc='no'
  8371. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8372. hardcode_libdir_separator=:
  8373. ;;
  8374. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8375. if test "$GCC" = yes; then
  8376. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8377. 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'
  8378. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8379. else
  8380. allow_undefined_flag=' -expect_unresolved \*'
  8381. 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'
  8382. 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~
  8383. $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'
  8384. # Both c and cxx compiler support -rpath directly
  8385. hardcode_libdir_flag_spec='-rpath $libdir'
  8386. fi
  8387. archive_cmds_need_lc='no'
  8388. hardcode_libdir_separator=:
  8389. ;;
  8390. solaris*)
  8391. no_undefined_flag=' -z defs'
  8392. if test "$GCC" = yes; then
  8393. wlarc='${wl}'
  8394. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8395. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8396. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8397. else
  8398. case `$CC -V 2>&1` in
  8399. *"Compilers 5.0"*)
  8400. wlarc=''
  8401. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8402. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8403. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8404. ;;
  8405. *)
  8406. wlarc='${wl}'
  8407. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8408. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8409. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8410. ;;
  8411. esac
  8412. fi
  8413. hardcode_libdir_flag_spec='-R$libdir'
  8414. hardcode_shlibpath_var=no
  8415. case $host_os in
  8416. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8417. *)
  8418. # The compiler driver will combine and reorder linker options,
  8419. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8420. # but is careful enough not to reorder.
  8421. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8422. if test "$GCC" = yes; then
  8423. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8424. else
  8425. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8426. fi
  8427. ;;
  8428. esac
  8429. link_all_deplibs=yes
  8430. ;;
  8431. sunos4*)
  8432. if test "x$host_vendor" = xsequent; then
  8433. # Use $CC to link under sequent, because it throws in some extra .o
  8434. # files that make .init and .fini sections work.
  8435. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. else
  8437. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8438. fi
  8439. hardcode_libdir_flag_spec='-L$libdir'
  8440. hardcode_direct=yes
  8441. hardcode_minus_L=yes
  8442. hardcode_shlibpath_var=no
  8443. ;;
  8444. sysv4)
  8445. case $host_vendor in
  8446. sni)
  8447. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8448. hardcode_direct=yes # is this really true???
  8449. ;;
  8450. siemens)
  8451. ## LD is ld it makes a PLAMLIB
  8452. ## CC just makes a GrossModule.
  8453. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8454. reload_cmds='$CC -r -o $output$reload_objs'
  8455. hardcode_direct=no
  8456. ;;
  8457. motorola)
  8458. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8459. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8460. ;;
  8461. esac
  8462. runpath_var='LD_RUN_PATH'
  8463. hardcode_shlibpath_var=no
  8464. ;;
  8465. sysv4.3*)
  8466. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8467. hardcode_shlibpath_var=no
  8468. export_dynamic_flag_spec='-Bexport'
  8469. ;;
  8470. sysv4*MP*)
  8471. if test -d /usr/nec; then
  8472. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8473. hardcode_shlibpath_var=no
  8474. runpath_var=LD_RUN_PATH
  8475. hardcode_runpath_var=yes
  8476. ld_shlibs=yes
  8477. fi
  8478. ;;
  8479. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8480. no_undefined_flag='${wl}-z,text'
  8481. archive_cmds_need_lc=no
  8482. hardcode_shlibpath_var=no
  8483. runpath_var='LD_RUN_PATH'
  8484. if test "$GCC" = yes; then
  8485. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8486. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8487. else
  8488. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8489. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. fi
  8491. ;;
  8492. sysv5* | sco3.2v5* | sco5v6*)
  8493. # Note: We can NOT use -z defs as we might desire, because we do not
  8494. # link with -lc, and that would cause any symbols used from libc to
  8495. # always be unresolved, which means just about no library would
  8496. # ever link correctly. If we're not using GNU ld we use -z text
  8497. # though, which does catch some bad symbols but isn't as heavy-handed
  8498. # as -z defs.
  8499. no_undefined_flag='${wl}-z,text'
  8500. allow_undefined_flag='${wl}-z,nodefs'
  8501. archive_cmds_need_lc=no
  8502. hardcode_shlibpath_var=no
  8503. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8504. hardcode_libdir_separator=':'
  8505. link_all_deplibs=yes
  8506. export_dynamic_flag_spec='${wl}-Bexport'
  8507. runpath_var='LD_RUN_PATH'
  8508. if test "$GCC" = yes; then
  8509. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8510. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8511. else
  8512. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8513. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8514. fi
  8515. ;;
  8516. uts4*)
  8517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8518. hardcode_libdir_flag_spec='-L$libdir'
  8519. hardcode_shlibpath_var=no
  8520. ;;
  8521. *)
  8522. ld_shlibs=no
  8523. ;;
  8524. esac
  8525. if test x$host_vendor = xsni; then
  8526. case $host in
  8527. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8528. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8529. ;;
  8530. esac
  8531. fi
  8532. fi
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8534. $as_echo "$ld_shlibs" >&6; }
  8535. test "$ld_shlibs" = no && can_build_shared=no
  8536. with_gnu_ld=$with_gnu_ld
  8537. #
  8538. # Do we need to explicitly link libc?
  8539. #
  8540. case "x$archive_cmds_need_lc" in
  8541. x|xyes)
  8542. # Assume -lc should be added
  8543. archive_cmds_need_lc=yes
  8544. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8545. case $archive_cmds in
  8546. *'~'*)
  8547. # FIXME: we may have to deal with multi-command sequences.
  8548. ;;
  8549. '$CC '*)
  8550. # Test whether the compiler implicitly links with -lc since on some
  8551. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8552. # to ld, don't add -lc before -lgcc.
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8554. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8555. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8556. $as_echo_n "(cached) " >&6
  8557. else
  8558. $RM conftest*
  8559. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8560. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8561. (eval $ac_compile) 2>&5
  8562. ac_status=$?
  8563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8564. test $ac_status = 0; } 2>conftest.err; then
  8565. soname=conftest
  8566. lib=conftest
  8567. libobjs=conftest.$ac_objext
  8568. deplibs=
  8569. wl=$lt_prog_compiler_wl
  8570. pic_flag=$lt_prog_compiler_pic
  8571. compiler_flags=-v
  8572. linker_flags=-v
  8573. verstring=
  8574. output_objdir=.
  8575. libname=conftest
  8576. lt_save_allow_undefined_flag=$allow_undefined_flag
  8577. allow_undefined_flag=
  8578. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8579. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8580. ac_status=$?
  8581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8582. test $ac_status = 0; }
  8583. then
  8584. lt_cv_archive_cmds_need_lc=no
  8585. else
  8586. lt_cv_archive_cmds_need_lc=yes
  8587. fi
  8588. allow_undefined_flag=$lt_save_allow_undefined_flag
  8589. else
  8590. cat conftest.err 1>&5
  8591. fi
  8592. $RM conftest*
  8593. fi
  8594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8595. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8596. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8597. ;;
  8598. esac
  8599. fi
  8600. ;;
  8601. esac
  8602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8603. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8604. if test "$GCC" = yes; then
  8605. case $host_os in
  8606. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8607. *) lt_awk_arg="/^libraries:/" ;;
  8608. esac
  8609. case $host_os in
  8610. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8611. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8612. esac
  8613. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8614. case $lt_search_path_spec in
  8615. *\;*)
  8616. # if the path contains ";" then we assume it to be the separator
  8617. # otherwise default to the standard path separator (i.e. ":") - it is
  8618. # assumed that no part of a normal pathname contains ";" but that should
  8619. # okay in the real world where ";" in dirpaths is itself problematic.
  8620. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8621. ;;
  8622. *)
  8623. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8624. ;;
  8625. esac
  8626. # Ok, now we have the path, separated by spaces, we can step through it
  8627. # and add multilib dir if necessary.
  8628. lt_tmp_lt_search_path_spec=
  8629. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8630. for lt_sys_path in $lt_search_path_spec; do
  8631. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8632. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8633. else
  8634. test -d "$lt_sys_path" && \
  8635. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8636. fi
  8637. done
  8638. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8639. BEGIN {RS=" "; FS="/|\n";} {
  8640. lt_foo="";
  8641. lt_count=0;
  8642. for (lt_i = NF; lt_i > 0; lt_i--) {
  8643. if ($lt_i != "" && $lt_i != ".") {
  8644. if ($lt_i == "..") {
  8645. lt_count++;
  8646. } else {
  8647. if (lt_count == 0) {
  8648. lt_foo="/" $lt_i lt_foo;
  8649. } else {
  8650. lt_count--;
  8651. }
  8652. }
  8653. }
  8654. }
  8655. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8656. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8657. }'`
  8658. # AWK program above erroneously prepends '/' to C:/dos/paths
  8659. # for these hosts.
  8660. case $host_os in
  8661. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8662. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8663. esac
  8664. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8665. else
  8666. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8667. fi
  8668. library_names_spec=
  8669. libname_spec='lib$name'
  8670. soname_spec=
  8671. shrext_cmds=".so"
  8672. postinstall_cmds=
  8673. postuninstall_cmds=
  8674. finish_cmds=
  8675. finish_eval=
  8676. shlibpath_var=
  8677. shlibpath_overrides_runpath=unknown
  8678. version_type=none
  8679. dynamic_linker="$host_os ld.so"
  8680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8681. need_lib_prefix=unknown
  8682. hardcode_into_libs=no
  8683. # when you set need_version to no, make sure it does not cause -set_version
  8684. # flags to be left without arguments
  8685. need_version=unknown
  8686. case $host_os in
  8687. aix3*)
  8688. version_type=linux
  8689. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8690. shlibpath_var=LIBPATH
  8691. # AIX 3 has no versioning support, so we append a major version to the name.
  8692. soname_spec='${libname}${release}${shared_ext}$major'
  8693. ;;
  8694. aix[4-9]*)
  8695. version_type=linux
  8696. need_lib_prefix=no
  8697. need_version=no
  8698. hardcode_into_libs=yes
  8699. if test "$host_cpu" = ia64; then
  8700. # AIX 5 supports IA64
  8701. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8702. shlibpath_var=LD_LIBRARY_PATH
  8703. else
  8704. # With GCC up to 2.95.x, collect2 would create an import file
  8705. # for dependence libraries. The import file would start with
  8706. # the line `#! .'. This would cause the generated library to
  8707. # depend on `.', always an invalid library. This was fixed in
  8708. # development snapshots of GCC prior to 3.0.
  8709. case $host_os in
  8710. aix4 | aix4.[01] | aix4.[01].*)
  8711. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8712. echo ' yes '
  8713. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8714. :
  8715. else
  8716. can_build_shared=no
  8717. fi
  8718. ;;
  8719. esac
  8720. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8721. # soname into executable. Probably we can add versioning support to
  8722. # collect2, so additional links can be useful in future.
  8723. if test "$aix_use_runtimelinking" = yes; then
  8724. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8725. # instead of lib<name>.a to let people know that these are not
  8726. # typical AIX shared libraries.
  8727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8728. else
  8729. # We preserve .a as extension for shared libraries through AIX4.2
  8730. # and later when we are not doing run time linking.
  8731. library_names_spec='${libname}${release}.a $libname.a'
  8732. soname_spec='${libname}${release}${shared_ext}$major'
  8733. fi
  8734. shlibpath_var=LIBPATH
  8735. fi
  8736. ;;
  8737. amigaos*)
  8738. case $host_cpu in
  8739. powerpc)
  8740. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8741. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8743. ;;
  8744. m68k)
  8745. library_names_spec='$libname.ixlibrary $libname.a'
  8746. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8747. 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'
  8748. ;;
  8749. esac
  8750. ;;
  8751. beos*)
  8752. library_names_spec='${libname}${shared_ext}'
  8753. dynamic_linker="$host_os ld.so"
  8754. shlibpath_var=LIBRARY_PATH
  8755. ;;
  8756. bsdi[45]*)
  8757. version_type=linux
  8758. need_version=no
  8759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8760. soname_spec='${libname}${release}${shared_ext}$major'
  8761. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8762. shlibpath_var=LD_LIBRARY_PATH
  8763. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8764. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8765. # the default ld.so.conf also contains /usr/contrib/lib and
  8766. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8767. # libtool to hard-code these into programs
  8768. ;;
  8769. cygwin* | mingw* | pw32* | cegcc*)
  8770. version_type=windows
  8771. shrext_cmds=".dll"
  8772. need_version=no
  8773. need_lib_prefix=no
  8774. case $GCC,$host_os in
  8775. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8776. library_names_spec='$libname.dll.a'
  8777. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8778. postinstall_cmds='base_file=`basename \${file}`~
  8779. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8780. dldir=$destdir/`dirname \$dlpath`~
  8781. test -d \$dldir || mkdir -p \$dldir~
  8782. $install_prog $dir/$dlname \$dldir/$dlname~
  8783. chmod a+x \$dldir/$dlname~
  8784. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8785. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8786. fi'
  8787. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8788. dlpath=$dir/\$dldll~
  8789. $RM \$dlpath'
  8790. shlibpath_overrides_runpath=yes
  8791. case $host_os in
  8792. cygwin*)
  8793. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8794. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8795. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8796. ;;
  8797. mingw* | cegcc*)
  8798. # MinGW DLLs use traditional 'lib' prefix
  8799. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8800. ;;
  8801. pw32*)
  8802. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8803. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8804. ;;
  8805. esac
  8806. ;;
  8807. *)
  8808. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8809. ;;
  8810. esac
  8811. dynamic_linker='Win32 ld.exe'
  8812. # FIXME: first we should search . and the directory the executable is in
  8813. shlibpath_var=PATH
  8814. ;;
  8815. darwin* | rhapsody*)
  8816. dynamic_linker="$host_os dyld"
  8817. version_type=darwin
  8818. need_lib_prefix=no
  8819. need_version=no
  8820. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8821. soname_spec='${libname}${release}${major}$shared_ext'
  8822. shlibpath_overrides_runpath=yes
  8823. shlibpath_var=DYLD_LIBRARY_PATH
  8824. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8825. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8826. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8827. ;;
  8828. dgux*)
  8829. version_type=linux
  8830. need_lib_prefix=no
  8831. need_version=no
  8832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8833. soname_spec='${libname}${release}${shared_ext}$major'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. ;;
  8836. freebsd* | dragonfly*)
  8837. # DragonFly does not have aout. When/if they implement a new
  8838. # versioning mechanism, adjust this.
  8839. if test -x /usr/bin/objformat; then
  8840. objformat=`/usr/bin/objformat`
  8841. else
  8842. case $host_os in
  8843. freebsd[23].*) objformat=aout ;;
  8844. *) objformat=elf ;;
  8845. esac
  8846. fi
  8847. version_type=freebsd-$objformat
  8848. case $version_type in
  8849. freebsd-elf*)
  8850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8851. need_version=no
  8852. need_lib_prefix=no
  8853. ;;
  8854. freebsd-*)
  8855. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8856. need_version=yes
  8857. ;;
  8858. esac
  8859. shlibpath_var=LD_LIBRARY_PATH
  8860. case $host_os in
  8861. freebsd2.*)
  8862. shlibpath_overrides_runpath=yes
  8863. ;;
  8864. freebsd3.[01]* | freebsdelf3.[01]*)
  8865. shlibpath_overrides_runpath=yes
  8866. hardcode_into_libs=yes
  8867. ;;
  8868. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8869. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8870. shlibpath_overrides_runpath=no
  8871. hardcode_into_libs=yes
  8872. ;;
  8873. *) # from 4.6 on, and DragonFly
  8874. shlibpath_overrides_runpath=yes
  8875. hardcode_into_libs=yes
  8876. ;;
  8877. esac
  8878. ;;
  8879. gnu*)
  8880. version_type=linux
  8881. need_lib_prefix=no
  8882. need_version=no
  8883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8884. soname_spec='${libname}${release}${shared_ext}$major'
  8885. shlibpath_var=LD_LIBRARY_PATH
  8886. hardcode_into_libs=yes
  8887. ;;
  8888. haiku*)
  8889. version_type=linux
  8890. need_lib_prefix=no
  8891. need_version=no
  8892. dynamic_linker="$host_os runtime_loader"
  8893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8894. soname_spec='${libname}${release}${shared_ext}$major'
  8895. shlibpath_var=LIBRARY_PATH
  8896. shlibpath_overrides_runpath=yes
  8897. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8898. hardcode_into_libs=yes
  8899. ;;
  8900. hpux9* | hpux10* | hpux11*)
  8901. # Give a soname corresponding to the major version so that dld.sl refuses to
  8902. # link against other versions.
  8903. version_type=sunos
  8904. need_lib_prefix=no
  8905. need_version=no
  8906. case $host_cpu in
  8907. ia64*)
  8908. shrext_cmds='.so'
  8909. hardcode_into_libs=yes
  8910. dynamic_linker="$host_os dld.so"
  8911. shlibpath_var=LD_LIBRARY_PATH
  8912. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8914. soname_spec='${libname}${release}${shared_ext}$major'
  8915. if test "X$HPUX_IA64_MODE" = X32; then
  8916. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8917. else
  8918. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8919. fi
  8920. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8921. ;;
  8922. hppa*64*)
  8923. shrext_cmds='.sl'
  8924. hardcode_into_libs=yes
  8925. dynamic_linker="$host_os dld.sl"
  8926. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8927. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8931. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8932. ;;
  8933. *)
  8934. shrext_cmds='.sl'
  8935. dynamic_linker="$host_os dld.sl"
  8936. shlibpath_var=SHLIB_PATH
  8937. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8939. soname_spec='${libname}${release}${shared_ext}$major'
  8940. ;;
  8941. esac
  8942. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8943. postinstall_cmds='chmod 555 $lib'
  8944. # or fails outright, so override atomically:
  8945. install_override_mode=555
  8946. ;;
  8947. interix[3-9]*)
  8948. version_type=linux
  8949. need_lib_prefix=no
  8950. need_version=no
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8954. shlibpath_var=LD_LIBRARY_PATH
  8955. shlibpath_overrides_runpath=no
  8956. hardcode_into_libs=yes
  8957. ;;
  8958. irix5* | irix6* | nonstopux*)
  8959. case $host_os in
  8960. nonstopux*) version_type=nonstopux ;;
  8961. *)
  8962. if test "$lt_cv_prog_gnu_ld" = yes; then
  8963. version_type=linux
  8964. else
  8965. version_type=irix
  8966. fi ;;
  8967. esac
  8968. need_lib_prefix=no
  8969. need_version=no
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8972. case $host_os in
  8973. irix5* | nonstopux*)
  8974. libsuff= shlibsuff=
  8975. ;;
  8976. *)
  8977. case $LD in # libtool.m4 will add one of these switches to LD
  8978. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8979. libsuff= shlibsuff= libmagic=32-bit;;
  8980. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8981. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8982. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8983. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8984. *) libsuff= shlibsuff= libmagic=never-match;;
  8985. esac
  8986. ;;
  8987. esac
  8988. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8989. shlibpath_overrides_runpath=no
  8990. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8991. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8992. hardcode_into_libs=yes
  8993. ;;
  8994. # No shared lib support for Linux oldld, aout, or coff.
  8995. linux*oldld* | linux*aout* | linux*coff*)
  8996. dynamic_linker=no
  8997. ;;
  8998. # This must be Linux ELF.
  8999. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9000. version_type=linux
  9001. need_lib_prefix=no
  9002. need_version=no
  9003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9004. soname_spec='${libname}${release}${shared_ext}$major'
  9005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9006. shlibpath_var=LD_LIBRARY_PATH
  9007. shlibpath_overrides_runpath=no
  9008. # Some binutils ld are patched to set DT_RUNPATH
  9009. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9010. $as_echo_n "(cached) " >&6
  9011. else
  9012. lt_cv_shlibpath_overrides_runpath=no
  9013. save_LDFLAGS=$LDFLAGS
  9014. save_libdir=$libdir
  9015. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9016. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9018. /* end confdefs.h. */
  9019. int
  9020. main ()
  9021. {
  9022. ;
  9023. return 0;
  9024. }
  9025. _ACEOF
  9026. if ac_fn_c_try_link "$LINENO"; then :
  9027. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9028. lt_cv_shlibpath_overrides_runpath=yes
  9029. fi
  9030. fi
  9031. rm -f core conftest.err conftest.$ac_objext \
  9032. conftest$ac_exeext conftest.$ac_ext
  9033. LDFLAGS=$save_LDFLAGS
  9034. libdir=$save_libdir
  9035. fi
  9036. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9037. # This implies no fast_install, which is unacceptable.
  9038. # Some rework will be needed to allow for fast_install
  9039. # before this can be enabled.
  9040. hardcode_into_libs=yes
  9041. # Append ld.so.conf contents to the search path
  9042. if test -f /etc/ld.so.conf; then
  9043. 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' ' '`
  9044. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9045. fi
  9046. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9047. # powerpc, because MkLinux only supported shared libraries with the
  9048. # GNU dynamic linker. Since this was broken with cross compilers,
  9049. # most powerpc-linux boxes support dynamic linking these days and
  9050. # people can always --disable-shared, the test was removed, and we
  9051. # assume the GNU/Linux dynamic linker is in use.
  9052. dynamic_linker='GNU/Linux ld.so'
  9053. ;;
  9054. netbsd*)
  9055. version_type=sunos
  9056. need_lib_prefix=no
  9057. need_version=no
  9058. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9060. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9061. dynamic_linker='NetBSD (a.out) ld.so'
  9062. else
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9064. soname_spec='${libname}${release}${shared_ext}$major'
  9065. dynamic_linker='NetBSD ld.elf_so'
  9066. fi
  9067. shlibpath_var=LD_LIBRARY_PATH
  9068. shlibpath_overrides_runpath=yes
  9069. hardcode_into_libs=yes
  9070. ;;
  9071. newsos6)
  9072. version_type=linux
  9073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9074. shlibpath_var=LD_LIBRARY_PATH
  9075. shlibpath_overrides_runpath=yes
  9076. ;;
  9077. *nto* | *qnx*)
  9078. version_type=qnx
  9079. need_lib_prefix=no
  9080. need_version=no
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9082. soname_spec='${libname}${release}${shared_ext}$major'
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. shlibpath_overrides_runpath=no
  9085. hardcode_into_libs=yes
  9086. dynamic_linker='ldqnx.so'
  9087. ;;
  9088. openbsd*)
  9089. version_type=sunos
  9090. sys_lib_dlsearch_path_spec="/usr/lib"
  9091. need_lib_prefix=no
  9092. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9093. case $host_os in
  9094. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9095. *) need_version=no ;;
  9096. esac
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9098. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9099. shlibpath_var=LD_LIBRARY_PATH
  9100. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9101. case $host_os in
  9102. openbsd2.[89] | openbsd2.[89].*)
  9103. shlibpath_overrides_runpath=no
  9104. ;;
  9105. *)
  9106. shlibpath_overrides_runpath=yes
  9107. ;;
  9108. esac
  9109. else
  9110. shlibpath_overrides_runpath=yes
  9111. fi
  9112. ;;
  9113. os2*)
  9114. libname_spec='$name'
  9115. shrext_cmds=".dll"
  9116. need_lib_prefix=no
  9117. library_names_spec='$libname${shared_ext} $libname.a'
  9118. dynamic_linker='OS/2 ld.exe'
  9119. shlibpath_var=LIBPATH
  9120. ;;
  9121. osf3* | osf4* | osf5*)
  9122. version_type=osf
  9123. need_lib_prefix=no
  9124. need_version=no
  9125. soname_spec='${libname}${release}${shared_ext}$major'
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9127. shlibpath_var=LD_LIBRARY_PATH
  9128. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9129. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9130. ;;
  9131. rdos*)
  9132. dynamic_linker=no
  9133. ;;
  9134. solaris*)
  9135. version_type=linux
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9139. soname_spec='${libname}${release}${shared_ext}$major'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. shlibpath_overrides_runpath=yes
  9142. hardcode_into_libs=yes
  9143. # ldd complains unless libraries are executable
  9144. postinstall_cmds='chmod +x $lib'
  9145. ;;
  9146. sunos4*)
  9147. version_type=sunos
  9148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9149. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9150. shlibpath_var=LD_LIBRARY_PATH
  9151. shlibpath_overrides_runpath=yes
  9152. if test "$with_gnu_ld" = yes; then
  9153. need_lib_prefix=no
  9154. fi
  9155. need_version=yes
  9156. ;;
  9157. sysv4 | sysv4.3*)
  9158. version_type=linux
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. shlibpath_var=LD_LIBRARY_PATH
  9162. case $host_vendor in
  9163. sni)
  9164. shlibpath_overrides_runpath=no
  9165. need_lib_prefix=no
  9166. runpath_var=LD_RUN_PATH
  9167. ;;
  9168. siemens)
  9169. need_lib_prefix=no
  9170. ;;
  9171. motorola)
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. shlibpath_overrides_runpath=no
  9175. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9176. ;;
  9177. esac
  9178. ;;
  9179. sysv4*MP*)
  9180. if test -d /usr/nec ;then
  9181. version_type=linux
  9182. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9183. soname_spec='$libname${shared_ext}.$major'
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. fi
  9186. ;;
  9187. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9188. version_type=freebsd-elf
  9189. need_lib_prefix=no
  9190. need_version=no
  9191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9192. soname_spec='${libname}${release}${shared_ext}$major'
  9193. shlibpath_var=LD_LIBRARY_PATH
  9194. shlibpath_overrides_runpath=yes
  9195. hardcode_into_libs=yes
  9196. if test "$with_gnu_ld" = yes; then
  9197. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9198. else
  9199. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9200. case $host_os in
  9201. sco3.2v5*)
  9202. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9203. ;;
  9204. esac
  9205. fi
  9206. sys_lib_dlsearch_path_spec='/usr/lib'
  9207. ;;
  9208. tpf*)
  9209. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9210. version_type=linux
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=no
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. uts4*)
  9219. version_type=linux
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9221. soname_spec='${libname}${release}${shared_ext}$major'
  9222. shlibpath_var=LD_LIBRARY_PATH
  9223. ;;
  9224. *)
  9225. dynamic_linker=no
  9226. ;;
  9227. esac
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9229. $as_echo "$dynamic_linker" >&6; }
  9230. test "$dynamic_linker" = no && can_build_shared=no
  9231. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9232. if test "$GCC" = yes; then
  9233. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9234. fi
  9235. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9236. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9237. fi
  9238. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9239. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9240. fi
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9242. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9243. hardcode_action=
  9244. if test -n "$hardcode_libdir_flag_spec" ||
  9245. test -n "$runpath_var" ||
  9246. test "X$hardcode_automatic" = "Xyes" ; then
  9247. # We can hardcode non-existent directories.
  9248. if test "$hardcode_direct" != no &&
  9249. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9250. # have to relink, otherwise we might link with an installed library
  9251. # when we should be linking with a yet-to-be-installed one
  9252. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9253. test "$hardcode_minus_L" != no; then
  9254. # Linking always hardcodes the temporary library directory.
  9255. hardcode_action=relink
  9256. else
  9257. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9258. hardcode_action=immediate
  9259. fi
  9260. else
  9261. # We cannot hardcode anything, or else we can only hardcode existing
  9262. # directories.
  9263. hardcode_action=unsupported
  9264. fi
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9266. $as_echo "$hardcode_action" >&6; }
  9267. if test "$hardcode_action" = relink ||
  9268. test "$inherit_rpath" = yes; then
  9269. # Fast installation is not supported
  9270. enable_fast_install=no
  9271. elif test "$shlibpath_overrides_runpath" = yes ||
  9272. test "$enable_shared" = no; then
  9273. # Fast installation is not necessary
  9274. enable_fast_install=needless
  9275. fi
  9276. if test "x$enable_dlopen" != xyes; then
  9277. enable_dlopen=unknown
  9278. enable_dlopen_self=unknown
  9279. enable_dlopen_self_static=unknown
  9280. else
  9281. lt_cv_dlopen=no
  9282. lt_cv_dlopen_libs=
  9283. case $host_os in
  9284. beos*)
  9285. lt_cv_dlopen="load_add_on"
  9286. lt_cv_dlopen_libs=
  9287. lt_cv_dlopen_self=yes
  9288. ;;
  9289. mingw* | pw32* | cegcc*)
  9290. lt_cv_dlopen="LoadLibrary"
  9291. lt_cv_dlopen_libs=
  9292. ;;
  9293. cygwin*)
  9294. lt_cv_dlopen="dlopen"
  9295. lt_cv_dlopen_libs=
  9296. ;;
  9297. darwin*)
  9298. # if libdl is installed we need to link against it
  9299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9300. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9301. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9302. $as_echo_n "(cached) " >&6
  9303. else
  9304. ac_check_lib_save_LIBS=$LIBS
  9305. LIBS="-ldl $LIBS"
  9306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9307. /* end confdefs.h. */
  9308. /* Override any GCC internal prototype to avoid an error.
  9309. Use char because int might match the return type of a GCC
  9310. builtin and then its argument prototype would still apply. */
  9311. #ifdef __cplusplus
  9312. extern "C"
  9313. #endif
  9314. char dlopen ();
  9315. int
  9316. main ()
  9317. {
  9318. return dlopen ();
  9319. ;
  9320. return 0;
  9321. }
  9322. _ACEOF
  9323. if ac_fn_c_try_link "$LINENO"; then :
  9324. ac_cv_lib_dl_dlopen=yes
  9325. else
  9326. ac_cv_lib_dl_dlopen=no
  9327. fi
  9328. rm -f core conftest.err conftest.$ac_objext \
  9329. conftest$ac_exeext conftest.$ac_ext
  9330. LIBS=$ac_check_lib_save_LIBS
  9331. fi
  9332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9333. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9334. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9335. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9336. else
  9337. lt_cv_dlopen="dyld"
  9338. lt_cv_dlopen_libs=
  9339. lt_cv_dlopen_self=yes
  9340. fi
  9341. ;;
  9342. *)
  9343. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9344. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9345. lt_cv_dlopen="shl_load"
  9346. else
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9348. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9349. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9350. $as_echo_n "(cached) " >&6
  9351. else
  9352. ac_check_lib_save_LIBS=$LIBS
  9353. LIBS="-ldld $LIBS"
  9354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9355. /* end confdefs.h. */
  9356. /* Override any GCC internal prototype to avoid an error.
  9357. Use char because int might match the return type of a GCC
  9358. builtin and then its argument prototype would still apply. */
  9359. #ifdef __cplusplus
  9360. extern "C"
  9361. #endif
  9362. char shl_load ();
  9363. int
  9364. main ()
  9365. {
  9366. return shl_load ();
  9367. ;
  9368. return 0;
  9369. }
  9370. _ACEOF
  9371. if ac_fn_c_try_link "$LINENO"; then :
  9372. ac_cv_lib_dld_shl_load=yes
  9373. else
  9374. ac_cv_lib_dld_shl_load=no
  9375. fi
  9376. rm -f core conftest.err conftest.$ac_objext \
  9377. conftest$ac_exeext conftest.$ac_ext
  9378. LIBS=$ac_check_lib_save_LIBS
  9379. fi
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9381. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9382. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9383. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9384. else
  9385. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9386. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9387. lt_cv_dlopen="dlopen"
  9388. else
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9390. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9391. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. ac_check_lib_save_LIBS=$LIBS
  9395. LIBS="-ldl $LIBS"
  9396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9397. /* end confdefs.h. */
  9398. /* Override any GCC internal prototype to avoid an error.
  9399. Use char because int might match the return type of a GCC
  9400. builtin and then its argument prototype would still apply. */
  9401. #ifdef __cplusplus
  9402. extern "C"
  9403. #endif
  9404. char dlopen ();
  9405. int
  9406. main ()
  9407. {
  9408. return dlopen ();
  9409. ;
  9410. return 0;
  9411. }
  9412. _ACEOF
  9413. if ac_fn_c_try_link "$LINENO"; then :
  9414. ac_cv_lib_dl_dlopen=yes
  9415. else
  9416. ac_cv_lib_dl_dlopen=no
  9417. fi
  9418. rm -f core conftest.err conftest.$ac_objext \
  9419. conftest$ac_exeext conftest.$ac_ext
  9420. LIBS=$ac_check_lib_save_LIBS
  9421. fi
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9423. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9424. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9425. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9426. else
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9428. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9429. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9430. $as_echo_n "(cached) " >&6
  9431. else
  9432. ac_check_lib_save_LIBS=$LIBS
  9433. LIBS="-lsvld $LIBS"
  9434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9435. /* end confdefs.h. */
  9436. /* Override any GCC internal prototype to avoid an error.
  9437. Use char because int might match the return type of a GCC
  9438. builtin and then its argument prototype would still apply. */
  9439. #ifdef __cplusplus
  9440. extern "C"
  9441. #endif
  9442. char dlopen ();
  9443. int
  9444. main ()
  9445. {
  9446. return dlopen ();
  9447. ;
  9448. return 0;
  9449. }
  9450. _ACEOF
  9451. if ac_fn_c_try_link "$LINENO"; then :
  9452. ac_cv_lib_svld_dlopen=yes
  9453. else
  9454. ac_cv_lib_svld_dlopen=no
  9455. fi
  9456. rm -f core conftest.err conftest.$ac_objext \
  9457. conftest$ac_exeext conftest.$ac_ext
  9458. LIBS=$ac_check_lib_save_LIBS
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9461. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9462. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9463. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9464. else
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9466. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9467. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9468. $as_echo_n "(cached) " >&6
  9469. else
  9470. ac_check_lib_save_LIBS=$LIBS
  9471. LIBS="-ldld $LIBS"
  9472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9473. /* end confdefs.h. */
  9474. /* Override any GCC internal prototype to avoid an error.
  9475. Use char because int might match the return type of a GCC
  9476. builtin and then its argument prototype would still apply. */
  9477. #ifdef __cplusplus
  9478. extern "C"
  9479. #endif
  9480. char dld_link ();
  9481. int
  9482. main ()
  9483. {
  9484. return dld_link ();
  9485. ;
  9486. return 0;
  9487. }
  9488. _ACEOF
  9489. if ac_fn_c_try_link "$LINENO"; then :
  9490. ac_cv_lib_dld_dld_link=yes
  9491. else
  9492. ac_cv_lib_dld_dld_link=no
  9493. fi
  9494. rm -f core conftest.err conftest.$ac_objext \
  9495. conftest$ac_exeext conftest.$ac_ext
  9496. LIBS=$ac_check_lib_save_LIBS
  9497. fi
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9499. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9500. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9501. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9502. fi
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. fi
  9508. ;;
  9509. esac
  9510. if test "x$lt_cv_dlopen" != xno; then
  9511. enable_dlopen=yes
  9512. else
  9513. enable_dlopen=no
  9514. fi
  9515. case $lt_cv_dlopen in
  9516. dlopen)
  9517. save_CPPFLAGS="$CPPFLAGS"
  9518. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9519. save_LDFLAGS="$LDFLAGS"
  9520. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9521. save_LIBS="$LIBS"
  9522. LIBS="$lt_cv_dlopen_libs $LIBS"
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9524. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9525. if test "${lt_cv_dlopen_self+set}" = set; then :
  9526. $as_echo_n "(cached) " >&6
  9527. else
  9528. if test "$cross_compiling" = yes; then :
  9529. lt_cv_dlopen_self=cross
  9530. else
  9531. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9532. lt_status=$lt_dlunknown
  9533. cat > conftest.$ac_ext <<_LT_EOF
  9534. #line 11103 "configure"
  9535. #include "confdefs.h"
  9536. #if HAVE_DLFCN_H
  9537. #include <dlfcn.h>
  9538. #endif
  9539. #include <stdio.h>
  9540. #ifdef RTLD_GLOBAL
  9541. # define LT_DLGLOBAL RTLD_GLOBAL
  9542. #else
  9543. # ifdef DL_GLOBAL
  9544. # define LT_DLGLOBAL DL_GLOBAL
  9545. # else
  9546. # define LT_DLGLOBAL 0
  9547. # endif
  9548. #endif
  9549. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9550. find out it does not work in some platform. */
  9551. #ifndef LT_DLLAZY_OR_NOW
  9552. # ifdef RTLD_LAZY
  9553. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9554. # else
  9555. # ifdef DL_LAZY
  9556. # define LT_DLLAZY_OR_NOW DL_LAZY
  9557. # else
  9558. # ifdef RTLD_NOW
  9559. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9560. # else
  9561. # ifdef DL_NOW
  9562. # define LT_DLLAZY_OR_NOW DL_NOW
  9563. # else
  9564. # define LT_DLLAZY_OR_NOW 0
  9565. # endif
  9566. # endif
  9567. # endif
  9568. # endif
  9569. #endif
  9570. /* When -fvisbility=hidden is used, assume the code has been annotated
  9571. correspondingly for the symbols needed. */
  9572. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9573. void fnord () __attribute__((visibility("default")));
  9574. #endif
  9575. void fnord () { int i=42; }
  9576. int main ()
  9577. {
  9578. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9579. int status = $lt_dlunknown;
  9580. if (self)
  9581. {
  9582. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9583. else
  9584. {
  9585. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9586. else puts (dlerror ());
  9587. }
  9588. /* dlclose (self); */
  9589. }
  9590. else
  9591. puts (dlerror ());
  9592. return status;
  9593. }
  9594. _LT_EOF
  9595. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9596. (eval $ac_link) 2>&5
  9597. ac_status=$?
  9598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9599. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9600. (./conftest; exit; ) >&5 2>/dev/null
  9601. lt_status=$?
  9602. case x$lt_status in
  9603. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9604. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9605. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9606. esac
  9607. else :
  9608. # compilation failed
  9609. lt_cv_dlopen_self=no
  9610. fi
  9611. fi
  9612. rm -fr conftest*
  9613. fi
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9615. $as_echo "$lt_cv_dlopen_self" >&6; }
  9616. if test "x$lt_cv_dlopen_self" = xyes; then
  9617. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9619. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9620. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9621. $as_echo_n "(cached) " >&6
  9622. else
  9623. if test "$cross_compiling" = yes; then :
  9624. lt_cv_dlopen_self_static=cross
  9625. else
  9626. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9627. lt_status=$lt_dlunknown
  9628. cat > conftest.$ac_ext <<_LT_EOF
  9629. #line 11209 "configure"
  9630. #include "confdefs.h"
  9631. #if HAVE_DLFCN_H
  9632. #include <dlfcn.h>
  9633. #endif
  9634. #include <stdio.h>
  9635. #ifdef RTLD_GLOBAL
  9636. # define LT_DLGLOBAL RTLD_GLOBAL
  9637. #else
  9638. # ifdef DL_GLOBAL
  9639. # define LT_DLGLOBAL DL_GLOBAL
  9640. # else
  9641. # define LT_DLGLOBAL 0
  9642. # endif
  9643. #endif
  9644. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9645. find out it does not work in some platform. */
  9646. #ifndef LT_DLLAZY_OR_NOW
  9647. # ifdef RTLD_LAZY
  9648. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9649. # else
  9650. # ifdef DL_LAZY
  9651. # define LT_DLLAZY_OR_NOW DL_LAZY
  9652. # else
  9653. # ifdef RTLD_NOW
  9654. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9655. # else
  9656. # ifdef DL_NOW
  9657. # define LT_DLLAZY_OR_NOW DL_NOW
  9658. # else
  9659. # define LT_DLLAZY_OR_NOW 0
  9660. # endif
  9661. # endif
  9662. # endif
  9663. # endif
  9664. #endif
  9665. /* When -fvisbility=hidden is used, assume the code has been annotated
  9666. correspondingly for the symbols needed. */
  9667. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9668. void fnord () __attribute__((visibility("default")));
  9669. #endif
  9670. void fnord () { int i=42; }
  9671. int main ()
  9672. {
  9673. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9674. int status = $lt_dlunknown;
  9675. if (self)
  9676. {
  9677. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9678. else
  9679. {
  9680. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9681. else puts (dlerror ());
  9682. }
  9683. /* dlclose (self); */
  9684. }
  9685. else
  9686. puts (dlerror ());
  9687. return status;
  9688. }
  9689. _LT_EOF
  9690. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9691. (eval $ac_link) 2>&5
  9692. ac_status=$?
  9693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9694. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9695. (./conftest; exit; ) >&5 2>/dev/null
  9696. lt_status=$?
  9697. case x$lt_status in
  9698. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9699. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9700. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9701. esac
  9702. else :
  9703. # compilation failed
  9704. lt_cv_dlopen_self_static=no
  9705. fi
  9706. fi
  9707. rm -fr conftest*
  9708. fi
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9710. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9711. fi
  9712. CPPFLAGS="$save_CPPFLAGS"
  9713. LDFLAGS="$save_LDFLAGS"
  9714. LIBS="$save_LIBS"
  9715. ;;
  9716. esac
  9717. case $lt_cv_dlopen_self in
  9718. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9719. *) enable_dlopen_self=unknown ;;
  9720. esac
  9721. case $lt_cv_dlopen_self_static in
  9722. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9723. *) enable_dlopen_self_static=unknown ;;
  9724. esac
  9725. fi
  9726. striplib=
  9727. old_striplib=
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9729. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9730. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9731. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9732. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9734. $as_echo "yes" >&6; }
  9735. else
  9736. # FIXME - insert some real tests, host_os isn't really good enough
  9737. case $host_os in
  9738. darwin*)
  9739. if test -n "$STRIP" ; then
  9740. striplib="$STRIP -x"
  9741. old_striplib="$STRIP -S"
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9743. $as_echo "yes" >&6; }
  9744. else
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9746. $as_echo "no" >&6; }
  9747. fi
  9748. ;;
  9749. *)
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9751. $as_echo "no" >&6; }
  9752. ;;
  9753. esac
  9754. fi
  9755. # Report which library types will actually be built
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9757. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9759. $as_echo "$can_build_shared" >&6; }
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9761. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9762. test "$can_build_shared" = "no" && enable_shared=no
  9763. # On AIX, shared libraries and static libraries use the same namespace, and
  9764. # are all built from PIC.
  9765. case $host_os in
  9766. aix3*)
  9767. test "$enable_shared" = yes && enable_static=no
  9768. if test -n "$RANLIB"; then
  9769. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9770. postinstall_cmds='$RANLIB $lib'
  9771. fi
  9772. ;;
  9773. aix[4-9]*)
  9774. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9775. test "$enable_shared" = yes && enable_static=no
  9776. fi
  9777. ;;
  9778. esac
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9780. $as_echo "$enable_shared" >&6; }
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9782. $as_echo_n "checking whether to build static libraries... " >&6; }
  9783. # Make sure either enable_shared or enable_static is yes.
  9784. test "$enable_shared" = yes || enable_static=yes
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9786. $as_echo "$enable_static" >&6; }
  9787. fi
  9788. ac_ext=c
  9789. ac_cpp='$CPP $CPPFLAGS'
  9790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9793. CC="$lt_save_CC"
  9794. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9795. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9796. (test "X$CXX" != "Xg++"))) ; then
  9797. ac_ext=cpp
  9798. ac_cpp='$CXXCPP $CPPFLAGS'
  9799. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9800. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9801. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9803. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9804. if test -z "$CXXCPP"; then
  9805. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9806. $as_echo_n "(cached) " >&6
  9807. else
  9808. # Double quotes because CXXCPP needs to be expanded
  9809. for CXXCPP in "$CXX -E" "/lib/cpp"
  9810. do
  9811. ac_preproc_ok=false
  9812. for ac_cxx_preproc_warn_flag in '' yes
  9813. do
  9814. # Use a header file that comes with gcc, so configuring glibc
  9815. # with a fresh cross-compiler works.
  9816. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9817. # <limits.h> exists even on freestanding compilers.
  9818. # On the NeXT, cc -E runs the code through the compiler's parser,
  9819. # not just through cpp. "Syntax error" is here to catch this case.
  9820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9821. /* end confdefs.h. */
  9822. #ifdef __STDC__
  9823. # include <limits.h>
  9824. #else
  9825. # include <assert.h>
  9826. #endif
  9827. Syntax error
  9828. _ACEOF
  9829. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9830. else
  9831. # Broken: fails on valid input.
  9832. continue
  9833. fi
  9834. rm -f conftest.err conftest.$ac_ext
  9835. # OK, works on sane cases. Now check whether nonexistent headers
  9836. # can be detected and how.
  9837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9838. /* end confdefs.h. */
  9839. #include <ac_nonexistent.h>
  9840. _ACEOF
  9841. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9842. # Broken: success on invalid input.
  9843. continue
  9844. else
  9845. # Passes both tests.
  9846. ac_preproc_ok=:
  9847. break
  9848. fi
  9849. rm -f conftest.err conftest.$ac_ext
  9850. done
  9851. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9852. rm -f conftest.err conftest.$ac_ext
  9853. if $ac_preproc_ok; then :
  9854. break
  9855. fi
  9856. done
  9857. ac_cv_prog_CXXCPP=$CXXCPP
  9858. fi
  9859. CXXCPP=$ac_cv_prog_CXXCPP
  9860. else
  9861. ac_cv_prog_CXXCPP=$CXXCPP
  9862. fi
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9864. $as_echo "$CXXCPP" >&6; }
  9865. ac_preproc_ok=false
  9866. for ac_cxx_preproc_warn_flag in '' yes
  9867. do
  9868. # Use a header file that comes with gcc, so configuring glibc
  9869. # with a fresh cross-compiler works.
  9870. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9871. # <limits.h> exists even on freestanding compilers.
  9872. # On the NeXT, cc -E runs the code through the compiler's parser,
  9873. # not just through cpp. "Syntax error" is here to catch this case.
  9874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9875. /* end confdefs.h. */
  9876. #ifdef __STDC__
  9877. # include <limits.h>
  9878. #else
  9879. # include <assert.h>
  9880. #endif
  9881. Syntax error
  9882. _ACEOF
  9883. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9884. else
  9885. # Broken: fails on valid input.
  9886. continue
  9887. fi
  9888. rm -f conftest.err conftest.$ac_ext
  9889. # OK, works on sane cases. Now check whether nonexistent headers
  9890. # can be detected and how.
  9891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9892. /* end confdefs.h. */
  9893. #include <ac_nonexistent.h>
  9894. _ACEOF
  9895. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9896. # Broken: success on invalid input.
  9897. continue
  9898. else
  9899. # Passes both tests.
  9900. ac_preproc_ok=:
  9901. break
  9902. fi
  9903. rm -f conftest.err conftest.$ac_ext
  9904. done
  9905. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9906. rm -f conftest.err conftest.$ac_ext
  9907. if $ac_preproc_ok; then :
  9908. else
  9909. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9910. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9911. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  9912. See \`config.log' for more details." "$LINENO" 5; }
  9913. fi
  9914. ac_ext=c
  9915. ac_cpp='$CPP $CPPFLAGS'
  9916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9919. else
  9920. _lt_caught_CXX_error=yes
  9921. fi
  9922. ac_ext=cpp
  9923. ac_cpp='$CXXCPP $CPPFLAGS'
  9924. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9925. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9926. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9927. archive_cmds_need_lc_CXX=no
  9928. allow_undefined_flag_CXX=
  9929. always_export_symbols_CXX=no
  9930. archive_expsym_cmds_CXX=
  9931. compiler_needs_object_CXX=no
  9932. export_dynamic_flag_spec_CXX=
  9933. hardcode_direct_CXX=no
  9934. hardcode_direct_absolute_CXX=no
  9935. hardcode_libdir_flag_spec_CXX=
  9936. hardcode_libdir_flag_spec_ld_CXX=
  9937. hardcode_libdir_separator_CXX=
  9938. hardcode_minus_L_CXX=no
  9939. hardcode_shlibpath_var_CXX=unsupported
  9940. hardcode_automatic_CXX=no
  9941. inherit_rpath_CXX=no
  9942. module_cmds_CXX=
  9943. module_expsym_cmds_CXX=
  9944. link_all_deplibs_CXX=unknown
  9945. old_archive_cmds_CXX=$old_archive_cmds
  9946. reload_flag_CXX=$reload_flag
  9947. reload_cmds_CXX=$reload_cmds
  9948. no_undefined_flag_CXX=
  9949. whole_archive_flag_spec_CXX=
  9950. enable_shared_with_static_runtimes_CXX=no
  9951. # Source file extension for C++ test sources.
  9952. ac_ext=cpp
  9953. # Object file extension for compiled C++ test sources.
  9954. objext=o
  9955. objext_CXX=$objext
  9956. # No sense in running all these tests if we already determined that
  9957. # the CXX compiler isn't working. Some variables (like enable_shared)
  9958. # are currently assumed to apply to all compilers on this platform,
  9959. # and will be corrupted by setting them based on a non-working compiler.
  9960. if test "$_lt_caught_CXX_error" != yes; then
  9961. # Code to be used in simple compile tests
  9962. lt_simple_compile_test_code="int some_variable = 0;"
  9963. # Code to be used in simple link tests
  9964. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9965. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9966. # If no C compiler was specified, use CC.
  9967. LTCC=${LTCC-"$CC"}
  9968. # If no C compiler flags were specified, use CFLAGS.
  9969. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9970. # Allow CC to be a program name with arguments.
  9971. compiler=$CC
  9972. # save warnings/boilerplate of simple test code
  9973. ac_outfile=conftest.$ac_objext
  9974. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9975. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9976. _lt_compiler_boilerplate=`cat conftest.err`
  9977. $RM conftest*
  9978. ac_outfile=conftest.$ac_objext
  9979. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9980. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9981. _lt_linker_boilerplate=`cat conftest.err`
  9982. $RM -r conftest*
  9983. # Allow CC to be a program name with arguments.
  9984. lt_save_CC=$CC
  9985. lt_save_LD=$LD
  9986. lt_save_GCC=$GCC
  9987. GCC=$GXX
  9988. lt_save_with_gnu_ld=$with_gnu_ld
  9989. lt_save_path_LD=$lt_cv_path_LD
  9990. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9991. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9992. else
  9993. $as_unset lt_cv_prog_gnu_ld
  9994. fi
  9995. if test -n "${lt_cv_path_LDCXX+set}"; then
  9996. lt_cv_path_LD=$lt_cv_path_LDCXX
  9997. else
  9998. $as_unset lt_cv_path_LD
  9999. fi
  10000. test -z "${LDCXX+set}" || LD=$LDCXX
  10001. CC=${CXX-"c++"}
  10002. compiler=$CC
  10003. compiler_CXX=$CC
  10004. for cc_temp in $compiler""; do
  10005. case $cc_temp in
  10006. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10007. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10008. \-*) ;;
  10009. *) break;;
  10010. esac
  10011. done
  10012. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10013. if test -n "$compiler"; then
  10014. # We don't want -fno-exception when compiling C++ code, so set the
  10015. # no_builtin_flag separately
  10016. if test "$GXX" = yes; then
  10017. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10018. else
  10019. lt_prog_compiler_no_builtin_flag_CXX=
  10020. fi
  10021. if test "$GXX" = yes; then
  10022. # Set up default GNU C++ configuration
  10023. # Check whether --with-gnu-ld was given.
  10024. if test "${with_gnu_ld+set}" = set; then :
  10025. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10026. else
  10027. with_gnu_ld=no
  10028. fi
  10029. ac_prog=ld
  10030. if test "$GCC" = yes; then
  10031. # Check if gcc -print-prog-name=ld gives a path.
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10033. $as_echo_n "checking for ld used by $CC... " >&6; }
  10034. case $host in
  10035. *-*-mingw*)
  10036. # gcc leaves a trailing carriage return which upsets mingw
  10037. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10038. *)
  10039. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10040. esac
  10041. case $ac_prog in
  10042. # Accept absolute paths.
  10043. [\\/]* | ?:[\\/]*)
  10044. re_direlt='/[^/][^/]*/\.\./'
  10045. # Canonicalize the pathname of ld
  10046. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10047. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10048. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10049. done
  10050. test -z "$LD" && LD="$ac_prog"
  10051. ;;
  10052. "")
  10053. # If it fails, then pretend we aren't using GCC.
  10054. ac_prog=ld
  10055. ;;
  10056. *)
  10057. # If it is relative, then search for the first ld in PATH.
  10058. with_gnu_ld=unknown
  10059. ;;
  10060. esac
  10061. elif test "$with_gnu_ld" = yes; then
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10063. $as_echo_n "checking for GNU ld... " >&6; }
  10064. else
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10066. $as_echo_n "checking for non-GNU ld... " >&6; }
  10067. fi
  10068. if test "${lt_cv_path_LD+set}" = set; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. if test -z "$LD"; then
  10072. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10073. for ac_dir in $PATH; do
  10074. IFS="$lt_save_ifs"
  10075. test -z "$ac_dir" && ac_dir=.
  10076. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10077. lt_cv_path_LD="$ac_dir/$ac_prog"
  10078. # Check to see if the program is GNU ld. I'd rather use --version,
  10079. # but apparently some variants of GNU ld only accept -v.
  10080. # Break only if it was the GNU/non-GNU ld that we prefer.
  10081. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10082. *GNU* | *'with BFD'*)
  10083. test "$with_gnu_ld" != no && break
  10084. ;;
  10085. *)
  10086. test "$with_gnu_ld" != yes && break
  10087. ;;
  10088. esac
  10089. fi
  10090. done
  10091. IFS="$lt_save_ifs"
  10092. else
  10093. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10094. fi
  10095. fi
  10096. LD="$lt_cv_path_LD"
  10097. if test -n "$LD"; then
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10099. $as_echo "$LD" >&6; }
  10100. else
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10102. $as_echo "no" >&6; }
  10103. fi
  10104. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10106. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10107. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10111. case `$LD -v 2>&1 </dev/null` in
  10112. *GNU* | *'with BFD'*)
  10113. lt_cv_prog_gnu_ld=yes
  10114. ;;
  10115. *)
  10116. lt_cv_prog_gnu_ld=no
  10117. ;;
  10118. esac
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10121. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10122. with_gnu_ld=$lt_cv_prog_gnu_ld
  10123. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10124. # archiving commands below assume that GNU ld is being used.
  10125. if test "$with_gnu_ld" = yes; then
  10126. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10127. 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'
  10128. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10129. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10130. # If archive_cmds runs LD, not CC, wlarc should be empty
  10131. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10132. # investigate it a little bit more. (MM)
  10133. wlarc='${wl}'
  10134. # ancient GNU ld didn't support --whole-archive et. al.
  10135. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10136. $GREP 'no-whole-archive' > /dev/null; then
  10137. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10138. else
  10139. whole_archive_flag_spec_CXX=
  10140. fi
  10141. else
  10142. with_gnu_ld=no
  10143. wlarc=
  10144. # A generic and very simple default shared library creation
  10145. # command for GNU C++ for the case where it uses the native
  10146. # linker, instead of GNU ld. If possible, this setting should
  10147. # overridden to take advantage of the native linker features on
  10148. # the platform it is being used on.
  10149. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10150. fi
  10151. # Commands to make compiler produce verbose output that lists
  10152. # what "hidden" libraries, object files and flags are used when
  10153. # linking a shared library.
  10154. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10155. else
  10156. GXX=no
  10157. with_gnu_ld=no
  10158. wlarc=
  10159. fi
  10160. # PORTME: fill in a description of your system's C++ link characteristics
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10162. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10163. ld_shlibs_CXX=yes
  10164. case $host_os in
  10165. aix3*)
  10166. # FIXME: insert proper C++ library support
  10167. ld_shlibs_CXX=no
  10168. ;;
  10169. aix[4-9]*)
  10170. if test "$host_cpu" = ia64; then
  10171. # On IA64, the linker does run time linking by default, so we don't
  10172. # have to do anything special.
  10173. aix_use_runtimelinking=no
  10174. exp_sym_flag='-Bexport'
  10175. no_entry_flag=""
  10176. else
  10177. aix_use_runtimelinking=no
  10178. # Test if we are trying to use run time linking or normal
  10179. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10180. # need to do runtime linking.
  10181. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10182. for ld_flag in $LDFLAGS; do
  10183. case $ld_flag in
  10184. *-brtl*)
  10185. aix_use_runtimelinking=yes
  10186. break
  10187. ;;
  10188. esac
  10189. done
  10190. ;;
  10191. esac
  10192. exp_sym_flag='-bexport'
  10193. no_entry_flag='-bnoentry'
  10194. fi
  10195. # When large executables or shared objects are built, AIX ld can
  10196. # have problems creating the table of contents. If linking a library
  10197. # or program results in "error TOC overflow" add -mminimal-toc to
  10198. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10199. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10200. archive_cmds_CXX=''
  10201. hardcode_direct_CXX=yes
  10202. hardcode_direct_absolute_CXX=yes
  10203. hardcode_libdir_separator_CXX=':'
  10204. link_all_deplibs_CXX=yes
  10205. file_list_spec_CXX='${wl}-f,'
  10206. if test "$GXX" = yes; then
  10207. case $host_os in aix4.[012]|aix4.[012].*)
  10208. # We only want to do this on AIX 4.2 and lower, the check
  10209. # below for broken collect2 doesn't work under 4.3+
  10210. collect2name=`${CC} -print-prog-name=collect2`
  10211. if test -f "$collect2name" &&
  10212. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10213. then
  10214. # We have reworked collect2
  10215. :
  10216. else
  10217. # We have old collect2
  10218. hardcode_direct_CXX=unsupported
  10219. # It fails to find uninstalled libraries when the uninstalled
  10220. # path is not listed in the libpath. Setting hardcode_minus_L
  10221. # to unsupported forces relinking
  10222. hardcode_minus_L_CXX=yes
  10223. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10224. hardcode_libdir_separator_CXX=
  10225. fi
  10226. esac
  10227. shared_flag='-shared'
  10228. if test "$aix_use_runtimelinking" = yes; then
  10229. shared_flag="$shared_flag "'${wl}-G'
  10230. fi
  10231. else
  10232. # not using gcc
  10233. if test "$host_cpu" = ia64; then
  10234. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10235. # chokes on -Wl,-G. The following line is correct:
  10236. shared_flag='-G'
  10237. else
  10238. if test "$aix_use_runtimelinking" = yes; then
  10239. shared_flag='${wl}-G'
  10240. else
  10241. shared_flag='${wl}-bM:SRE'
  10242. fi
  10243. fi
  10244. fi
  10245. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10246. # It seems that -bexpall does not export symbols beginning with
  10247. # underscore (_), so it is better to generate a list of symbols to
  10248. # export.
  10249. always_export_symbols_CXX=yes
  10250. if test "$aix_use_runtimelinking" = yes; then
  10251. # Warning - without using the other runtime loading flags (-brtl),
  10252. # -berok will link without error, but may produce a broken library.
  10253. allow_undefined_flag_CXX='-berok'
  10254. # Determine the default libpath from the value encoded in an empty
  10255. # executable.
  10256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10257. /* end confdefs.h. */
  10258. int
  10259. main ()
  10260. {
  10261. ;
  10262. return 0;
  10263. }
  10264. _ACEOF
  10265. if ac_fn_cxx_try_link "$LINENO"; then :
  10266. lt_aix_libpath_sed='
  10267. /Import File Strings/,/^$/ {
  10268. /^0/ {
  10269. s/^0 *\(.*\)$/\1/
  10270. p
  10271. }
  10272. }'
  10273. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10274. # Check for a 64-bit object if we didn't find anything.
  10275. if test -z "$aix_libpath"; then
  10276. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10277. fi
  10278. fi
  10279. rm -f core conftest.err conftest.$ac_objext \
  10280. conftest$ac_exeext conftest.$ac_ext
  10281. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10282. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10283. 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"
  10284. else
  10285. if test "$host_cpu" = ia64; then
  10286. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10287. allow_undefined_flag_CXX="-z nodefs"
  10288. 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"
  10289. else
  10290. # Determine the default libpath from the value encoded in an
  10291. # empty executable.
  10292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10293. /* end confdefs.h. */
  10294. int
  10295. main ()
  10296. {
  10297. ;
  10298. return 0;
  10299. }
  10300. _ACEOF
  10301. if ac_fn_cxx_try_link "$LINENO"; then :
  10302. lt_aix_libpath_sed='
  10303. /Import File Strings/,/^$/ {
  10304. /^0/ {
  10305. s/^0 *\(.*\)$/\1/
  10306. p
  10307. }
  10308. }'
  10309. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10310. # Check for a 64-bit object if we didn't find anything.
  10311. if test -z "$aix_libpath"; then
  10312. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10313. fi
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10318. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10319. # Warning - without using the other run time loading flags,
  10320. # -berok will link without error, but may produce a broken library.
  10321. no_undefined_flag_CXX=' ${wl}-bernotok'
  10322. allow_undefined_flag_CXX=' ${wl}-berok'
  10323. if test "$with_gnu_ld" = yes; then
  10324. # We only use this code for GNU lds that support --whole-archive.
  10325. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10326. else
  10327. # Exported symbols can be pulled into shared objects from archives
  10328. whole_archive_flag_spec_CXX='$convenience'
  10329. fi
  10330. archive_cmds_need_lc_CXX=yes
  10331. # This is similar to how AIX traditionally builds its shared
  10332. # libraries.
  10333. 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'
  10334. fi
  10335. fi
  10336. ;;
  10337. beos*)
  10338. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10339. allow_undefined_flag_CXX=unsupported
  10340. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10341. # support --undefined. This deserves some investigation. FIXME
  10342. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10343. else
  10344. ld_shlibs_CXX=no
  10345. fi
  10346. ;;
  10347. chorus*)
  10348. case $cc_basename in
  10349. *)
  10350. # FIXME: insert proper C++ library support
  10351. ld_shlibs_CXX=no
  10352. ;;
  10353. esac
  10354. ;;
  10355. cygwin* | mingw* | pw32* | cegcc*)
  10356. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10357. # as there is no search path for DLLs.
  10358. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10359. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10360. allow_undefined_flag_CXX=unsupported
  10361. always_export_symbols_CXX=no
  10362. enable_shared_with_static_runtimes_CXX=yes
  10363. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10364. 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'
  10365. # If the export-symbols file already is a .def file (1st line
  10366. # is EXPORTS), use it as is; otherwise, prepend...
  10367. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10368. cp $export_symbols $output_objdir/$soname.def;
  10369. else
  10370. echo EXPORTS > $output_objdir/$soname.def;
  10371. cat $export_symbols >> $output_objdir/$soname.def;
  10372. fi~
  10373. $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'
  10374. else
  10375. ld_shlibs_CXX=no
  10376. fi
  10377. ;;
  10378. darwin* | rhapsody*)
  10379. archive_cmds_need_lc_CXX=no
  10380. hardcode_direct_CXX=no
  10381. hardcode_automatic_CXX=yes
  10382. hardcode_shlibpath_var_CXX=unsupported
  10383. if test "$lt_cv_ld_force_load" = "yes"; then
  10384. 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\"`'
  10385. else
  10386. whole_archive_flag_spec_CXX=''
  10387. fi
  10388. link_all_deplibs_CXX=yes
  10389. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10390. case $cc_basename in
  10391. ifort*) _lt_dar_can_shared=yes ;;
  10392. *) _lt_dar_can_shared=$GCC ;;
  10393. esac
  10394. if test "$_lt_dar_can_shared" = "yes"; then
  10395. output_verbose_link_cmd=func_echo_all
  10396. 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}"
  10397. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10398. 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}"
  10399. 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}"
  10400. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10401. 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}"
  10402. 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}"
  10403. fi
  10404. else
  10405. ld_shlibs_CXX=no
  10406. fi
  10407. ;;
  10408. dgux*)
  10409. case $cc_basename in
  10410. ec++*)
  10411. # FIXME: insert proper C++ library support
  10412. ld_shlibs_CXX=no
  10413. ;;
  10414. ghcx*)
  10415. # Green Hills C++ Compiler
  10416. # FIXME: insert proper C++ library support
  10417. ld_shlibs_CXX=no
  10418. ;;
  10419. *)
  10420. # FIXME: insert proper C++ library support
  10421. ld_shlibs_CXX=no
  10422. ;;
  10423. esac
  10424. ;;
  10425. freebsd2.*)
  10426. # C++ shared libraries reported to be fairly broken before
  10427. # switch to ELF
  10428. ld_shlibs_CXX=no
  10429. ;;
  10430. freebsd-elf*)
  10431. archive_cmds_need_lc_CXX=no
  10432. ;;
  10433. freebsd* | dragonfly*)
  10434. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10435. # conventions
  10436. ld_shlibs_CXX=yes
  10437. ;;
  10438. gnu*)
  10439. ;;
  10440. haiku*)
  10441. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10442. link_all_deplibs_CXX=yes
  10443. ;;
  10444. hpux9*)
  10445. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10446. hardcode_libdir_separator_CXX=:
  10447. export_dynamic_flag_spec_CXX='${wl}-E'
  10448. hardcode_direct_CXX=yes
  10449. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10450. # but as the default
  10451. # location of the library.
  10452. case $cc_basename in
  10453. CC*)
  10454. # FIXME: insert proper C++ library support
  10455. ld_shlibs_CXX=no
  10456. ;;
  10457. aCC*)
  10458. 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'
  10459. # Commands to make compiler produce verbose output that lists
  10460. # what "hidden" libraries, object files and flags are used when
  10461. # linking a shared library.
  10462. #
  10463. # There doesn't appear to be a way to prevent this compiler from
  10464. # explicitly linking system object files so we need to strip them
  10465. # from the output so that they don't get included in the library
  10466. # dependencies.
  10467. 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"'
  10468. ;;
  10469. *)
  10470. if test "$GXX" = yes; then
  10471. 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'
  10472. else
  10473. # FIXME: insert proper C++ library support
  10474. ld_shlibs_CXX=no
  10475. fi
  10476. ;;
  10477. esac
  10478. ;;
  10479. hpux10*|hpux11*)
  10480. if test $with_gnu_ld = no; then
  10481. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10482. hardcode_libdir_separator_CXX=:
  10483. case $host_cpu in
  10484. hppa*64*|ia64*)
  10485. ;;
  10486. *)
  10487. export_dynamic_flag_spec_CXX='${wl}-E'
  10488. ;;
  10489. esac
  10490. fi
  10491. case $host_cpu in
  10492. hppa*64*|ia64*)
  10493. hardcode_direct_CXX=no
  10494. hardcode_shlibpath_var_CXX=no
  10495. ;;
  10496. *)
  10497. hardcode_direct_CXX=yes
  10498. hardcode_direct_absolute_CXX=yes
  10499. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10500. # but as the default
  10501. # location of the library.
  10502. ;;
  10503. esac
  10504. case $cc_basename in
  10505. CC*)
  10506. # FIXME: insert proper C++ library support
  10507. ld_shlibs_CXX=no
  10508. ;;
  10509. aCC*)
  10510. case $host_cpu in
  10511. hppa*64*)
  10512. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10513. ;;
  10514. ia64*)
  10515. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10516. ;;
  10517. *)
  10518. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10519. ;;
  10520. esac
  10521. # Commands to make compiler produce verbose output that lists
  10522. # what "hidden" libraries, object files and flags are used when
  10523. # linking a shared library.
  10524. #
  10525. # There doesn't appear to be a way to prevent this compiler from
  10526. # explicitly linking system object files so we need to strip them
  10527. # from the output so that they don't get included in the library
  10528. # dependencies.
  10529. 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"'
  10530. ;;
  10531. *)
  10532. if test "$GXX" = yes; then
  10533. if test $with_gnu_ld = no; then
  10534. case $host_cpu in
  10535. hppa*64*)
  10536. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10537. ;;
  10538. ia64*)
  10539. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10540. ;;
  10541. *)
  10542. 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'
  10543. ;;
  10544. esac
  10545. fi
  10546. else
  10547. # FIXME: insert proper C++ library support
  10548. ld_shlibs_CXX=no
  10549. fi
  10550. ;;
  10551. esac
  10552. ;;
  10553. interix[3-9]*)
  10554. hardcode_direct_CXX=no
  10555. hardcode_shlibpath_var_CXX=no
  10556. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10557. export_dynamic_flag_spec_CXX='${wl}-E'
  10558. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10559. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10560. # default) and relocated if they conflict, which is a slow very memory
  10561. # consuming and fragmenting process. To avoid this, we pick a random,
  10562. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10563. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10564. 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'
  10565. 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'
  10566. ;;
  10567. irix5* | irix6*)
  10568. case $cc_basename in
  10569. CC*)
  10570. # SGI C++
  10571. 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'
  10572. # Archives containing C++ object files must be created using
  10573. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10574. # necessary to make sure instantiated templates are included
  10575. # in the archive.
  10576. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10577. ;;
  10578. *)
  10579. if test "$GXX" = yes; then
  10580. if test "$with_gnu_ld" = no; then
  10581. 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'
  10582. else
  10583. 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'
  10584. fi
  10585. fi
  10586. link_all_deplibs_CXX=yes
  10587. ;;
  10588. esac
  10589. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10590. hardcode_libdir_separator_CXX=:
  10591. inherit_rpath_CXX=yes
  10592. ;;
  10593. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10594. case $cc_basename in
  10595. KCC*)
  10596. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10597. # KCC will only create a shared library if the output file
  10598. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10599. # to its proper name (with version) after linking.
  10600. 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'
  10601. 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'
  10602. # Commands to make compiler produce verbose output that lists
  10603. # what "hidden" libraries, object files and flags are used when
  10604. # linking a shared library.
  10605. #
  10606. # There doesn't appear to be a way to prevent this compiler from
  10607. # explicitly linking system object files so we need to strip them
  10608. # from the output so that they don't get included in the library
  10609. # dependencies.
  10610. 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"'
  10611. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10612. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10613. # Archives containing C++ object files must be created using
  10614. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10615. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10616. ;;
  10617. icpc* | ecpc* )
  10618. # Intel C++
  10619. with_gnu_ld=yes
  10620. # version 8.0 and above of icpc choke on multiply defined symbols
  10621. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10622. # earlier do not add the objects themselves.
  10623. case `$CC -V 2>&1` in
  10624. *"Version 7."*)
  10625. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10626. 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'
  10627. ;;
  10628. *) # Version 8.0 or newer
  10629. tmp_idyn=
  10630. case $host_cpu in
  10631. ia64*) tmp_idyn=' -i_dynamic';;
  10632. esac
  10633. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10634. 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'
  10635. ;;
  10636. esac
  10637. archive_cmds_need_lc_CXX=no
  10638. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10639. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10640. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10641. ;;
  10642. pgCC* | pgcpp*)
  10643. # Portland Group C++ compiler
  10644. case `$CC -V` in
  10645. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10646. prelink_cmds_CXX='tpldir=Template.dir~
  10647. rm -rf $tpldir~
  10648. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10649. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10650. old_archive_cmds_CXX='tpldir=Template.dir~
  10651. rm -rf $tpldir~
  10652. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10653. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10654. $RANLIB $oldlib'
  10655. archive_cmds_CXX='tpldir=Template.dir~
  10656. rm -rf $tpldir~
  10657. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10658. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10659. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10660. rm -rf $tpldir~
  10661. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10662. $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'
  10663. ;;
  10664. *) # Version 6 and above use weak symbols
  10665. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10666. 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'
  10667. ;;
  10668. esac
  10669. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10670. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10671. 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'
  10672. ;;
  10673. cxx*)
  10674. # Compaq C++
  10675. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10676. 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'
  10677. runpath_var=LD_RUN_PATH
  10678. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10679. hardcode_libdir_separator_CXX=:
  10680. # Commands to make compiler produce verbose output that lists
  10681. # what "hidden" libraries, object files and flags are used when
  10682. # linking a shared library.
  10683. #
  10684. # There doesn't appear to be a way to prevent this compiler from
  10685. # explicitly linking system object files so we need to strip them
  10686. # from the output so that they don't get included in the library
  10687. # dependencies.
  10688. 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'
  10689. ;;
  10690. xl* | mpixl* | bgxl*)
  10691. # IBM XL 8.0 on PPC, with GNU ld
  10692. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10693. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10694. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10695. if test "x$supports_anon_versioning" = xyes; then
  10696. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10697. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10698. echo "local: *; };" >> $output_objdir/$libname.ver~
  10699. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10700. fi
  10701. ;;
  10702. *)
  10703. case `$CC -V 2>&1 | sed 5q` in
  10704. *Sun\ C*)
  10705. # Sun C++ 5.9
  10706. no_undefined_flag_CXX=' -zdefs'
  10707. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10708. 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'
  10709. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10710. 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'
  10711. compiler_needs_object_CXX=yes
  10712. # Not sure whether something based on
  10713. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10714. # would be better.
  10715. output_verbose_link_cmd='func_echo_all'
  10716. # Archives containing C++ object files must be created using
  10717. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10718. # necessary to make sure instantiated templates are included
  10719. # in the archive.
  10720. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10721. ;;
  10722. esac
  10723. ;;
  10724. esac
  10725. ;;
  10726. lynxos*)
  10727. # FIXME: insert proper C++ library support
  10728. ld_shlibs_CXX=no
  10729. ;;
  10730. m88k*)
  10731. # FIXME: insert proper C++ library support
  10732. ld_shlibs_CXX=no
  10733. ;;
  10734. mvs*)
  10735. case $cc_basename in
  10736. cxx*)
  10737. # FIXME: insert proper C++ library support
  10738. ld_shlibs_CXX=no
  10739. ;;
  10740. *)
  10741. # FIXME: insert proper C++ library support
  10742. ld_shlibs_CXX=no
  10743. ;;
  10744. esac
  10745. ;;
  10746. netbsd*)
  10747. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10748. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10749. wlarc=
  10750. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10751. hardcode_direct_CXX=yes
  10752. hardcode_shlibpath_var_CXX=no
  10753. fi
  10754. # Workaround some broken pre-1.5 toolchains
  10755. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10756. ;;
  10757. *nto* | *qnx*)
  10758. ld_shlibs_CXX=yes
  10759. ;;
  10760. openbsd2*)
  10761. # C++ shared libraries are fairly broken
  10762. ld_shlibs_CXX=no
  10763. ;;
  10764. openbsd*)
  10765. if test -f /usr/libexec/ld.so; then
  10766. hardcode_direct_CXX=yes
  10767. hardcode_shlibpath_var_CXX=no
  10768. hardcode_direct_absolute_CXX=yes
  10769. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10770. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10771. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10772. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10773. export_dynamic_flag_spec_CXX='${wl}-E'
  10774. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10775. fi
  10776. output_verbose_link_cmd=func_echo_all
  10777. else
  10778. ld_shlibs_CXX=no
  10779. fi
  10780. ;;
  10781. osf3* | osf4* | osf5*)
  10782. case $cc_basename in
  10783. KCC*)
  10784. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10785. # KCC will only create a shared library if the output file
  10786. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10787. # to its proper name (with version) after linking.
  10788. 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'
  10789. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10790. hardcode_libdir_separator_CXX=:
  10791. # Archives containing C++ object files must be created using
  10792. # the KAI C++ compiler.
  10793. case $host in
  10794. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10795. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10796. esac
  10797. ;;
  10798. RCC*)
  10799. # Rational C++ 2.4.1
  10800. # FIXME: insert proper C++ library support
  10801. ld_shlibs_CXX=no
  10802. ;;
  10803. cxx*)
  10804. case $host in
  10805. osf3*)
  10806. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10807. 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'
  10808. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10809. ;;
  10810. *)
  10811. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10812. 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'
  10813. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10814. echo "-hidden">> $lib.exp~
  10815. $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~
  10816. $RM $lib.exp'
  10817. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10818. ;;
  10819. esac
  10820. hardcode_libdir_separator_CXX=:
  10821. # Commands to make compiler produce verbose output that lists
  10822. # what "hidden" libraries, object files and flags are used when
  10823. # linking a shared library.
  10824. #
  10825. # There doesn't appear to be a way to prevent this compiler from
  10826. # explicitly linking system object files so we need to strip them
  10827. # from the output so that they don't get included in the library
  10828. # dependencies.
  10829. 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"'
  10830. ;;
  10831. *)
  10832. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10833. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10834. case $host in
  10835. osf3*)
  10836. 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'
  10837. ;;
  10838. *)
  10839. 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'
  10840. ;;
  10841. esac
  10842. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10843. hardcode_libdir_separator_CXX=:
  10844. # Commands to make compiler produce verbose output that lists
  10845. # what "hidden" libraries, object files and flags are used when
  10846. # linking a shared library.
  10847. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10848. else
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. fi
  10852. ;;
  10853. esac
  10854. ;;
  10855. psos*)
  10856. # FIXME: insert proper C++ library support
  10857. ld_shlibs_CXX=no
  10858. ;;
  10859. sunos4*)
  10860. case $cc_basename in
  10861. CC*)
  10862. # Sun C++ 4.x
  10863. # FIXME: insert proper C++ library support
  10864. ld_shlibs_CXX=no
  10865. ;;
  10866. lcc*)
  10867. # Lucid
  10868. # FIXME: insert proper C++ library support
  10869. ld_shlibs_CXX=no
  10870. ;;
  10871. *)
  10872. # FIXME: insert proper C++ library support
  10873. ld_shlibs_CXX=no
  10874. ;;
  10875. esac
  10876. ;;
  10877. solaris*)
  10878. case $cc_basename in
  10879. CC*)
  10880. # Sun C++ 4.2, 5.x and Centerline C++
  10881. archive_cmds_need_lc_CXX=yes
  10882. no_undefined_flag_CXX=' -zdefs'
  10883. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10884. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10885. $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'
  10886. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10887. hardcode_shlibpath_var_CXX=no
  10888. case $host_os in
  10889. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10890. *)
  10891. # The compiler driver will combine and reorder linker options,
  10892. # but understands `-z linker_flag'.
  10893. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10894. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10895. ;;
  10896. esac
  10897. link_all_deplibs_CXX=yes
  10898. output_verbose_link_cmd='func_echo_all'
  10899. # Archives containing C++ object files must be created using
  10900. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10901. # necessary to make sure instantiated templates are included
  10902. # in the archive.
  10903. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10904. ;;
  10905. gcx*)
  10906. # Green Hills C++ Compiler
  10907. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10908. # The C++ compiler must be used to create the archive.
  10909. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10910. ;;
  10911. *)
  10912. # GNU C++ compiler with Solaris linker
  10913. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10914. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10915. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10916. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10917. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10918. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10919. # Commands to make compiler produce verbose output that lists
  10920. # what "hidden" libraries, object files and flags are used when
  10921. # linking a shared library.
  10922. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10923. else
  10924. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10925. # platform.
  10926. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10927. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10928. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10929. # Commands to make compiler produce verbose output that lists
  10930. # what "hidden" libraries, object files and flags are used when
  10931. # linking a shared library.
  10932. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10933. fi
  10934. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10935. case $host_os in
  10936. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10937. *)
  10938. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10939. ;;
  10940. esac
  10941. fi
  10942. ;;
  10943. esac
  10944. ;;
  10945. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10946. no_undefined_flag_CXX='${wl}-z,text'
  10947. archive_cmds_need_lc_CXX=no
  10948. hardcode_shlibpath_var_CXX=no
  10949. runpath_var='LD_RUN_PATH'
  10950. case $cc_basename in
  10951. CC*)
  10952. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10953. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10954. ;;
  10955. *)
  10956. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10957. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10958. ;;
  10959. esac
  10960. ;;
  10961. sysv5* | sco3.2v5* | sco5v6*)
  10962. # Note: We can NOT use -z defs as we might desire, because we do not
  10963. # link with -lc, and that would cause any symbols used from libc to
  10964. # always be unresolved, which means just about no library would
  10965. # ever link correctly. If we're not using GNU ld we use -z text
  10966. # though, which does catch some bad symbols but isn't as heavy-handed
  10967. # as -z defs.
  10968. no_undefined_flag_CXX='${wl}-z,text'
  10969. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10970. archive_cmds_need_lc_CXX=no
  10971. hardcode_shlibpath_var_CXX=no
  10972. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10973. hardcode_libdir_separator_CXX=':'
  10974. link_all_deplibs_CXX=yes
  10975. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10976. runpath_var='LD_RUN_PATH'
  10977. case $cc_basename in
  10978. CC*)
  10979. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10980. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10981. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  10982. '"$old_archive_cmds_CXX"
  10983. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  10984. '"$reload_cmds_CXX"
  10985. ;;
  10986. *)
  10987. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10988. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10989. ;;
  10990. esac
  10991. ;;
  10992. tandem*)
  10993. case $cc_basename in
  10994. NCC*)
  10995. # NonStop-UX NCC 3.20
  10996. # FIXME: insert proper C++ library support
  10997. ld_shlibs_CXX=no
  10998. ;;
  10999. *)
  11000. # FIXME: insert proper C++ library support
  11001. ld_shlibs_CXX=no
  11002. ;;
  11003. esac
  11004. ;;
  11005. vxworks*)
  11006. # FIXME: insert proper C++ library support
  11007. ld_shlibs_CXX=no
  11008. ;;
  11009. *)
  11010. # FIXME: insert proper C++ library support
  11011. ld_shlibs_CXX=no
  11012. ;;
  11013. esac
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11015. $as_echo "$ld_shlibs_CXX" >&6; }
  11016. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11017. GCC_CXX="$GXX"
  11018. LD_CXX="$LD"
  11019. ## CAVEAT EMPTOR:
  11020. ## There is no encapsulation within the following macros, do not change
  11021. ## the running order or otherwise move them around unless you know exactly
  11022. ## what you are doing...
  11023. # Dependencies to place before and after the object being linked:
  11024. predep_objects_CXX=
  11025. postdep_objects_CXX=
  11026. predeps_CXX=
  11027. postdeps_CXX=
  11028. compiler_lib_search_path_CXX=
  11029. cat > conftest.$ac_ext <<_LT_EOF
  11030. class Foo
  11031. {
  11032. public:
  11033. Foo (void) { a = 0; }
  11034. private:
  11035. int a;
  11036. };
  11037. _LT_EOF
  11038. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11039. (eval $ac_compile) 2>&5
  11040. ac_status=$?
  11041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11042. test $ac_status = 0; }; then
  11043. # Parse the compiler output and extract the necessary
  11044. # objects, libraries and library flags.
  11045. # Sentinel used to keep track of whether or not we are before
  11046. # the conftest object file.
  11047. pre_test_object_deps_done=no
  11048. for p in `eval "$output_verbose_link_cmd"`; do
  11049. case $p in
  11050. -L* | -R* | -l*)
  11051. # Some compilers place space between "-{L,R}" and the path.
  11052. # Remove the space.
  11053. if test $p = "-L" ||
  11054. test $p = "-R"; then
  11055. prev=$p
  11056. continue
  11057. else
  11058. prev=
  11059. fi
  11060. if test "$pre_test_object_deps_done" = no; then
  11061. case $p in
  11062. -L* | -R*)
  11063. # Internal compiler library paths should come after those
  11064. # provided the user. The postdeps already come after the
  11065. # user supplied libs so there is no need to process them.
  11066. if test -z "$compiler_lib_search_path_CXX"; then
  11067. compiler_lib_search_path_CXX="${prev}${p}"
  11068. else
  11069. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11070. fi
  11071. ;;
  11072. # The "-l" case would never come before the object being
  11073. # linked, so don't bother handling this case.
  11074. esac
  11075. else
  11076. if test -z "$postdeps_CXX"; then
  11077. postdeps_CXX="${prev}${p}"
  11078. else
  11079. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11080. fi
  11081. fi
  11082. ;;
  11083. *.$objext)
  11084. # This assumes that the test object file only shows up
  11085. # once in the compiler output.
  11086. if test "$p" = "conftest.$objext"; then
  11087. pre_test_object_deps_done=yes
  11088. continue
  11089. fi
  11090. if test "$pre_test_object_deps_done" = no; then
  11091. if test -z "$predep_objects_CXX"; then
  11092. predep_objects_CXX="$p"
  11093. else
  11094. predep_objects_CXX="$predep_objects_CXX $p"
  11095. fi
  11096. else
  11097. if test -z "$postdep_objects_CXX"; then
  11098. postdep_objects_CXX="$p"
  11099. else
  11100. postdep_objects_CXX="$postdep_objects_CXX $p"
  11101. fi
  11102. fi
  11103. ;;
  11104. *) ;; # Ignore the rest.
  11105. esac
  11106. done
  11107. # Clean up.
  11108. rm -f a.out a.exe
  11109. else
  11110. echo "libtool.m4: error: problem compiling CXX test program"
  11111. fi
  11112. $RM -f confest.$objext
  11113. # PORTME: override above test on systems where it is broken
  11114. case $host_os in
  11115. interix[3-9]*)
  11116. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11117. # hack all around it, let's just trust "g++" to DTRT.
  11118. predep_objects_CXX=
  11119. postdep_objects_CXX=
  11120. postdeps_CXX=
  11121. ;;
  11122. linux*)
  11123. case `$CC -V 2>&1 | sed 5q` in
  11124. *Sun\ C*)
  11125. # Sun C++ 5.9
  11126. # The more standards-conforming stlport4 library is
  11127. # incompatible with the Cstd library. Avoid specifying
  11128. # it if it's in CXXFLAGS. Ignore libCrun as
  11129. # -library=stlport4 depends on it.
  11130. case " $CXX $CXXFLAGS " in
  11131. *" -library=stlport4 "*)
  11132. solaris_use_stlport4=yes
  11133. ;;
  11134. esac
  11135. if test "$solaris_use_stlport4" != yes; then
  11136. postdeps_CXX='-library=Cstd -library=Crun'
  11137. fi
  11138. ;;
  11139. esac
  11140. ;;
  11141. solaris*)
  11142. case $cc_basename in
  11143. CC*)
  11144. # The more standards-conforming stlport4 library is
  11145. # incompatible with the Cstd library. Avoid specifying
  11146. # it if it's in CXXFLAGS. Ignore libCrun as
  11147. # -library=stlport4 depends on it.
  11148. case " $CXX $CXXFLAGS " in
  11149. *" -library=stlport4 "*)
  11150. solaris_use_stlport4=yes
  11151. ;;
  11152. esac
  11153. # Adding this requires a known-good setup of shared libraries for
  11154. # Sun compiler versions before 5.6, else PIC objects from an old
  11155. # archive will be linked into the output, leading to subtle bugs.
  11156. if test "$solaris_use_stlport4" != yes; then
  11157. postdeps_CXX='-library=Cstd -library=Crun'
  11158. fi
  11159. ;;
  11160. esac
  11161. ;;
  11162. esac
  11163. case " $postdeps_CXX " in
  11164. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11165. esac
  11166. compiler_lib_search_dirs_CXX=
  11167. if test -n "${compiler_lib_search_path_CXX}"; then
  11168. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11169. fi
  11170. lt_prog_compiler_wl_CXX=
  11171. lt_prog_compiler_pic_CXX=
  11172. lt_prog_compiler_static_CXX=
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11174. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11175. # C++ specific cases for pic, static, wl, etc.
  11176. if test "$GXX" = yes; then
  11177. lt_prog_compiler_wl_CXX='-Wl,'
  11178. lt_prog_compiler_static_CXX='-static'
  11179. case $host_os in
  11180. aix*)
  11181. # All AIX code is PIC.
  11182. if test "$host_cpu" = ia64; then
  11183. # AIX 5 now supports IA64 processor
  11184. lt_prog_compiler_static_CXX='-Bstatic'
  11185. fi
  11186. lt_prog_compiler_pic_CXX='-fPIC'
  11187. ;;
  11188. amigaos*)
  11189. case $host_cpu in
  11190. powerpc)
  11191. # see comment about AmigaOS4 .so support
  11192. lt_prog_compiler_pic_CXX='-fPIC'
  11193. ;;
  11194. m68k)
  11195. # FIXME: we need at least 68020 code to build shared libraries, but
  11196. # adding the `-m68020' flag to GCC prevents building anything better,
  11197. # like `-m68040'.
  11198. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11199. ;;
  11200. esac
  11201. ;;
  11202. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11203. # PIC is the default for these OSes.
  11204. ;;
  11205. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11206. # This hack is so that the source file can tell whether it is being
  11207. # built for inclusion in a dll (and should export symbols for example).
  11208. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11209. # (--disable-auto-import) libraries
  11210. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11211. ;;
  11212. darwin* | rhapsody*)
  11213. # PIC is the default on this platform
  11214. # Common symbols not allowed in MH_DYLIB files
  11215. lt_prog_compiler_pic_CXX='-fno-common'
  11216. ;;
  11217. *djgpp*)
  11218. # DJGPP does not support shared libraries at all
  11219. lt_prog_compiler_pic_CXX=
  11220. ;;
  11221. haiku*)
  11222. # PIC is the default for Haiku.
  11223. # The "-static" flag exists, but is broken.
  11224. lt_prog_compiler_static_CXX=
  11225. ;;
  11226. interix[3-9]*)
  11227. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11228. # Instead, we relocate shared libraries at runtime.
  11229. ;;
  11230. sysv4*MP*)
  11231. if test -d /usr/nec; then
  11232. lt_prog_compiler_pic_CXX=-Kconform_pic
  11233. fi
  11234. ;;
  11235. hpux*)
  11236. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11237. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11238. # sets the default TLS model and affects inlining.
  11239. case $host_cpu in
  11240. hppa*64*)
  11241. ;;
  11242. *)
  11243. lt_prog_compiler_pic_CXX='-fPIC'
  11244. ;;
  11245. esac
  11246. ;;
  11247. *qnx* | *nto*)
  11248. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11249. # it will coredump.
  11250. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11251. ;;
  11252. *)
  11253. lt_prog_compiler_pic_CXX='-fPIC'
  11254. ;;
  11255. esac
  11256. else
  11257. case $host_os in
  11258. aix[4-9]*)
  11259. # All AIX code is PIC.
  11260. if test "$host_cpu" = ia64; then
  11261. # AIX 5 now supports IA64 processor
  11262. lt_prog_compiler_static_CXX='-Bstatic'
  11263. else
  11264. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11265. fi
  11266. ;;
  11267. chorus*)
  11268. case $cc_basename in
  11269. cxch68*)
  11270. # Green Hills C++ Compiler
  11271. # _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"
  11272. ;;
  11273. esac
  11274. ;;
  11275. dgux*)
  11276. case $cc_basename in
  11277. ec++*)
  11278. lt_prog_compiler_pic_CXX='-KPIC'
  11279. ;;
  11280. ghcx*)
  11281. # Green Hills C++ Compiler
  11282. lt_prog_compiler_pic_CXX='-pic'
  11283. ;;
  11284. *)
  11285. ;;
  11286. esac
  11287. ;;
  11288. freebsd* | dragonfly*)
  11289. # FreeBSD uses GNU C++
  11290. ;;
  11291. hpux9* | hpux10* | hpux11*)
  11292. case $cc_basename in
  11293. CC*)
  11294. lt_prog_compiler_wl_CXX='-Wl,'
  11295. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11296. if test "$host_cpu" != ia64; then
  11297. lt_prog_compiler_pic_CXX='+Z'
  11298. fi
  11299. ;;
  11300. aCC*)
  11301. lt_prog_compiler_wl_CXX='-Wl,'
  11302. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11303. case $host_cpu in
  11304. hppa*64*|ia64*)
  11305. # +Z the default
  11306. ;;
  11307. *)
  11308. lt_prog_compiler_pic_CXX='+Z'
  11309. ;;
  11310. esac
  11311. ;;
  11312. *)
  11313. ;;
  11314. esac
  11315. ;;
  11316. interix*)
  11317. # This is c89, which is MS Visual C++ (no shared libs)
  11318. # Anyone wants to do a port?
  11319. ;;
  11320. irix5* | irix6* | nonstopux*)
  11321. case $cc_basename in
  11322. CC*)
  11323. lt_prog_compiler_wl_CXX='-Wl,'
  11324. lt_prog_compiler_static_CXX='-non_shared'
  11325. # CC pic flag -KPIC is the default.
  11326. ;;
  11327. *)
  11328. ;;
  11329. esac
  11330. ;;
  11331. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11332. case $cc_basename in
  11333. KCC*)
  11334. # KAI C++ Compiler
  11335. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11336. lt_prog_compiler_pic_CXX='-fPIC'
  11337. ;;
  11338. ecpc* )
  11339. # old Intel C++ for x86_64 which still supported -KPIC.
  11340. lt_prog_compiler_wl_CXX='-Wl,'
  11341. lt_prog_compiler_pic_CXX='-KPIC'
  11342. lt_prog_compiler_static_CXX='-static'
  11343. ;;
  11344. icpc* )
  11345. # Intel C++, used to be incompatible with GCC.
  11346. # ICC 10 doesn't accept -KPIC any more.
  11347. lt_prog_compiler_wl_CXX='-Wl,'
  11348. lt_prog_compiler_pic_CXX='-fPIC'
  11349. lt_prog_compiler_static_CXX='-static'
  11350. ;;
  11351. pgCC* | pgcpp*)
  11352. # Portland Group C++ compiler
  11353. lt_prog_compiler_wl_CXX='-Wl,'
  11354. lt_prog_compiler_pic_CXX='-fpic'
  11355. lt_prog_compiler_static_CXX='-Bstatic'
  11356. ;;
  11357. cxx*)
  11358. # Compaq C++
  11359. # Make sure the PIC flag is empty. It appears that all Alpha
  11360. # Linux and Compaq Tru64 Unix objects are PIC.
  11361. lt_prog_compiler_pic_CXX=
  11362. lt_prog_compiler_static_CXX='-non_shared'
  11363. ;;
  11364. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11365. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11366. lt_prog_compiler_wl_CXX='-Wl,'
  11367. lt_prog_compiler_pic_CXX='-qpic'
  11368. lt_prog_compiler_static_CXX='-qstaticlink'
  11369. ;;
  11370. *)
  11371. case `$CC -V 2>&1 | sed 5q` in
  11372. *Sun\ C*)
  11373. # Sun C++ 5.9
  11374. lt_prog_compiler_pic_CXX='-KPIC'
  11375. lt_prog_compiler_static_CXX='-Bstatic'
  11376. lt_prog_compiler_wl_CXX='-Qoption ld '
  11377. ;;
  11378. esac
  11379. ;;
  11380. esac
  11381. ;;
  11382. lynxos*)
  11383. ;;
  11384. m88k*)
  11385. ;;
  11386. mvs*)
  11387. case $cc_basename in
  11388. cxx*)
  11389. lt_prog_compiler_pic_CXX='-W c,exportall'
  11390. ;;
  11391. *)
  11392. ;;
  11393. esac
  11394. ;;
  11395. netbsd*)
  11396. ;;
  11397. *qnx* | *nto*)
  11398. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11399. # it will coredump.
  11400. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11401. ;;
  11402. osf3* | osf4* | osf5*)
  11403. case $cc_basename in
  11404. KCC*)
  11405. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11406. ;;
  11407. RCC*)
  11408. # Rational C++ 2.4.1
  11409. lt_prog_compiler_pic_CXX='-pic'
  11410. ;;
  11411. cxx*)
  11412. # Digital/Compaq C++
  11413. lt_prog_compiler_wl_CXX='-Wl,'
  11414. # Make sure the PIC flag is empty. It appears that all Alpha
  11415. # Linux and Compaq Tru64 Unix objects are PIC.
  11416. lt_prog_compiler_pic_CXX=
  11417. lt_prog_compiler_static_CXX='-non_shared'
  11418. ;;
  11419. *)
  11420. ;;
  11421. esac
  11422. ;;
  11423. psos*)
  11424. ;;
  11425. solaris*)
  11426. case $cc_basename in
  11427. CC*)
  11428. # Sun C++ 4.2, 5.x and Centerline C++
  11429. lt_prog_compiler_pic_CXX='-KPIC'
  11430. lt_prog_compiler_static_CXX='-Bstatic'
  11431. lt_prog_compiler_wl_CXX='-Qoption ld '
  11432. ;;
  11433. gcx*)
  11434. # Green Hills C++ Compiler
  11435. lt_prog_compiler_pic_CXX='-PIC'
  11436. ;;
  11437. *)
  11438. ;;
  11439. esac
  11440. ;;
  11441. sunos4*)
  11442. case $cc_basename in
  11443. CC*)
  11444. # Sun C++ 4.x
  11445. lt_prog_compiler_pic_CXX='-pic'
  11446. lt_prog_compiler_static_CXX='-Bstatic'
  11447. ;;
  11448. lcc*)
  11449. # Lucid
  11450. lt_prog_compiler_pic_CXX='-pic'
  11451. ;;
  11452. *)
  11453. ;;
  11454. esac
  11455. ;;
  11456. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11457. case $cc_basename in
  11458. CC*)
  11459. lt_prog_compiler_wl_CXX='-Wl,'
  11460. lt_prog_compiler_pic_CXX='-KPIC'
  11461. lt_prog_compiler_static_CXX='-Bstatic'
  11462. ;;
  11463. esac
  11464. ;;
  11465. tandem*)
  11466. case $cc_basename in
  11467. NCC*)
  11468. # NonStop-UX NCC 3.20
  11469. lt_prog_compiler_pic_CXX='-KPIC'
  11470. ;;
  11471. *)
  11472. ;;
  11473. esac
  11474. ;;
  11475. vxworks*)
  11476. ;;
  11477. *)
  11478. lt_prog_compiler_can_build_shared_CXX=no
  11479. ;;
  11480. esac
  11481. fi
  11482. case $host_os in
  11483. # For platforms which do not support PIC, -DPIC is meaningless:
  11484. *djgpp*)
  11485. lt_prog_compiler_pic_CXX=
  11486. ;;
  11487. *)
  11488. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11489. ;;
  11490. esac
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11492. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11493. #
  11494. # Check to make sure the PIC flag actually works.
  11495. #
  11496. if test -n "$lt_prog_compiler_pic_CXX"; then
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11498. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11499. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11500. $as_echo_n "(cached) " >&6
  11501. else
  11502. lt_cv_prog_compiler_pic_works_CXX=no
  11503. ac_outfile=conftest.$ac_objext
  11504. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11505. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11506. # Insert the option either (1) after the last *FLAGS variable, or
  11507. # (2) before a word containing "conftest.", or (3) at the end.
  11508. # Note that $ac_compile itself does not contain backslashes and begins
  11509. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11510. # The option is referenced via a variable to avoid confusing sed.
  11511. lt_compile=`echo "$ac_compile" | $SED \
  11512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11514. -e 's:$: $lt_compiler_flag:'`
  11515. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11516. (eval "$lt_compile" 2>conftest.err)
  11517. ac_status=$?
  11518. cat conftest.err >&5
  11519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11520. if (exit $ac_status) && test -s "$ac_outfile"; then
  11521. # The compiler can only warn and ignore the option if not recognized
  11522. # So say no if there are warnings other than the usual output.
  11523. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11524. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11525. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11526. lt_cv_prog_compiler_pic_works_CXX=yes
  11527. fi
  11528. fi
  11529. $RM conftest*
  11530. fi
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11532. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11533. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11534. case $lt_prog_compiler_pic_CXX in
  11535. "" | " "*) ;;
  11536. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11537. esac
  11538. else
  11539. lt_prog_compiler_pic_CXX=
  11540. lt_prog_compiler_can_build_shared_CXX=no
  11541. fi
  11542. fi
  11543. #
  11544. # Check to make sure the static flag actually works.
  11545. #
  11546. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11548. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11549. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11550. $as_echo_n "(cached) " >&6
  11551. else
  11552. lt_cv_prog_compiler_static_works_CXX=no
  11553. save_LDFLAGS="$LDFLAGS"
  11554. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11555. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11556. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11557. # The linker can only warn and ignore the option if not recognized
  11558. # So say no if there are warnings
  11559. if test -s conftest.err; then
  11560. # Append any errors to the config.log.
  11561. cat conftest.err 1>&5
  11562. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11563. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11564. if diff conftest.exp conftest.er2 >/dev/null; then
  11565. lt_cv_prog_compiler_static_works_CXX=yes
  11566. fi
  11567. else
  11568. lt_cv_prog_compiler_static_works_CXX=yes
  11569. fi
  11570. fi
  11571. $RM -r conftest*
  11572. LDFLAGS="$save_LDFLAGS"
  11573. fi
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11575. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11576. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11577. :
  11578. else
  11579. lt_prog_compiler_static_CXX=
  11580. fi
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11582. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11583. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11584. $as_echo_n "(cached) " >&6
  11585. else
  11586. lt_cv_prog_compiler_c_o_CXX=no
  11587. $RM -r conftest 2>/dev/null
  11588. mkdir conftest
  11589. cd conftest
  11590. mkdir out
  11591. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11592. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11593. # Insert the option either (1) after the last *FLAGS variable, or
  11594. # (2) before a word containing "conftest.", or (3) at the end.
  11595. # Note that $ac_compile itself does not contain backslashes and begins
  11596. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11597. lt_compile=`echo "$ac_compile" | $SED \
  11598. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11599. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11600. -e 's:$: $lt_compiler_flag:'`
  11601. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11602. (eval "$lt_compile" 2>out/conftest.err)
  11603. ac_status=$?
  11604. cat out/conftest.err >&5
  11605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11606. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11607. then
  11608. # The compiler can only warn and ignore the option if not recognized
  11609. # So say no if there are warnings
  11610. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11611. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11612. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11613. lt_cv_prog_compiler_c_o_CXX=yes
  11614. fi
  11615. fi
  11616. chmod u+w . 2>&5
  11617. $RM conftest*
  11618. # SGI C++ compiler will create directory out/ii_files/ for
  11619. # template instantiation
  11620. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11621. $RM out/* && rmdir out
  11622. cd ..
  11623. $RM -r conftest
  11624. $RM conftest*
  11625. fi
  11626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11627. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11629. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11630. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11631. $as_echo_n "(cached) " >&6
  11632. else
  11633. lt_cv_prog_compiler_c_o_CXX=no
  11634. $RM -r conftest 2>/dev/null
  11635. mkdir conftest
  11636. cd conftest
  11637. mkdir out
  11638. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11639. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11640. # Insert the option either (1) after the last *FLAGS variable, or
  11641. # (2) before a word containing "conftest.", or (3) at the end.
  11642. # Note that $ac_compile itself does not contain backslashes and begins
  11643. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11644. lt_compile=`echo "$ac_compile" | $SED \
  11645. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11646. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11647. -e 's:$: $lt_compiler_flag:'`
  11648. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11649. (eval "$lt_compile" 2>out/conftest.err)
  11650. ac_status=$?
  11651. cat out/conftest.err >&5
  11652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11653. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11654. then
  11655. # The compiler can only warn and ignore the option if not recognized
  11656. # So say no if there are warnings
  11657. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11658. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11659. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11660. lt_cv_prog_compiler_c_o_CXX=yes
  11661. fi
  11662. fi
  11663. chmod u+w . 2>&5
  11664. $RM conftest*
  11665. # SGI C++ compiler will create directory out/ii_files/ for
  11666. # template instantiation
  11667. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11668. $RM out/* && rmdir out
  11669. cd ..
  11670. $RM -r conftest
  11671. $RM conftest*
  11672. fi
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11674. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11675. hard_links="nottested"
  11676. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11677. # do not overwrite the value of need_locks provided by the user
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11679. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11680. hard_links=yes
  11681. $RM conftest*
  11682. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11683. touch conftest.a
  11684. ln conftest.a conftest.b 2>&5 || hard_links=no
  11685. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11687. $as_echo "$hard_links" >&6; }
  11688. if test "$hard_links" = no; then
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11690. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11691. need_locks=warn
  11692. fi
  11693. else
  11694. need_locks=no
  11695. fi
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11697. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11698. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11699. case $host_os in
  11700. aix[4-9]*)
  11701. # If we're using GNU nm, then we don't want the "-C" option.
  11702. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11703. # Also, AIX nm treats weak defined symbols like other global defined
  11704. # symbols, whereas GNU nm marks them as "W".
  11705. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11706. 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'
  11707. else
  11708. 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'
  11709. fi
  11710. ;;
  11711. pw32*)
  11712. export_symbols_cmds_CXX="$ltdll_cmds"
  11713. ;;
  11714. cygwin* | mingw* | cegcc*)
  11715. 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'
  11716. ;;
  11717. *)
  11718. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11719. ;;
  11720. esac
  11721. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11723. $as_echo "$ld_shlibs_CXX" >&6; }
  11724. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11725. with_gnu_ld_CXX=$with_gnu_ld
  11726. #
  11727. # Do we need to explicitly link libc?
  11728. #
  11729. case "x$archive_cmds_need_lc_CXX" in
  11730. x|xyes)
  11731. # Assume -lc should be added
  11732. archive_cmds_need_lc_CXX=yes
  11733. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11734. case $archive_cmds_CXX in
  11735. *'~'*)
  11736. # FIXME: we may have to deal with multi-command sequences.
  11737. ;;
  11738. '$CC '*)
  11739. # Test whether the compiler implicitly links with -lc since on some
  11740. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11741. # to ld, don't add -lc before -lgcc.
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11743. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11744. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11745. $as_echo_n "(cached) " >&6
  11746. else
  11747. $RM conftest*
  11748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11750. (eval $ac_compile) 2>&5
  11751. ac_status=$?
  11752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11753. test $ac_status = 0; } 2>conftest.err; then
  11754. soname=conftest
  11755. lib=conftest
  11756. libobjs=conftest.$ac_objext
  11757. deplibs=
  11758. wl=$lt_prog_compiler_wl_CXX
  11759. pic_flag=$lt_prog_compiler_pic_CXX
  11760. compiler_flags=-v
  11761. linker_flags=-v
  11762. verstring=
  11763. output_objdir=.
  11764. libname=conftest
  11765. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11766. allow_undefined_flag_CXX=
  11767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11768. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11769. ac_status=$?
  11770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11771. test $ac_status = 0; }
  11772. then
  11773. lt_cv_archive_cmds_need_lc_CXX=no
  11774. else
  11775. lt_cv_archive_cmds_need_lc_CXX=yes
  11776. fi
  11777. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11778. else
  11779. cat conftest.err 1>&5
  11780. fi
  11781. $RM conftest*
  11782. fi
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11784. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11785. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11786. ;;
  11787. esac
  11788. fi
  11789. ;;
  11790. esac
  11791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11792. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11793. library_names_spec=
  11794. libname_spec='lib$name'
  11795. soname_spec=
  11796. shrext_cmds=".so"
  11797. postinstall_cmds=
  11798. postuninstall_cmds=
  11799. finish_cmds=
  11800. finish_eval=
  11801. shlibpath_var=
  11802. shlibpath_overrides_runpath=unknown
  11803. version_type=none
  11804. dynamic_linker="$host_os ld.so"
  11805. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11806. need_lib_prefix=unknown
  11807. hardcode_into_libs=no
  11808. # when you set need_version to no, make sure it does not cause -set_version
  11809. # flags to be left without arguments
  11810. need_version=unknown
  11811. case $host_os in
  11812. aix3*)
  11813. version_type=linux
  11814. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11815. shlibpath_var=LIBPATH
  11816. # AIX 3 has no versioning support, so we append a major version to the name.
  11817. soname_spec='${libname}${release}${shared_ext}$major'
  11818. ;;
  11819. aix[4-9]*)
  11820. version_type=linux
  11821. need_lib_prefix=no
  11822. need_version=no
  11823. hardcode_into_libs=yes
  11824. if test "$host_cpu" = ia64; then
  11825. # AIX 5 supports IA64
  11826. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11827. shlibpath_var=LD_LIBRARY_PATH
  11828. else
  11829. # With GCC up to 2.95.x, collect2 would create an import file
  11830. # for dependence libraries. The import file would start with
  11831. # the line `#! .'. This would cause the generated library to
  11832. # depend on `.', always an invalid library. This was fixed in
  11833. # development snapshots of GCC prior to 3.0.
  11834. case $host_os in
  11835. aix4 | aix4.[01] | aix4.[01].*)
  11836. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11837. echo ' yes '
  11838. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11839. :
  11840. else
  11841. can_build_shared=no
  11842. fi
  11843. ;;
  11844. esac
  11845. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11846. # soname into executable. Probably we can add versioning support to
  11847. # collect2, so additional links can be useful in future.
  11848. if test "$aix_use_runtimelinking" = yes; then
  11849. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11850. # instead of lib<name>.a to let people know that these are not
  11851. # typical AIX shared libraries.
  11852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11853. else
  11854. # We preserve .a as extension for shared libraries through AIX4.2
  11855. # and later when we are not doing run time linking.
  11856. library_names_spec='${libname}${release}.a $libname.a'
  11857. soname_spec='${libname}${release}${shared_ext}$major'
  11858. fi
  11859. shlibpath_var=LIBPATH
  11860. fi
  11861. ;;
  11862. amigaos*)
  11863. case $host_cpu in
  11864. powerpc)
  11865. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11866. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11868. ;;
  11869. m68k)
  11870. library_names_spec='$libname.ixlibrary $libname.a'
  11871. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11872. 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'
  11873. ;;
  11874. esac
  11875. ;;
  11876. beos*)
  11877. library_names_spec='${libname}${shared_ext}'
  11878. dynamic_linker="$host_os ld.so"
  11879. shlibpath_var=LIBRARY_PATH
  11880. ;;
  11881. bsdi[45]*)
  11882. version_type=linux
  11883. need_version=no
  11884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11885. soname_spec='${libname}${release}${shared_ext}$major'
  11886. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11887. shlibpath_var=LD_LIBRARY_PATH
  11888. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11889. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11890. # the default ld.so.conf also contains /usr/contrib/lib and
  11891. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11892. # libtool to hard-code these into programs
  11893. ;;
  11894. cygwin* | mingw* | pw32* | cegcc*)
  11895. version_type=windows
  11896. shrext_cmds=".dll"
  11897. need_version=no
  11898. need_lib_prefix=no
  11899. case $GCC,$host_os in
  11900. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11901. library_names_spec='$libname.dll.a'
  11902. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11903. postinstall_cmds='base_file=`basename \${file}`~
  11904. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11905. dldir=$destdir/`dirname \$dlpath`~
  11906. test -d \$dldir || mkdir -p \$dldir~
  11907. $install_prog $dir/$dlname \$dldir/$dlname~
  11908. chmod a+x \$dldir/$dlname~
  11909. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11910. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11911. fi'
  11912. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11913. dlpath=$dir/\$dldll~
  11914. $RM \$dlpath'
  11915. shlibpath_overrides_runpath=yes
  11916. case $host_os in
  11917. cygwin*)
  11918. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11919. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11920. ;;
  11921. mingw* | cegcc*)
  11922. # MinGW DLLs use traditional 'lib' prefix
  11923. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11924. ;;
  11925. pw32*)
  11926. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11927. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11928. ;;
  11929. esac
  11930. ;;
  11931. *)
  11932. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11933. ;;
  11934. esac
  11935. dynamic_linker='Win32 ld.exe'
  11936. # FIXME: first we should search . and the directory the executable is in
  11937. shlibpath_var=PATH
  11938. ;;
  11939. darwin* | rhapsody*)
  11940. dynamic_linker="$host_os dyld"
  11941. version_type=darwin
  11942. need_lib_prefix=no
  11943. need_version=no
  11944. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11945. soname_spec='${libname}${release}${major}$shared_ext'
  11946. shlibpath_overrides_runpath=yes
  11947. shlibpath_var=DYLD_LIBRARY_PATH
  11948. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11949. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11950. ;;
  11951. dgux*)
  11952. version_type=linux
  11953. need_lib_prefix=no
  11954. need_version=no
  11955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11956. soname_spec='${libname}${release}${shared_ext}$major'
  11957. shlibpath_var=LD_LIBRARY_PATH
  11958. ;;
  11959. freebsd* | dragonfly*)
  11960. # DragonFly does not have aout. When/if they implement a new
  11961. # versioning mechanism, adjust this.
  11962. if test -x /usr/bin/objformat; then
  11963. objformat=`/usr/bin/objformat`
  11964. else
  11965. case $host_os in
  11966. freebsd[23].*) objformat=aout ;;
  11967. *) objformat=elf ;;
  11968. esac
  11969. fi
  11970. version_type=freebsd-$objformat
  11971. case $version_type in
  11972. freebsd-elf*)
  11973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11974. need_version=no
  11975. need_lib_prefix=no
  11976. ;;
  11977. freebsd-*)
  11978. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11979. need_version=yes
  11980. ;;
  11981. esac
  11982. shlibpath_var=LD_LIBRARY_PATH
  11983. case $host_os in
  11984. freebsd2.*)
  11985. shlibpath_overrides_runpath=yes
  11986. ;;
  11987. freebsd3.[01]* | freebsdelf3.[01]*)
  11988. shlibpath_overrides_runpath=yes
  11989. hardcode_into_libs=yes
  11990. ;;
  11991. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11992. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11993. shlibpath_overrides_runpath=no
  11994. hardcode_into_libs=yes
  11995. ;;
  11996. *) # from 4.6 on, and DragonFly
  11997. shlibpath_overrides_runpath=yes
  11998. hardcode_into_libs=yes
  11999. ;;
  12000. esac
  12001. ;;
  12002. gnu*)
  12003. version_type=linux
  12004. need_lib_prefix=no
  12005. need_version=no
  12006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12007. soname_spec='${libname}${release}${shared_ext}$major'
  12008. shlibpath_var=LD_LIBRARY_PATH
  12009. hardcode_into_libs=yes
  12010. ;;
  12011. haiku*)
  12012. version_type=linux
  12013. need_lib_prefix=no
  12014. need_version=no
  12015. dynamic_linker="$host_os runtime_loader"
  12016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12017. soname_spec='${libname}${release}${shared_ext}$major'
  12018. shlibpath_var=LIBRARY_PATH
  12019. shlibpath_overrides_runpath=yes
  12020. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12021. hardcode_into_libs=yes
  12022. ;;
  12023. hpux9* | hpux10* | hpux11*)
  12024. # Give a soname corresponding to the major version so that dld.sl refuses to
  12025. # link against other versions.
  12026. version_type=sunos
  12027. need_lib_prefix=no
  12028. need_version=no
  12029. case $host_cpu in
  12030. ia64*)
  12031. shrext_cmds='.so'
  12032. hardcode_into_libs=yes
  12033. dynamic_linker="$host_os dld.so"
  12034. shlibpath_var=LD_LIBRARY_PATH
  12035. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12037. soname_spec='${libname}${release}${shared_ext}$major'
  12038. if test "X$HPUX_IA64_MODE" = X32; then
  12039. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12040. else
  12041. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12042. fi
  12043. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12044. ;;
  12045. hppa*64*)
  12046. shrext_cmds='.sl'
  12047. hardcode_into_libs=yes
  12048. dynamic_linker="$host_os dld.sl"
  12049. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12052. soname_spec='${libname}${release}${shared_ext}$major'
  12053. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12055. ;;
  12056. *)
  12057. shrext_cmds='.sl'
  12058. dynamic_linker="$host_os dld.sl"
  12059. shlibpath_var=SHLIB_PATH
  12060. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12062. soname_spec='${libname}${release}${shared_ext}$major'
  12063. ;;
  12064. esac
  12065. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12066. postinstall_cmds='chmod 555 $lib'
  12067. # or fails outright, so override atomically:
  12068. install_override_mode=555
  12069. ;;
  12070. interix[3-9]*)
  12071. version_type=linux
  12072. need_lib_prefix=no
  12073. need_version=no
  12074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12075. soname_spec='${libname}${release}${shared_ext}$major'
  12076. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12077. shlibpath_var=LD_LIBRARY_PATH
  12078. shlibpath_overrides_runpath=no
  12079. hardcode_into_libs=yes
  12080. ;;
  12081. irix5* | irix6* | nonstopux*)
  12082. case $host_os in
  12083. nonstopux*) version_type=nonstopux ;;
  12084. *)
  12085. if test "$lt_cv_prog_gnu_ld" = yes; then
  12086. version_type=linux
  12087. else
  12088. version_type=irix
  12089. fi ;;
  12090. esac
  12091. need_lib_prefix=no
  12092. need_version=no
  12093. soname_spec='${libname}${release}${shared_ext}$major'
  12094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12095. case $host_os in
  12096. irix5* | nonstopux*)
  12097. libsuff= shlibsuff=
  12098. ;;
  12099. *)
  12100. case $LD in # libtool.m4 will add one of these switches to LD
  12101. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12102. libsuff= shlibsuff= libmagic=32-bit;;
  12103. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12104. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12105. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12106. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12107. *) libsuff= shlibsuff= libmagic=never-match;;
  12108. esac
  12109. ;;
  12110. esac
  12111. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12112. shlibpath_overrides_runpath=no
  12113. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12114. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12115. hardcode_into_libs=yes
  12116. ;;
  12117. # No shared lib support for Linux oldld, aout, or coff.
  12118. linux*oldld* | linux*aout* | linux*coff*)
  12119. dynamic_linker=no
  12120. ;;
  12121. # This must be Linux ELF.
  12122. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12123. version_type=linux
  12124. need_lib_prefix=no
  12125. need_version=no
  12126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12127. soname_spec='${libname}${release}${shared_ext}$major'
  12128. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12129. shlibpath_var=LD_LIBRARY_PATH
  12130. shlibpath_overrides_runpath=no
  12131. # Some binutils ld are patched to set DT_RUNPATH
  12132. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12133. $as_echo_n "(cached) " >&6
  12134. else
  12135. lt_cv_shlibpath_overrides_runpath=no
  12136. save_LDFLAGS=$LDFLAGS
  12137. save_libdir=$libdir
  12138. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12139. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12141. /* end confdefs.h. */
  12142. int
  12143. main ()
  12144. {
  12145. ;
  12146. return 0;
  12147. }
  12148. _ACEOF
  12149. if ac_fn_cxx_try_link "$LINENO"; then :
  12150. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12151. lt_cv_shlibpath_overrides_runpath=yes
  12152. fi
  12153. fi
  12154. rm -f core conftest.err conftest.$ac_objext \
  12155. conftest$ac_exeext conftest.$ac_ext
  12156. LDFLAGS=$save_LDFLAGS
  12157. libdir=$save_libdir
  12158. fi
  12159. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12160. # This implies no fast_install, which is unacceptable.
  12161. # Some rework will be needed to allow for fast_install
  12162. # before this can be enabled.
  12163. hardcode_into_libs=yes
  12164. # Append ld.so.conf contents to the search path
  12165. if test -f /etc/ld.so.conf; then
  12166. 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' ' '`
  12167. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12168. fi
  12169. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12170. # powerpc, because MkLinux only supported shared libraries with the
  12171. # GNU dynamic linker. Since this was broken with cross compilers,
  12172. # most powerpc-linux boxes support dynamic linking these days and
  12173. # people can always --disable-shared, the test was removed, and we
  12174. # assume the GNU/Linux dynamic linker is in use.
  12175. dynamic_linker='GNU/Linux ld.so'
  12176. ;;
  12177. netbsd*)
  12178. version_type=sunos
  12179. need_lib_prefix=no
  12180. need_version=no
  12181. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12183. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12184. dynamic_linker='NetBSD (a.out) ld.so'
  12185. else
  12186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12187. soname_spec='${libname}${release}${shared_ext}$major'
  12188. dynamic_linker='NetBSD ld.elf_so'
  12189. fi
  12190. shlibpath_var=LD_LIBRARY_PATH
  12191. shlibpath_overrides_runpath=yes
  12192. hardcode_into_libs=yes
  12193. ;;
  12194. newsos6)
  12195. version_type=linux
  12196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12197. shlibpath_var=LD_LIBRARY_PATH
  12198. shlibpath_overrides_runpath=yes
  12199. ;;
  12200. *nto* | *qnx*)
  12201. version_type=qnx
  12202. need_lib_prefix=no
  12203. need_version=no
  12204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12205. soname_spec='${libname}${release}${shared_ext}$major'
  12206. shlibpath_var=LD_LIBRARY_PATH
  12207. shlibpath_overrides_runpath=no
  12208. hardcode_into_libs=yes
  12209. dynamic_linker='ldqnx.so'
  12210. ;;
  12211. openbsd*)
  12212. version_type=sunos
  12213. sys_lib_dlsearch_path_spec="/usr/lib"
  12214. need_lib_prefix=no
  12215. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12216. case $host_os in
  12217. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12218. *) need_version=no ;;
  12219. esac
  12220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12221. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12222. shlibpath_var=LD_LIBRARY_PATH
  12223. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12224. case $host_os in
  12225. openbsd2.[89] | openbsd2.[89].*)
  12226. shlibpath_overrides_runpath=no
  12227. ;;
  12228. *)
  12229. shlibpath_overrides_runpath=yes
  12230. ;;
  12231. esac
  12232. else
  12233. shlibpath_overrides_runpath=yes
  12234. fi
  12235. ;;
  12236. os2*)
  12237. libname_spec='$name'
  12238. shrext_cmds=".dll"
  12239. need_lib_prefix=no
  12240. library_names_spec='$libname${shared_ext} $libname.a'
  12241. dynamic_linker='OS/2 ld.exe'
  12242. shlibpath_var=LIBPATH
  12243. ;;
  12244. osf3* | osf4* | osf5*)
  12245. version_type=osf
  12246. need_lib_prefix=no
  12247. need_version=no
  12248. soname_spec='${libname}${release}${shared_ext}$major'
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12250. shlibpath_var=LD_LIBRARY_PATH
  12251. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12252. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12253. ;;
  12254. rdos*)
  12255. dynamic_linker=no
  12256. ;;
  12257. solaris*)
  12258. version_type=linux
  12259. need_lib_prefix=no
  12260. need_version=no
  12261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12262. soname_spec='${libname}${release}${shared_ext}$major'
  12263. shlibpath_var=LD_LIBRARY_PATH
  12264. shlibpath_overrides_runpath=yes
  12265. hardcode_into_libs=yes
  12266. # ldd complains unless libraries are executable
  12267. postinstall_cmds='chmod +x $lib'
  12268. ;;
  12269. sunos4*)
  12270. version_type=sunos
  12271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12272. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12273. shlibpath_var=LD_LIBRARY_PATH
  12274. shlibpath_overrides_runpath=yes
  12275. if test "$with_gnu_ld" = yes; then
  12276. need_lib_prefix=no
  12277. fi
  12278. need_version=yes
  12279. ;;
  12280. sysv4 | sysv4.3*)
  12281. version_type=linux
  12282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12283. soname_spec='${libname}${release}${shared_ext}$major'
  12284. shlibpath_var=LD_LIBRARY_PATH
  12285. case $host_vendor in
  12286. sni)
  12287. shlibpath_overrides_runpath=no
  12288. need_lib_prefix=no
  12289. runpath_var=LD_RUN_PATH
  12290. ;;
  12291. siemens)
  12292. need_lib_prefix=no
  12293. ;;
  12294. motorola)
  12295. need_lib_prefix=no
  12296. need_version=no
  12297. shlibpath_overrides_runpath=no
  12298. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12299. ;;
  12300. esac
  12301. ;;
  12302. sysv4*MP*)
  12303. if test -d /usr/nec ;then
  12304. version_type=linux
  12305. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12306. soname_spec='$libname${shared_ext}.$major'
  12307. shlibpath_var=LD_LIBRARY_PATH
  12308. fi
  12309. ;;
  12310. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12311. version_type=freebsd-elf
  12312. need_lib_prefix=no
  12313. need_version=no
  12314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12315. soname_spec='${libname}${release}${shared_ext}$major'
  12316. shlibpath_var=LD_LIBRARY_PATH
  12317. shlibpath_overrides_runpath=yes
  12318. hardcode_into_libs=yes
  12319. if test "$with_gnu_ld" = yes; then
  12320. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12321. else
  12322. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12323. case $host_os in
  12324. sco3.2v5*)
  12325. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12326. ;;
  12327. esac
  12328. fi
  12329. sys_lib_dlsearch_path_spec='/usr/lib'
  12330. ;;
  12331. tpf*)
  12332. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12333. version_type=linux
  12334. need_lib_prefix=no
  12335. need_version=no
  12336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12337. shlibpath_var=LD_LIBRARY_PATH
  12338. shlibpath_overrides_runpath=no
  12339. hardcode_into_libs=yes
  12340. ;;
  12341. uts4*)
  12342. version_type=linux
  12343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12344. soname_spec='${libname}${release}${shared_ext}$major'
  12345. shlibpath_var=LD_LIBRARY_PATH
  12346. ;;
  12347. *)
  12348. dynamic_linker=no
  12349. ;;
  12350. esac
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12352. $as_echo "$dynamic_linker" >&6; }
  12353. test "$dynamic_linker" = no && can_build_shared=no
  12354. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12355. if test "$GCC" = yes; then
  12356. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12357. fi
  12358. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12359. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12360. fi
  12361. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12362. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12363. fi
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12365. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12366. hardcode_action_CXX=
  12367. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12368. test -n "$runpath_var_CXX" ||
  12369. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12370. # We can hardcode non-existent directories.
  12371. if test "$hardcode_direct_CXX" != no &&
  12372. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12373. # have to relink, otherwise we might link with an installed library
  12374. # when we should be linking with a yet-to-be-installed one
  12375. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12376. test "$hardcode_minus_L_CXX" != no; then
  12377. # Linking always hardcodes the temporary library directory.
  12378. hardcode_action_CXX=relink
  12379. else
  12380. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12381. hardcode_action_CXX=immediate
  12382. fi
  12383. else
  12384. # We cannot hardcode anything, or else we can only hardcode existing
  12385. # directories.
  12386. hardcode_action_CXX=unsupported
  12387. fi
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12389. $as_echo "$hardcode_action_CXX" >&6; }
  12390. if test "$hardcode_action_CXX" = relink ||
  12391. test "$inherit_rpath_CXX" = yes; then
  12392. # Fast installation is not supported
  12393. enable_fast_install=no
  12394. elif test "$shlibpath_overrides_runpath" = yes ||
  12395. test "$enable_shared" = no; then
  12396. # Fast installation is not necessary
  12397. enable_fast_install=needless
  12398. fi
  12399. fi # test -n "$compiler"
  12400. CC=$lt_save_CC
  12401. LDCXX=$LD
  12402. LD=$lt_save_LD
  12403. GCC=$lt_save_GCC
  12404. with_gnu_ld=$lt_save_with_gnu_ld
  12405. lt_cv_path_LDCXX=$lt_cv_path_LD
  12406. lt_cv_path_LD=$lt_save_path_LD
  12407. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12408. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12409. fi # test "$_lt_caught_CXX_error" != yes
  12410. ac_ext=c
  12411. ac_cpp='$CPP $CPPFLAGS'
  12412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12415. ac_config_commands="$ac_config_commands libtool"
  12416. # Only expand once:
  12417. # Forbid libtool to hardcode RPATH, because we want to be able to specify
  12418. # library search directory using LD_LIBRARY_PATH
  12419. hardcode_into_libs=no
  12420. if test $enable_shared = yes; then
  12421. link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
  12422. link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
  12423. else
  12424. link_offloadmic_host="-loffloadmic_host $LIBS"
  12425. link_offloadmic_target="-loffloadmic_target $LIBS"
  12426. fi
  12427. # Must be last
  12428. cat >confcache <<\_ACEOF
  12429. # This file is a shell script that caches the results of configure
  12430. # tests run on this system so they can be shared between configure
  12431. # scripts and configure runs, see configure's option --config-cache.
  12432. # It is not useful on other systems. If it contains results you don't
  12433. # want to keep, you may remove or edit it.
  12434. #
  12435. # config.status only pays attention to the cache file if you give it
  12436. # the --recheck option to rerun configure.
  12437. #
  12438. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12439. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12440. # following values.
  12441. _ACEOF
  12442. # The following way of writing the cache mishandles newlines in values,
  12443. # but we know of no workaround that is simple, portable, and efficient.
  12444. # So, we kill variables containing newlines.
  12445. # Ultrix sh set writes to stderr and can't be redirected directly,
  12446. # and sets the high bit in the cache file unless we assign to the vars.
  12447. (
  12448. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12449. eval ac_val=\$$ac_var
  12450. case $ac_val in #(
  12451. *${as_nl}*)
  12452. case $ac_var in #(
  12453. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12454. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12455. esac
  12456. case $ac_var in #(
  12457. _ | IFS | as_nl) ;; #(
  12458. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12459. *) { eval $ac_var=; unset $ac_var;} ;;
  12460. esac ;;
  12461. esac
  12462. done
  12463. (set) 2>&1 |
  12464. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12465. *${as_nl}ac_space=\ *)
  12466. # `set' does not quote correctly, so add quotes: double-quote
  12467. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12468. sed -n \
  12469. "s/'/'\\\\''/g;
  12470. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12471. ;; #(
  12472. *)
  12473. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12474. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12475. ;;
  12476. esac |
  12477. sort
  12478. ) |
  12479. sed '
  12480. /^ac_cv_env_/b end
  12481. t clear
  12482. :clear
  12483. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12484. t end
  12485. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12486. :end' >>confcache
  12487. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12488. if test -w "$cache_file"; then
  12489. test "x$cache_file" != "x/dev/null" &&
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12491. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12492. cat confcache >$cache_file
  12493. else
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12495. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12496. fi
  12497. fi
  12498. rm -f confcache
  12499. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12500. # Let make expand exec_prefix.
  12501. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12502. # Transform confdefs.h into DEFS.
  12503. # Protect against shell expansion while executing Makefile rules.
  12504. # Protect against Makefile macro expansion.
  12505. #
  12506. # If the first sed substitution is executed (which looks for macros that
  12507. # take arguments), then branch to the quote section. Otherwise,
  12508. # look for a macro that doesn't take arguments.
  12509. ac_script='
  12510. :mline
  12511. /\\$/{
  12512. N
  12513. s,\\\n,,
  12514. b mline
  12515. }
  12516. t clear
  12517. :clear
  12518. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12519. t quote
  12520. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12521. t quote
  12522. b any
  12523. :quote
  12524. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12525. s/\[/\\&/g
  12526. s/\]/\\&/g
  12527. s/\$/$$/g
  12528. H
  12529. :any
  12530. ${
  12531. g
  12532. s/^\n//
  12533. s/\n/ /g
  12534. p
  12535. }
  12536. '
  12537. DEFS=`sed -n "$ac_script" confdefs.h`
  12538. ac_libobjs=
  12539. ac_ltlibobjs=
  12540. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12541. # 1. Remove the extension, and $U if already installed.
  12542. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12543. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12544. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12545. # will be set to the directory where LIBOBJS objects are built.
  12546. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12547. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12548. done
  12549. LIBOBJS=$ac_libobjs
  12550. LTLIBOBJS=$ac_ltlibobjs
  12551. if test -n "$EXEEXT"; then
  12552. am__EXEEXT_TRUE=
  12553. am__EXEEXT_FALSE='#'
  12554. else
  12555. am__EXEEXT_TRUE='#'
  12556. am__EXEEXT_FALSE=
  12557. fi
  12558. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12559. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12560. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12561. fi
  12562. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12563. as_fn_error "conditional \"AMDEP\" was never defined.
  12564. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12565. fi
  12566. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12567. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12568. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12569. fi
  12570. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12571. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12572. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12573. fi
  12574. if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
  12575. as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
  12576. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12577. fi
  12578. : ${CONFIG_STATUS=./config.status}
  12579. ac_write_fail=0
  12580. ac_clean_files_save=$ac_clean_files
  12581. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12583. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12584. as_write_fail=0
  12585. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12586. #! $SHELL
  12587. # Generated by $as_me.
  12588. # Run this file to recreate the current configuration.
  12589. # Compiler output produced by configure, useful for debugging
  12590. # configure, is in config.log if it exists.
  12591. debug=false
  12592. ac_cs_recheck=false
  12593. ac_cs_silent=false
  12594. SHELL=\${CONFIG_SHELL-$SHELL}
  12595. export SHELL
  12596. _ASEOF
  12597. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12598. ## -------------------- ##
  12599. ## M4sh Initialization. ##
  12600. ## -------------------- ##
  12601. # Be more Bourne compatible
  12602. DUALCASE=1; export DUALCASE # for MKS sh
  12603. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12604. emulate sh
  12605. NULLCMD=:
  12606. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12607. # is contrary to our usage. Disable this feature.
  12608. alias -g '${1+"$@"}'='"$@"'
  12609. setopt NO_GLOB_SUBST
  12610. else
  12611. case `(set -o) 2>/dev/null` in #(
  12612. *posix*) :
  12613. set -o posix ;; #(
  12614. *) :
  12615. ;;
  12616. esac
  12617. fi
  12618. as_nl='
  12619. '
  12620. export as_nl
  12621. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12622. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12623. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12624. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12625. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12626. # but without wasting forks for bash or zsh.
  12627. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12628. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12629. as_echo='print -r --'
  12630. as_echo_n='print -rn --'
  12631. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12632. as_echo='printf %s\n'
  12633. as_echo_n='printf %s'
  12634. else
  12635. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12636. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12637. as_echo_n='/usr/ucb/echo -n'
  12638. else
  12639. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12640. as_echo_n_body='eval
  12641. arg=$1;
  12642. case $arg in #(
  12643. *"$as_nl"*)
  12644. expr "X$arg" : "X\\(.*\\)$as_nl";
  12645. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12646. esac;
  12647. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12648. '
  12649. export as_echo_n_body
  12650. as_echo_n='sh -c $as_echo_n_body as_echo'
  12651. fi
  12652. export as_echo_body
  12653. as_echo='sh -c $as_echo_body as_echo'
  12654. fi
  12655. # The user is always right.
  12656. if test "${PATH_SEPARATOR+set}" != set; then
  12657. PATH_SEPARATOR=:
  12658. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12659. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12660. PATH_SEPARATOR=';'
  12661. }
  12662. fi
  12663. # IFS
  12664. # We need space, tab and new line, in precisely that order. Quoting is
  12665. # there to prevent editors from complaining about space-tab.
  12666. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12667. # splitting by setting IFS to empty value.)
  12668. IFS=" "" $as_nl"
  12669. # Find who we are. Look in the path if we contain no directory separator.
  12670. case $0 in #((
  12671. *[\\/]* ) as_myself=$0 ;;
  12672. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12673. for as_dir in $PATH
  12674. do
  12675. IFS=$as_save_IFS
  12676. test -z "$as_dir" && as_dir=.
  12677. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12678. done
  12679. IFS=$as_save_IFS
  12680. ;;
  12681. esac
  12682. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12683. # in which case we are not to be found in the path.
  12684. if test "x$as_myself" = x; then
  12685. as_myself=$0
  12686. fi
  12687. if test ! -f "$as_myself"; then
  12688. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12689. exit 1
  12690. fi
  12691. # Unset variables that we do not need and which cause bugs (e.g. in
  12692. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12693. # suppresses any "Segmentation fault" message there. '((' could
  12694. # trigger a bug in pdksh 5.2.14.
  12695. for as_var in BASH_ENV ENV MAIL MAILPATH
  12696. do eval test x\${$as_var+set} = xset \
  12697. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12698. done
  12699. PS1='$ '
  12700. PS2='> '
  12701. PS4='+ '
  12702. # NLS nuisances.
  12703. LC_ALL=C
  12704. export LC_ALL
  12705. LANGUAGE=C
  12706. export LANGUAGE
  12707. # CDPATH.
  12708. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12709. # as_fn_error ERROR [LINENO LOG_FD]
  12710. # ---------------------------------
  12711. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12712. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12713. # script with status $?, using 1 if that was 0.
  12714. as_fn_error ()
  12715. {
  12716. as_status=$?; test $as_status -eq 0 && as_status=1
  12717. if test "$3"; then
  12718. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12719. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12720. fi
  12721. $as_echo "$as_me: error: $1" >&2
  12722. as_fn_exit $as_status
  12723. } # as_fn_error
  12724. # as_fn_set_status STATUS
  12725. # -----------------------
  12726. # Set $? to STATUS, without forking.
  12727. as_fn_set_status ()
  12728. {
  12729. return $1
  12730. } # as_fn_set_status
  12731. # as_fn_exit STATUS
  12732. # -----------------
  12733. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12734. as_fn_exit ()
  12735. {
  12736. set +e
  12737. as_fn_set_status $1
  12738. exit $1
  12739. } # as_fn_exit
  12740. # as_fn_unset VAR
  12741. # ---------------
  12742. # Portably unset VAR.
  12743. as_fn_unset ()
  12744. {
  12745. { eval $1=; unset $1;}
  12746. }
  12747. as_unset=as_fn_unset
  12748. # as_fn_append VAR VALUE
  12749. # ----------------------
  12750. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12751. # advantage of any shell optimizations that allow amortized linear growth over
  12752. # repeated appends, instead of the typical quadratic growth present in naive
  12753. # implementations.
  12754. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12755. eval 'as_fn_append ()
  12756. {
  12757. eval $1+=\$2
  12758. }'
  12759. else
  12760. as_fn_append ()
  12761. {
  12762. eval $1=\$$1\$2
  12763. }
  12764. fi # as_fn_append
  12765. # as_fn_arith ARG...
  12766. # ------------------
  12767. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12768. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12769. # must be portable across $(()) and expr.
  12770. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12771. eval 'as_fn_arith ()
  12772. {
  12773. as_val=$(( $* ))
  12774. }'
  12775. else
  12776. as_fn_arith ()
  12777. {
  12778. as_val=`expr "$@" || test $? -eq 1`
  12779. }
  12780. fi # as_fn_arith
  12781. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12782. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12783. as_expr=expr
  12784. else
  12785. as_expr=false
  12786. fi
  12787. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12788. as_basename=basename
  12789. else
  12790. as_basename=false
  12791. fi
  12792. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12793. as_dirname=dirname
  12794. else
  12795. as_dirname=false
  12796. fi
  12797. as_me=`$as_basename -- "$0" ||
  12798. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12799. X"$0" : 'X\(//\)$' \| \
  12800. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12801. $as_echo X/"$0" |
  12802. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12803. s//\1/
  12804. q
  12805. }
  12806. /^X\/\(\/\/\)$/{
  12807. s//\1/
  12808. q
  12809. }
  12810. /^X\/\(\/\).*/{
  12811. s//\1/
  12812. q
  12813. }
  12814. s/.*/./; q'`
  12815. # Avoid depending upon Character Ranges.
  12816. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12817. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12818. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12819. as_cr_digits='0123456789'
  12820. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12821. ECHO_C= ECHO_N= ECHO_T=
  12822. case `echo -n x` in #(((((
  12823. -n*)
  12824. case `echo 'xy\c'` in
  12825. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12826. xy) ECHO_C='\c';;
  12827. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12828. ECHO_T=' ';;
  12829. esac;;
  12830. *)
  12831. ECHO_N='-n';;
  12832. esac
  12833. rm -f conf$$ conf$$.exe conf$$.file
  12834. if test -d conf$$.dir; then
  12835. rm -f conf$$.dir/conf$$.file
  12836. else
  12837. rm -f conf$$.dir
  12838. mkdir conf$$.dir 2>/dev/null
  12839. fi
  12840. if (echo >conf$$.file) 2>/dev/null; then
  12841. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12842. as_ln_s='ln -s'
  12843. # ... but there are two gotchas:
  12844. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12845. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12846. # In both cases, we have to default to `cp -p'.
  12847. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12848. as_ln_s='cp -p'
  12849. elif ln conf$$.file conf$$ 2>/dev/null; then
  12850. as_ln_s=ln
  12851. else
  12852. as_ln_s='cp -p'
  12853. fi
  12854. else
  12855. as_ln_s='cp -p'
  12856. fi
  12857. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12858. rmdir conf$$.dir 2>/dev/null
  12859. # as_fn_mkdir_p
  12860. # -------------
  12861. # Create "$as_dir" as a directory, including parents if necessary.
  12862. as_fn_mkdir_p ()
  12863. {
  12864. case $as_dir in #(
  12865. -*) as_dir=./$as_dir;;
  12866. esac
  12867. test -d "$as_dir" || eval $as_mkdir_p || {
  12868. as_dirs=
  12869. while :; do
  12870. case $as_dir in #(
  12871. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12872. *) as_qdir=$as_dir;;
  12873. esac
  12874. as_dirs="'$as_qdir' $as_dirs"
  12875. as_dir=`$as_dirname -- "$as_dir" ||
  12876. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12877. X"$as_dir" : 'X\(//\)[^/]' \| \
  12878. X"$as_dir" : 'X\(//\)$' \| \
  12879. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12880. $as_echo X"$as_dir" |
  12881. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12882. s//\1/
  12883. q
  12884. }
  12885. /^X\(\/\/\)[^/].*/{
  12886. s//\1/
  12887. q
  12888. }
  12889. /^X\(\/\/\)$/{
  12890. s//\1/
  12891. q
  12892. }
  12893. /^X\(\/\).*/{
  12894. s//\1/
  12895. q
  12896. }
  12897. s/.*/./; q'`
  12898. test -d "$as_dir" && break
  12899. done
  12900. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12901. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12902. } # as_fn_mkdir_p
  12903. if mkdir -p . 2>/dev/null; then
  12904. as_mkdir_p='mkdir -p "$as_dir"'
  12905. else
  12906. test -d ./-p && rmdir ./-p
  12907. as_mkdir_p=false
  12908. fi
  12909. if test -x / >/dev/null 2>&1; then
  12910. as_test_x='test -x'
  12911. else
  12912. if ls -dL / >/dev/null 2>&1; then
  12913. as_ls_L_option=L
  12914. else
  12915. as_ls_L_option=
  12916. fi
  12917. as_test_x='
  12918. eval sh -c '\''
  12919. if test -d "$1"; then
  12920. test -d "$1/.";
  12921. else
  12922. case $1 in #(
  12923. -*)set "./$1";;
  12924. esac;
  12925. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12926. ???[sx]*):;;*)false;;esac;fi
  12927. '\'' sh
  12928. '
  12929. fi
  12930. as_executable_p=$as_test_x
  12931. # Sed expression to map a string onto a valid CPP name.
  12932. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12933. # Sed expression to map a string onto a valid variable name.
  12934. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12935. exec 6>&1
  12936. ## ----------------------------------- ##
  12937. ## Main body of $CONFIG_STATUS script. ##
  12938. ## ----------------------------------- ##
  12939. _ASEOF
  12940. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12942. # Save the log message, to keep $0 and so on meaningful, and to
  12943. # report actual input values of CONFIG_FILES etc. instead of their
  12944. # values after options handling.
  12945. ac_log="
  12946. This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
  12947. generated by GNU Autoconf 2.64. Invocation command line was
  12948. CONFIG_FILES = $CONFIG_FILES
  12949. CONFIG_HEADERS = $CONFIG_HEADERS
  12950. CONFIG_LINKS = $CONFIG_LINKS
  12951. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12952. $ $0 $@
  12953. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12954. "
  12955. _ACEOF
  12956. case $ac_config_files in *"
  12957. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12958. esac
  12959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12960. # Files that config.status was made for.
  12961. config_files="$ac_config_files"
  12962. config_commands="$ac_config_commands"
  12963. _ACEOF
  12964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12965. ac_cs_usage="\
  12966. \`$as_me' instantiates files and other configuration actions
  12967. from templates according to the current configuration. Unless the files
  12968. and actions are specified as TAGs, all are instantiated by default.
  12969. Usage: $0 [OPTION]... [TAG]...
  12970. -h, --help print this help, then exit
  12971. -V, --version print version number and configuration settings, then exit
  12972. -q, --quiet, --silent
  12973. do not print progress messages
  12974. -d, --debug don't remove temporary files
  12975. --recheck update $as_me by reconfiguring in the same conditions
  12976. --file=FILE[:TEMPLATE]
  12977. instantiate the configuration file FILE
  12978. Configuration files:
  12979. $config_files
  12980. Configuration commands:
  12981. $config_commands
  12982. Report bugs to the package provider."
  12983. _ACEOF
  12984. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12985. ac_cs_version="\\
  12986. MIC Offload Runtime Library config.status 1.0
  12987. configured by $0, generated by GNU Autoconf 2.64,
  12988. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12989. Copyright (C) 2009 Free Software Foundation, Inc.
  12990. This config.status script is free software; the Free Software Foundation
  12991. gives unlimited permission to copy, distribute and modify it."
  12992. ac_pwd='$ac_pwd'
  12993. srcdir='$srcdir'
  12994. INSTALL='$INSTALL'
  12995. MKDIR_P='$MKDIR_P'
  12996. AWK='$AWK'
  12997. test -n "\$AWK" || AWK=awk
  12998. _ACEOF
  12999. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13000. # The default lists apply if the user does not specify any file.
  13001. ac_need_defaults=:
  13002. while test $# != 0
  13003. do
  13004. case $1 in
  13005. --*=*)
  13006. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13007. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13008. ac_shift=:
  13009. ;;
  13010. *)
  13011. ac_option=$1
  13012. ac_optarg=$2
  13013. ac_shift=shift
  13014. ;;
  13015. esac
  13016. case $ac_option in
  13017. # Handling of the options.
  13018. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13019. ac_cs_recheck=: ;;
  13020. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13021. $as_echo "$ac_cs_version"; exit ;;
  13022. --debug | --debu | --deb | --de | --d | -d )
  13023. debug=: ;;
  13024. --file | --fil | --fi | --f )
  13025. $ac_shift
  13026. case $ac_optarg in
  13027. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13028. esac
  13029. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13030. ac_need_defaults=false;;
  13031. --he | --h | --help | --hel | -h )
  13032. $as_echo "$ac_cs_usage"; exit ;;
  13033. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13034. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13035. ac_cs_silent=: ;;
  13036. # This is an error.
  13037. -*) as_fn_error "unrecognized option: \`$1'
  13038. Try \`$0 --help' for more information." ;;
  13039. *) as_fn_append ac_config_targets " $1"
  13040. ac_need_defaults=false ;;
  13041. esac
  13042. shift
  13043. done
  13044. ac_configure_extra_args=
  13045. if $ac_cs_silent; then
  13046. exec 6>/dev/null
  13047. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13048. fi
  13049. _ACEOF
  13050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13051. if \$ac_cs_recheck; then
  13052. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13053. shift
  13054. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13055. CONFIG_SHELL='$SHELL'
  13056. export CONFIG_SHELL
  13057. exec "\$@"
  13058. fi
  13059. _ACEOF
  13060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13061. exec 5>>config.log
  13062. {
  13063. echo
  13064. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13065. ## Running $as_me. ##
  13066. _ASBOX
  13067. $as_echo "$ac_log"
  13068. } >&5
  13069. _ACEOF
  13070. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13071. #
  13072. # INIT-COMMANDS
  13073. #
  13074. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13075. srcdir="$srcdir"
  13076. host="$host"
  13077. target="$target"
  13078. with_multisubdir="$with_multisubdir"
  13079. with_multisrctop="$with_multisrctop"
  13080. with_target_subdir="$with_target_subdir"
  13081. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  13082. multi_basedir="$multi_basedir"
  13083. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13084. CC="$CC"
  13085. CXX="$CXX"
  13086. GFORTRAN="$GFORTRAN"
  13087. GCJ="$GCJ"
  13088. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13089. # if CDPATH is set.
  13090. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13091. sed_quote_subst='$sed_quote_subst'
  13092. double_quote_subst='$double_quote_subst'
  13093. delay_variable_subst='$delay_variable_subst'
  13094. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13095. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13096. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13097. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13098. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13099. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13100. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13101. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13102. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13103. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13104. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13105. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13106. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13107. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13108. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13109. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13110. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13111. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13112. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13113. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13114. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13115. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13116. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13117. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13118. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13119. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13120. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13121. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13122. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13123. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13124. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13125. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13126. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13127. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13128. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13129. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13130. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13131. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13132. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13133. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13134. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13135. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13136. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13137. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13138. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13139. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13140. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13141. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13142. 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"`'
  13143. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13144. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13145. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13146. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13147. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13148. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13149. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13150. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13151. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13152. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13153. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13154. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13155. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13156. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13157. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13158. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13159. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13160. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13161. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13162. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13163. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13164. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13165. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13166. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13167. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13168. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13169. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13170. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13171. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13172. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13173. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13174. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13175. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13176. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13177. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13178. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13179. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13180. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13181. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13182. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13183. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13184. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13185. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13186. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13187. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13188. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13189. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13190. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13191. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13192. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13193. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13194. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13195. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13196. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13197. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13198. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13199. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13200. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13201. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13202. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13203. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13204. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13205. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13206. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13207. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13208. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13209. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13210. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13211. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13212. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13213. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13214. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13215. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13216. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13217. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13218. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13219. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13220. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13221. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13222. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13223. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13224. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13225. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13226. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13227. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13228. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13229. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13230. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13231. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13232. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13233. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13234. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13235. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13236. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13237. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13238. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13239. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13240. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13241. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13242. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13243. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13244. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13245. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13246. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13247. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13248. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13249. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13250. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13251. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13252. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13253. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13254. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13255. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13256. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13257. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13258. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13259. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13260. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13261. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13262. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13263. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13264. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13265. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13266. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13267. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13268. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13269. LTCC='$LTCC'
  13270. LTCFLAGS='$LTCFLAGS'
  13271. compiler='$compiler_DEFAULT'
  13272. # A function that is used when there is no print builtin or printf.
  13273. func_fallback_echo ()
  13274. {
  13275. eval 'cat <<_LTECHO_EOF
  13276. \$1
  13277. _LTECHO_EOF'
  13278. }
  13279. # Quote evaled strings.
  13280. for var in SHELL \
  13281. ECHO \
  13282. SED \
  13283. GREP \
  13284. EGREP \
  13285. FGREP \
  13286. LD \
  13287. NM \
  13288. LN_S \
  13289. lt_SP2NL \
  13290. lt_NL2SP \
  13291. reload_flag \
  13292. OBJDUMP \
  13293. deplibs_check_method \
  13294. file_magic_cmd \
  13295. AR \
  13296. AR_FLAGS \
  13297. STRIP \
  13298. RANLIB \
  13299. CC \
  13300. CFLAGS \
  13301. compiler \
  13302. lt_cv_sys_global_symbol_pipe \
  13303. lt_cv_sys_global_symbol_to_cdecl \
  13304. lt_cv_sys_global_symbol_to_c_name_address \
  13305. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13306. lt_prog_compiler_no_builtin_flag \
  13307. lt_prog_compiler_wl \
  13308. lt_prog_compiler_pic \
  13309. lt_prog_compiler_static \
  13310. lt_cv_prog_compiler_c_o \
  13311. need_locks \
  13312. DSYMUTIL \
  13313. NMEDIT \
  13314. LIPO \
  13315. OTOOL \
  13316. OTOOL64 \
  13317. shrext_cmds \
  13318. export_dynamic_flag_spec \
  13319. whole_archive_flag_spec \
  13320. compiler_needs_object \
  13321. with_gnu_ld \
  13322. allow_undefined_flag \
  13323. no_undefined_flag \
  13324. hardcode_libdir_flag_spec \
  13325. hardcode_libdir_flag_spec_ld \
  13326. hardcode_libdir_separator \
  13327. fix_srcfile_path \
  13328. exclude_expsyms \
  13329. include_expsyms \
  13330. file_list_spec \
  13331. variables_saved_for_relink \
  13332. libname_spec \
  13333. library_names_spec \
  13334. soname_spec \
  13335. install_override_mode \
  13336. finish_eval \
  13337. old_striplib \
  13338. striplib \
  13339. compiler_lib_search_dirs \
  13340. predep_objects \
  13341. postdep_objects \
  13342. predeps \
  13343. postdeps \
  13344. compiler_lib_search_path \
  13345. LD_CXX \
  13346. reload_flag_CXX \
  13347. compiler_CXX \
  13348. lt_prog_compiler_no_builtin_flag_CXX \
  13349. lt_prog_compiler_wl_CXX \
  13350. lt_prog_compiler_pic_CXX \
  13351. lt_prog_compiler_static_CXX \
  13352. lt_cv_prog_compiler_c_o_CXX \
  13353. export_dynamic_flag_spec_CXX \
  13354. whole_archive_flag_spec_CXX \
  13355. compiler_needs_object_CXX \
  13356. with_gnu_ld_CXX \
  13357. allow_undefined_flag_CXX \
  13358. no_undefined_flag_CXX \
  13359. hardcode_libdir_flag_spec_CXX \
  13360. hardcode_libdir_flag_spec_ld_CXX \
  13361. hardcode_libdir_separator_CXX \
  13362. fix_srcfile_path_CXX \
  13363. exclude_expsyms_CXX \
  13364. include_expsyms_CXX \
  13365. file_list_spec_CXX \
  13366. compiler_lib_search_dirs_CXX \
  13367. predep_objects_CXX \
  13368. postdep_objects_CXX \
  13369. predeps_CXX \
  13370. postdeps_CXX \
  13371. compiler_lib_search_path_CXX; do
  13372. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13373. *[\\\\\\\`\\"\\\$]*)
  13374. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13375. ;;
  13376. *)
  13377. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13378. ;;
  13379. esac
  13380. done
  13381. # Double-quote double-evaled strings.
  13382. for var in reload_cmds \
  13383. old_postinstall_cmds \
  13384. old_postuninstall_cmds \
  13385. old_archive_cmds \
  13386. extract_expsyms_cmds \
  13387. old_archive_from_new_cmds \
  13388. old_archive_from_expsyms_cmds \
  13389. archive_cmds \
  13390. archive_expsym_cmds \
  13391. module_cmds \
  13392. module_expsym_cmds \
  13393. export_symbols_cmds \
  13394. prelink_cmds \
  13395. postinstall_cmds \
  13396. postuninstall_cmds \
  13397. finish_cmds \
  13398. sys_lib_search_path_spec \
  13399. sys_lib_dlsearch_path_spec \
  13400. reload_cmds_CXX \
  13401. old_archive_cmds_CXX \
  13402. old_archive_from_new_cmds_CXX \
  13403. old_archive_from_expsyms_cmds_CXX \
  13404. archive_cmds_CXX \
  13405. archive_expsym_cmds_CXX \
  13406. module_cmds_CXX \
  13407. module_expsym_cmds_CXX \
  13408. export_symbols_cmds_CXX \
  13409. prelink_cmds_CXX; do
  13410. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13411. *[\\\\\\\`\\"\\\$]*)
  13412. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13413. ;;
  13414. *)
  13415. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13416. ;;
  13417. esac
  13418. done
  13419. ac_aux_dir='$ac_aux_dir'
  13420. xsi_shell='$xsi_shell'
  13421. lt_shell_append='$lt_shell_append'
  13422. # See if we are running on zsh, and set the options which allow our
  13423. # commands through without removal of \ escapes INIT.
  13424. if test -n "\${ZSH_VERSION+set}" ; then
  13425. setopt NO_GLOB_SUBST
  13426. fi
  13427. PACKAGE='$PACKAGE'
  13428. VERSION='$VERSION'
  13429. TIMESTAMP='$TIMESTAMP'
  13430. RM='$RM'
  13431. ofile='$ofile'
  13432. _ACEOF
  13433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13434. # Handling of arguments.
  13435. for ac_config_target in $ac_config_targets
  13436. do
  13437. case $ac_config_target in
  13438. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13439. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13440. "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
  13441. "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
  13442. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13443. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13444. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13445. esac
  13446. done
  13447. # If the user did not use the arguments to specify the items to instantiate,
  13448. # then the envvar interface is used. Set only those that are not.
  13449. # We use the long form for the default assignment because of an extremely
  13450. # bizarre bug on SunOS 4.1.3.
  13451. if $ac_need_defaults; then
  13452. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13453. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13454. fi
  13455. # Have a temporary directory for convenience. Make it in the build tree
  13456. # simply because there is no reason against having it here, and in addition,
  13457. # creating and moving files from /tmp can sometimes cause problems.
  13458. # Hook for its removal unless debugging.
  13459. # Note that there is a small window in which the directory will not be cleaned:
  13460. # after its creation but before its name has been assigned to `$tmp'.
  13461. $debug ||
  13462. {
  13463. tmp=
  13464. trap 'exit_status=$?
  13465. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13466. ' 0
  13467. trap 'as_fn_exit 1' 1 2 13 15
  13468. }
  13469. # Create a (secure) tmp directory for tmp files.
  13470. {
  13471. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13472. test -n "$tmp" && test -d "$tmp"
  13473. } ||
  13474. {
  13475. tmp=./conf$$-$RANDOM
  13476. (umask 077 && mkdir "$tmp")
  13477. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13478. # Set up the scripts for CONFIG_FILES section.
  13479. # No need to generate them if there are no CONFIG_FILES.
  13480. # This happens for instance with `./config.status config.h'.
  13481. if test -n "$CONFIG_FILES"; then
  13482. ac_cr=`echo X | tr X '\015'`
  13483. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13484. # But we know of no other shell where ac_cr would be empty at this
  13485. # point, so we can use a bashism as a fallback.
  13486. if test "x$ac_cr" = x; then
  13487. eval ac_cr=\$\'\\r\'
  13488. fi
  13489. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13490. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13491. ac_cs_awk_cr='\r'
  13492. else
  13493. ac_cs_awk_cr=$ac_cr
  13494. fi
  13495. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13496. _ACEOF
  13497. {
  13498. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13499. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13500. echo "_ACEOF"
  13501. } >conf$$subs.sh ||
  13502. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13503. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13504. ac_delim='%!_!# '
  13505. for ac_last_try in false false false false false :; do
  13506. . ./conf$$subs.sh ||
  13507. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13508. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13509. if test $ac_delim_n = $ac_delim_num; then
  13510. break
  13511. elif $ac_last_try; then
  13512. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13513. else
  13514. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13515. fi
  13516. done
  13517. rm -f conf$$subs.sh
  13518. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13519. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13520. _ACEOF
  13521. sed -n '
  13522. h
  13523. s/^/S["/; s/!.*/"]=/
  13524. p
  13525. g
  13526. s/^[^!]*!//
  13527. :repl
  13528. t repl
  13529. s/'"$ac_delim"'$//
  13530. t delim
  13531. :nl
  13532. h
  13533. s/\(.\{148\}\).*/\1/
  13534. t more1
  13535. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13536. p
  13537. n
  13538. b repl
  13539. :more1
  13540. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13541. p
  13542. g
  13543. s/.\{148\}//
  13544. t nl
  13545. :delim
  13546. h
  13547. s/\(.\{148\}\).*/\1/
  13548. t more2
  13549. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13550. p
  13551. b
  13552. :more2
  13553. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13554. p
  13555. g
  13556. s/.\{148\}//
  13557. t delim
  13558. ' <conf$$subs.awk | sed '
  13559. /^[^""]/{
  13560. N
  13561. s/\n//
  13562. }
  13563. ' >>$CONFIG_STATUS || ac_write_fail=1
  13564. rm -f conf$$subs.awk
  13565. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13566. _ACAWK
  13567. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13568. for (key in S) S_is_set[key] = 1
  13569. FS = ""
  13570. }
  13571. {
  13572. line = $ 0
  13573. nfields = split(line, field, "@")
  13574. substed = 0
  13575. len = length(field[1])
  13576. for (i = 2; i < nfields; i++) {
  13577. key = field[i]
  13578. keylen = length(key)
  13579. if (S_is_set[key]) {
  13580. value = S[key]
  13581. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13582. len += length(value) + length(field[++i])
  13583. substed = 1
  13584. } else
  13585. len += 1 + keylen
  13586. }
  13587. print line
  13588. }
  13589. _ACAWK
  13590. _ACEOF
  13591. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13592. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13593. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13594. else
  13595. cat
  13596. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13597. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13598. _ACEOF
  13599. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13600. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13601. # trailing colons and then remove the whole line if VPATH becomes empty
  13602. # (actually we leave an empty line to preserve line numbers).
  13603. if test "x$srcdir" = x.; then
  13604. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13605. s/:*\$(srcdir):*/:/
  13606. s/:*\${srcdir}:*/:/
  13607. s/:*@srcdir@:*/:/
  13608. s/^\([^=]*=[ ]*\):*/\1/
  13609. s/:*$//
  13610. s/^[^=]*=[ ]*$//
  13611. }'
  13612. fi
  13613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13614. fi # test -n "$CONFIG_FILES"
  13615. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13616. shift
  13617. for ac_tag
  13618. do
  13619. case $ac_tag in
  13620. :[FHLC]) ac_mode=$ac_tag; continue;;
  13621. esac
  13622. case $ac_mode$ac_tag in
  13623. :[FHL]*:*);;
  13624. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13625. :[FH]-) ac_tag=-:-;;
  13626. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13627. esac
  13628. ac_save_IFS=$IFS
  13629. IFS=:
  13630. set x $ac_tag
  13631. IFS=$ac_save_IFS
  13632. shift
  13633. ac_file=$1
  13634. shift
  13635. case $ac_mode in
  13636. :L) ac_source=$1;;
  13637. :[FH])
  13638. ac_file_inputs=
  13639. for ac_f
  13640. do
  13641. case $ac_f in
  13642. -) ac_f="$tmp/stdin";;
  13643. *) # Look for the file first in the build tree, then in the source tree
  13644. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13645. # because $ac_f cannot contain `:'.
  13646. test -f "$ac_f" ||
  13647. case $ac_f in
  13648. [\\/$]*) false;;
  13649. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13650. esac ||
  13651. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13652. esac
  13653. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13654. as_fn_append ac_file_inputs " '$ac_f'"
  13655. done
  13656. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13657. # use $as_me), people would be surprised to read:
  13658. # /* config.h. Generated by config.status. */
  13659. configure_input='Generated from '`
  13660. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13661. `' by configure.'
  13662. if test x"$ac_file" != x-; then
  13663. configure_input="$ac_file. $configure_input"
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13665. $as_echo "$as_me: creating $ac_file" >&6;}
  13666. fi
  13667. # Neutralize special characters interpreted by sed in replacement strings.
  13668. case $configure_input in #(
  13669. *\&* | *\|* | *\\* )
  13670. ac_sed_conf_input=`$as_echo "$configure_input" |
  13671. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13672. *) ac_sed_conf_input=$configure_input;;
  13673. esac
  13674. case $ac_tag in
  13675. *:-:* | *:-) cat >"$tmp/stdin" \
  13676. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13677. esac
  13678. ;;
  13679. esac
  13680. ac_dir=`$as_dirname -- "$ac_file" ||
  13681. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13682. X"$ac_file" : 'X\(//\)[^/]' \| \
  13683. X"$ac_file" : 'X\(//\)$' \| \
  13684. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13685. $as_echo X"$ac_file" |
  13686. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13687. s//\1/
  13688. q
  13689. }
  13690. /^X\(\/\/\)[^/].*/{
  13691. s//\1/
  13692. q
  13693. }
  13694. /^X\(\/\/\)$/{
  13695. s//\1/
  13696. q
  13697. }
  13698. /^X\(\/\).*/{
  13699. s//\1/
  13700. q
  13701. }
  13702. s/.*/./; q'`
  13703. as_dir="$ac_dir"; as_fn_mkdir_p
  13704. ac_builddir=.
  13705. case "$ac_dir" in
  13706. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13707. *)
  13708. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13709. # A ".." for each directory in $ac_dir_suffix.
  13710. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13711. case $ac_top_builddir_sub in
  13712. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13713. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13714. esac ;;
  13715. esac
  13716. ac_abs_top_builddir=$ac_pwd
  13717. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13718. # for backward compatibility:
  13719. ac_top_builddir=$ac_top_build_prefix
  13720. case $srcdir in
  13721. .) # We are building in place.
  13722. ac_srcdir=.
  13723. ac_top_srcdir=$ac_top_builddir_sub
  13724. ac_abs_top_srcdir=$ac_pwd ;;
  13725. [\\/]* | ?:[\\/]* ) # Absolute name.
  13726. ac_srcdir=$srcdir$ac_dir_suffix;
  13727. ac_top_srcdir=$srcdir
  13728. ac_abs_top_srcdir=$srcdir ;;
  13729. *) # Relative name.
  13730. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13731. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13732. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13733. esac
  13734. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13735. case $ac_mode in
  13736. :F)
  13737. #
  13738. # CONFIG_FILE
  13739. #
  13740. case $INSTALL in
  13741. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13742. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13743. esac
  13744. ac_MKDIR_P=$MKDIR_P
  13745. case $MKDIR_P in
  13746. [\\/$]* | ?:[\\/]* ) ;;
  13747. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13748. esac
  13749. _ACEOF
  13750. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13751. # If the template does not know about datarootdir, expand it.
  13752. # FIXME: This hack should be removed a few years after 2.60.
  13753. ac_datarootdir_hack=; ac_datarootdir_seen=
  13754. ac_sed_dataroot='
  13755. /datarootdir/ {
  13756. p
  13757. q
  13758. }
  13759. /@datadir@/p
  13760. /@docdir@/p
  13761. /@infodir@/p
  13762. /@localedir@/p
  13763. /@mandir@/p'
  13764. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13765. *datarootdir*) ac_datarootdir_seen=yes;;
  13766. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13768. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13769. _ACEOF
  13770. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13771. ac_datarootdir_hack='
  13772. s&@datadir@&$datadir&g
  13773. s&@docdir@&$docdir&g
  13774. s&@infodir@&$infodir&g
  13775. s&@localedir@&$localedir&g
  13776. s&@mandir@&$mandir&g
  13777. s&\\\${datarootdir}&$datarootdir&g' ;;
  13778. esac
  13779. _ACEOF
  13780. # Neutralize VPATH when `$srcdir' = `.'.
  13781. # Shell code in configure.ac might set extrasub.
  13782. # FIXME: do we really want to maintain this feature?
  13783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13784. ac_sed_extra="$ac_vpsub
  13785. $extrasub
  13786. _ACEOF
  13787. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13788. :t
  13789. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13790. s|@configure_input@|$ac_sed_conf_input|;t t
  13791. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13792. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13793. s&@srcdir@&$ac_srcdir&;t t
  13794. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13795. s&@top_srcdir@&$ac_top_srcdir&;t t
  13796. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13797. s&@builddir@&$ac_builddir&;t t
  13798. s&@abs_builddir@&$ac_abs_builddir&;t t
  13799. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13800. s&@INSTALL@&$ac_INSTALL&;t t
  13801. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13802. $ac_datarootdir_hack
  13803. "
  13804. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13805. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13806. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13807. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13808. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13810. which seems to be undefined. Please make sure it is defined." >&5
  13811. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13812. which seems to be undefined. Please make sure it is defined." >&2;}
  13813. rm -f "$tmp/stdin"
  13814. case $ac_file in
  13815. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13816. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13817. esac \
  13818. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13819. ;;
  13820. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13821. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13822. ;;
  13823. esac
  13824. case $ac_file$ac_mode in
  13825. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13826. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13827. # are listed without --file. Let's play safe and only enable the eval
  13828. # if we detect the quoting.
  13829. case $CONFIG_FILES in
  13830. *\'*) eval set x "$CONFIG_FILES" ;;
  13831. *) set x $CONFIG_FILES ;;
  13832. esac
  13833. shift
  13834. for mf
  13835. do
  13836. # Strip MF so we end up with the name of the file.
  13837. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13838. # Check whether this is an Automake generated Makefile or not.
  13839. # We used to match only the files named `Makefile.in', but
  13840. # some people rename them; so instead we look at the file content.
  13841. # Grep'ing the first line is not enough: some people post-process
  13842. # each Makefile.in and add a new line on top of each file to say so.
  13843. # Grep'ing the whole file is not good either: AIX grep has a line
  13844. # limit of 2048, but all sed's we know have understand at least 4000.
  13845. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13846. dirpart=`$as_dirname -- "$mf" ||
  13847. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13848. X"$mf" : 'X\(//\)[^/]' \| \
  13849. X"$mf" : 'X\(//\)$' \| \
  13850. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13851. $as_echo X"$mf" |
  13852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13853. s//\1/
  13854. q
  13855. }
  13856. /^X\(\/\/\)[^/].*/{
  13857. s//\1/
  13858. q
  13859. }
  13860. /^X\(\/\/\)$/{
  13861. s//\1/
  13862. q
  13863. }
  13864. /^X\(\/\).*/{
  13865. s//\1/
  13866. q
  13867. }
  13868. s/.*/./; q'`
  13869. else
  13870. continue
  13871. fi
  13872. # Extract the definition of DEPDIR, am__include, and am__quote
  13873. # from the Makefile without running `make'.
  13874. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13875. test -z "$DEPDIR" && continue
  13876. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13877. test -z "am__include" && continue
  13878. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13879. # When using ansi2knr, U may be empty or an underscore; expand it
  13880. U=`sed -n 's/^U = //p' < "$mf"`
  13881. # Find all dependency output files, they are included files with
  13882. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13883. # simplest approach to changing $(DEPDIR) to its actual value in the
  13884. # expansion.
  13885. for file in `sed -n "
  13886. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13887. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13888. # Make sure the directory exists.
  13889. test -f "$dirpart/$file" && continue
  13890. fdir=`$as_dirname -- "$file" ||
  13891. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13892. X"$file" : 'X\(//\)[^/]' \| \
  13893. X"$file" : 'X\(//\)$' \| \
  13894. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13895. $as_echo X"$file" |
  13896. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13897. s//\1/
  13898. q
  13899. }
  13900. /^X\(\/\/\)[^/].*/{
  13901. s//\1/
  13902. q
  13903. }
  13904. /^X\(\/\/\)$/{
  13905. s//\1/
  13906. q
  13907. }
  13908. /^X\(\/\).*/{
  13909. s//\1/
  13910. q
  13911. }
  13912. s/.*/./; q'`
  13913. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13914. # echo "creating $dirpart/$file"
  13915. echo '# dummy' > "$dirpart/$file"
  13916. done
  13917. done
  13918. }
  13919. ;;
  13920. "default-1":C)
  13921. # Only add multilib support code if we just rebuilt the top-level
  13922. # Makefile.
  13923. case " $CONFIG_FILES " in
  13924. *" Makefile "*)
  13925. ac_file=Makefile . ${multi_basedir}/config-ml.in
  13926. ;;
  13927. esac ;;
  13928. "libtool":C)
  13929. # See if we are running on zsh, and set the options which allow our
  13930. # commands through without removal of \ escapes.
  13931. if test -n "${ZSH_VERSION+set}" ; then
  13932. setopt NO_GLOB_SUBST
  13933. fi
  13934. cfgfile="${ofile}T"
  13935. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13936. $RM "$cfgfile"
  13937. cat <<_LT_EOF >> "$cfgfile"
  13938. #! $SHELL
  13939. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13940. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13941. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13942. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13943. #
  13944. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13945. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13946. # Written by Gordon Matzigkeit, 1996
  13947. #
  13948. # This file is part of GNU Libtool.
  13949. #
  13950. # GNU Libtool is free software; you can redistribute it and/or
  13951. # modify it under the terms of the GNU General Public License as
  13952. # published by the Free Software Foundation; either version 2 of
  13953. # the License, or (at your option) any later version.
  13954. #
  13955. # As a special exception to the GNU General Public License,
  13956. # if you distribute this file as part of a program or library that
  13957. # is built using GNU Libtool, you may include this file under the
  13958. # same distribution terms that you use for the rest of that program.
  13959. #
  13960. # GNU Libtool is distributed in the hope that it will be useful,
  13961. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13962. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13963. # GNU General Public License for more details.
  13964. #
  13965. # You should have received a copy of the GNU General Public License
  13966. # along with GNU Libtool; see the file COPYING. If not, a copy
  13967. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13968. # obtained by writing to the Free Software Foundation, Inc.,
  13969. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13970. # The names of the tagged configurations supported by this script.
  13971. available_tags="CXX "
  13972. # ### BEGIN LIBTOOL CONFIG
  13973. # Which release of libtool.m4 was used?
  13974. macro_version=$macro_version
  13975. macro_revision=$macro_revision
  13976. # Whether or not to build shared libraries.
  13977. build_libtool_libs=$enable_shared
  13978. # Whether or not to build static libraries.
  13979. build_old_libs=$enable_static
  13980. # What type of objects to build.
  13981. pic_mode=$pic_mode
  13982. # Whether or not to optimize for fast installation.
  13983. fast_install=$enable_fast_install
  13984. # Shell to use when invoking shell scripts.
  13985. SHELL=$lt_SHELL
  13986. # An echo program that protects backslashes.
  13987. ECHO=$lt_ECHO
  13988. # The host system.
  13989. host_alias=$host_alias
  13990. host=$host
  13991. host_os=$host_os
  13992. # The build system.
  13993. build_alias=$build_alias
  13994. build=$build
  13995. build_os=$build_os
  13996. # A sed program that does not truncate output.
  13997. SED=$lt_SED
  13998. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13999. Xsed="\$SED -e 1s/^X//"
  14000. # A grep program that handles long lines.
  14001. GREP=$lt_GREP
  14002. # An ERE matcher.
  14003. EGREP=$lt_EGREP
  14004. # A literal string matcher.
  14005. FGREP=$lt_FGREP
  14006. # A BSD- or MS-compatible name lister.
  14007. NM=$lt_NM
  14008. # Whether we need soft or hard links.
  14009. LN_S=$lt_LN_S
  14010. # What is the maximum length of a command?
  14011. max_cmd_len=$max_cmd_len
  14012. # Object file suffix (normally "o").
  14013. objext=$ac_objext
  14014. # Executable file suffix (normally "").
  14015. exeext=$exeext
  14016. # whether the shell understands "unset".
  14017. lt_unset=$lt_unset
  14018. # turn spaces into newlines.
  14019. SP2NL=$lt_lt_SP2NL
  14020. # turn newlines into spaces.
  14021. NL2SP=$lt_lt_NL2SP
  14022. # An object symbol dumper.
  14023. OBJDUMP=$lt_OBJDUMP
  14024. # Method to check whether dependent libraries are shared objects.
  14025. deplibs_check_method=$lt_deplibs_check_method
  14026. # Command to use when deplibs_check_method == "file_magic".
  14027. file_magic_cmd=$lt_file_magic_cmd
  14028. # The archiver.
  14029. AR=$lt_AR
  14030. AR_FLAGS=$lt_AR_FLAGS
  14031. # A symbol stripping program.
  14032. STRIP=$lt_STRIP
  14033. # Commands used to install an old-style archive.
  14034. RANLIB=$lt_RANLIB
  14035. old_postinstall_cmds=$lt_old_postinstall_cmds
  14036. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14037. # Whether to use a lock for old archive extraction.
  14038. lock_old_archive_extraction=$lock_old_archive_extraction
  14039. # A C compiler.
  14040. LTCC=$lt_CC
  14041. # LTCC compiler flags.
  14042. LTCFLAGS=$lt_CFLAGS
  14043. # Take the output of nm and produce a listing of raw symbols and C names.
  14044. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14045. # Transform the output of nm in a proper C declaration.
  14046. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14047. # Transform the output of nm in a C name address pair.
  14048. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14049. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14050. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14051. # The name of the directory that contains temporary libtool files.
  14052. objdir=$objdir
  14053. # Used to examine libraries when file_magic_cmd begins with "file".
  14054. MAGIC_CMD=$MAGIC_CMD
  14055. # Must we lock files when doing compilation?
  14056. need_locks=$lt_need_locks
  14057. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14058. DSYMUTIL=$lt_DSYMUTIL
  14059. # Tool to change global to local symbols on Mac OS X.
  14060. NMEDIT=$lt_NMEDIT
  14061. # Tool to manipulate fat objects and archives on Mac OS X.
  14062. LIPO=$lt_LIPO
  14063. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14064. OTOOL=$lt_OTOOL
  14065. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14066. OTOOL64=$lt_OTOOL64
  14067. # Old archive suffix (normally "a").
  14068. libext=$libext
  14069. # Shared library suffix (normally ".so").
  14070. shrext_cmds=$lt_shrext_cmds
  14071. # The commands to extract the exported symbol list from a shared archive.
  14072. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14073. # Variables whose values should be saved in libtool wrapper scripts and
  14074. # restored at link time.
  14075. variables_saved_for_relink=$lt_variables_saved_for_relink
  14076. # Do we need the "lib" prefix for modules?
  14077. need_lib_prefix=$need_lib_prefix
  14078. # Do we need a version for libraries?
  14079. need_version=$need_version
  14080. # Library versioning type.
  14081. version_type=$version_type
  14082. # Shared library runtime path variable.
  14083. runpath_var=$runpath_var
  14084. # Shared library path variable.
  14085. shlibpath_var=$shlibpath_var
  14086. # Is shlibpath searched before the hard-coded library search path?
  14087. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14088. # Format of library name prefix.
  14089. libname_spec=$lt_libname_spec
  14090. # List of archive names. First name is the real one, the rest are links.
  14091. # The last name is the one that the linker finds with -lNAME
  14092. library_names_spec=$lt_library_names_spec
  14093. # The coded name of the library, if different from the real name.
  14094. soname_spec=$lt_soname_spec
  14095. # Permission mode override for installation of shared libraries.
  14096. install_override_mode=$lt_install_override_mode
  14097. # Command to use after installation of a shared archive.
  14098. postinstall_cmds=$lt_postinstall_cmds
  14099. # Command to use after uninstallation of a shared archive.
  14100. postuninstall_cmds=$lt_postuninstall_cmds
  14101. # Commands used to finish a libtool library installation in a directory.
  14102. finish_cmds=$lt_finish_cmds
  14103. # As "finish_cmds", except a single script fragment to be evaled but
  14104. # not shown.
  14105. finish_eval=$lt_finish_eval
  14106. # Whether we should hardcode library paths into libraries.
  14107. hardcode_into_libs=$hardcode_into_libs
  14108. # Compile-time system search path for libraries.
  14109. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14110. # Run-time system search path for libraries.
  14111. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14112. # Whether dlopen is supported.
  14113. dlopen_support=$enable_dlopen
  14114. # Whether dlopen of programs is supported.
  14115. dlopen_self=$enable_dlopen_self
  14116. # Whether dlopen of statically linked programs is supported.
  14117. dlopen_self_static=$enable_dlopen_self_static
  14118. # Commands to strip libraries.
  14119. old_striplib=$lt_old_striplib
  14120. striplib=$lt_striplib
  14121. # The linker used to build libraries.
  14122. LD=$lt_LD
  14123. # How to create reloadable object files.
  14124. reload_flag=$lt_reload_flag
  14125. reload_cmds=$lt_reload_cmds
  14126. # Commands used to build an old-style archive.
  14127. old_archive_cmds=$lt_old_archive_cmds
  14128. # A language specific compiler.
  14129. CC=$lt_compiler
  14130. # Is the compiler the GNU compiler?
  14131. with_gcc=$GCC
  14132. # Compiler flag to turn off builtin functions.
  14133. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14134. # How to pass a linker flag through the compiler.
  14135. wl=$lt_lt_prog_compiler_wl
  14136. # Additional compiler flags for building library objects.
  14137. pic_flag=$lt_lt_prog_compiler_pic
  14138. # Compiler flag to prevent dynamic linking.
  14139. link_static_flag=$lt_lt_prog_compiler_static
  14140. # Does compiler simultaneously support -c and -o options?
  14141. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14142. # Whether or not to add -lc for building shared libraries.
  14143. build_libtool_need_lc=$archive_cmds_need_lc
  14144. # Whether or not to disallow shared libs when runtime libs are static.
  14145. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14146. # Compiler flag to allow reflexive dlopens.
  14147. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14148. # Compiler flag to generate shared objects directly from archives.
  14149. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14150. # Whether the compiler copes with passing no objects directly.
  14151. compiler_needs_object=$lt_compiler_needs_object
  14152. # Create an old-style archive from a shared archive.
  14153. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14154. # Create a temporary old-style archive to link instead of a shared archive.
  14155. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14156. # Commands used to build a shared archive.
  14157. archive_cmds=$lt_archive_cmds
  14158. archive_expsym_cmds=$lt_archive_expsym_cmds
  14159. # Commands used to build a loadable module if different from building
  14160. # a shared archive.
  14161. module_cmds=$lt_module_cmds
  14162. module_expsym_cmds=$lt_module_expsym_cmds
  14163. # Whether we are building with GNU ld or not.
  14164. with_gnu_ld=$lt_with_gnu_ld
  14165. # Flag that allows shared libraries with undefined symbols to be built.
  14166. allow_undefined_flag=$lt_allow_undefined_flag
  14167. # Flag that enforces no undefined symbols.
  14168. no_undefined_flag=$lt_no_undefined_flag
  14169. # Flag to hardcode \$libdir into a binary during linking.
  14170. # This must work even if \$libdir does not exist
  14171. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14172. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14173. # during linking. This must work even if \$libdir does not exist.
  14174. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14175. # Whether we need a single "-rpath" flag with a separated argument.
  14176. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14177. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14178. # DIR into the resulting binary.
  14179. hardcode_direct=$hardcode_direct
  14180. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14181. # DIR into the resulting binary and the resulting library dependency is
  14182. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14183. # library is relocated.
  14184. hardcode_direct_absolute=$hardcode_direct_absolute
  14185. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14186. # into the resulting binary.
  14187. hardcode_minus_L=$hardcode_minus_L
  14188. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14189. # into the resulting binary.
  14190. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14191. # Set to "yes" if building a shared library automatically hardcodes DIR
  14192. # into the library and all subsequent libraries and executables linked
  14193. # against it.
  14194. hardcode_automatic=$hardcode_automatic
  14195. # Set to yes if linker adds runtime paths of dependent libraries
  14196. # to runtime path list.
  14197. inherit_rpath=$inherit_rpath
  14198. # Whether libtool must link a program against all its dependency libraries.
  14199. link_all_deplibs=$link_all_deplibs
  14200. # Fix the shell variable \$srcfile for the compiler.
  14201. fix_srcfile_path=$lt_fix_srcfile_path
  14202. # Set to "yes" if exported symbols are required.
  14203. always_export_symbols=$always_export_symbols
  14204. # The commands to list exported symbols.
  14205. export_symbols_cmds=$lt_export_symbols_cmds
  14206. # Symbols that should not be listed in the preloaded symbols.
  14207. exclude_expsyms=$lt_exclude_expsyms
  14208. # Symbols that must always be exported.
  14209. include_expsyms=$lt_include_expsyms
  14210. # Commands necessary for linking programs (against libraries) with templates.
  14211. prelink_cmds=$lt_prelink_cmds
  14212. # Specify filename containing input files.
  14213. file_list_spec=$lt_file_list_spec
  14214. # How to hardcode a shared library path into an executable.
  14215. hardcode_action=$hardcode_action
  14216. # The directories searched by this compiler when creating a shared library.
  14217. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14218. # Dependencies to place before and after the objects being linked to
  14219. # create a shared library.
  14220. predep_objects=$lt_predep_objects
  14221. postdep_objects=$lt_postdep_objects
  14222. predeps=$lt_predeps
  14223. postdeps=$lt_postdeps
  14224. # The library search path used internally by the compiler when linking
  14225. # a shared library.
  14226. compiler_lib_search_path=$lt_compiler_lib_search_path
  14227. # ### END LIBTOOL CONFIG
  14228. _LT_EOF
  14229. case $host_os in
  14230. aix3*)
  14231. cat <<\_LT_EOF >> "$cfgfile"
  14232. # AIX sometimes has problems with the GCC collect2 program. For some
  14233. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14234. # vanish in a puff of smoke.
  14235. if test "X${COLLECT_NAMES+set}" != Xset; then
  14236. COLLECT_NAMES=
  14237. export COLLECT_NAMES
  14238. fi
  14239. _LT_EOF
  14240. ;;
  14241. esac
  14242. ltmain="$ac_aux_dir/ltmain.sh"
  14243. # We use sed instead of cat because bash on DJGPP gets confused if
  14244. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14245. # text mode, it properly converts lines to CR/LF. This bash problem
  14246. # is reportedly fixed, but why not run on old versions too?
  14247. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14248. || (rm -f "$cfgfile"; exit 1)
  14249. case $xsi_shell in
  14250. yes)
  14251. cat << \_LT_EOF >> "$cfgfile"
  14252. # func_dirname file append nondir_replacement
  14253. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14254. # otherwise set result to NONDIR_REPLACEMENT.
  14255. func_dirname ()
  14256. {
  14257. case ${1} in
  14258. */*) func_dirname_result="${1%/*}${2}" ;;
  14259. * ) func_dirname_result="${3}" ;;
  14260. esac
  14261. }
  14262. # func_basename file
  14263. func_basename ()
  14264. {
  14265. func_basename_result="${1##*/}"
  14266. }
  14267. # func_dirname_and_basename file append nondir_replacement
  14268. # perform func_basename and func_dirname in a single function
  14269. # call:
  14270. # dirname: Compute the dirname of FILE. If nonempty,
  14271. # add APPEND to the result, otherwise set result
  14272. # to NONDIR_REPLACEMENT.
  14273. # value returned in "$func_dirname_result"
  14274. # basename: Compute filename of FILE.
  14275. # value retuned in "$func_basename_result"
  14276. # Implementation must be kept synchronized with func_dirname
  14277. # and func_basename. For efficiency, we do not delegate to
  14278. # those functions but instead duplicate the functionality here.
  14279. func_dirname_and_basename ()
  14280. {
  14281. case ${1} in
  14282. */*) func_dirname_result="${1%/*}${2}" ;;
  14283. * ) func_dirname_result="${3}" ;;
  14284. esac
  14285. func_basename_result="${1##*/}"
  14286. }
  14287. # func_stripname prefix suffix name
  14288. # strip PREFIX and SUFFIX off of NAME.
  14289. # PREFIX and SUFFIX must not contain globbing or regex special
  14290. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14291. # dot (in which case that matches only a dot).
  14292. func_stripname ()
  14293. {
  14294. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14295. # positional parameters, so assign one to ordinary parameter first.
  14296. func_stripname_result=${3}
  14297. func_stripname_result=${func_stripname_result#"${1}"}
  14298. func_stripname_result=${func_stripname_result%"${2}"}
  14299. }
  14300. # func_opt_split
  14301. func_opt_split ()
  14302. {
  14303. func_opt_split_opt=${1%%=*}
  14304. func_opt_split_arg=${1#*=}
  14305. }
  14306. # func_lo2o object
  14307. func_lo2o ()
  14308. {
  14309. case ${1} in
  14310. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14311. *) func_lo2o_result=${1} ;;
  14312. esac
  14313. }
  14314. # func_xform libobj-or-source
  14315. func_xform ()
  14316. {
  14317. func_xform_result=${1%.*}.lo
  14318. }
  14319. # func_arith arithmetic-term...
  14320. func_arith ()
  14321. {
  14322. func_arith_result=$(( $* ))
  14323. }
  14324. # func_len string
  14325. # STRING may not start with a hyphen.
  14326. func_len ()
  14327. {
  14328. func_len_result=${#1}
  14329. }
  14330. _LT_EOF
  14331. ;;
  14332. *) # Bourne compatible functions.
  14333. cat << \_LT_EOF >> "$cfgfile"
  14334. # func_dirname file append nondir_replacement
  14335. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14336. # otherwise set result to NONDIR_REPLACEMENT.
  14337. func_dirname ()
  14338. {
  14339. # Extract subdirectory from the argument.
  14340. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14341. if test "X$func_dirname_result" = "X${1}"; then
  14342. func_dirname_result="${3}"
  14343. else
  14344. func_dirname_result="$func_dirname_result${2}"
  14345. fi
  14346. }
  14347. # func_basename file
  14348. func_basename ()
  14349. {
  14350. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14351. }
  14352. # func_stripname prefix suffix name
  14353. # strip PREFIX and SUFFIX off of NAME.
  14354. # PREFIX and SUFFIX must not contain globbing or regex special
  14355. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14356. # dot (in which case that matches only a dot).
  14357. # func_strip_suffix prefix name
  14358. func_stripname ()
  14359. {
  14360. case ${2} in
  14361. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14362. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14363. esac
  14364. }
  14365. # sed scripts:
  14366. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14367. my_sed_long_arg='1s/^-[^=]*=//'
  14368. # func_opt_split
  14369. func_opt_split ()
  14370. {
  14371. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14372. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14373. }
  14374. # func_lo2o object
  14375. func_lo2o ()
  14376. {
  14377. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14378. }
  14379. # func_xform libobj-or-source
  14380. func_xform ()
  14381. {
  14382. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14383. }
  14384. # func_arith arithmetic-term...
  14385. func_arith ()
  14386. {
  14387. func_arith_result=`expr "$@"`
  14388. }
  14389. # func_len string
  14390. # STRING may not start with a hyphen.
  14391. func_len ()
  14392. {
  14393. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14394. }
  14395. _LT_EOF
  14396. esac
  14397. case $lt_shell_append in
  14398. yes)
  14399. cat << \_LT_EOF >> "$cfgfile"
  14400. # func_append var value
  14401. # Append VALUE to the end of shell variable VAR.
  14402. func_append ()
  14403. {
  14404. eval "$1+=\$2"
  14405. }
  14406. _LT_EOF
  14407. ;;
  14408. *)
  14409. cat << \_LT_EOF >> "$cfgfile"
  14410. # func_append var value
  14411. # Append VALUE to the end of shell variable VAR.
  14412. func_append ()
  14413. {
  14414. eval "$1=\$$1\$2"
  14415. }
  14416. _LT_EOF
  14417. ;;
  14418. esac
  14419. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14420. || (rm -f "$cfgfile"; exit 1)
  14421. mv -f "$cfgfile" "$ofile" ||
  14422. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14423. chmod +x "$ofile"
  14424. cat <<_LT_EOF >> "$ofile"
  14425. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14426. # The linker used to build libraries.
  14427. LD=$lt_LD_CXX
  14428. # How to create reloadable object files.
  14429. reload_flag=$lt_reload_flag_CXX
  14430. reload_cmds=$lt_reload_cmds_CXX
  14431. # Commands used to build an old-style archive.
  14432. old_archive_cmds=$lt_old_archive_cmds_CXX
  14433. # A language specific compiler.
  14434. CC=$lt_compiler_CXX
  14435. # Is the compiler the GNU compiler?
  14436. with_gcc=$GCC_CXX
  14437. # Compiler flag to turn off builtin functions.
  14438. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14439. # How to pass a linker flag through the compiler.
  14440. wl=$lt_lt_prog_compiler_wl_CXX
  14441. # Additional compiler flags for building library objects.
  14442. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14443. # Compiler flag to prevent dynamic linking.
  14444. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14445. # Does compiler simultaneously support -c and -o options?
  14446. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14447. # Whether or not to add -lc for building shared libraries.
  14448. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14449. # Whether or not to disallow shared libs when runtime libs are static.
  14450. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14451. # Compiler flag to allow reflexive dlopens.
  14452. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14453. # Compiler flag to generate shared objects directly from archives.
  14454. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14455. # Whether the compiler copes with passing no objects directly.
  14456. compiler_needs_object=$lt_compiler_needs_object_CXX
  14457. # Create an old-style archive from a shared archive.
  14458. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14459. # Create a temporary old-style archive to link instead of a shared archive.
  14460. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14461. # Commands used to build a shared archive.
  14462. archive_cmds=$lt_archive_cmds_CXX
  14463. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14464. # Commands used to build a loadable module if different from building
  14465. # a shared archive.
  14466. module_cmds=$lt_module_cmds_CXX
  14467. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14468. # Whether we are building with GNU ld or not.
  14469. with_gnu_ld=$lt_with_gnu_ld_CXX
  14470. # Flag that allows shared libraries with undefined symbols to be built.
  14471. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14472. # Flag that enforces no undefined symbols.
  14473. no_undefined_flag=$lt_no_undefined_flag_CXX
  14474. # Flag to hardcode \$libdir into a binary during linking.
  14475. # This must work even if \$libdir does not exist
  14476. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14477. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14478. # during linking. This must work even if \$libdir does not exist.
  14479. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14480. # Whether we need a single "-rpath" flag with a separated argument.
  14481. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14482. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14483. # DIR into the resulting binary.
  14484. hardcode_direct=$hardcode_direct_CXX
  14485. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14486. # DIR into the resulting binary and the resulting library dependency is
  14487. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14488. # library is relocated.
  14489. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14490. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14491. # into the resulting binary.
  14492. hardcode_minus_L=$hardcode_minus_L_CXX
  14493. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14494. # into the resulting binary.
  14495. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14496. # Set to "yes" if building a shared library automatically hardcodes DIR
  14497. # into the library and all subsequent libraries and executables linked
  14498. # against it.
  14499. hardcode_automatic=$hardcode_automatic_CXX
  14500. # Set to yes if linker adds runtime paths of dependent libraries
  14501. # to runtime path list.
  14502. inherit_rpath=$inherit_rpath_CXX
  14503. # Whether libtool must link a program against all its dependency libraries.
  14504. link_all_deplibs=$link_all_deplibs_CXX
  14505. # Fix the shell variable \$srcfile for the compiler.
  14506. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14507. # Set to "yes" if exported symbols are required.
  14508. always_export_symbols=$always_export_symbols_CXX
  14509. # The commands to list exported symbols.
  14510. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14511. # Symbols that should not be listed in the preloaded symbols.
  14512. exclude_expsyms=$lt_exclude_expsyms_CXX
  14513. # Symbols that must always be exported.
  14514. include_expsyms=$lt_include_expsyms_CXX
  14515. # Commands necessary for linking programs (against libraries) with templates.
  14516. prelink_cmds=$lt_prelink_cmds_CXX
  14517. # Specify filename containing input files.
  14518. file_list_spec=$lt_file_list_spec_CXX
  14519. # How to hardcode a shared library path into an executable.
  14520. hardcode_action=$hardcode_action_CXX
  14521. # The directories searched by this compiler when creating a shared library.
  14522. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14523. # Dependencies to place before and after the objects being linked to
  14524. # create a shared library.
  14525. predep_objects=$lt_predep_objects_CXX
  14526. postdep_objects=$lt_postdep_objects_CXX
  14527. predeps=$lt_predeps_CXX
  14528. postdeps=$lt_postdeps_CXX
  14529. # The library search path used internally by the compiler when linking
  14530. # a shared library.
  14531. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14532. # ### END LIBTOOL TAG CONFIG: CXX
  14533. _LT_EOF
  14534. ;;
  14535. esac
  14536. done # for ac_tag
  14537. as_fn_exit 0
  14538. _ACEOF
  14539. ac_clean_files=$ac_clean_files_save
  14540. test $ac_write_fail = 0 ||
  14541. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14542. # configure is writing to config.log, and then calls config.status.
  14543. # config.status does its own redirection, appending to config.log.
  14544. # Unfortunately, on DOS this fails, as config.log is still kept open
  14545. # by configure, so config.status won't be able to write to it; its
  14546. # output is simply discarded. So we exec the FD to /dev/null,
  14547. # effectively closing config.log, so it can be properly (re)opened and
  14548. # appended to by config.status. When coming back to configure, we
  14549. # need to make the FD available again.
  14550. if test "$no_create" != yes; then
  14551. ac_cs_success=:
  14552. ac_config_status_args=
  14553. test "$silent" = yes &&
  14554. ac_config_status_args="$ac_config_status_args --quiet"
  14555. exec 5>/dev/null
  14556. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14557. exec 5>>config.log
  14558. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14559. # would make configure fail if this is the last instruction.
  14560. $ac_cs_success || as_fn_exit $?
  14561. fi
  14562. #
  14563. # CONFIG_SUBDIRS section.
  14564. #
  14565. if test "$no_recursion" != yes; then
  14566. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  14567. # so they do not pile up.
  14568. ac_sub_configure_args=
  14569. ac_prev=
  14570. eval "set x $ac_configure_args"
  14571. shift
  14572. for ac_arg
  14573. do
  14574. if test -n "$ac_prev"; then
  14575. ac_prev=
  14576. continue
  14577. fi
  14578. case $ac_arg in
  14579. -cache-file | --cache-file | --cache-fil | --cache-fi \
  14580. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  14581. ac_prev=cache_file ;;
  14582. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  14583. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  14584. | --c=*)
  14585. ;;
  14586. --config-cache | -C)
  14587. ;;
  14588. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  14589. ac_prev=srcdir ;;
  14590. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  14591. ;;
  14592. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  14593. ac_prev=prefix ;;
  14594. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  14595. ;;
  14596. --disable-option-checking)
  14597. ;;
  14598. *)
  14599. case $ac_arg in
  14600. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14601. esac
  14602. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  14603. esac
  14604. done
  14605. # Always prepend --prefix to ensure using the same prefix
  14606. # in subdir configurations.
  14607. ac_arg="--prefix=$prefix"
  14608. case $ac_arg in
  14609. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14610. esac
  14611. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  14612. # Pass --silent
  14613. if test "$silent" = yes; then
  14614. ac_sub_configure_args="--silent $ac_sub_configure_args"
  14615. fi
  14616. # Always prepend --disable-option-checking to silence warnings, since
  14617. # different subdirs can have different --enable and --with options.
  14618. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  14619. ac_popdir=`pwd`
  14620. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  14621. # Do not complain, so a configure script can configure whichever
  14622. # parts of a large source tree are present.
  14623. test -d "$srcdir/$ac_dir" || continue
  14624. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  14625. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  14626. $as_echo "$ac_msg" >&6
  14627. as_dir="$ac_dir"; as_fn_mkdir_p
  14628. ac_builddir=.
  14629. case "$ac_dir" in
  14630. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14631. *)
  14632. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14633. # A ".." for each directory in $ac_dir_suffix.
  14634. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14635. case $ac_top_builddir_sub in
  14636. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14637. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14638. esac ;;
  14639. esac
  14640. ac_abs_top_builddir=$ac_pwd
  14641. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14642. # for backward compatibility:
  14643. ac_top_builddir=$ac_top_build_prefix
  14644. case $srcdir in
  14645. .) # We are building in place.
  14646. ac_srcdir=.
  14647. ac_top_srcdir=$ac_top_builddir_sub
  14648. ac_abs_top_srcdir=$ac_pwd ;;
  14649. [\\/]* | ?:[\\/]* ) # Absolute name.
  14650. ac_srcdir=$srcdir$ac_dir_suffix;
  14651. ac_top_srcdir=$srcdir
  14652. ac_abs_top_srcdir=$srcdir ;;
  14653. *) # Relative name.
  14654. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14655. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14656. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14657. esac
  14658. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14659. cd "$ac_dir"
  14660. # Check for guested configure; otherwise get Cygnus style configure.
  14661. if test -f "$ac_srcdir/configure.gnu"; then
  14662. ac_sub_configure=$ac_srcdir/configure.gnu
  14663. elif test -f "$ac_srcdir/configure"; then
  14664. ac_sub_configure=$ac_srcdir/configure
  14665. elif test -f "$ac_srcdir/configure.in"; then
  14666. # This should be Cygnus configure.
  14667. ac_sub_configure=$ac_aux_dir/configure
  14668. else
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  14670. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  14671. ac_sub_configure=
  14672. fi
  14673. # The recursion is here.
  14674. if test -n "$ac_sub_configure"; then
  14675. # Make the cache file name correct relative to the subdirectory.
  14676. case $cache_file in
  14677. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  14678. *) # Relative name.
  14679. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  14680. esac
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  14682. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  14683. # The eval makes quoting arguments work.
  14684. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  14685. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  14686. as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  14687. fi
  14688. cd "$ac_popdir"
  14689. done
  14690. fi
  14691. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14693. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14694. fi