configure 523 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for MIC Offload Runtime Library 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='MIC Offload Runtime Library'
  539. PACKAGE_TARNAME='liboffloadmic'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='MIC Offload Runtime Library 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. enable_option_checking=no
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. get_gcc_base_ver
  585. link_offloadmic_target
  586. link_offloadmic_host
  587. lt_cv_dlopen_libs
  588. toolexeclibdir
  589. toolexecdir
  590. CXXCPP
  591. OTOOL64
  592. OTOOL
  593. LIPO
  594. NMEDIT
  595. DSYMUTIL
  596. RANLIB
  597. AR
  598. OBJDUMP
  599. LN_S
  600. NM
  601. ac_ct_DUMPBIN
  602. DUMPBIN
  603. LD
  604. FGREP
  605. SED
  606. LIBTOOL
  607. LIBOFFLOADMIC_HOST_FALSE
  608. LIBOFFLOADMIC_HOST_TRUE
  609. ALLOCA
  610. EGREP
  611. GREP
  612. CPP
  613. subdirs
  614. multi_basedir
  615. am__fastdepCXX_FALSE
  616. am__fastdepCXX_TRUE
  617. CXXDEPMODE
  618. ac_ct_CXX
  619. CXXFLAGS
  620. CXX
  621. am__fastdepCC_FALSE
  622. am__fastdepCC_TRUE
  623. CCDEPMODE
  624. am__nodep
  625. AMDEPBACKSLASH
  626. AMDEP_FALSE
  627. AMDEP_TRUE
  628. am__quote
  629. am__include
  630. DEPDIR
  631. OBJEXT
  632. EXEEXT
  633. ac_ct_CC
  634. CPPFLAGS
  635. LDFLAGS
  636. CFLAGS
  637. CC
  638. MAINT
  639. MAINTAINER_MODE_FALSE
  640. MAINTAINER_MODE_TRUE
  641. AM_BACKSLASH
  642. AM_DEFAULT_VERBOSITY
  643. AM_DEFAULT_V
  644. AM_V
  645. am__untar
  646. am__tar
  647. AMTAR
  648. am__leading_dot
  649. SET_MAKE
  650. AWK
  651. mkdir_p
  652. MKDIR_P
  653. INSTALL_STRIP_PROGRAM
  654. STRIP
  655. install_sh
  656. MAKEINFO
  657. AUTOHEADER
  658. AUTOMAKE
  659. AUTOCONF
  660. ACLOCAL
  661. VERSION
  662. PACKAGE
  663. CYGPATH_W
  664. am__isrc
  665. INSTALL_DATA
  666. INSTALL_SCRIPT
  667. INSTALL_PROGRAM
  668. target_os
  669. target_vendor
  670. target_cpu
  671. target
  672. host_os
  673. host_vendor
  674. host_cpu
  675. host
  676. build_os
  677. build_vendor
  678. build_cpu
  679. build
  680. target_alias
  681. host_alias
  682. build_alias
  683. LIBS
  684. ECHO_T
  685. ECHO_N
  686. ECHO_C
  687. DEFS
  688. mandir
  689. localedir
  690. libdir
  691. psdir
  692. pdfdir
  693. dvidir
  694. htmldir
  695. infodir
  696. docdir
  697. oldincludedir
  698. includedir
  699. localstatedir
  700. sharedstatedir
  701. sysconfdir
  702. datadir
  703. datarootdir
  704. libexecdir
  705. sbindir
  706. bindir
  707. program_transform_name
  708. prefix
  709. exec_prefix
  710. PACKAGE_URL
  711. PACKAGE_BUGREPORT
  712. PACKAGE_STRING
  713. PACKAGE_VERSION
  714. PACKAGE_TARNAME
  715. PACKAGE_NAME
  716. PATH_SEPARATOR
  717. SHELL'
  718. ac_subst_files=''
  719. ac_user_opts='
  720. enable_option_checking
  721. enable_silent_rules
  722. enable_maintainer_mode
  723. enable_dependency_tracking
  724. enable_multilib
  725. enable_version_specific_runtime_libs
  726. with_toolexeclibdir
  727. enable_shared
  728. enable_static
  729. with_pic
  730. enable_fast_install
  731. with_gnu_ld
  732. enable_libtool_lock
  733. with_gcc_major_version_only
  734. '
  735. ac_precious_vars='build_alias
  736. host_alias
  737. target_alias
  738. CC
  739. CFLAGS
  740. LDFLAGS
  741. LIBS
  742. CPPFLAGS
  743. CXX
  744. CXXFLAGS
  745. CCC
  746. CPP
  747. CXXCPP'
  748. ac_subdirs_all='plugin'
  749. # Initialize some variables set by options.
  750. ac_init_help=
  751. ac_init_version=false
  752. ac_unrecognized_opts=
  753. ac_unrecognized_sep=
  754. # The variables have the same names as the options, with
  755. # dashes changed to underlines.
  756. cache_file=/dev/null
  757. exec_prefix=NONE
  758. no_create=
  759. no_recursion=
  760. prefix=NONE
  761. program_prefix=NONE
  762. program_suffix=NONE
  763. program_transform_name=s,x,x,
  764. silent=
  765. site=
  766. srcdir=
  767. verbose=
  768. x_includes=NONE
  769. x_libraries=NONE
  770. # Installation directory options.
  771. # These are left unexpanded so users can "make install exec_prefix=/foo"
  772. # and all the variables that are supposed to be based on exec_prefix
  773. # by default will actually change.
  774. # Use braces instead of parens because sh, perl, etc. also accept them.
  775. # (The list follows the same order as the GNU Coding Standards.)
  776. bindir='${exec_prefix}/bin'
  777. sbindir='${exec_prefix}/sbin'
  778. libexecdir='${exec_prefix}/libexec'
  779. datarootdir='${prefix}/share'
  780. datadir='${datarootdir}'
  781. sysconfdir='${prefix}/etc'
  782. sharedstatedir='${prefix}/com'
  783. localstatedir='${prefix}/var'
  784. includedir='${prefix}/include'
  785. oldincludedir='/usr/include'
  786. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  787. infodir='${datarootdir}/info'
  788. htmldir='${docdir}'
  789. dvidir='${docdir}'
  790. pdfdir='${docdir}'
  791. psdir='${docdir}'
  792. libdir='${exec_prefix}/lib'
  793. localedir='${datarootdir}/locale'
  794. mandir='${datarootdir}/man'
  795. ac_prev=
  796. ac_dashdash=
  797. for ac_option
  798. do
  799. # If the previous option needs an argument, assign it.
  800. if test -n "$ac_prev"; then
  801. eval $ac_prev=\$ac_option
  802. ac_prev=
  803. continue
  804. fi
  805. case $ac_option in
  806. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  807. *=) ac_optarg= ;;
  808. *) ac_optarg=yes ;;
  809. esac
  810. # Accept the important Cygnus configure options, so we can diagnose typos.
  811. case $ac_dashdash$ac_option in
  812. --)
  813. ac_dashdash=yes ;;
  814. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  815. ac_prev=bindir ;;
  816. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  817. bindir=$ac_optarg ;;
  818. -build | --build | --buil | --bui | --bu)
  819. ac_prev=build_alias ;;
  820. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  821. build_alias=$ac_optarg ;;
  822. -cache-file | --cache-file | --cache-fil | --cache-fi \
  823. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  824. ac_prev=cache_file ;;
  825. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  826. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  827. cache_file=$ac_optarg ;;
  828. --config-cache | -C)
  829. cache_file=config.cache ;;
  830. -datadir | --datadir | --datadi | --datad)
  831. ac_prev=datadir ;;
  832. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  833. datadir=$ac_optarg ;;
  834. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  835. | --dataroo | --dataro | --datar)
  836. ac_prev=datarootdir ;;
  837. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  838. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  839. datarootdir=$ac_optarg ;;
  840. -disable-* | --disable-*)
  841. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  842. # Reject names that are not valid shell variable names.
  843. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844. as_fn_error $? "invalid feature name: $ac_useropt"
  845. ac_useropt_orig=$ac_useropt
  846. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847. case $ac_user_opts in
  848. *"
  849. "enable_$ac_useropt"
  850. "*) ;;
  851. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  852. ac_unrecognized_sep=', ';;
  853. esac
  854. eval enable_$ac_useropt=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  867. as_fn_error $? "invalid feature name: $ac_useropt"
  868. ac_useropt_orig=$ac_useropt
  869. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  870. case $ac_user_opts in
  871. *"
  872. "enable_$ac_useropt"
  873. "*) ;;
  874. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  875. ac_unrecognized_sep=', ';;
  876. esac
  877. eval enable_$ac_useropt=\$ac_optarg ;;
  878. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  879. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  880. | --exec | --exe | --ex)
  881. ac_prev=exec_prefix ;;
  882. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  883. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  884. | --exec=* | --exe=* | --ex=*)
  885. exec_prefix=$ac_optarg ;;
  886. -gas | --gas | --ga | --g)
  887. # Obsolete; use --with-gas.
  888. with_gas=yes ;;
  889. -help | --help | --hel | --he | -h)
  890. ac_init_help=long ;;
  891. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  892. ac_init_help=recursive ;;
  893. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  894. ac_init_help=short ;;
  895. -host | --host | --hos | --ho)
  896. ac_prev=host_alias ;;
  897. -host=* | --host=* | --hos=* | --ho=*)
  898. host_alias=$ac_optarg ;;
  899. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  900. ac_prev=htmldir ;;
  901. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  902. | --ht=*)
  903. htmldir=$ac_optarg ;;
  904. -includedir | --includedir | --includedi | --included | --include \
  905. | --includ | --inclu | --incl | --inc)
  906. ac_prev=includedir ;;
  907. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  908. | --includ=* | --inclu=* | --incl=* | --inc=*)
  909. includedir=$ac_optarg ;;
  910. -infodir | --infodir | --infodi | --infod | --info | --inf)
  911. ac_prev=infodir ;;
  912. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  913. infodir=$ac_optarg ;;
  914. -libdir | --libdir | --libdi | --libd)
  915. ac_prev=libdir ;;
  916. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  917. libdir=$ac_optarg ;;
  918. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  919. | --libexe | --libex | --libe)
  920. ac_prev=libexecdir ;;
  921. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  922. | --libexe=* | --libex=* | --libe=*)
  923. libexecdir=$ac_optarg ;;
  924. -localedir | --localedir | --localedi | --localed | --locale)
  925. ac_prev=localedir ;;
  926. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  927. localedir=$ac_optarg ;;
  928. -localstatedir | --localstatedir | --localstatedi | --localstated \
  929. | --localstate | --localstat | --localsta | --localst | --locals)
  930. ac_prev=localstatedir ;;
  931. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  932. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  933. localstatedir=$ac_optarg ;;
  934. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  935. ac_prev=mandir ;;
  936. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  937. mandir=$ac_optarg ;;
  938. -nfp | --nfp | --nf)
  939. # Obsolete; use --without-fp.
  940. with_fp=no ;;
  941. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  942. | --no-cr | --no-c | -n)
  943. no_create=yes ;;
  944. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  945. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  946. no_recursion=yes ;;
  947. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  948. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  949. | --oldin | --oldi | --old | --ol | --o)
  950. ac_prev=oldincludedir ;;
  951. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  952. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  953. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  954. oldincludedir=$ac_optarg ;;
  955. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  956. ac_prev=prefix ;;
  957. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  958. prefix=$ac_optarg ;;
  959. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  960. | --program-pre | --program-pr | --program-p)
  961. ac_prev=program_prefix ;;
  962. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  963. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  964. program_prefix=$ac_optarg ;;
  965. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  966. | --program-suf | --program-su | --program-s)
  967. ac_prev=program_suffix ;;
  968. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  969. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  970. program_suffix=$ac_optarg ;;
  971. -program-transform-name | --program-transform-name \
  972. | --program-transform-nam | --program-transform-na \
  973. | --program-transform-n | --program-transform- \
  974. | --program-transform | --program-transfor \
  975. | --program-transfo | --program-transf \
  976. | --program-trans | --program-tran \
  977. | --progr-tra | --program-tr | --program-t)
  978. ac_prev=program_transform_name ;;
  979. -program-transform-name=* | --program-transform-name=* \
  980. | --program-transform-nam=* | --program-transform-na=* \
  981. | --program-transform-n=* | --program-transform-=* \
  982. | --program-transform=* | --program-transfor=* \
  983. | --program-transfo=* | --program-transf=* \
  984. | --program-trans=* | --program-tran=* \
  985. | --progr-tra=* | --program-tr=* | --program-t=*)
  986. program_transform_name=$ac_optarg ;;
  987. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  988. ac_prev=pdfdir ;;
  989. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  990. pdfdir=$ac_optarg ;;
  991. -psdir | --psdir | --psdi | --psd | --ps)
  992. ac_prev=psdir ;;
  993. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  994. psdir=$ac_optarg ;;
  995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996. | -silent | --silent | --silen | --sile | --sil)
  997. silent=yes ;;
  998. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  999. ac_prev=sbindir ;;
  1000. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1001. | --sbi=* | --sb=*)
  1002. sbindir=$ac_optarg ;;
  1003. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1004. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1005. | --sharedst | --shareds | --shared | --share | --shar \
  1006. | --sha | --sh)
  1007. ac_prev=sharedstatedir ;;
  1008. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1009. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1010. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1011. | --sha=* | --sh=*)
  1012. sharedstatedir=$ac_optarg ;;
  1013. -site | --site | --sit)
  1014. ac_prev=site ;;
  1015. -site=* | --site=* | --sit=*)
  1016. site=$ac_optarg ;;
  1017. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1018. ac_prev=srcdir ;;
  1019. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1020. srcdir=$ac_optarg ;;
  1021. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1022. | --syscon | --sysco | --sysc | --sys | --sy)
  1023. ac_prev=sysconfdir ;;
  1024. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1025. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1026. sysconfdir=$ac_optarg ;;
  1027. -target | --target | --targe | --targ | --tar | --ta | --t)
  1028. ac_prev=target_alias ;;
  1029. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1030. target_alias=$ac_optarg ;;
  1031. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1032. verbose=yes ;;
  1033. -version | --version | --versio | --versi | --vers | -V)
  1034. ac_init_version=: ;;
  1035. -with-* | --with-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=\$ac_optarg ;;
  1050. -without-* | --without-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=no ;;
  1065. --x)
  1066. # Obsolete; use --with-x.
  1067. with_x=yes ;;
  1068. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1069. | --x-incl | --x-inc | --x-in | --x-i)
  1070. ac_prev=x_includes ;;
  1071. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1072. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1073. x_includes=$ac_optarg ;;
  1074. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1075. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1076. ac_prev=x_libraries ;;
  1077. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1078. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1079. x_libraries=$ac_optarg ;;
  1080. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1081. Try \`$0 --help' for more information"
  1082. ;;
  1083. *=*)
  1084. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1085. # Reject names that are not valid shell variable names.
  1086. case $ac_envvar in #(
  1087. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1088. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1089. esac
  1090. eval $ac_envvar=\$ac_optarg
  1091. export $ac_envvar ;;
  1092. *)
  1093. # FIXME: should be removed in autoconf 3.0.
  1094. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1095. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1096. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1097. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1098. ;;
  1099. esac
  1100. done
  1101. if test -n "$ac_prev"; then
  1102. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1103. as_fn_error $? "missing argument to $ac_option"
  1104. fi
  1105. if test -n "$ac_unrecognized_opts"; then
  1106. case $enable_option_checking in
  1107. no) ;;
  1108. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1109. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1110. esac
  1111. fi
  1112. # Check all directory arguments for consistency.
  1113. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1114. datadir sysconfdir sharedstatedir localstatedir includedir \
  1115. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1116. libdir localedir mandir
  1117. do
  1118. eval ac_val=\$$ac_var
  1119. # Remove trailing slashes.
  1120. case $ac_val in
  1121. */ )
  1122. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1123. eval $ac_var=\$ac_val;;
  1124. esac
  1125. # Be sure to have absolute directory names.
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1131. done
  1132. # There might be people who depend on the old broken behavior: `$host'
  1133. # used to hold the argument of --host etc.
  1134. # FIXME: To remove some day.
  1135. build=$build_alias
  1136. host=$host_alias
  1137. target=$target_alias
  1138. # FIXME: To remove some day.
  1139. if test "x$host_alias" != x; then
  1140. if test "x$build_alias" = x; then
  1141. cross_compiling=maybe
  1142. elif test "x$build_alias" != "x$host_alias"; then
  1143. cross_compiling=yes
  1144. fi
  1145. fi
  1146. ac_tool_prefix=
  1147. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1148. test "$silent" = yes && exec 6>/dev/null
  1149. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1150. ac_ls_di=`ls -di .` &&
  1151. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1152. as_fn_error $? "working directory cannot be determined"
  1153. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1154. as_fn_error $? "pwd does not report name of working directory"
  1155. # Find the source files, if location was not specified.
  1156. if test -z "$srcdir"; then
  1157. ac_srcdir_defaulted=yes
  1158. # Try the directory containing this script, then the parent directory.
  1159. ac_confdir=`$as_dirname -- "$as_myself" ||
  1160. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1161. X"$as_myself" : 'X\(//\)[^/]' \| \
  1162. X"$as_myself" : 'X\(//\)$' \| \
  1163. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1164. $as_echo X"$as_myself" |
  1165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)[^/].*/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\/\)$/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\).*/{
  1178. s//\1/
  1179. q
  1180. }
  1181. s/.*/./; q'`
  1182. srcdir=$ac_confdir
  1183. if test ! -r "$srcdir/$ac_unique_file"; then
  1184. srcdir=..
  1185. fi
  1186. else
  1187. ac_srcdir_defaulted=no
  1188. fi
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1191. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1192. fi
  1193. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1194. ac_abs_confdir=`(
  1195. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1196. pwd)`
  1197. # When building in place, set srcdir=.
  1198. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1199. srcdir=.
  1200. fi
  1201. # Remove unnecessary trailing slashes from srcdir.
  1202. # Double slashes in file names in object file debugging info
  1203. # mess up M-x gdb in Emacs.
  1204. case $srcdir in
  1205. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1206. esac
  1207. for ac_var in $ac_precious_vars; do
  1208. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_env_${ac_var}_value=\$${ac_var}
  1210. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1211. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1212. done
  1213. #
  1214. # Report the --help message.
  1215. #
  1216. if test "$ac_init_help" = "long"; then
  1217. # Omit some internal or obsolete options to make the list less imposing.
  1218. # This message is too long to be a string in the A/UX 3.1 sh.
  1219. cat <<_ACEOF
  1220. \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
  1221. Usage: $0 [OPTION]... [VAR=VALUE]...
  1222. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1223. VAR=VALUE. See below for descriptions of some of the useful variables.
  1224. Defaults for the options are specified in brackets.
  1225. Configuration:
  1226. -h, --help display this help and exit
  1227. --help=short display options specific to this package
  1228. --help=recursive display the short help of all the included packages
  1229. -V, --version display version information and exit
  1230. -q, --quiet, --silent do not print \`checking ...' messages
  1231. --cache-file=FILE cache test results in FILE [disabled]
  1232. -C, --config-cache alias for \`--cache-file=config.cache'
  1233. -n, --no-create do not create output files
  1234. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1235. Installation directories:
  1236. --prefix=PREFIX install architecture-independent files in PREFIX
  1237. [$ac_default_prefix]
  1238. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1239. [PREFIX]
  1240. By default, \`make install' will install all the files in
  1241. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1242. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1243. for instance \`--prefix=\$HOME'.
  1244. For better control, use the options below.
  1245. Fine tuning of the installation directories:
  1246. --bindir=DIR user executables [EPREFIX/bin]
  1247. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1248. --libexecdir=DIR program executables [EPREFIX/libexec]
  1249. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1250. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1251. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1252. --libdir=DIR object code libraries [EPREFIX/lib]
  1253. --includedir=DIR C header files [PREFIX/include]
  1254. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1255. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1256. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1257. --infodir=DIR info documentation [DATAROOTDIR/info]
  1258. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1259. --mandir=DIR man documentation [DATAROOTDIR/man]
  1260. --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
  1261. --htmldir=DIR html documentation [DOCDIR]
  1262. --dvidir=DIR dvi documentation [DOCDIR]
  1263. --pdfdir=DIR pdf documentation [DOCDIR]
  1264. --psdir=DIR ps documentation [DOCDIR]
  1265. _ACEOF
  1266. cat <<\_ACEOF
  1267. Program names:
  1268. --program-prefix=PREFIX prepend PREFIX to installed program names
  1269. --program-suffix=SUFFIX append SUFFIX to installed program names
  1270. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1271. System types:
  1272. --build=BUILD configure for building on BUILD [guessed]
  1273. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1274. --target=TARGET configure for building compilers for TARGET [HOST]
  1275. _ACEOF
  1276. fi
  1277. if test -n "$ac_init_help"; then
  1278. case $ac_init_help in
  1279. short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
  1280. esac
  1281. cat <<\_ACEOF
  1282. Optional Features:
  1283. --disable-option-checking ignore unrecognized --enable/--with options
  1284. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1285. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1286. --enable-silent-rules less verbose build output (undo: "make V=1")
  1287. --disable-silent-rules verbose build output (undo: "make V=0")
  1288. --enable-maintainer-mode
  1289. enable make rules and dependencies not useful (and
  1290. sometimes confusing) to the casual installer
  1291. --enable-dependency-tracking
  1292. do not reject slow dependency extractors
  1293. --disable-dependency-tracking
  1294. speeds up one-time build
  1295. --enable-multilib build many library versions (default)
  1296. --enable-version-specific-runtime-libs
  1297. Specify that runtime libraries should be installed
  1298. in a compiler-specific directory
  1299. --enable-shared[=PKGS] build shared libraries [default=yes]
  1300. --enable-static[=PKGS] build static libraries [default=yes]
  1301. --enable-fast-install[=PKGS]
  1302. optimize for fast installation [default=yes]
  1303. --disable-libtool-lock avoid locking (might break parallel builds)
  1304. Optional Packages:
  1305. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1306. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1307. --with-toolexeclibdir=DIR
  1308. install libraries built with a cross compiler within
  1309. DIR
  1310. --with-pic try to use only PIC/non-PIC objects [default=use
  1311. both]
  1312. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1313. --with-gcc-major-version-only
  1314. use only GCC major number in filesystem paths
  1315. Some influential environment variables:
  1316. CC C compiler command
  1317. CFLAGS C compiler flags
  1318. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1319. nonstandard directory <lib dir>
  1320. LIBS libraries to pass to the linker, e.g. -l<library>
  1321. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1322. you have headers in a nonstandard directory <include dir>
  1323. CXX C++ compiler command
  1324. CXXFLAGS C++ compiler flags
  1325. CPP C preprocessor
  1326. CXXCPP C++ preprocessor
  1327. Use these variables to override the choices made by `configure' or to help
  1328. it to find libraries and programs with nonstandard names/locations.
  1329. Report bugs to the package provider.
  1330. _ACEOF
  1331. ac_status=$?
  1332. fi
  1333. if test "$ac_init_help" = "recursive"; then
  1334. # If there are subdirs, report their specific --help.
  1335. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1336. test -d "$ac_dir" ||
  1337. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1338. continue
  1339. ac_builddir=.
  1340. case "$ac_dir" in
  1341. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *)
  1343. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1344. # A ".." for each directory in $ac_dir_suffix.
  1345. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1346. case $ac_top_builddir_sub in
  1347. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1349. esac ;;
  1350. esac
  1351. ac_abs_top_builddir=$ac_pwd
  1352. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1353. # for backward compatibility:
  1354. ac_top_builddir=$ac_top_build_prefix
  1355. case $srcdir in
  1356. .) # We are building in place.
  1357. ac_srcdir=.
  1358. ac_top_srcdir=$ac_top_builddir_sub
  1359. ac_abs_top_srcdir=$ac_pwd ;;
  1360. [\\/]* | ?:[\\/]* ) # Absolute name.
  1361. ac_srcdir=$srcdir$ac_dir_suffix;
  1362. ac_top_srcdir=$srcdir
  1363. ac_abs_top_srcdir=$srcdir ;;
  1364. *) # Relative name.
  1365. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1366. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1367. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1368. esac
  1369. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1370. cd "$ac_dir" || { ac_status=$?; continue; }
  1371. # Check for guested configure.
  1372. if test -f "$ac_srcdir/configure.gnu"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1375. elif test -f "$ac_srcdir/configure"; then
  1376. echo &&
  1377. $SHELL "$ac_srcdir/configure" --help=recursive
  1378. else
  1379. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1380. fi || ac_status=$?
  1381. cd "$ac_pwd" || { ac_status=$?; break; }
  1382. done
  1383. fi
  1384. test -n "$ac_init_help" && exit $ac_status
  1385. if $ac_init_version; then
  1386. cat <<\_ACEOF
  1387. MIC Offload Runtime Library configure 1.0
  1388. generated by GNU Autoconf 2.69
  1389. Copyright (C) 2012 Free Software Foundation, Inc.
  1390. This configure script is free software; the Free Software Foundation
  1391. gives unlimited permission to copy, distribute and modify it.
  1392. _ACEOF
  1393. exit
  1394. fi
  1395. ## ------------------------ ##
  1396. ## Autoconf initialization. ##
  1397. ## ------------------------ ##
  1398. # ac_fn_c_try_compile LINENO
  1399. # --------------------------
  1400. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_compile ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. rm -f conftest.$ac_objext
  1405. if { { ac_try="$ac_compile"
  1406. case "(($ac_try" in
  1407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1408. *) ac_try_echo=$ac_try;;
  1409. esac
  1410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1411. $as_echo "$ac_try_echo"; } >&5
  1412. (eval "$ac_compile") 2>conftest.err
  1413. ac_status=$?
  1414. if test -s conftest.err; then
  1415. grep -v '^ *+' conftest.err >conftest.er1
  1416. cat conftest.er1 >&5
  1417. mv -f conftest.er1 conftest.err
  1418. fi
  1419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1420. test $ac_status = 0; } && {
  1421. test -z "$ac_c_werror_flag" ||
  1422. test ! -s conftest.err
  1423. } && test -s conftest.$ac_objext; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } # ac_fn_c_try_compile
  1433. # ac_fn_cxx_try_compile LINENO
  1434. # ----------------------------
  1435. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1436. ac_fn_cxx_try_compile ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. rm -f conftest.$ac_objext
  1440. if { { ac_try="$ac_compile"
  1441. case "(($ac_try" in
  1442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1443. *) ac_try_echo=$ac_try;;
  1444. esac
  1445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1446. $as_echo "$ac_try_echo"; } >&5
  1447. (eval "$ac_compile") 2>conftest.err
  1448. ac_status=$?
  1449. if test -s conftest.err; then
  1450. grep -v '^ *+' conftest.err >conftest.er1
  1451. cat conftest.er1 >&5
  1452. mv -f conftest.er1 conftest.err
  1453. fi
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. test $ac_status = 0; } && {
  1456. test -z "$ac_cxx_werror_flag" ||
  1457. test ! -s conftest.err
  1458. } && test -s conftest.$ac_objext; then :
  1459. ac_retval=0
  1460. else
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=1
  1464. fi
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_cxx_try_compile
  1468. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1469. # -------------------------------------------
  1470. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1471. # variable VAR accordingly.
  1472. ac_fn_c_check_type ()
  1473. {
  1474. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1476. $as_echo_n "checking for $2... " >&6; }
  1477. if eval \${$3+:} false; then :
  1478. $as_echo_n "(cached) " >&6
  1479. else
  1480. eval "$3=no"
  1481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. $4
  1484. int
  1485. main ()
  1486. {
  1487. if (sizeof ($2))
  1488. return 0;
  1489. ;
  1490. return 0;
  1491. }
  1492. _ACEOF
  1493. if ac_fn_c_try_compile "$LINENO"; then :
  1494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1495. /* end confdefs.h. */
  1496. $4
  1497. int
  1498. main ()
  1499. {
  1500. if (sizeof (($2)))
  1501. return 0;
  1502. ;
  1503. return 0;
  1504. }
  1505. _ACEOF
  1506. if ac_fn_c_try_compile "$LINENO"; then :
  1507. else
  1508. eval "$3=yes"
  1509. fi
  1510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. fi
  1514. eval ac_res=\$$3
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1516. $as_echo "$ac_res" >&6; }
  1517. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1518. } # ac_fn_c_check_type
  1519. # ac_fn_c_try_cpp LINENO
  1520. # ----------------------
  1521. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1522. ac_fn_c_try_cpp ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1526. case "(($ac_try" in
  1527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1528. *) ac_try_echo=$ac_try;;
  1529. esac
  1530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1531. $as_echo "$ac_try_echo"; } >&5
  1532. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1533. ac_status=$?
  1534. if test -s conftest.err; then
  1535. grep -v '^ *+' conftest.err >conftest.er1
  1536. cat conftest.er1 >&5
  1537. mv -f conftest.er1 conftest.err
  1538. fi
  1539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; } > conftest.i && {
  1541. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1542. test ! -s conftest.err
  1543. }; then :
  1544. ac_retval=0
  1545. else
  1546. $as_echo "$as_me: failed program was:" >&5
  1547. sed 's/^/| /' conftest.$ac_ext >&5
  1548. ac_retval=1
  1549. fi
  1550. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1551. as_fn_set_status $ac_retval
  1552. } # ac_fn_c_try_cpp
  1553. # ac_fn_c_try_run LINENO
  1554. # ----------------------
  1555. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1556. # that executables *can* be run.
  1557. ac_fn_c_try_run ()
  1558. {
  1559. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560. if { { ac_try="$ac_link"
  1561. case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_link") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1571. { { case "(($ac_try" in
  1572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1573. *) ac_try_echo=$ac_try;;
  1574. esac
  1575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1576. $as_echo "$ac_try_echo"; } >&5
  1577. (eval "$ac_try") 2>&5
  1578. ac_status=$?
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; }; }; then :
  1581. ac_retval=0
  1582. else
  1583. $as_echo "$as_me: program exited with status $ac_status" >&5
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=$ac_status
  1587. fi
  1588. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. as_fn_set_status $ac_retval
  1591. } # ac_fn_c_try_run
  1592. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1593. # -------------------------------------------------------
  1594. # Tests whether HEADER exists and can be compiled using the include files in
  1595. # INCLUDES, setting the cache variable VAR accordingly.
  1596. ac_fn_c_check_header_compile ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1600. $as_echo_n "checking for $2... " >&6; }
  1601. if eval \${$3+:} false; then :
  1602. $as_echo_n "(cached) " >&6
  1603. else
  1604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1605. /* end confdefs.h. */
  1606. $4
  1607. #include <$2>
  1608. _ACEOF
  1609. if ac_fn_c_try_compile "$LINENO"; then :
  1610. eval "$3=yes"
  1611. else
  1612. eval "$3=no"
  1613. fi
  1614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1615. fi
  1616. eval ac_res=\$$3
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1618. $as_echo "$ac_res" >&6; }
  1619. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1620. } # ac_fn_c_check_header_compile
  1621. # ac_fn_c_try_link LINENO
  1622. # -----------------------
  1623. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1624. ac_fn_c_try_link ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. rm -f conftest.$ac_objext conftest$ac_exeext
  1628. if { { ac_try="$ac_link"
  1629. case "(($ac_try" in
  1630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1631. *) ac_try_echo=$ac_try;;
  1632. esac
  1633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1634. $as_echo "$ac_try_echo"; } >&5
  1635. (eval "$ac_link") 2>conftest.err
  1636. ac_status=$?
  1637. if test -s conftest.err; then
  1638. grep -v '^ *+' conftest.err >conftest.er1
  1639. cat conftest.er1 >&5
  1640. mv -f conftest.er1 conftest.err
  1641. fi
  1642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1643. test $ac_status = 0; } && {
  1644. test -z "$ac_c_werror_flag" ||
  1645. test ! -s conftest.err
  1646. } && test -s conftest$ac_exeext && {
  1647. test "$cross_compiling" = yes ||
  1648. test -x conftest$ac_exeext
  1649. }; then :
  1650. ac_retval=0
  1651. else
  1652. $as_echo "$as_me: failed program was:" >&5
  1653. sed 's/^/| /' conftest.$ac_ext >&5
  1654. ac_retval=1
  1655. fi
  1656. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1657. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1658. # interfere with the next link command; also delete a directory that is
  1659. # left behind by Apple's compiler. We do this before executing the actions.
  1660. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. as_fn_set_status $ac_retval
  1663. } # ac_fn_c_try_link
  1664. # ac_fn_c_check_func LINENO FUNC VAR
  1665. # ----------------------------------
  1666. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1667. ac_fn_c_check_func ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1671. $as_echo_n "checking for $2... " >&6; }
  1672. if eval \${$3+:} false; then :
  1673. $as_echo_n "(cached) " >&6
  1674. else
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1678. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1679. #define $2 innocuous_$2
  1680. /* System header to define __stub macros and hopefully few prototypes,
  1681. which can conflict with char $2 (); below.
  1682. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1683. <limits.h> exists even on freestanding compilers. */
  1684. #ifdef __STDC__
  1685. # include <limits.h>
  1686. #else
  1687. # include <assert.h>
  1688. #endif
  1689. #undef $2
  1690. /* Override any GCC internal prototype to avoid an error.
  1691. Use char because int might match the return type of a GCC
  1692. builtin and then its argument prototype would still apply. */
  1693. #ifdef __cplusplus
  1694. extern "C"
  1695. #endif
  1696. char $2 ();
  1697. /* The GNU C library defines this for functions which it implements
  1698. to always fail with ENOSYS. Some functions are actually named
  1699. something starting with __ and the normal name is an alias. */
  1700. #if defined __stub_$2 || defined __stub___$2
  1701. choke me
  1702. #endif
  1703. int
  1704. main ()
  1705. {
  1706. return $2 ();
  1707. ;
  1708. return 0;
  1709. }
  1710. _ACEOF
  1711. if ac_fn_c_try_link "$LINENO"; then :
  1712. eval "$3=yes"
  1713. else
  1714. eval "$3=no"
  1715. fi
  1716. rm -f core conftest.err conftest.$ac_objext \
  1717. conftest$ac_exeext conftest.$ac_ext
  1718. fi
  1719. eval ac_res=\$$3
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1721. $as_echo "$ac_res" >&6; }
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. } # ac_fn_c_check_func
  1724. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1725. # -------------------------------------------------------
  1726. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1727. # the include files in INCLUDES and setting the cache variable VAR
  1728. # accordingly.
  1729. ac_fn_c_check_header_mongrel ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. if eval \${$3+:} false; then :
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval \${$3+:} false; then :
  1736. $as_echo_n "(cached) " >&6
  1737. fi
  1738. eval ac_res=\$$3
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1740. $as_echo "$ac_res" >&6; }
  1741. else
  1742. # Is the header compilable?
  1743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1744. $as_echo_n "checking $2 usability... " >&6; }
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. $4
  1748. #include <$2>
  1749. _ACEOF
  1750. if ac_fn_c_try_compile "$LINENO"; then :
  1751. ac_header_compiler=yes
  1752. else
  1753. ac_header_compiler=no
  1754. fi
  1755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1757. $as_echo "$ac_header_compiler" >&6; }
  1758. # Is the header present?
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1760. $as_echo_n "checking $2 presence... " >&6; }
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. #include <$2>
  1764. _ACEOF
  1765. if ac_fn_c_try_cpp "$LINENO"; then :
  1766. ac_header_preproc=yes
  1767. else
  1768. ac_header_preproc=no
  1769. fi
  1770. rm -f conftest.err conftest.i conftest.$ac_ext
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1772. $as_echo "$ac_header_preproc" >&6; }
  1773. # So? What about this header?
  1774. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1775. yes:no: )
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1777. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1779. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1780. ;;
  1781. no:yes:* )
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1783. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1785. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1787. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1789. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1791. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1792. ;;
  1793. esac
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1795. $as_echo_n "checking for $2... " >&6; }
  1796. if eval \${$3+:} false; then :
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. eval "$3=\$ac_header_compiler"
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. fi
  1805. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1806. } # ac_fn_c_check_header_mongrel
  1807. # ac_fn_cxx_try_cpp LINENO
  1808. # ------------------------
  1809. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1810. ac_fn_cxx_try_cpp ()
  1811. {
  1812. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1813. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1814. case "(($ac_try" in
  1815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1816. *) ac_try_echo=$ac_try;;
  1817. esac
  1818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1819. $as_echo "$ac_try_echo"; } >&5
  1820. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1821. ac_status=$?
  1822. if test -s conftest.err; then
  1823. grep -v '^ *+' conftest.err >conftest.er1
  1824. cat conftest.er1 >&5
  1825. mv -f conftest.er1 conftest.err
  1826. fi
  1827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1828. test $ac_status = 0; } > conftest.i && {
  1829. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1830. test ! -s conftest.err
  1831. }; then :
  1832. ac_retval=0
  1833. else
  1834. $as_echo "$as_me: failed program was:" >&5
  1835. sed 's/^/| /' conftest.$ac_ext >&5
  1836. ac_retval=1
  1837. fi
  1838. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1839. as_fn_set_status $ac_retval
  1840. } # ac_fn_cxx_try_cpp
  1841. # ac_fn_cxx_try_link LINENO
  1842. # -------------------------
  1843. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1844. ac_fn_cxx_try_link ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. rm -f conftest.$ac_objext conftest$ac_exeext
  1848. if { { ac_try="$ac_link"
  1849. case "(($ac_try" in
  1850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1851. *) ac_try_echo=$ac_try;;
  1852. esac
  1853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1854. $as_echo "$ac_try_echo"; } >&5
  1855. (eval "$ac_link") 2>conftest.err
  1856. ac_status=$?
  1857. if test -s conftest.err; then
  1858. grep -v '^ *+' conftest.err >conftest.er1
  1859. cat conftest.er1 >&5
  1860. mv -f conftest.er1 conftest.err
  1861. fi
  1862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; } && {
  1864. test -z "$ac_cxx_werror_flag" ||
  1865. test ! -s conftest.err
  1866. } && test -s conftest$ac_exeext && {
  1867. test "$cross_compiling" = yes ||
  1868. test -x conftest$ac_exeext
  1869. }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1877. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1878. # interfere with the next link command; also delete a directory that is
  1879. # left behind by Apple's compiler. We do this before executing the actions.
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_cxx_try_link
  1884. cat >config.log <<_ACEOF
  1885. This file contains any messages produced by compilers while
  1886. running configure, to aid debugging if configure makes a mistake.
  1887. It was created by MIC Offload Runtime Library $as_me 1.0, which was
  1888. generated by GNU Autoconf 2.69. Invocation command line was
  1889. $ $0 $@
  1890. _ACEOF
  1891. exec 5>>config.log
  1892. {
  1893. cat <<_ASUNAME
  1894. ## --------- ##
  1895. ## Platform. ##
  1896. ## --------- ##
  1897. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1898. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1899. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1900. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1901. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1902. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1903. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1904. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1905. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1906. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1907. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1908. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1909. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1910. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1911. _ASUNAME
  1912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1913. for as_dir in $PATH
  1914. do
  1915. IFS=$as_save_IFS
  1916. test -z "$as_dir" && as_dir=.
  1917. $as_echo "PATH: $as_dir"
  1918. done
  1919. IFS=$as_save_IFS
  1920. } >&5
  1921. cat >&5 <<_ACEOF
  1922. ## ----------- ##
  1923. ## Core tests. ##
  1924. ## ----------- ##
  1925. _ACEOF
  1926. # Keep a trace of the command line.
  1927. # Strip out --no-create and --no-recursion so they do not pile up.
  1928. # Strip out --silent because we don't want to record it for future runs.
  1929. # Also quote any args containing shell meta-characters.
  1930. # Make two passes to allow for proper duplicate-argument suppression.
  1931. ac_configure_args=
  1932. ac_configure_args0=
  1933. ac_configure_args1=
  1934. ac_must_keep_next=false
  1935. for ac_pass in 1 2
  1936. do
  1937. for ac_arg
  1938. do
  1939. case $ac_arg in
  1940. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1941. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1942. | -silent | --silent | --silen | --sile | --sil)
  1943. continue ;;
  1944. *\'*)
  1945. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1946. esac
  1947. case $ac_pass in
  1948. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1949. 2)
  1950. as_fn_append ac_configure_args1 " '$ac_arg'"
  1951. if test $ac_must_keep_next = true; then
  1952. ac_must_keep_next=false # Got value, back to normal.
  1953. else
  1954. case $ac_arg in
  1955. *=* | --config-cache | -C | -disable-* | --disable-* \
  1956. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1957. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1958. | -with-* | --with-* | -without-* | --without-* | --x)
  1959. case "$ac_configure_args0 " in
  1960. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1961. esac
  1962. ;;
  1963. -* ) ac_must_keep_next=true ;;
  1964. esac
  1965. fi
  1966. as_fn_append ac_configure_args " '$ac_arg'"
  1967. ;;
  1968. esac
  1969. done
  1970. done
  1971. { ac_configure_args0=; unset ac_configure_args0;}
  1972. { ac_configure_args1=; unset ac_configure_args1;}
  1973. # When interrupted or exit'd, cleanup temporary files, and complete
  1974. # config.log. We remove comments because anyway the quotes in there
  1975. # would cause problems or look ugly.
  1976. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1977. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1978. trap 'exit_status=$?
  1979. # Save into config.log some information that might help in debugging.
  1980. {
  1981. echo
  1982. $as_echo "## ---------------- ##
  1983. ## Cache variables. ##
  1984. ## ---------------- ##"
  1985. echo
  1986. # The following way of writing the cache mishandles newlines in values,
  1987. (
  1988. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1989. eval ac_val=\$$ac_var
  1990. case $ac_val in #(
  1991. *${as_nl}*)
  1992. case $ac_var in #(
  1993. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1994. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1995. esac
  1996. case $ac_var in #(
  1997. _ | IFS | as_nl) ;; #(
  1998. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1999. *) { eval $ac_var=; unset $ac_var;} ;;
  2000. esac ;;
  2001. esac
  2002. done
  2003. (set) 2>&1 |
  2004. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2005. *${as_nl}ac_space=\ *)
  2006. sed -n \
  2007. "s/'\''/'\''\\\\'\'''\''/g;
  2008. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2009. ;; #(
  2010. *)
  2011. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2012. ;;
  2013. esac |
  2014. sort
  2015. )
  2016. echo
  2017. $as_echo "## ----------------- ##
  2018. ## Output variables. ##
  2019. ## ----------------- ##"
  2020. echo
  2021. for ac_var in $ac_subst_vars
  2022. do
  2023. eval ac_val=\$$ac_var
  2024. case $ac_val in
  2025. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2026. esac
  2027. $as_echo "$ac_var='\''$ac_val'\''"
  2028. done | sort
  2029. echo
  2030. if test -n "$ac_subst_files"; then
  2031. $as_echo "## ------------------- ##
  2032. ## File substitutions. ##
  2033. ## ------------------- ##"
  2034. echo
  2035. for ac_var in $ac_subst_files
  2036. do
  2037. eval ac_val=\$$ac_var
  2038. case $ac_val in
  2039. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2040. esac
  2041. $as_echo "$ac_var='\''$ac_val'\''"
  2042. done | sort
  2043. echo
  2044. fi
  2045. if test -s confdefs.h; then
  2046. $as_echo "## ----------- ##
  2047. ## confdefs.h. ##
  2048. ## ----------- ##"
  2049. echo
  2050. cat confdefs.h
  2051. echo
  2052. fi
  2053. test "$ac_signal" != 0 &&
  2054. $as_echo "$as_me: caught signal $ac_signal"
  2055. $as_echo "$as_me: exit $exit_status"
  2056. } >&5
  2057. rm -f core *.core core.conftest.* &&
  2058. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2059. exit $exit_status
  2060. ' 0
  2061. for ac_signal in 1 2 13 15; do
  2062. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2063. done
  2064. ac_signal=0
  2065. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2066. rm -f -r conftest* confdefs.h
  2067. $as_echo "/* confdefs.h */" > confdefs.h
  2068. # Predefined preprocessor variables.
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define PACKAGE_NAME "$PACKAGE_NAME"
  2071. _ACEOF
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE_STRING "$PACKAGE_STRING"
  2080. _ACEOF
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_URL "$PACKAGE_URL"
  2086. _ACEOF
  2087. # Let the site file select an alternate cache file if it wants to.
  2088. # Prefer an explicitly selected file to automatically selected ones.
  2089. ac_site_file1=NONE
  2090. ac_site_file2=NONE
  2091. if test -n "$CONFIG_SITE"; then
  2092. # We do not want a PATH search for config.site.
  2093. case $CONFIG_SITE in #((
  2094. -*) ac_site_file1=./$CONFIG_SITE;;
  2095. */*) ac_site_file1=$CONFIG_SITE;;
  2096. *) ac_site_file1=./$CONFIG_SITE;;
  2097. esac
  2098. elif test "x$prefix" != xNONE; then
  2099. ac_site_file1=$prefix/share/config.site
  2100. ac_site_file2=$prefix/etc/config.site
  2101. else
  2102. ac_site_file1=$ac_default_prefix/share/config.site
  2103. ac_site_file2=$ac_default_prefix/etc/config.site
  2104. fi
  2105. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2106. do
  2107. test "x$ac_site_file" = xNONE && continue
  2108. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2110. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2111. sed 's/^/| /' "$ac_site_file" >&5
  2112. . "$ac_site_file" \
  2113. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2114. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2115. as_fn_error $? "failed to load site script $ac_site_file
  2116. See \`config.log' for more details" "$LINENO" 5; }
  2117. fi
  2118. done
  2119. if test -r "$cache_file"; then
  2120. # Some versions of bash will fail to source /dev/null (special files
  2121. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2122. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2124. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2125. case $cache_file in
  2126. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2127. *) . "./$cache_file";;
  2128. esac
  2129. fi
  2130. else
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2132. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2133. >$cache_file
  2134. fi
  2135. # Check that the precious variables saved in the cache have kept the same
  2136. # value.
  2137. ac_cache_corrupted=false
  2138. for ac_var in $ac_precious_vars; do
  2139. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2140. eval ac_new_set=\$ac_env_${ac_var}_set
  2141. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2142. eval ac_new_val=\$ac_env_${ac_var}_value
  2143. case $ac_old_set,$ac_new_set in
  2144. set,)
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2146. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2147. ac_cache_corrupted=: ;;
  2148. ,set)
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2150. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2151. ac_cache_corrupted=: ;;
  2152. ,);;
  2153. *)
  2154. if test "x$ac_old_val" != "x$ac_new_val"; then
  2155. # differences in whitespace do not lead to failure.
  2156. ac_old_val_w=`echo x $ac_old_val`
  2157. ac_new_val_w=`echo x $ac_new_val`
  2158. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2160. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2161. ac_cache_corrupted=:
  2162. else
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2164. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2165. eval $ac_var=\$ac_old_val
  2166. fi
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2168. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2170. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2171. fi;;
  2172. esac
  2173. # Pass precious variables to config.status.
  2174. if test "$ac_new_set" = set; then
  2175. case $ac_new_val in
  2176. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2177. *) ac_arg=$ac_var=$ac_new_val ;;
  2178. esac
  2179. case " $ac_configure_args " in
  2180. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2181. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2182. esac
  2183. fi
  2184. done
  2185. if $ac_cache_corrupted; then
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2187. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2189. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2190. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2191. fi
  2192. ## -------------------- ##
  2193. ## Main body of script. ##
  2194. ## -------------------- ##
  2195. ac_ext=c
  2196. ac_cpp='$CPP $CPPFLAGS'
  2197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2200. ac_aux_dir=
  2201. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2202. if test -f "$ac_dir/install-sh"; then
  2203. ac_aux_dir=$ac_dir
  2204. ac_install_sh="$ac_aux_dir/install-sh -c"
  2205. break
  2206. elif test -f "$ac_dir/install.sh"; then
  2207. ac_aux_dir=$ac_dir
  2208. ac_install_sh="$ac_aux_dir/install.sh -c"
  2209. break
  2210. elif test -f "$ac_dir/shtool"; then
  2211. ac_aux_dir=$ac_dir
  2212. ac_install_sh="$ac_aux_dir/shtool install -c"
  2213. break
  2214. fi
  2215. done
  2216. if test -z "$ac_aux_dir"; then
  2217. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2218. fi
  2219. # These three variables are undocumented and unsupported,
  2220. # and are intended to be withdrawn in a future Autoconf release.
  2221. # They can cause serious problems if a builder's source tree is in a directory
  2222. # whose full name contains unusual characters.
  2223. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2224. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2225. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2226. # Make sure we can run config.sub.
  2227. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2228. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2230. $as_echo_n "checking build system type... " >&6; }
  2231. if ${ac_cv_build+:} false; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. ac_build_alias=$build_alias
  2235. test "x$ac_build_alias" = x &&
  2236. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2237. test "x$ac_build_alias" = x &&
  2238. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2239. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2240. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2241. fi
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2243. $as_echo "$ac_cv_build" >&6; }
  2244. case $ac_cv_build in
  2245. *-*-*) ;;
  2246. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2247. esac
  2248. build=$ac_cv_build
  2249. ac_save_IFS=$IFS; IFS='-'
  2250. set x $ac_cv_build
  2251. shift
  2252. build_cpu=$1
  2253. build_vendor=$2
  2254. shift; shift
  2255. # Remember, the first character of IFS is used to create $*,
  2256. # except with old shells:
  2257. build_os=$*
  2258. IFS=$ac_save_IFS
  2259. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2261. $as_echo_n "checking host system type... " >&6; }
  2262. if ${ac_cv_host+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test "x$host_alias" = x; then
  2266. ac_cv_host=$ac_cv_build
  2267. else
  2268. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2269. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2270. fi
  2271. fi
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2273. $as_echo "$ac_cv_host" >&6; }
  2274. case $ac_cv_host in
  2275. *-*-*) ;;
  2276. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2277. esac
  2278. host=$ac_cv_host
  2279. ac_save_IFS=$IFS; IFS='-'
  2280. set x $ac_cv_host
  2281. shift
  2282. host_cpu=$1
  2283. host_vendor=$2
  2284. shift; shift
  2285. # Remember, the first character of IFS is used to create $*,
  2286. # except with old shells:
  2287. host_os=$*
  2288. IFS=$ac_save_IFS
  2289. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2291. $as_echo_n "checking target system type... " >&6; }
  2292. if ${ac_cv_target+:} false; then :
  2293. $as_echo_n "(cached) " >&6
  2294. else
  2295. if test "x$target_alias" = x; then
  2296. ac_cv_target=$ac_cv_host
  2297. else
  2298. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2299. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2300. fi
  2301. fi
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2303. $as_echo "$ac_cv_target" >&6; }
  2304. case $ac_cv_target in
  2305. *-*-*) ;;
  2306. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2307. esac
  2308. target=$ac_cv_target
  2309. ac_save_IFS=$IFS; IFS='-'
  2310. set x $ac_cv_target
  2311. shift
  2312. target_cpu=$1
  2313. target_vendor=$2
  2314. shift; shift
  2315. # Remember, the first character of IFS is used to create $*,
  2316. # except with old shells:
  2317. target_os=$*
  2318. IFS=$ac_save_IFS
  2319. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2320. # The aliases save the names the user supplied, while $host etc.
  2321. # will get canonicalized.
  2322. test -n "$target_alias" &&
  2323. test "$program_prefix$program_suffix$program_transform_name" = \
  2324. NONENONEs,x,x, &&
  2325. program_prefix=${target_alias}-
  2326. target_alias=${target_alias-$host_alias}
  2327. am__api_version='1.15'
  2328. # Find a good install program. We prefer a C program (faster),
  2329. # so one script is as good as another. But avoid the broken or
  2330. # incompatible versions:
  2331. # SysV /etc/install, /usr/sbin/install
  2332. # SunOS /usr/etc/install
  2333. # IRIX /sbin/install
  2334. # AIX /bin/install
  2335. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2336. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2337. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2338. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2339. # OS/2's system install, which has a completely different semantic
  2340. # ./install, which can be erroneously created by make from ./install.sh.
  2341. # Reject install programs that cannot install multiple files.
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2343. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2344. if test -z "$INSTALL"; then
  2345. if ${ac_cv_path_install+:} false; then :
  2346. $as_echo_n "(cached) " >&6
  2347. else
  2348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. for as_dir in $PATH
  2350. do
  2351. IFS=$as_save_IFS
  2352. test -z "$as_dir" && as_dir=.
  2353. # Account for people who put trailing slashes in PATH elements.
  2354. case $as_dir/ in #((
  2355. ./ | .// | /[cC]/* | \
  2356. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2357. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2358. /usr/ucb/* ) ;;
  2359. *)
  2360. # OSF1 and SCO ODT 3.0 have their own names for install.
  2361. # Don't use installbsd from OSF since it installs stuff as root
  2362. # by default.
  2363. for ac_prog in ginstall scoinst install; do
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2366. if test $ac_prog = install &&
  2367. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2368. # AIX install. It has an incompatible calling convention.
  2369. :
  2370. elif test $ac_prog = install &&
  2371. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2372. # program-specific install script used by HP pwplus--don't use.
  2373. :
  2374. else
  2375. rm -rf conftest.one conftest.two conftest.dir
  2376. echo one > conftest.one
  2377. echo two > conftest.two
  2378. mkdir conftest.dir
  2379. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2380. test -s conftest.one && test -s conftest.two &&
  2381. test -s conftest.dir/conftest.one &&
  2382. test -s conftest.dir/conftest.two
  2383. then
  2384. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2385. break 3
  2386. fi
  2387. fi
  2388. fi
  2389. done
  2390. done
  2391. ;;
  2392. esac
  2393. done
  2394. IFS=$as_save_IFS
  2395. rm -rf conftest.one conftest.two conftest.dir
  2396. fi
  2397. if test "${ac_cv_path_install+set}" = set; then
  2398. INSTALL=$ac_cv_path_install
  2399. else
  2400. # As a last resort, use the slow shell script. Don't cache a
  2401. # value for INSTALL within a source directory, because that will
  2402. # break other packages using the cache if that directory is
  2403. # removed, or if the value is a relative name.
  2404. INSTALL=$ac_install_sh
  2405. fi
  2406. fi
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2408. $as_echo "$INSTALL" >&6; }
  2409. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2410. # It thinks the first close brace ends the variable substitution.
  2411. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2412. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2413. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2415. $as_echo_n "checking whether build environment is sane... " >&6; }
  2416. # Reject unsafe characters in $srcdir or the absolute working directory
  2417. # name. Accept space and tab only in the latter.
  2418. am_lf='
  2419. '
  2420. case `pwd` in
  2421. *[\\\"\#\$\&\'\`$am_lf]*)
  2422. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2423. esac
  2424. case $srcdir in
  2425. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2426. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2427. esac
  2428. # Do 'set' in a subshell so we don't clobber the current shell's
  2429. # arguments. Must try -L first in case configure is actually a
  2430. # symlink; some systems play weird games with the mod time of symlinks
  2431. # (eg FreeBSD returns the mod time of the symlink's containing
  2432. # directory).
  2433. if (
  2434. am_has_slept=no
  2435. for am_try in 1 2; do
  2436. echo "timestamp, slept: $am_has_slept" > conftest.file
  2437. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2438. if test "$*" = "X"; then
  2439. # -L didn't work.
  2440. set X `ls -t "$srcdir/configure" conftest.file`
  2441. fi
  2442. if test "$*" != "X $srcdir/configure conftest.file" \
  2443. && test "$*" != "X conftest.file $srcdir/configure"; then
  2444. # If neither matched, then we have a broken ls. This can happen
  2445. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2446. # broken ls alias from the environment. This has actually
  2447. # happened. Such a system could not be considered "sane".
  2448. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2449. alias in your environment" "$LINENO" 5
  2450. fi
  2451. if test "$2" = conftest.file || test $am_try -eq 2; then
  2452. break
  2453. fi
  2454. # Just in case.
  2455. sleep 1
  2456. am_has_slept=yes
  2457. done
  2458. test "$2" = conftest.file
  2459. )
  2460. then
  2461. # Ok.
  2462. :
  2463. else
  2464. as_fn_error $? "newly created file is older than distributed files!
  2465. Check your system clock" "$LINENO" 5
  2466. fi
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2468. $as_echo "yes" >&6; }
  2469. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2470. # generated files are strictly newer.
  2471. am_sleep_pid=
  2472. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2473. ( sleep 1 ) &
  2474. am_sleep_pid=$!
  2475. fi
  2476. rm -f conftest.file
  2477. test "$program_prefix" != NONE &&
  2478. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2479. # Use a double $ so make ignores it.
  2480. test "$program_suffix" != NONE &&
  2481. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2482. # Double any \ or $.
  2483. # By default was `s,x,x', remove it if useless.
  2484. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2485. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2486. # Expand $ac_aux_dir to an absolute path.
  2487. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2488. if test x"${MISSING+set}" != xset; then
  2489. case $am_aux_dir in
  2490. *\ * | *\ *)
  2491. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2492. *)
  2493. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2494. esac
  2495. fi
  2496. # Use eval to expand $SHELL
  2497. if eval "$MISSING --is-lightweight"; then
  2498. am_missing_run="$MISSING "
  2499. else
  2500. am_missing_run=
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2502. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2503. fi
  2504. if test x"${install_sh+set}" != xset; then
  2505. case $am_aux_dir in
  2506. *\ * | *\ *)
  2507. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2508. *)
  2509. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2510. esac
  2511. fi
  2512. # Installed binaries are usually stripped using 'strip' when the user
  2513. # run "make install-strip". However 'strip' might not be the right
  2514. # tool to use in cross-compilation environments, therefore Automake
  2515. # will honor the 'STRIP' environment variable to overrule this program.
  2516. if test "$cross_compiling" != no; then
  2517. if test -n "$ac_tool_prefix"; then
  2518. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2519. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2521. $as_echo_n "checking for $ac_word... " >&6; }
  2522. if ${ac_cv_prog_STRIP+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. if test -n "$STRIP"; then
  2526. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2527. else
  2528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2529. for as_dir in $PATH
  2530. do
  2531. IFS=$as_save_IFS
  2532. test -z "$as_dir" && as_dir=.
  2533. for ac_exec_ext in '' $ac_executable_extensions; do
  2534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2535. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2537. break 2
  2538. fi
  2539. done
  2540. done
  2541. IFS=$as_save_IFS
  2542. fi
  2543. fi
  2544. STRIP=$ac_cv_prog_STRIP
  2545. if test -n "$STRIP"; then
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2547. $as_echo "$STRIP" >&6; }
  2548. else
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2550. $as_echo "no" >&6; }
  2551. fi
  2552. fi
  2553. if test -z "$ac_cv_prog_STRIP"; then
  2554. ac_ct_STRIP=$STRIP
  2555. # Extract the first word of "strip", so it can be a program name with args.
  2556. set dummy strip; ac_word=$2
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2558. $as_echo_n "checking for $ac_word... " >&6; }
  2559. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2560. $as_echo_n "(cached) " >&6
  2561. else
  2562. if test -n "$ac_ct_STRIP"; then
  2563. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2564. else
  2565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2566. for as_dir in $PATH
  2567. do
  2568. IFS=$as_save_IFS
  2569. test -z "$as_dir" && as_dir=.
  2570. for ac_exec_ext in '' $ac_executable_extensions; do
  2571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2572. ac_cv_prog_ac_ct_STRIP="strip"
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2574. break 2
  2575. fi
  2576. done
  2577. done
  2578. IFS=$as_save_IFS
  2579. fi
  2580. fi
  2581. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2582. if test -n "$ac_ct_STRIP"; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2584. $as_echo "$ac_ct_STRIP" >&6; }
  2585. else
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2587. $as_echo "no" >&6; }
  2588. fi
  2589. if test "x$ac_ct_STRIP" = x; then
  2590. STRIP=":"
  2591. else
  2592. case $cross_compiling:$ac_tool_warned in
  2593. yes:)
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2595. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2596. ac_tool_warned=yes ;;
  2597. esac
  2598. STRIP=$ac_ct_STRIP
  2599. fi
  2600. else
  2601. STRIP="$ac_cv_prog_STRIP"
  2602. fi
  2603. fi
  2604. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2606. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2607. if test -z "$MKDIR_P"; then
  2608. if ${ac_cv_path_mkdir+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_prog in mkdir gmkdir; do
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2619. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2620. 'mkdir (GNU coreutils) '* | \
  2621. 'mkdir (coreutils) '* | \
  2622. 'mkdir (fileutils) '4.1*)
  2623. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2624. break 3;;
  2625. esac
  2626. done
  2627. done
  2628. done
  2629. IFS=$as_save_IFS
  2630. fi
  2631. test -d ./--version && rmdir ./--version
  2632. if test "${ac_cv_path_mkdir+set}" = set; then
  2633. MKDIR_P="$ac_cv_path_mkdir -p"
  2634. else
  2635. # As a last resort, use the slow shell script. Don't cache a
  2636. # value for MKDIR_P within a source directory, because that will
  2637. # break other packages using the cache if that directory is
  2638. # removed, or if the value is a relative name.
  2639. MKDIR_P="$ac_install_sh -d"
  2640. fi
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2643. $as_echo "$MKDIR_P" >&6; }
  2644. for ac_prog in gawk mawk nawk awk
  2645. do
  2646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2647. set dummy $ac_prog; ac_word=$2
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2649. $as_echo_n "checking for $ac_word... " >&6; }
  2650. if ${ac_cv_prog_AWK+:} false; then :
  2651. $as_echo_n "(cached) " >&6
  2652. else
  2653. if test -n "$AWK"; then
  2654. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2655. else
  2656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2657. for as_dir in $PATH
  2658. do
  2659. IFS=$as_save_IFS
  2660. test -z "$as_dir" && as_dir=.
  2661. for ac_exec_ext in '' $ac_executable_extensions; do
  2662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2663. ac_cv_prog_AWK="$ac_prog"
  2664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2665. break 2
  2666. fi
  2667. done
  2668. done
  2669. IFS=$as_save_IFS
  2670. fi
  2671. fi
  2672. AWK=$ac_cv_prog_AWK
  2673. if test -n "$AWK"; then
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2675. $as_echo "$AWK" >&6; }
  2676. else
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. fi
  2680. test -n "$AWK" && break
  2681. done
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2683. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2684. set x ${MAKE-make}
  2685. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2686. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. cat >conftest.make <<\_ACEOF
  2690. SHELL = /bin/sh
  2691. all:
  2692. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2693. _ACEOF
  2694. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2695. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2696. *@@@%%%=?*=@@@%%%*)
  2697. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2698. *)
  2699. eval ac_cv_prog_make_${ac_make}_set=no;;
  2700. esac
  2701. rm -f conftest.make
  2702. fi
  2703. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2705. $as_echo "yes" >&6; }
  2706. SET_MAKE=
  2707. else
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2709. $as_echo "no" >&6; }
  2710. SET_MAKE="MAKE=${MAKE-make}"
  2711. fi
  2712. rm -rf .tst 2>/dev/null
  2713. mkdir .tst 2>/dev/null
  2714. if test -d .tst; then
  2715. am__leading_dot=.
  2716. else
  2717. am__leading_dot=_
  2718. fi
  2719. rmdir .tst 2>/dev/null
  2720. # Check whether --enable-silent-rules was given.
  2721. if test "${enable_silent_rules+set}" = set; then :
  2722. enableval=$enable_silent_rules;
  2723. fi
  2724. case $enable_silent_rules in # (((
  2725. yes) AM_DEFAULT_VERBOSITY=0;;
  2726. no) AM_DEFAULT_VERBOSITY=1;;
  2727. *) AM_DEFAULT_VERBOSITY=1;;
  2728. esac
  2729. am_make=${MAKE-make}
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2731. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2732. if ${am_cv_make_support_nested_variables+:} false; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. if $as_echo 'TRUE=$(BAR$(V))
  2736. BAR0=false
  2737. BAR1=true
  2738. V=1
  2739. am__doit:
  2740. @$(TRUE)
  2741. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2742. am_cv_make_support_nested_variables=yes
  2743. else
  2744. am_cv_make_support_nested_variables=no
  2745. fi
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2748. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2749. if test $am_cv_make_support_nested_variables = yes; then
  2750. AM_V='$(V)'
  2751. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2752. else
  2753. AM_V=$AM_DEFAULT_VERBOSITY
  2754. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2755. fi
  2756. AM_BACKSLASH='\'
  2757. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2758. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2759. # is not polluted with repeated "-I."
  2760. am__isrc=' -I$(srcdir)'
  2761. # test to see if srcdir already configured
  2762. if test -f $srcdir/config.status; then
  2763. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2764. fi
  2765. fi
  2766. # test whether we have cygpath
  2767. if test -z "$CYGPATH_W"; then
  2768. if (cygpath --version) >/dev/null 2>/dev/null; then
  2769. CYGPATH_W='cygpath -w'
  2770. else
  2771. CYGPATH_W=echo
  2772. fi
  2773. fi
  2774. # Define the identity of the package.
  2775. PACKAGE='liboffloadmic'
  2776. VERSION='1.0'
  2777. cat >>confdefs.h <<_ACEOF
  2778. #define PACKAGE "$PACKAGE"
  2779. _ACEOF
  2780. cat >>confdefs.h <<_ACEOF
  2781. #define VERSION "$VERSION"
  2782. _ACEOF
  2783. # Some tools Automake needs.
  2784. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2785. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2786. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2787. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2788. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2789. # For better backward compatibility. To be removed once Automake 1.9.x
  2790. # dies out for good. For more background, see:
  2791. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2792. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2793. mkdir_p='$(MKDIR_P)'
  2794. # We need awk for the "check" target (and possibly the TAP driver). The
  2795. # system "awk" is bad on some platforms.
  2796. # Always define AMTAR for backward compatibility. Yes, it's still used
  2797. # in the wild :-( We should find a proper way to deprecate it ...
  2798. AMTAR='$${TAR-tar}'
  2799. # We'll loop over all known methods to create a tar archive until one works.
  2800. _am_tools='gnutar pax cpio none'
  2801. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2802. # POSIX will say in a future version that running "rm -f" with no argument
  2803. # is OK; and we want to be able to make that assumption in our Makefile
  2804. # recipes. So use an aggressive probe to check that the usage we want is
  2805. # actually supported "in the wild" to an acceptable degree.
  2806. # See automake bug#10828.
  2807. # To make any issue more visible, cause the running configure to be aborted
  2808. # by default if the 'rm' program in use doesn't match our expectations; the
  2809. # user can still override this though.
  2810. if rm -f && rm -fr && rm -rf; then : OK; else
  2811. cat >&2 <<'END'
  2812. Oops!
  2813. Your 'rm' program seems unable to run without file operands specified
  2814. on the command line, even when the '-f' option is present. This is contrary
  2815. to the behaviour of most rm programs out there, and not conforming with
  2816. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2817. Please tell bug-automake@gnu.org about your system, including the value
  2818. of your $PATH and any error possibly output before this message. This
  2819. can help us improve future automake versions.
  2820. END
  2821. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2822. echo 'Configuration will proceed anyway, since you have set the' >&2
  2823. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2824. echo >&2
  2825. else
  2826. cat >&2 <<'END'
  2827. Aborting the configuration process, to ensure you take notice of the issue.
  2828. You can download and install GNU coreutils to get an 'rm' implementation
  2829. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2830. If you want to complete the configuration process using your problematic
  2831. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2832. to "yes", and re-run configure.
  2833. END
  2834. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2835. fi
  2836. fi
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2838. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2839. # Check whether --enable-maintainer-mode was given.
  2840. if test "${enable_maintainer_mode+set}" = set; then :
  2841. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2842. else
  2843. USE_MAINTAINER_MODE=no
  2844. fi
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2846. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2847. if test $USE_MAINTAINER_MODE = yes; then
  2848. MAINTAINER_MODE_TRUE=
  2849. MAINTAINER_MODE_FALSE='#'
  2850. else
  2851. MAINTAINER_MODE_TRUE='#'
  2852. MAINTAINER_MODE_FALSE=
  2853. fi
  2854. MAINT=$MAINTAINER_MODE_TRUE
  2855. ac_ext=c
  2856. ac_cpp='$CPP $CPPFLAGS'
  2857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2860. if test -n "$ac_tool_prefix"; then
  2861. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2862. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2864. $as_echo_n "checking for $ac_word... " >&6; }
  2865. if ${ac_cv_prog_CC+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test -n "$CC"; then
  2869. ac_cv_prog_CC="$CC" # Let the user override the test.
  2870. else
  2871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2872. for as_dir in $PATH
  2873. do
  2874. IFS=$as_save_IFS
  2875. test -z "$as_dir" && as_dir=.
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2878. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2880. break 2
  2881. fi
  2882. done
  2883. done
  2884. IFS=$as_save_IFS
  2885. fi
  2886. fi
  2887. CC=$ac_cv_prog_CC
  2888. if test -n "$CC"; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2890. $as_echo "$CC" >&6; }
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2893. $as_echo "no" >&6; }
  2894. fi
  2895. fi
  2896. if test -z "$ac_cv_prog_CC"; then
  2897. ac_ct_CC=$CC
  2898. # Extract the first word of "gcc", so it can be a program name with args.
  2899. set dummy gcc; ac_word=$2
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2901. $as_echo_n "checking for $ac_word... " >&6; }
  2902. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. if test -n "$ac_ct_CC"; then
  2906. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2907. else
  2908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2909. for as_dir in $PATH
  2910. do
  2911. IFS=$as_save_IFS
  2912. test -z "$as_dir" && as_dir=.
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2915. ac_cv_prog_ac_ct_CC="gcc"
  2916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi
  2923. fi
  2924. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2925. if test -n "$ac_ct_CC"; then
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2927. $as_echo "$ac_ct_CC" >&6; }
  2928. else
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2930. $as_echo "no" >&6; }
  2931. fi
  2932. if test "x$ac_ct_CC" = x; then
  2933. CC=""
  2934. else
  2935. case $cross_compiling:$ac_tool_warned in
  2936. yes:)
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2939. ac_tool_warned=yes ;;
  2940. esac
  2941. CC=$ac_ct_CC
  2942. fi
  2943. else
  2944. CC="$ac_cv_prog_CC"
  2945. fi
  2946. if test -z "$CC"; then
  2947. if test -n "$ac_tool_prefix"; then
  2948. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2949. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2951. $as_echo_n "checking for $ac_word... " >&6; }
  2952. if ${ac_cv_prog_CC+:} false; then :
  2953. $as_echo_n "(cached) " >&6
  2954. else
  2955. if test -n "$CC"; then
  2956. ac_cv_prog_CC="$CC" # Let the user override the test.
  2957. else
  2958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2959. for as_dir in $PATH
  2960. do
  2961. IFS=$as_save_IFS
  2962. test -z "$as_dir" && as_dir=.
  2963. for ac_exec_ext in '' $ac_executable_extensions; do
  2964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2965. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2967. break 2
  2968. fi
  2969. done
  2970. done
  2971. IFS=$as_save_IFS
  2972. fi
  2973. fi
  2974. CC=$ac_cv_prog_CC
  2975. if test -n "$CC"; then
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2977. $as_echo "$CC" >&6; }
  2978. else
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2980. $as_echo "no" >&6; }
  2981. fi
  2982. fi
  2983. fi
  2984. if test -z "$CC"; then
  2985. # Extract the first word of "cc", so it can be a program name with args.
  2986. set dummy cc; ac_word=$2
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2988. $as_echo_n "checking for $ac_word... " >&6; }
  2989. if ${ac_cv_prog_CC+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. if test -n "$CC"; then
  2993. ac_cv_prog_CC="$CC" # Let the user override the test.
  2994. else
  2995. ac_prog_rejected=no
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. for as_dir in $PATH
  2998. do
  2999. IFS=$as_save_IFS
  3000. test -z "$as_dir" && as_dir=.
  3001. for ac_exec_ext in '' $ac_executable_extensions; do
  3002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3003. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3004. ac_prog_rejected=yes
  3005. continue
  3006. fi
  3007. ac_cv_prog_CC="cc"
  3008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3009. break 2
  3010. fi
  3011. done
  3012. done
  3013. IFS=$as_save_IFS
  3014. if test $ac_prog_rejected = yes; then
  3015. # We found a bogon in the path, so make sure we never use it.
  3016. set dummy $ac_cv_prog_CC
  3017. shift
  3018. if test $# != 0; then
  3019. # We chose a different compiler from the bogus one.
  3020. # However, it has the same basename, so the bogon will be chosen
  3021. # first if we set CC to just the basename; use the full file name.
  3022. shift
  3023. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3024. fi
  3025. fi
  3026. fi
  3027. fi
  3028. CC=$ac_cv_prog_CC
  3029. if test -n "$CC"; then
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3031. $as_echo "$CC" >&6; }
  3032. else
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3034. $as_echo "no" >&6; }
  3035. fi
  3036. fi
  3037. if test -z "$CC"; then
  3038. if test -n "$ac_tool_prefix"; then
  3039. for ac_prog in cl.exe
  3040. do
  3041. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3042. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3044. $as_echo_n "checking for $ac_word... " >&6; }
  3045. if ${ac_cv_prog_CC+:} false; then :
  3046. $as_echo_n "(cached) " >&6
  3047. else
  3048. if test -n "$CC"; then
  3049. ac_cv_prog_CC="$CC" # Let the user override the test.
  3050. else
  3051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3052. for as_dir in $PATH
  3053. do
  3054. IFS=$as_save_IFS
  3055. test -z "$as_dir" && as_dir=.
  3056. for ac_exec_ext in '' $ac_executable_extensions; do
  3057. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3058. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3060. break 2
  3061. fi
  3062. done
  3063. done
  3064. IFS=$as_save_IFS
  3065. fi
  3066. fi
  3067. CC=$ac_cv_prog_CC
  3068. if test -n "$CC"; then
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3070. $as_echo "$CC" >&6; }
  3071. else
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3073. $as_echo "no" >&6; }
  3074. fi
  3075. test -n "$CC" && break
  3076. done
  3077. fi
  3078. if test -z "$CC"; then
  3079. ac_ct_CC=$CC
  3080. for ac_prog in cl.exe
  3081. do
  3082. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3083. set dummy $ac_prog; ac_word=$2
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3085. $as_echo_n "checking for $ac_word... " >&6; }
  3086. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. if test -n "$ac_ct_CC"; then
  3090. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3091. else
  3092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. for ac_exec_ext in '' $ac_executable_extensions; do
  3098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3099. ac_cv_prog_ac_ct_CC="$ac_prog"
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3101. break 2
  3102. fi
  3103. done
  3104. done
  3105. IFS=$as_save_IFS
  3106. fi
  3107. fi
  3108. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3109. if test -n "$ac_ct_CC"; then
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3111. $as_echo "$ac_ct_CC" >&6; }
  3112. else
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3114. $as_echo "no" >&6; }
  3115. fi
  3116. test -n "$ac_ct_CC" && break
  3117. done
  3118. if test "x$ac_ct_CC" = x; then
  3119. CC=""
  3120. else
  3121. case $cross_compiling:$ac_tool_warned in
  3122. yes:)
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3125. ac_tool_warned=yes ;;
  3126. esac
  3127. CC=$ac_ct_CC
  3128. fi
  3129. fi
  3130. fi
  3131. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3133. as_fn_error $? "no acceptable C compiler found in \$PATH
  3134. See \`config.log' for more details" "$LINENO" 5; }
  3135. # Provide some information about the compiler.
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3137. set X $ac_compile
  3138. ac_compiler=$2
  3139. for ac_option in --version -v -V -qversion; do
  3140. { { ac_try="$ac_compiler $ac_option >&5"
  3141. case "(($ac_try" in
  3142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3143. *) ac_try_echo=$ac_try;;
  3144. esac
  3145. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3146. $as_echo "$ac_try_echo"; } >&5
  3147. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3148. ac_status=$?
  3149. if test -s conftest.err; then
  3150. sed '10a\
  3151. ... rest of stderr output deleted ...
  3152. 10q' conftest.err >conftest.er1
  3153. cat conftest.er1 >&5
  3154. fi
  3155. rm -f conftest.er1 conftest.err
  3156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3157. test $ac_status = 0; }
  3158. done
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. int
  3162. main ()
  3163. {
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. ac_clean_files_save=$ac_clean_files
  3169. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3170. # Try to create an executable without -o first, disregard a.out.
  3171. # It will help us diagnose broken compilers, and finding out an intuition
  3172. # of exeext.
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3174. $as_echo_n "checking whether the C compiler works... " >&6; }
  3175. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3176. # The possible output files:
  3177. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3178. ac_rmfiles=
  3179. for ac_file in $ac_files
  3180. do
  3181. case $ac_file in
  3182. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3183. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3184. esac
  3185. done
  3186. rm -f $ac_rmfiles
  3187. if { { ac_try="$ac_link_default"
  3188. case "(($ac_try" in
  3189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3190. *) ac_try_echo=$ac_try;;
  3191. esac
  3192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3193. $as_echo "$ac_try_echo"; } >&5
  3194. (eval "$ac_link_default") 2>&5
  3195. ac_status=$?
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3197. test $ac_status = 0; }; then :
  3198. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3199. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3200. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3201. # so that the user can short-circuit this test for compilers unknown to
  3202. # Autoconf.
  3203. for ac_file in $ac_files ''
  3204. do
  3205. test -f "$ac_file" || continue
  3206. case $ac_file in
  3207. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3208. ;;
  3209. [ab].out )
  3210. # We found the default executable, but exeext='' is most
  3211. # certainly right.
  3212. break;;
  3213. *.* )
  3214. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3215. then :; else
  3216. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3217. fi
  3218. # We set ac_cv_exeext here because the later test for it is not
  3219. # safe: cross compilers may not add the suffix if given an `-o'
  3220. # argument, so we may need to know it at that point already.
  3221. # Even if this section looks crufty: it has the advantage of
  3222. # actually working.
  3223. break;;
  3224. * )
  3225. break;;
  3226. esac
  3227. done
  3228. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3229. else
  3230. ac_file=''
  3231. fi
  3232. if test -z "$ac_file"; then :
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3234. $as_echo "no" >&6; }
  3235. $as_echo "$as_me: failed program was:" >&5
  3236. sed 's/^/| /' conftest.$ac_ext >&5
  3237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3239. as_fn_error 77 "C compiler cannot create executables
  3240. See \`config.log' for more details" "$LINENO" 5; }
  3241. else
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3243. $as_echo "yes" >&6; }
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3246. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3248. $as_echo "$ac_file" >&6; }
  3249. ac_exeext=$ac_cv_exeext
  3250. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3251. ac_clean_files=$ac_clean_files_save
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3253. $as_echo_n "checking for suffix of executables... " >&6; }
  3254. if { { ac_try="$ac_link"
  3255. case "(($ac_try" in
  3256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3257. *) ac_try_echo=$ac_try;;
  3258. esac
  3259. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3260. $as_echo "$ac_try_echo"; } >&5
  3261. (eval "$ac_link") 2>&5
  3262. ac_status=$?
  3263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3264. test $ac_status = 0; }; then :
  3265. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3266. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3267. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3268. # `rm'.
  3269. for ac_file in conftest.exe conftest conftest.*; do
  3270. test -f "$ac_file" || continue
  3271. case $ac_file in
  3272. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3273. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3274. break;;
  3275. * ) break;;
  3276. esac
  3277. done
  3278. else
  3279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3281. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3282. See \`config.log' for more details" "$LINENO" 5; }
  3283. fi
  3284. rm -f conftest conftest$ac_cv_exeext
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3286. $as_echo "$ac_cv_exeext" >&6; }
  3287. rm -f conftest.$ac_ext
  3288. EXEEXT=$ac_cv_exeext
  3289. ac_exeext=$EXEEXT
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. #include <stdio.h>
  3293. int
  3294. main ()
  3295. {
  3296. FILE *f = fopen ("conftest.out", "w");
  3297. return ferror (f) || fclose (f) != 0;
  3298. ;
  3299. return 0;
  3300. }
  3301. _ACEOF
  3302. ac_clean_files="$ac_clean_files conftest.out"
  3303. # Check that the compiler produces executables we can run. If not, either
  3304. # the compiler is broken, or we cross compile.
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3306. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3307. if test "$cross_compiling" != yes; then
  3308. { { ac_try="$ac_link"
  3309. case "(($ac_try" in
  3310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3311. *) ac_try_echo=$ac_try;;
  3312. esac
  3313. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3314. $as_echo "$ac_try_echo"; } >&5
  3315. (eval "$ac_link") 2>&5
  3316. ac_status=$?
  3317. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3318. test $ac_status = 0; }
  3319. if { ac_try='./conftest$ac_cv_exeext'
  3320. { { case "(($ac_try" in
  3321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3322. *) ac_try_echo=$ac_try;;
  3323. esac
  3324. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3325. $as_echo "$ac_try_echo"; } >&5
  3326. (eval "$ac_try") 2>&5
  3327. ac_status=$?
  3328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3329. test $ac_status = 0; }; }; then
  3330. cross_compiling=no
  3331. else
  3332. if test "$cross_compiling" = maybe; then
  3333. cross_compiling=yes
  3334. else
  3335. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3336. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3337. as_fn_error $? "cannot run C compiled programs.
  3338. If you meant to cross compile, use \`--host'.
  3339. See \`config.log' for more details" "$LINENO" 5; }
  3340. fi
  3341. fi
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3344. $as_echo "$cross_compiling" >&6; }
  3345. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3346. ac_clean_files=$ac_clean_files_save
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3348. $as_echo_n "checking for suffix of object files... " >&6; }
  3349. if ${ac_cv_objext+:} false; then :
  3350. $as_echo_n "(cached) " >&6
  3351. else
  3352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3353. /* end confdefs.h. */
  3354. int
  3355. main ()
  3356. {
  3357. ;
  3358. return 0;
  3359. }
  3360. _ACEOF
  3361. rm -f conftest.o conftest.obj
  3362. if { { ac_try="$ac_compile"
  3363. case "(($ac_try" in
  3364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. *) ac_try_echo=$ac_try;;
  3366. esac
  3367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3368. $as_echo "$ac_try_echo"; } >&5
  3369. (eval "$ac_compile") 2>&5
  3370. ac_status=$?
  3371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3372. test $ac_status = 0; }; then :
  3373. for ac_file in conftest.o conftest.obj conftest.*; do
  3374. test -f "$ac_file" || continue;
  3375. case $ac_file in
  3376. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3377. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3378. break;;
  3379. esac
  3380. done
  3381. else
  3382. $as_echo "$as_me: failed program was:" >&5
  3383. sed 's/^/| /' conftest.$ac_ext >&5
  3384. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3385. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3386. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3387. See \`config.log' for more details" "$LINENO" 5; }
  3388. fi
  3389. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3392. $as_echo "$ac_cv_objext" >&6; }
  3393. OBJEXT=$ac_cv_objext
  3394. ac_objext=$OBJEXT
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3396. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3397. if ${ac_cv_c_compiler_gnu+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3401. /* end confdefs.h. */
  3402. int
  3403. main ()
  3404. {
  3405. #ifndef __GNUC__
  3406. choke me
  3407. #endif
  3408. ;
  3409. return 0;
  3410. }
  3411. _ACEOF
  3412. if ac_fn_c_try_compile "$LINENO"; then :
  3413. ac_compiler_gnu=yes
  3414. else
  3415. ac_compiler_gnu=no
  3416. fi
  3417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3418. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3419. fi
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3421. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3422. if test $ac_compiler_gnu = yes; then
  3423. GCC=yes
  3424. else
  3425. GCC=
  3426. fi
  3427. ac_test_CFLAGS=${CFLAGS+set}
  3428. ac_save_CFLAGS=$CFLAGS
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3430. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3431. if ${ac_cv_prog_cc_g+:} false; then :
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. ac_save_c_werror_flag=$ac_c_werror_flag
  3435. ac_c_werror_flag=yes
  3436. ac_cv_prog_cc_g=no
  3437. CFLAGS="-g"
  3438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3439. /* end confdefs.h. */
  3440. int
  3441. main ()
  3442. {
  3443. ;
  3444. return 0;
  3445. }
  3446. _ACEOF
  3447. if ac_fn_c_try_compile "$LINENO"; then :
  3448. ac_cv_prog_cc_g=yes
  3449. else
  3450. CFLAGS=""
  3451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3452. /* end confdefs.h. */
  3453. int
  3454. main ()
  3455. {
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. if ac_fn_c_try_compile "$LINENO"; then :
  3461. else
  3462. ac_c_werror_flag=$ac_save_c_werror_flag
  3463. CFLAGS="-g"
  3464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3465. /* end confdefs.h. */
  3466. int
  3467. main ()
  3468. {
  3469. ;
  3470. return 0;
  3471. }
  3472. _ACEOF
  3473. if ac_fn_c_try_compile "$LINENO"; then :
  3474. ac_cv_prog_cc_g=yes
  3475. fi
  3476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3477. fi
  3478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3479. fi
  3480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3481. ac_c_werror_flag=$ac_save_c_werror_flag
  3482. fi
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3484. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3485. if test "$ac_test_CFLAGS" = set; then
  3486. CFLAGS=$ac_save_CFLAGS
  3487. elif test $ac_cv_prog_cc_g = yes; then
  3488. if test "$GCC" = yes; then
  3489. CFLAGS="-g -O2"
  3490. else
  3491. CFLAGS="-g"
  3492. fi
  3493. else
  3494. if test "$GCC" = yes; then
  3495. CFLAGS="-O2"
  3496. else
  3497. CFLAGS=
  3498. fi
  3499. fi
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3501. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3502. if ${ac_cv_prog_cc_c89+:} false; then :
  3503. $as_echo_n "(cached) " >&6
  3504. else
  3505. ac_cv_prog_cc_c89=no
  3506. ac_save_CC=$CC
  3507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3508. /* end confdefs.h. */
  3509. #include <stdarg.h>
  3510. #include <stdio.h>
  3511. struct stat;
  3512. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3513. struct buf { int x; };
  3514. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3515. static char *e (p, i)
  3516. char **p;
  3517. int i;
  3518. {
  3519. return p[i];
  3520. }
  3521. static char *f (char * (*g) (char **, int), char **p, ...)
  3522. {
  3523. char *s;
  3524. va_list v;
  3525. va_start (v,p);
  3526. s = g (p, va_arg (v,int));
  3527. va_end (v);
  3528. return s;
  3529. }
  3530. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3531. function prototypes and stuff, but not '\xHH' hex character constants.
  3532. These don't provoke an error unfortunately, instead are silently treated
  3533. as 'x'. The following induces an error, until -std is added to get
  3534. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3535. array size at least. It's necessary to write '\x00'==0 to get something
  3536. that's true only with -std. */
  3537. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3538. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3539. inside strings and character constants. */
  3540. #define FOO(x) 'x'
  3541. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3542. int test (int i, double x);
  3543. struct s1 {int (*f) (int a);};
  3544. struct s2 {int (*f) (double a);};
  3545. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3546. int argc;
  3547. char **argv;
  3548. int
  3549. main ()
  3550. {
  3551. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3552. ;
  3553. return 0;
  3554. }
  3555. _ACEOF
  3556. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3557. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3558. do
  3559. CC="$ac_save_CC $ac_arg"
  3560. if ac_fn_c_try_compile "$LINENO"; then :
  3561. ac_cv_prog_cc_c89=$ac_arg
  3562. fi
  3563. rm -f core conftest.err conftest.$ac_objext
  3564. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3565. done
  3566. rm -f conftest.$ac_ext
  3567. CC=$ac_save_CC
  3568. fi
  3569. # AC_CACHE_VAL
  3570. case "x$ac_cv_prog_cc_c89" in
  3571. x)
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3573. $as_echo "none needed" >&6; } ;;
  3574. xno)
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3576. $as_echo "unsupported" >&6; } ;;
  3577. *)
  3578. CC="$CC $ac_cv_prog_cc_c89"
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3580. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3581. esac
  3582. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3583. fi
  3584. ac_ext=c
  3585. ac_cpp='$CPP $CPPFLAGS'
  3586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3589. ac_ext=c
  3590. ac_cpp='$CPP $CPPFLAGS'
  3591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3595. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3596. if ${am_cv_prog_cc_c_o+:} false; then :
  3597. $as_echo_n "(cached) " >&6
  3598. else
  3599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3600. /* end confdefs.h. */
  3601. int
  3602. main ()
  3603. {
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. # Make sure it works both with $CC and with simple cc.
  3609. # Following AC_PROG_CC_C_O, we do the test twice because some
  3610. # compilers refuse to overwrite an existing .o file with -o,
  3611. # though they will create one.
  3612. am_cv_prog_cc_c_o=yes
  3613. for am_i in 1 2; do
  3614. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3615. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3616. ac_status=$?
  3617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3618. (exit $ac_status); } \
  3619. && test -f conftest2.$ac_objext; then
  3620. : OK
  3621. else
  3622. am_cv_prog_cc_c_o=no
  3623. break
  3624. fi
  3625. done
  3626. rm -f core conftest*
  3627. unset am_i
  3628. fi
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3630. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3631. if test "$am_cv_prog_cc_c_o" != yes; then
  3632. # Losing compiler, so override with the script.
  3633. # FIXME: It is wrong to rewrite CC.
  3634. # But if we don't then we get into trouble of one sort or another.
  3635. # A longer-term fix would be to have automake use am__CC in this case,
  3636. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3637. CC="$am_aux_dir/compile $CC"
  3638. fi
  3639. ac_ext=c
  3640. ac_cpp='$CPP $CPPFLAGS'
  3641. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3642. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3643. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3644. DEPDIR="${am__leading_dot}deps"
  3645. ac_config_commands="$ac_config_commands depfiles"
  3646. am_make=${MAKE-make}
  3647. cat > confinc << 'END'
  3648. am__doit:
  3649. @echo this is the am__doit target
  3650. .PHONY: am__doit
  3651. END
  3652. # If we don't find an include directive, just comment out the code.
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3654. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3655. am__include="#"
  3656. am__quote=
  3657. _am_result=none
  3658. # First try GNU make style include.
  3659. echo "include confinc" > confmf
  3660. # Ignore all kinds of additional output from 'make'.
  3661. case `$am_make -s -f confmf 2> /dev/null` in #(
  3662. *the\ am__doit\ target*)
  3663. am__include=include
  3664. am__quote=
  3665. _am_result=GNU
  3666. ;;
  3667. esac
  3668. # Now try BSD make style include.
  3669. if test "$am__include" = "#"; then
  3670. echo '.include "confinc"' > confmf
  3671. case `$am_make -s -f confmf 2> /dev/null` in #(
  3672. *the\ am__doit\ target*)
  3673. am__include=.include
  3674. am__quote="\""
  3675. _am_result=BSD
  3676. ;;
  3677. esac
  3678. fi
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3680. $as_echo "$_am_result" >&6; }
  3681. rm -f confinc confmf
  3682. # Check whether --enable-dependency-tracking was given.
  3683. if test "${enable_dependency_tracking+set}" = set; then :
  3684. enableval=$enable_dependency_tracking;
  3685. fi
  3686. if test "x$enable_dependency_tracking" != xno; then
  3687. am_depcomp="$ac_aux_dir/depcomp"
  3688. AMDEPBACKSLASH='\'
  3689. am__nodep='_no'
  3690. fi
  3691. if test "x$enable_dependency_tracking" != xno; then
  3692. AMDEP_TRUE=
  3693. AMDEP_FALSE='#'
  3694. else
  3695. AMDEP_TRUE='#'
  3696. AMDEP_FALSE=
  3697. fi
  3698. depcc="$CC" am_compiler_list=
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3700. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3701. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3705. # We make a subdir and do the tests there. Otherwise we can end up
  3706. # making bogus files that we don't know about and never remove. For
  3707. # instance it was reported that on HP-UX the gcc test will end up
  3708. # making a dummy file named 'D' -- because '-MD' means "put the output
  3709. # in D".
  3710. rm -rf conftest.dir
  3711. mkdir conftest.dir
  3712. # Copy depcomp to subdir because otherwise we won't find it if we're
  3713. # using a relative directory.
  3714. cp "$am_depcomp" conftest.dir
  3715. cd conftest.dir
  3716. # We will build objects and dependencies in a subdirectory because
  3717. # it helps to detect inapplicable dependency modes. For instance
  3718. # both Tru64's cc and ICC support -MD to output dependencies as a
  3719. # side effect of compilation, but ICC will put the dependencies in
  3720. # the current directory while Tru64 will put them in the object
  3721. # directory.
  3722. mkdir sub
  3723. am_cv_CC_dependencies_compiler_type=none
  3724. if test "$am_compiler_list" = ""; then
  3725. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3726. fi
  3727. am__universal=false
  3728. case " $depcc " in #(
  3729. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3730. esac
  3731. for depmode in $am_compiler_list; do
  3732. # Setup a source with many dependencies, because some compilers
  3733. # like to wrap large dependency lists on column 80 (with \), and
  3734. # we should not choose a depcomp mode which is confused by this.
  3735. #
  3736. # We need to recreate these files for each test, as the compiler may
  3737. # overwrite some of them when testing with obscure command lines.
  3738. # This happens at least with the AIX C compiler.
  3739. : > sub/conftest.c
  3740. for i in 1 2 3 4 5 6; do
  3741. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3742. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3743. # Solaris 10 /bin/sh.
  3744. echo '/* dummy */' > sub/conftst$i.h
  3745. done
  3746. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3747. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3748. # mode. It turns out that the SunPro C++ compiler does not properly
  3749. # handle '-M -o', and we need to detect this. Also, some Intel
  3750. # versions had trouble with output in subdirs.
  3751. am__obj=sub/conftest.${OBJEXT-o}
  3752. am__minus_obj="-o $am__obj"
  3753. case $depmode in
  3754. gcc)
  3755. # This depmode causes a compiler race in universal mode.
  3756. test "$am__universal" = false || continue
  3757. ;;
  3758. nosideeffect)
  3759. # After this tag, mechanisms are not by side-effect, so they'll
  3760. # only be used when explicitly requested.
  3761. if test "x$enable_dependency_tracking" = xyes; then
  3762. continue
  3763. else
  3764. break
  3765. fi
  3766. ;;
  3767. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3768. # This compiler won't grok '-c -o', but also, the minuso test has
  3769. # not run yet. These depmodes are late enough in the game, and
  3770. # so weak that their functioning should not be impacted.
  3771. am__obj=conftest.${OBJEXT-o}
  3772. am__minus_obj=
  3773. ;;
  3774. none) break ;;
  3775. esac
  3776. if depmode=$depmode \
  3777. source=sub/conftest.c object=$am__obj \
  3778. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3779. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3780. >/dev/null 2>conftest.err &&
  3781. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3782. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3783. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3784. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3785. # icc doesn't choke on unknown options, it will just issue warnings
  3786. # or remarks (even with -Werror). So we grep stderr for any message
  3787. # that says an option was ignored or not supported.
  3788. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3789. # icc: Command line warning: ignoring option '-M'; no argument required
  3790. # The diagnosis changed in icc 8.0:
  3791. # icc: Command line remark: option '-MP' not supported
  3792. if (grep 'ignoring option' conftest.err ||
  3793. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3794. am_cv_CC_dependencies_compiler_type=$depmode
  3795. break
  3796. fi
  3797. fi
  3798. done
  3799. cd ..
  3800. rm -rf conftest.dir
  3801. else
  3802. am_cv_CC_dependencies_compiler_type=none
  3803. fi
  3804. fi
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3806. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3807. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3808. if
  3809. test "x$enable_dependency_tracking" != xno \
  3810. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3811. am__fastdepCC_TRUE=
  3812. am__fastdepCC_FALSE='#'
  3813. else
  3814. am__fastdepCC_TRUE='#'
  3815. am__fastdepCC_FALSE=
  3816. fi
  3817. ac_ext=cpp
  3818. ac_cpp='$CXXCPP $CPPFLAGS'
  3819. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3820. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3821. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3822. if test -z "$CXX"; then
  3823. if test -n "$CCC"; then
  3824. CXX=$CCC
  3825. else
  3826. if test -n "$ac_tool_prefix"; then
  3827. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3828. do
  3829. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3830. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3832. $as_echo_n "checking for $ac_word... " >&6; }
  3833. if ${ac_cv_prog_CXX+:} false; then :
  3834. $as_echo_n "(cached) " >&6
  3835. else
  3836. if test -n "$CXX"; then
  3837. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3838. else
  3839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3840. for as_dir in $PATH
  3841. do
  3842. IFS=$as_save_IFS
  3843. test -z "$as_dir" && as_dir=.
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3846. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3848. break 2
  3849. fi
  3850. done
  3851. done
  3852. IFS=$as_save_IFS
  3853. fi
  3854. fi
  3855. CXX=$ac_cv_prog_CXX
  3856. if test -n "$CXX"; then
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3858. $as_echo "$CXX" >&6; }
  3859. else
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3861. $as_echo "no" >&6; }
  3862. fi
  3863. test -n "$CXX" && break
  3864. done
  3865. fi
  3866. if test -z "$CXX"; then
  3867. ac_ct_CXX=$CXX
  3868. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3869. do
  3870. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3871. set dummy $ac_prog; ac_word=$2
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3873. $as_echo_n "checking for $ac_word... " >&6; }
  3874. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3875. $as_echo_n "(cached) " >&6
  3876. else
  3877. if test -n "$ac_ct_CXX"; then
  3878. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3879. else
  3880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3881. for as_dir in $PATH
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. for ac_exec_ext in '' $ac_executable_extensions; do
  3886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3887. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3889. break 2
  3890. fi
  3891. done
  3892. done
  3893. IFS=$as_save_IFS
  3894. fi
  3895. fi
  3896. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3897. if test -n "$ac_ct_CXX"; then
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3899. $as_echo "$ac_ct_CXX" >&6; }
  3900. else
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3902. $as_echo "no" >&6; }
  3903. fi
  3904. test -n "$ac_ct_CXX" && break
  3905. done
  3906. if test "x$ac_ct_CXX" = x; then
  3907. CXX="g++"
  3908. else
  3909. case $cross_compiling:$ac_tool_warned in
  3910. yes:)
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3912. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3913. ac_tool_warned=yes ;;
  3914. esac
  3915. CXX=$ac_ct_CXX
  3916. fi
  3917. fi
  3918. fi
  3919. fi
  3920. # Provide some information about the compiler.
  3921. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3922. set X $ac_compile
  3923. ac_compiler=$2
  3924. for ac_option in --version -v -V -qversion; do
  3925. { { ac_try="$ac_compiler $ac_option >&5"
  3926. case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3931. $as_echo "$ac_try_echo"; } >&5
  3932. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3933. ac_status=$?
  3934. if test -s conftest.err; then
  3935. sed '10a\
  3936. ... rest of stderr output deleted ...
  3937. 10q' conftest.err >conftest.er1
  3938. cat conftest.er1 >&5
  3939. fi
  3940. rm -f conftest.er1 conftest.err
  3941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3942. test $ac_status = 0; }
  3943. done
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3945. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3946. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3947. $as_echo_n "(cached) " >&6
  3948. else
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main ()
  3953. {
  3954. #ifndef __GNUC__
  3955. choke me
  3956. #endif
  3957. ;
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. if ac_fn_cxx_try_compile "$LINENO"; then :
  3962. ac_compiler_gnu=yes
  3963. else
  3964. ac_compiler_gnu=no
  3965. fi
  3966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3967. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3968. fi
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3970. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3971. if test $ac_compiler_gnu = yes; then
  3972. GXX=yes
  3973. else
  3974. GXX=
  3975. fi
  3976. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3977. ac_save_CXXFLAGS=$CXXFLAGS
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3979. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3980. if ${ac_cv_prog_cxx_g+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3984. ac_cxx_werror_flag=yes
  3985. ac_cv_prog_cxx_g=no
  3986. CXXFLAGS="-g"
  3987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3988. /* end confdefs.h. */
  3989. int
  3990. main ()
  3991. {
  3992. ;
  3993. return 0;
  3994. }
  3995. _ACEOF
  3996. if ac_fn_cxx_try_compile "$LINENO"; then :
  3997. ac_cv_prog_cxx_g=yes
  3998. else
  3999. CXXFLAGS=""
  4000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4001. /* end confdefs.h. */
  4002. int
  4003. main ()
  4004. {
  4005. ;
  4006. return 0;
  4007. }
  4008. _ACEOF
  4009. if ac_fn_cxx_try_compile "$LINENO"; then :
  4010. else
  4011. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4012. CXXFLAGS="-g"
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. int
  4016. main ()
  4017. {
  4018. ;
  4019. return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_cxx_try_compile "$LINENO"; then :
  4023. ac_cv_prog_cxx_g=yes
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4026. fi
  4027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4028. fi
  4029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4030. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4031. fi
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4033. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4034. if test "$ac_test_CXXFLAGS" = set; then
  4035. CXXFLAGS=$ac_save_CXXFLAGS
  4036. elif test $ac_cv_prog_cxx_g = yes; then
  4037. if test "$GXX" = yes; then
  4038. CXXFLAGS="-g -O2"
  4039. else
  4040. CXXFLAGS="-g"
  4041. fi
  4042. else
  4043. if test "$GXX" = yes; then
  4044. CXXFLAGS="-O2"
  4045. else
  4046. CXXFLAGS=
  4047. fi
  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. depcc="$CXX" am_compiler_list=
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4056. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4057. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4061. # We make a subdir and do the tests there. Otherwise we can end up
  4062. # making bogus files that we don't know about and never remove. For
  4063. # instance it was reported that on HP-UX the gcc test will end up
  4064. # making a dummy file named 'D' -- because '-MD' means "put the output
  4065. # in D".
  4066. rm -rf conftest.dir
  4067. mkdir conftest.dir
  4068. # Copy depcomp to subdir because otherwise we won't find it if we're
  4069. # using a relative directory.
  4070. cp "$am_depcomp" conftest.dir
  4071. cd conftest.dir
  4072. # We will build objects and dependencies in a subdirectory because
  4073. # it helps to detect inapplicable dependency modes. For instance
  4074. # both Tru64's cc and ICC support -MD to output dependencies as a
  4075. # side effect of compilation, but ICC will put the dependencies in
  4076. # the current directory while Tru64 will put them in the object
  4077. # directory.
  4078. mkdir sub
  4079. am_cv_CXX_dependencies_compiler_type=none
  4080. if test "$am_compiler_list" = ""; then
  4081. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4082. fi
  4083. am__universal=false
  4084. case " $depcc " in #(
  4085. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4086. esac
  4087. for depmode in $am_compiler_list; do
  4088. # Setup a source with many dependencies, because some compilers
  4089. # like to wrap large dependency lists on column 80 (with \), and
  4090. # we should not choose a depcomp mode which is confused by this.
  4091. #
  4092. # We need to recreate these files for each test, as the compiler may
  4093. # overwrite some of them when testing with obscure command lines.
  4094. # This happens at least with the AIX C compiler.
  4095. : > sub/conftest.c
  4096. for i in 1 2 3 4 5 6; do
  4097. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4098. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4099. # Solaris 10 /bin/sh.
  4100. echo '/* dummy */' > sub/conftst$i.h
  4101. done
  4102. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4103. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4104. # mode. It turns out that the SunPro C++ compiler does not properly
  4105. # handle '-M -o', and we need to detect this. Also, some Intel
  4106. # versions had trouble with output in subdirs.
  4107. am__obj=sub/conftest.${OBJEXT-o}
  4108. am__minus_obj="-o $am__obj"
  4109. case $depmode in
  4110. gcc)
  4111. # This depmode causes a compiler race in universal mode.
  4112. test "$am__universal" = false || continue
  4113. ;;
  4114. nosideeffect)
  4115. # After this tag, mechanisms are not by side-effect, so they'll
  4116. # only be used when explicitly requested.
  4117. if test "x$enable_dependency_tracking" = xyes; then
  4118. continue
  4119. else
  4120. break
  4121. fi
  4122. ;;
  4123. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4124. # This compiler won't grok '-c -o', but also, the minuso test has
  4125. # not run yet. These depmodes are late enough in the game, and
  4126. # so weak that their functioning should not be impacted.
  4127. am__obj=conftest.${OBJEXT-o}
  4128. am__minus_obj=
  4129. ;;
  4130. none) break ;;
  4131. esac
  4132. if depmode=$depmode \
  4133. source=sub/conftest.c object=$am__obj \
  4134. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4135. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4136. >/dev/null 2>conftest.err &&
  4137. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4138. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4139. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4140. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4141. # icc doesn't choke on unknown options, it will just issue warnings
  4142. # or remarks (even with -Werror). So we grep stderr for any message
  4143. # that says an option was ignored or not supported.
  4144. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4145. # icc: Command line warning: ignoring option '-M'; no argument required
  4146. # The diagnosis changed in icc 8.0:
  4147. # icc: Command line remark: option '-MP' not supported
  4148. if (grep 'ignoring option' conftest.err ||
  4149. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4150. am_cv_CXX_dependencies_compiler_type=$depmode
  4151. break
  4152. fi
  4153. fi
  4154. done
  4155. cd ..
  4156. rm -rf conftest.dir
  4157. else
  4158. am_cv_CXX_dependencies_compiler_type=none
  4159. fi
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4162. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4163. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4164. if
  4165. test "x$enable_dependency_tracking" != xno \
  4166. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4167. am__fastdepCXX_TRUE=
  4168. am__fastdepCXX_FALSE='#'
  4169. else
  4170. am__fastdepCXX_TRUE='#'
  4171. am__fastdepCXX_FALSE=
  4172. fi
  4173. ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
  4174. # Default to --enable-multilib
  4175. # Check whether --enable-multilib was given.
  4176. if test "${enable_multilib+set}" = set; then :
  4177. enableval=$enable_multilib; case "$enableval" in
  4178. yes) multilib=yes ;;
  4179. no) multilib=no ;;
  4180. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  4181. esac
  4182. else
  4183. multilib=yes
  4184. fi
  4185. # We may get other options which we leave undocumented:
  4186. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  4187. # See config-ml.in if you want the gory details.
  4188. if test "$srcdir" = "."; then
  4189. if test "$with_target_subdir" != "."; then
  4190. multi_basedir="$srcdir/$with_multisrctop../.."
  4191. else
  4192. multi_basedir="$srcdir/$with_multisrctop.."
  4193. fi
  4194. else
  4195. multi_basedir="$srcdir/.."
  4196. fi
  4197. # Even if the default multilib is not a cross compilation,
  4198. # it may be that some of the other multilibs are.
  4199. if test $cross_compiling = no && test $multilib = yes \
  4200. && test "x${with_multisubdir}" != x ; then
  4201. cross_compiling=maybe
  4202. fi
  4203. ac_config_commands="$ac_config_commands default-1"
  4204. subdirs="$subdirs plugin"
  4205. ac_ext=c
  4206. ac_cpp='$CPP $CPPFLAGS'
  4207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4211. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4212. # On Suns, sometimes $CPP names a directory.
  4213. if test -n "$CPP" && test -d "$CPP"; then
  4214. CPP=
  4215. fi
  4216. if test -z "$CPP"; then
  4217. if ${ac_cv_prog_CPP+:} false; then :
  4218. $as_echo_n "(cached) " >&6
  4219. else
  4220. # Double quotes because CPP needs to be expanded
  4221. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4222. do
  4223. ac_preproc_ok=false
  4224. for ac_c_preproc_warn_flag in '' yes
  4225. do
  4226. # Use a header file that comes with gcc, so configuring glibc
  4227. # with a fresh cross-compiler works.
  4228. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4229. # <limits.h> exists even on freestanding compilers.
  4230. # On the NeXT, cc -E runs the code through the compiler's parser,
  4231. # not just through cpp. "Syntax error" is here to catch this case.
  4232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4233. /* end confdefs.h. */
  4234. #ifdef __STDC__
  4235. # include <limits.h>
  4236. #else
  4237. # include <assert.h>
  4238. #endif
  4239. Syntax error
  4240. _ACEOF
  4241. if ac_fn_c_try_cpp "$LINENO"; then :
  4242. else
  4243. # Broken: fails on valid input.
  4244. continue
  4245. fi
  4246. rm -f conftest.err conftest.i conftest.$ac_ext
  4247. # OK, works on sane cases. Now check whether nonexistent headers
  4248. # can be detected and how.
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. #include <ac_nonexistent.h>
  4252. _ACEOF
  4253. if ac_fn_c_try_cpp "$LINENO"; then :
  4254. # Broken: success on invalid input.
  4255. continue
  4256. else
  4257. # Passes both tests.
  4258. ac_preproc_ok=:
  4259. break
  4260. fi
  4261. rm -f conftest.err conftest.i conftest.$ac_ext
  4262. done
  4263. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4264. rm -f conftest.i conftest.err conftest.$ac_ext
  4265. if $ac_preproc_ok; then :
  4266. break
  4267. fi
  4268. done
  4269. ac_cv_prog_CPP=$CPP
  4270. fi
  4271. CPP=$ac_cv_prog_CPP
  4272. else
  4273. ac_cv_prog_CPP=$CPP
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4276. $as_echo "$CPP" >&6; }
  4277. ac_preproc_ok=false
  4278. for ac_c_preproc_warn_flag in '' yes
  4279. do
  4280. # Use a header file that comes with gcc, so configuring glibc
  4281. # with a fresh cross-compiler works.
  4282. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4283. # <limits.h> exists even on freestanding compilers.
  4284. # On the NeXT, cc -E runs the code through the compiler's parser,
  4285. # not just through cpp. "Syntax error" is here to catch this case.
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. #ifdef __STDC__
  4289. # include <limits.h>
  4290. #else
  4291. # include <assert.h>
  4292. #endif
  4293. Syntax error
  4294. _ACEOF
  4295. if ac_fn_c_try_cpp "$LINENO"; then :
  4296. else
  4297. # Broken: fails on valid input.
  4298. continue
  4299. fi
  4300. rm -f conftest.err conftest.i conftest.$ac_ext
  4301. # OK, works on sane cases. Now check whether nonexistent headers
  4302. # can be detected and how.
  4303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4304. /* end confdefs.h. */
  4305. #include <ac_nonexistent.h>
  4306. _ACEOF
  4307. if ac_fn_c_try_cpp "$LINENO"; then :
  4308. # Broken: success on invalid input.
  4309. continue
  4310. else
  4311. # Passes both tests.
  4312. ac_preproc_ok=:
  4313. break
  4314. fi
  4315. rm -f conftest.err conftest.i conftest.$ac_ext
  4316. done
  4317. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4318. rm -f conftest.i conftest.err conftest.$ac_ext
  4319. if $ac_preproc_ok; then :
  4320. else
  4321. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4323. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4324. See \`config.log' for more details" "$LINENO" 5; }
  4325. fi
  4326. ac_ext=c
  4327. ac_cpp='$CPP $CPPFLAGS'
  4328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4332. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4333. if ${ac_cv_path_GREP+:} false; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. if test -z "$GREP"; then
  4337. ac_path_GREP_found=false
  4338. # Loop through the user's path and test for each of PROGNAME-LIST
  4339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4340. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4341. do
  4342. IFS=$as_save_IFS
  4343. test -z "$as_dir" && as_dir=.
  4344. for ac_prog in grep ggrep; do
  4345. for ac_exec_ext in '' $ac_executable_extensions; do
  4346. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4347. as_fn_executable_p "$ac_path_GREP" || continue
  4348. # Check for GNU ac_path_GREP and select it if it is found.
  4349. # Check for GNU $ac_path_GREP
  4350. case `"$ac_path_GREP" --version 2>&1` in
  4351. *GNU*)
  4352. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4353. *)
  4354. ac_count=0
  4355. $as_echo_n 0123456789 >"conftest.in"
  4356. while :
  4357. do
  4358. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4359. mv "conftest.tmp" "conftest.in"
  4360. cp "conftest.in" "conftest.nl"
  4361. $as_echo 'GREP' >> "conftest.nl"
  4362. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4363. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4364. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4365. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4366. # Best one so far, save it but keep looking for a better one
  4367. ac_cv_path_GREP="$ac_path_GREP"
  4368. ac_path_GREP_max=$ac_count
  4369. fi
  4370. # 10*(2^10) chars as input seems more than enough
  4371. test $ac_count -gt 10 && break
  4372. done
  4373. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4374. esac
  4375. $ac_path_GREP_found && break 3
  4376. done
  4377. done
  4378. done
  4379. IFS=$as_save_IFS
  4380. if test -z "$ac_cv_path_GREP"; then
  4381. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4382. fi
  4383. else
  4384. ac_cv_path_GREP=$GREP
  4385. fi
  4386. fi
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4388. $as_echo "$ac_cv_path_GREP" >&6; }
  4389. GREP="$ac_cv_path_GREP"
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4391. $as_echo_n "checking for egrep... " >&6; }
  4392. if ${ac_cv_path_EGREP+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4396. then ac_cv_path_EGREP="$GREP -E"
  4397. else
  4398. if test -z "$EGREP"; then
  4399. ac_path_EGREP_found=false
  4400. # Loop through the user's path and test for each of PROGNAME-LIST
  4401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4402. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4403. do
  4404. IFS=$as_save_IFS
  4405. test -z "$as_dir" && as_dir=.
  4406. for ac_prog in egrep; do
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4409. as_fn_executable_p "$ac_path_EGREP" || continue
  4410. # Check for GNU ac_path_EGREP and select it if it is found.
  4411. # Check for GNU $ac_path_EGREP
  4412. case `"$ac_path_EGREP" --version 2>&1` in
  4413. *GNU*)
  4414. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4415. *)
  4416. ac_count=0
  4417. $as_echo_n 0123456789 >"conftest.in"
  4418. while :
  4419. do
  4420. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4421. mv "conftest.tmp" "conftest.in"
  4422. cp "conftest.in" "conftest.nl"
  4423. $as_echo 'EGREP' >> "conftest.nl"
  4424. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4425. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4426. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4427. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4428. # Best one so far, save it but keep looking for a better one
  4429. ac_cv_path_EGREP="$ac_path_EGREP"
  4430. ac_path_EGREP_max=$ac_count
  4431. fi
  4432. # 10*(2^10) chars as input seems more than enough
  4433. test $ac_count -gt 10 && break
  4434. done
  4435. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4436. esac
  4437. $ac_path_EGREP_found && break 3
  4438. done
  4439. done
  4440. done
  4441. IFS=$as_save_IFS
  4442. if test -z "$ac_cv_path_EGREP"; then
  4443. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4444. fi
  4445. else
  4446. ac_cv_path_EGREP=$EGREP
  4447. fi
  4448. fi
  4449. fi
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4451. $as_echo "$ac_cv_path_EGREP" >&6; }
  4452. EGREP="$ac_cv_path_EGREP"
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4454. $as_echo_n "checking for ANSI C header files... " >&6; }
  4455. if ${ac_cv_header_stdc+:} false; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4459. /* end confdefs.h. */
  4460. #include <stdlib.h>
  4461. #include <stdarg.h>
  4462. #include <string.h>
  4463. #include <float.h>
  4464. int
  4465. main ()
  4466. {
  4467. ;
  4468. return 0;
  4469. }
  4470. _ACEOF
  4471. if ac_fn_c_try_compile "$LINENO"; then :
  4472. ac_cv_header_stdc=yes
  4473. else
  4474. ac_cv_header_stdc=no
  4475. fi
  4476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4477. if test $ac_cv_header_stdc = yes; then
  4478. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. #include <string.h>
  4482. _ACEOF
  4483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4484. $EGREP "memchr" >/dev/null 2>&1; then :
  4485. else
  4486. ac_cv_header_stdc=no
  4487. fi
  4488. rm -f conftest*
  4489. fi
  4490. if test $ac_cv_header_stdc = yes; then
  4491. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4493. /* end confdefs.h. */
  4494. #include <stdlib.h>
  4495. _ACEOF
  4496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4497. $EGREP "free" >/dev/null 2>&1; then :
  4498. else
  4499. ac_cv_header_stdc=no
  4500. fi
  4501. rm -f conftest*
  4502. fi
  4503. if test $ac_cv_header_stdc = yes; then
  4504. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4505. if test "$cross_compiling" = yes; then :
  4506. :
  4507. else
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. #include <ctype.h>
  4511. #include <stdlib.h>
  4512. #if ((' ' & 0x0FF) == 0x020)
  4513. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4514. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4515. #else
  4516. # define ISLOWER(c) \
  4517. (('a' <= (c) && (c) <= 'i') \
  4518. || ('j' <= (c) && (c) <= 'r') \
  4519. || ('s' <= (c) && (c) <= 'z'))
  4520. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4521. #endif
  4522. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4523. int
  4524. main ()
  4525. {
  4526. int i;
  4527. for (i = 0; i < 256; i++)
  4528. if (XOR (islower (i), ISLOWER (i))
  4529. || toupper (i) != TOUPPER (i))
  4530. return 2;
  4531. return 0;
  4532. }
  4533. _ACEOF
  4534. if ac_fn_c_try_run "$LINENO"; then :
  4535. else
  4536. ac_cv_header_stdc=no
  4537. fi
  4538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4540. fi
  4541. fi
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4544. $as_echo "$ac_cv_header_stdc" >&6; }
  4545. if test $ac_cv_header_stdc = yes; then
  4546. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4547. fi
  4548. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4549. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4550. inttypes.h stdint.h unistd.h
  4551. do :
  4552. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4553. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4554. "
  4555. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4556. cat >>confdefs.h <<_ACEOF
  4557. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4558. _ACEOF
  4559. fi
  4560. done
  4561. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4562. if test "x$ac_cv_type_size_t" = xyes; then :
  4563. else
  4564. cat >>confdefs.h <<_ACEOF
  4565. #define size_t unsigned int
  4566. _ACEOF
  4567. fi
  4568. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4569. # for constant arguments. Useless!
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  4571. $as_echo_n "checking for working alloca.h... " >&6; }
  4572. if ${ac_cv_working_alloca_h+:} false; then :
  4573. $as_echo_n "(cached) " >&6
  4574. else
  4575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4576. /* end confdefs.h. */
  4577. #include <alloca.h>
  4578. int
  4579. main ()
  4580. {
  4581. char *p = (char *) alloca (2 * sizeof (int));
  4582. if (p) return 0;
  4583. ;
  4584. return 0;
  4585. }
  4586. _ACEOF
  4587. if ac_fn_c_try_link "$LINENO"; then :
  4588. ac_cv_working_alloca_h=yes
  4589. else
  4590. ac_cv_working_alloca_h=no
  4591. fi
  4592. rm -f core conftest.err conftest.$ac_objext \
  4593. conftest$ac_exeext conftest.$ac_ext
  4594. fi
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  4596. $as_echo "$ac_cv_working_alloca_h" >&6; }
  4597. if test $ac_cv_working_alloca_h = yes; then
  4598. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  4599. fi
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  4601. $as_echo_n "checking for alloca... " >&6; }
  4602. if ${ac_cv_func_alloca_works+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4606. /* end confdefs.h. */
  4607. #ifdef __GNUC__
  4608. # define alloca __builtin_alloca
  4609. #else
  4610. # ifdef _MSC_VER
  4611. # include <malloc.h>
  4612. # define alloca _alloca
  4613. # else
  4614. # ifdef HAVE_ALLOCA_H
  4615. # include <alloca.h>
  4616. # else
  4617. # ifdef _AIX
  4618. #pragma alloca
  4619. # else
  4620. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4621. void *alloca (size_t);
  4622. # endif
  4623. # endif
  4624. # endif
  4625. # endif
  4626. #endif
  4627. int
  4628. main ()
  4629. {
  4630. char *p = (char *) alloca (1);
  4631. if (p) return 0;
  4632. ;
  4633. return 0;
  4634. }
  4635. _ACEOF
  4636. if ac_fn_c_try_link "$LINENO"; then :
  4637. ac_cv_func_alloca_works=yes
  4638. else
  4639. ac_cv_func_alloca_works=no
  4640. fi
  4641. rm -f core conftest.err conftest.$ac_objext \
  4642. conftest$ac_exeext conftest.$ac_ext
  4643. fi
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  4645. $as_echo "$ac_cv_func_alloca_works" >&6; }
  4646. if test $ac_cv_func_alloca_works = yes; then
  4647. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  4648. else
  4649. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4650. # that cause trouble. Some versions do not even contain alloca or
  4651. # contain a buggy version. If you still want to use their alloca,
  4652. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4653. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  4654. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  4656. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  4657. if ${ac_cv_os_cray+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4661. /* end confdefs.h. */
  4662. #if defined CRAY && ! defined CRAY2
  4663. webecray
  4664. #else
  4665. wenotbecray
  4666. #endif
  4667. _ACEOF
  4668. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4669. $EGREP "webecray" >/dev/null 2>&1; then :
  4670. ac_cv_os_cray=yes
  4671. else
  4672. ac_cv_os_cray=no
  4673. fi
  4674. rm -f conftest*
  4675. fi
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  4677. $as_echo "$ac_cv_os_cray" >&6; }
  4678. if test $ac_cv_os_cray = yes; then
  4679. for ac_func in _getb67 GETB67 getb67; do
  4680. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4681. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4682. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4683. cat >>confdefs.h <<_ACEOF
  4684. #define CRAY_STACKSEG_END $ac_func
  4685. _ACEOF
  4686. break
  4687. fi
  4688. done
  4689. fi
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  4691. $as_echo_n "checking stack direction for C alloca... " >&6; }
  4692. if ${ac_cv_c_stack_direction+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test "$cross_compiling" = yes; then :
  4696. ac_cv_c_stack_direction=0
  4697. else
  4698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4699. /* end confdefs.h. */
  4700. $ac_includes_default
  4701. int
  4702. find_stack_direction (int *addr, int depth)
  4703. {
  4704. int dir, dummy = 0;
  4705. if (! addr)
  4706. addr = &dummy;
  4707. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  4708. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  4709. return dir + dummy;
  4710. }
  4711. int
  4712. main (int argc, char **argv)
  4713. {
  4714. return find_stack_direction (0, argc + !argv + 20) < 0;
  4715. }
  4716. _ACEOF
  4717. if ac_fn_c_try_run "$LINENO"; then :
  4718. ac_cv_c_stack_direction=1
  4719. else
  4720. ac_cv_c_stack_direction=-1
  4721. fi
  4722. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4723. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4724. fi
  4725. fi
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  4727. $as_echo "$ac_cv_c_stack_direction" >&6; }
  4728. cat >>confdefs.h <<_ACEOF
  4729. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4730. _ACEOF
  4731. fi
  4732. for ac_header in mm_malloc.h
  4733. do :
  4734. ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
  4735. if test "x$ac_cv_header_mm_malloc_h" = xyes; then :
  4736. cat >>confdefs.h <<_ACEOF
  4737. #define HAVE_MM_MALLOC_H 1
  4738. _ACEOF
  4739. else
  4740. as_fn_error $? "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
  4741. fi
  4742. done
  4743. for ac_func in __secure_getenv secure_getenv
  4744. do :
  4745. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4746. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4747. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4748. cat >>confdefs.h <<_ACEOF
  4749. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4750. _ACEOF
  4751. fi
  4752. done
  4753. # Get target configure.
  4754. . ${srcdir}/configure.tgt
  4755. if test -n "$UNSUPPORTED"; then
  4756. as_fn_error $? "Configuration ${target} is unsupported" "$LINENO" 5
  4757. fi
  4758. if test "${multilib}" = "yes"; then
  4759. multilib_arg="--enable-multilib"
  4760. else
  4761. multilib_arg=
  4762. fi
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  4764. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  4765. # Check whether --enable-version-specific-runtime-libs was given.
  4766. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  4767. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  4768. yes) enable_version_specific_runtime_libs=yes ;;
  4769. no) enable_version_specific_runtime_libs=no ;;
  4770. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  4771. esac
  4772. else
  4773. enable_version_specific_runtime_libs=no
  4774. fi
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  4776. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  4777. # Make sure liboffloadmic is enabled
  4778. case "$enable_liboffloadmic" in
  4779. host | target)
  4780. ;;
  4781. *)
  4782. as_fn_error $? "Liboffloadmic is disabled" "$LINENO" 5 ;;
  4783. esac
  4784. if test x"$enable_liboffloadmic" = xhost; then
  4785. LIBOFFLOADMIC_HOST_TRUE=
  4786. LIBOFFLOADMIC_HOST_FALSE='#'
  4787. else
  4788. LIBOFFLOADMIC_HOST_TRUE='#'
  4789. LIBOFFLOADMIC_HOST_FALSE=
  4790. fi
  4791. # Check whether --with-toolexeclibdir was given.
  4792. if test "${with_toolexeclibdir+set}" = set; then :
  4793. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  4794. /)
  4795. ;;
  4796. */)
  4797. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  4798. ;;
  4799. esac
  4800. else
  4801. with_toolexeclibdir=no
  4802. fi
  4803. # Calculate toolexeclibdir.
  4804. # Also toolexecdir, though it's only used in toolexeclibdir.
  4805. case ${enable_version_specific_runtime_libs} in
  4806. yes)
  4807. # Need the gcc compiler version to know where to install libraries
  4808. # and header files if --enable-version-specific-runtime-libs option
  4809. # is selected.
  4810. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4811. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4812. ;;
  4813. no)
  4814. if test -n "$with_cross_host" &&
  4815. test x"$with_cross_host" != x"no"; then
  4816. # Install a library built with a cross compiler in tooldir, not libdir.
  4817. toolexecdir='$(exec_prefix)/$(target_alias)'
  4818. case ${with_toolexeclibdir} in
  4819. no)
  4820. toolexeclibdir='$(toolexecdir)/lib'
  4821. ;;
  4822. *)
  4823. toolexeclibdir=${with_toolexeclibdir}
  4824. ;;
  4825. esac
  4826. else
  4827. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4828. toolexeclibdir='$(libdir)'
  4829. fi
  4830. multi_os_directory=`$CC -print-multi-os-directory`
  4831. case $multi_os_directory in
  4832. .) ;; # Avoid trailing /.
  4833. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4834. esac
  4835. ;;
  4836. esac
  4837. enable_dlopen=yes
  4838. case `pwd` in
  4839. *\ * | *\ *)
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4841. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4842. esac
  4843. macro_version='2.2.7a'
  4844. macro_revision='1.3134'
  4845. ltmain="$ac_aux_dir/ltmain.sh"
  4846. # Backslashify metacharacters that are still active within
  4847. # double-quoted strings.
  4848. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4849. # Same as above, but do not quote variable references.
  4850. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4851. # Sed substitution to delay expansion of an escaped shell variable in a
  4852. # double_quote_subst'ed string.
  4853. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4854. # Sed substitution to delay expansion of an escaped single quote.
  4855. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4856. # Sed substitution to avoid accidental globbing in evaled expressions
  4857. no_glob_subst='s/\*/\\\*/g'
  4858. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4859. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4860. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4862. $as_echo_n "checking how to print strings... " >&6; }
  4863. # Test print first, because it will be a builtin if present.
  4864. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4865. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4866. ECHO='print -r --'
  4867. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4868. ECHO='printf %s\n'
  4869. else
  4870. # Use this function as a fallback that always works.
  4871. func_fallback_echo ()
  4872. {
  4873. eval 'cat <<_LTECHO_EOF
  4874. $1
  4875. _LTECHO_EOF'
  4876. }
  4877. ECHO='func_fallback_echo'
  4878. fi
  4879. # func_echo_all arg...
  4880. # Invoke $ECHO with all args, space-separated.
  4881. func_echo_all ()
  4882. {
  4883. $ECHO ""
  4884. }
  4885. case "$ECHO" in
  4886. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4887. $as_echo "printf" >&6; } ;;
  4888. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4889. $as_echo "print -r" >&6; } ;;
  4890. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4891. $as_echo "cat" >&6; } ;;
  4892. esac
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4894. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4895. if ${ac_cv_path_SED+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4899. for ac_i in 1 2 3 4 5 6 7; do
  4900. ac_script="$ac_script$as_nl$ac_script"
  4901. done
  4902. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4903. { ac_script=; unset ac_script;}
  4904. if test -z "$SED"; then
  4905. ac_path_SED_found=false
  4906. # Loop through the user's path and test for each of PROGNAME-LIST
  4907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4908. for as_dir in $PATH
  4909. do
  4910. IFS=$as_save_IFS
  4911. test -z "$as_dir" && as_dir=.
  4912. for ac_prog in sed gsed; do
  4913. for ac_exec_ext in '' $ac_executable_extensions; do
  4914. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4915. as_fn_executable_p "$ac_path_SED" || continue
  4916. # Check for GNU ac_path_SED and select it if it is found.
  4917. # Check for GNU $ac_path_SED
  4918. case `"$ac_path_SED" --version 2>&1` in
  4919. *GNU*)
  4920. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4921. *)
  4922. ac_count=0
  4923. $as_echo_n 0123456789 >"conftest.in"
  4924. while :
  4925. do
  4926. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4927. mv "conftest.tmp" "conftest.in"
  4928. cp "conftest.in" "conftest.nl"
  4929. $as_echo '' >> "conftest.nl"
  4930. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4931. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4932. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4933. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4934. # Best one so far, save it but keep looking for a better one
  4935. ac_cv_path_SED="$ac_path_SED"
  4936. ac_path_SED_max=$ac_count
  4937. fi
  4938. # 10*(2^10) chars as input seems more than enough
  4939. test $ac_count -gt 10 && break
  4940. done
  4941. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4942. esac
  4943. $ac_path_SED_found && break 3
  4944. done
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. if test -z "$ac_cv_path_SED"; then
  4949. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4950. fi
  4951. else
  4952. ac_cv_path_SED=$SED
  4953. fi
  4954. fi
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4956. $as_echo "$ac_cv_path_SED" >&6; }
  4957. SED="$ac_cv_path_SED"
  4958. rm -f conftest.sed
  4959. test -z "$SED" && SED=sed
  4960. Xsed="$SED -e 1s/^X//"
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4962. $as_echo_n "checking for fgrep... " >&6; }
  4963. if ${ac_cv_path_FGREP+:} false; then :
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4967. then ac_cv_path_FGREP="$GREP -F"
  4968. else
  4969. if test -z "$FGREP"; then
  4970. ac_path_FGREP_found=false
  4971. # Loop through the user's path and test for each of PROGNAME-LIST
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4974. do
  4975. IFS=$as_save_IFS
  4976. test -z "$as_dir" && as_dir=.
  4977. for ac_prog in fgrep; do
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4980. as_fn_executable_p "$ac_path_FGREP" || continue
  4981. # Check for GNU ac_path_FGREP and select it if it is found.
  4982. # Check for GNU $ac_path_FGREP
  4983. case `"$ac_path_FGREP" --version 2>&1` in
  4984. *GNU*)
  4985. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4986. *)
  4987. ac_count=0
  4988. $as_echo_n 0123456789 >"conftest.in"
  4989. while :
  4990. do
  4991. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4992. mv "conftest.tmp" "conftest.in"
  4993. cp "conftest.in" "conftest.nl"
  4994. $as_echo 'FGREP' >> "conftest.nl"
  4995. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4996. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4997. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4998. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4999. # Best one so far, save it but keep looking for a better one
  5000. ac_cv_path_FGREP="$ac_path_FGREP"
  5001. ac_path_FGREP_max=$ac_count
  5002. fi
  5003. # 10*(2^10) chars as input seems more than enough
  5004. test $ac_count -gt 10 && break
  5005. done
  5006. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5007. esac
  5008. $ac_path_FGREP_found && break 3
  5009. done
  5010. done
  5011. done
  5012. IFS=$as_save_IFS
  5013. if test -z "$ac_cv_path_FGREP"; then
  5014. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5015. fi
  5016. else
  5017. ac_cv_path_FGREP=$FGREP
  5018. fi
  5019. fi
  5020. fi
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5022. $as_echo "$ac_cv_path_FGREP" >&6; }
  5023. FGREP="$ac_cv_path_FGREP"
  5024. test -z "$GREP" && GREP=grep
  5025. # Check whether --with-gnu-ld was given.
  5026. if test "${with_gnu_ld+set}" = set; then :
  5027. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5028. else
  5029. with_gnu_ld=no
  5030. fi
  5031. ac_prog=ld
  5032. if test "$GCC" = yes; then
  5033. # Check if gcc -print-prog-name=ld gives a path.
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5035. $as_echo_n "checking for ld used by $CC... " >&6; }
  5036. case $host in
  5037. *-*-mingw*)
  5038. # gcc leaves a trailing carriage return which upsets mingw
  5039. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5040. *)
  5041. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5042. esac
  5043. case $ac_prog in
  5044. # Accept absolute paths.
  5045. [\\/]* | ?:[\\/]*)
  5046. re_direlt='/[^/][^/]*/\.\./'
  5047. # Canonicalize the pathname of ld
  5048. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5049. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5050. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5051. done
  5052. test -z "$LD" && LD="$ac_prog"
  5053. ;;
  5054. "")
  5055. # If it fails, then pretend we aren't using GCC.
  5056. ac_prog=ld
  5057. ;;
  5058. *)
  5059. # If it is relative, then search for the first ld in PATH.
  5060. with_gnu_ld=unknown
  5061. ;;
  5062. esac
  5063. elif test "$with_gnu_ld" = yes; then
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5065. $as_echo_n "checking for GNU ld... " >&6; }
  5066. else
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5068. $as_echo_n "checking for non-GNU ld... " >&6; }
  5069. fi
  5070. if ${lt_cv_path_LD+:} false; then :
  5071. $as_echo_n "(cached) " >&6
  5072. else
  5073. if test -z "$LD"; then
  5074. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5075. for ac_dir in $PATH; do
  5076. IFS="$lt_save_ifs"
  5077. test -z "$ac_dir" && ac_dir=.
  5078. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5079. lt_cv_path_LD="$ac_dir/$ac_prog"
  5080. # Check to see if the program is GNU ld. I'd rather use --version,
  5081. # but apparently some variants of GNU ld only accept -v.
  5082. # Break only if it was the GNU/non-GNU ld that we prefer.
  5083. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5084. *GNU* | *'with BFD'*)
  5085. test "$with_gnu_ld" != no && break
  5086. ;;
  5087. *)
  5088. test "$with_gnu_ld" != yes && break
  5089. ;;
  5090. esac
  5091. fi
  5092. done
  5093. IFS="$lt_save_ifs"
  5094. else
  5095. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5096. fi
  5097. fi
  5098. LD="$lt_cv_path_LD"
  5099. if test -n "$LD"; then
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5101. $as_echo "$LD" >&6; }
  5102. else
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5104. $as_echo "no" >&6; }
  5105. fi
  5106. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5108. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5109. if ${lt_cv_prog_gnu_ld+:} false; then :
  5110. $as_echo_n "(cached) " >&6
  5111. else
  5112. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5113. case `$LD -v 2>&1 </dev/null` in
  5114. *GNU* | *'with BFD'*)
  5115. lt_cv_prog_gnu_ld=yes
  5116. ;;
  5117. *)
  5118. lt_cv_prog_gnu_ld=no
  5119. ;;
  5120. esac
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5123. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5124. with_gnu_ld=$lt_cv_prog_gnu_ld
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5126. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5127. if ${lt_cv_path_NM+:} false; then :
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. if test -n "$NM"; then
  5131. # Let the user override the test.
  5132. lt_cv_path_NM="$NM"
  5133. else
  5134. lt_nm_to_check="${ac_tool_prefix}nm"
  5135. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5136. lt_nm_to_check="$lt_nm_to_check nm"
  5137. fi
  5138. for lt_tmp_nm in $lt_nm_to_check; do
  5139. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5140. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5141. IFS="$lt_save_ifs"
  5142. test -z "$ac_dir" && ac_dir=.
  5143. tmp_nm="$ac_dir/$lt_tmp_nm"
  5144. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5145. # Check to see if the nm accepts a BSD-compat flag.
  5146. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5147. # nm: unknown option "B" ignored
  5148. # Tru64's nm complains that /dev/null is an invalid object file
  5149. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5150. */dev/null* | *'Invalid file or object type'*)
  5151. lt_cv_path_NM="$tmp_nm -B"
  5152. break
  5153. ;;
  5154. *)
  5155. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5156. */dev/null*)
  5157. lt_cv_path_NM="$tmp_nm -p"
  5158. break
  5159. ;;
  5160. *)
  5161. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5162. continue # so that we can try to find one that supports BSD flags
  5163. ;;
  5164. esac
  5165. ;;
  5166. esac
  5167. fi
  5168. done
  5169. IFS="$lt_save_ifs"
  5170. done
  5171. : ${lt_cv_path_NM=no}
  5172. fi
  5173. fi
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5175. $as_echo "$lt_cv_path_NM" >&6; }
  5176. if test "$lt_cv_path_NM" != "no"; then
  5177. NM="$lt_cv_path_NM"
  5178. else
  5179. # Didn't find any BSD compatible name lister, look for dumpbin.
  5180. if test -n "$DUMPBIN"; then :
  5181. # Let the user override the test.
  5182. else
  5183. if test -n "$ac_tool_prefix"; then
  5184. for ac_prog in dumpbin "link -dump"
  5185. do
  5186. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5187. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5189. $as_echo_n "checking for $ac_word... " >&6; }
  5190. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5191. $as_echo_n "(cached) " >&6
  5192. else
  5193. if test -n "$DUMPBIN"; then
  5194. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5195. else
  5196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5197. for as_dir in $PATH
  5198. do
  5199. IFS=$as_save_IFS
  5200. test -z "$as_dir" && as_dir=.
  5201. for ac_exec_ext in '' $ac_executable_extensions; do
  5202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5203. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5205. break 2
  5206. fi
  5207. done
  5208. done
  5209. IFS=$as_save_IFS
  5210. fi
  5211. fi
  5212. DUMPBIN=$ac_cv_prog_DUMPBIN
  5213. if test -n "$DUMPBIN"; then
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5215. $as_echo "$DUMPBIN" >&6; }
  5216. else
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5218. $as_echo "no" >&6; }
  5219. fi
  5220. test -n "$DUMPBIN" && break
  5221. done
  5222. fi
  5223. if test -z "$DUMPBIN"; then
  5224. ac_ct_DUMPBIN=$DUMPBIN
  5225. for ac_prog in dumpbin "link -dump"
  5226. do
  5227. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5228. set dummy $ac_prog; ac_word=$2
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5230. $as_echo_n "checking for $ac_word... " >&6; }
  5231. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5232. $as_echo_n "(cached) " >&6
  5233. else
  5234. if test -n "$ac_ct_DUMPBIN"; then
  5235. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5236. else
  5237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5238. for as_dir in $PATH
  5239. do
  5240. IFS=$as_save_IFS
  5241. test -z "$as_dir" && as_dir=.
  5242. for ac_exec_ext in '' $ac_executable_extensions; do
  5243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5244. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5246. break 2
  5247. fi
  5248. done
  5249. done
  5250. IFS=$as_save_IFS
  5251. fi
  5252. fi
  5253. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5254. if test -n "$ac_ct_DUMPBIN"; then
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5256. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5257. else
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5259. $as_echo "no" >&6; }
  5260. fi
  5261. test -n "$ac_ct_DUMPBIN" && break
  5262. done
  5263. if test "x$ac_ct_DUMPBIN" = x; then
  5264. DUMPBIN=":"
  5265. else
  5266. case $cross_compiling:$ac_tool_warned in
  5267. yes:)
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5270. ac_tool_warned=yes ;;
  5271. esac
  5272. DUMPBIN=$ac_ct_DUMPBIN
  5273. fi
  5274. fi
  5275. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5276. *COFF*)
  5277. DUMPBIN="$DUMPBIN -symbols"
  5278. ;;
  5279. *)
  5280. DUMPBIN=:
  5281. ;;
  5282. esac
  5283. fi
  5284. if test "$DUMPBIN" != ":"; then
  5285. NM="$DUMPBIN"
  5286. fi
  5287. fi
  5288. test -z "$NM" && NM=nm
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5290. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5291. if ${lt_cv_nm_interface+:} false; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. lt_cv_nm_interface="BSD nm"
  5295. echo "int some_variable = 0;" > conftest.$ac_ext
  5296. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5297. (eval "$ac_compile" 2>conftest.err)
  5298. cat conftest.err >&5
  5299. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5300. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5301. cat conftest.err >&5
  5302. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5303. cat conftest.out >&5
  5304. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5305. lt_cv_nm_interface="MS dumpbin"
  5306. fi
  5307. rm -f conftest*
  5308. fi
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5310. $as_echo "$lt_cv_nm_interface" >&6; }
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5312. $as_echo_n "checking whether ln -s works... " >&6; }
  5313. LN_S=$as_ln_s
  5314. if test "$LN_S" = "ln -s"; then
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5316. $as_echo "yes" >&6; }
  5317. else
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5319. $as_echo "no, using $LN_S" >&6; }
  5320. fi
  5321. # find the maximum length of command line arguments
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5323. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5324. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. i=0
  5328. teststring="ABCD"
  5329. case $build_os in
  5330. msdosdjgpp*)
  5331. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5332. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5333. # during glob expansion). Even if it were fixed, the result of this
  5334. # check would be larger than it should be.
  5335. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5336. ;;
  5337. gnu*)
  5338. # Under GNU Hurd, this test is not required because there is
  5339. # no limit to the length of command line arguments.
  5340. # Libtool will interpret -1 as no limit whatsoever
  5341. lt_cv_sys_max_cmd_len=-1;
  5342. ;;
  5343. cygwin* | mingw* | cegcc*)
  5344. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5345. # about 5 minutes as the teststring grows exponentially.
  5346. # Worse, since 9x/ME are not pre-emptively multitasking,
  5347. # you end up with a "frozen" computer, even though with patience
  5348. # the test eventually succeeds (with a max line length of 256k).
  5349. # Instead, let's just punt: use the minimum linelength reported by
  5350. # all of the supported platforms: 8192 (on NT/2K/XP).
  5351. lt_cv_sys_max_cmd_len=8192;
  5352. ;;
  5353. mint*)
  5354. # On MiNT this can take a long time and run out of memory.
  5355. lt_cv_sys_max_cmd_len=8192;
  5356. ;;
  5357. amigaos*)
  5358. # On AmigaOS with pdksh, this test takes hours, literally.
  5359. # So we just punt and use a minimum line length of 8192.
  5360. lt_cv_sys_max_cmd_len=8192;
  5361. ;;
  5362. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5363. # This has been around since 386BSD, at least. Likely further.
  5364. if test -x /sbin/sysctl; then
  5365. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5366. elif test -x /usr/sbin/sysctl; then
  5367. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5368. else
  5369. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5370. fi
  5371. # And add a safety zone
  5372. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5373. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5374. ;;
  5375. interix*)
  5376. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5377. lt_cv_sys_max_cmd_len=196608
  5378. ;;
  5379. osf*)
  5380. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5381. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5382. # nice to cause kernel panics so lets avoid the loop below.
  5383. # First set a reasonable default.
  5384. lt_cv_sys_max_cmd_len=16384
  5385. #
  5386. if test -x /sbin/sysconfig; then
  5387. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5388. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5389. esac
  5390. fi
  5391. ;;
  5392. sco3.2v5*)
  5393. lt_cv_sys_max_cmd_len=102400
  5394. ;;
  5395. sysv5* | sco5v6* | sysv4.2uw2*)
  5396. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5397. if test -n "$kargmax"; then
  5398. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5399. else
  5400. lt_cv_sys_max_cmd_len=32768
  5401. fi
  5402. ;;
  5403. *)
  5404. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5405. if test -n "$lt_cv_sys_max_cmd_len"; then
  5406. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5407. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5408. else
  5409. # Make teststring a little bigger before we do anything with it.
  5410. # a 1K string should be a reasonable start.
  5411. for i in 1 2 3 4 5 6 7 8 ; do
  5412. teststring=$teststring$teststring
  5413. done
  5414. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5415. # If test is not a shell built-in, we'll probably end up computing a
  5416. # maximum length that is only half of the actual maximum length, but
  5417. # we can't tell.
  5418. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5419. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5420. test $i != 17 # 1/2 MB should be enough
  5421. do
  5422. i=`expr $i + 1`
  5423. teststring=$teststring$teststring
  5424. done
  5425. # Only check the string length outside the loop.
  5426. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5427. teststring=
  5428. # Add a significant safety factor because C++ compilers can tack on
  5429. # massive amounts of additional arguments before passing them to the
  5430. # linker. It appears as though 1/2 is a usable value.
  5431. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5432. fi
  5433. ;;
  5434. esac
  5435. fi
  5436. if test -n $lt_cv_sys_max_cmd_len ; then
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5438. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5439. else
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5441. $as_echo "none" >&6; }
  5442. fi
  5443. max_cmd_len=$lt_cv_sys_max_cmd_len
  5444. : ${CP="cp -f"}
  5445. : ${MV="mv -f"}
  5446. : ${RM="rm -f"}
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5448. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5449. # Try some XSI features
  5450. xsi_shell=no
  5451. ( _lt_dummy="a/b/c"
  5452. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5453. = c,a/b,, \
  5454. && eval 'test $(( 1 + 1 )) -eq 2 \
  5455. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5456. && xsi_shell=yes
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5458. $as_echo "$xsi_shell" >&6; }
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5460. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5461. lt_shell_append=no
  5462. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5463. >/dev/null 2>&1 \
  5464. && lt_shell_append=yes
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5466. $as_echo "$lt_shell_append" >&6; }
  5467. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5468. lt_unset=unset
  5469. else
  5470. lt_unset=false
  5471. fi
  5472. # test EBCDIC or ASCII
  5473. case `echo X|tr X '\101'` in
  5474. A) # ASCII based system
  5475. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5476. lt_SP2NL='tr \040 \012'
  5477. lt_NL2SP='tr \015\012 \040\040'
  5478. ;;
  5479. *) # EBCDIC based system
  5480. lt_SP2NL='tr \100 \n'
  5481. lt_NL2SP='tr \r\n \100\100'
  5482. ;;
  5483. esac
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5485. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5486. if ${lt_cv_ld_reload_flag+:} false; then :
  5487. $as_echo_n "(cached) " >&6
  5488. else
  5489. lt_cv_ld_reload_flag='-r'
  5490. fi
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5492. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5493. reload_flag=$lt_cv_ld_reload_flag
  5494. case $reload_flag in
  5495. "" | " "*) ;;
  5496. *) reload_flag=" $reload_flag" ;;
  5497. esac
  5498. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5499. case $host_os in
  5500. darwin*)
  5501. if test "$GCC" = yes; then
  5502. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5503. else
  5504. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5505. fi
  5506. ;;
  5507. esac
  5508. if test -n "$ac_tool_prefix"; then
  5509. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5510. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5512. $as_echo_n "checking for $ac_word... " >&6; }
  5513. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5514. $as_echo_n "(cached) " >&6
  5515. else
  5516. if test -n "$OBJDUMP"; then
  5517. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5518. else
  5519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5520. for as_dir in $PATH
  5521. do
  5522. IFS=$as_save_IFS
  5523. test -z "$as_dir" && as_dir=.
  5524. for ac_exec_ext in '' $ac_executable_extensions; do
  5525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5526. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5528. break 2
  5529. fi
  5530. done
  5531. done
  5532. IFS=$as_save_IFS
  5533. fi
  5534. fi
  5535. OBJDUMP=$ac_cv_prog_OBJDUMP
  5536. if test -n "$OBJDUMP"; then
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5538. $as_echo "$OBJDUMP" >&6; }
  5539. else
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5541. $as_echo "no" >&6; }
  5542. fi
  5543. fi
  5544. if test -z "$ac_cv_prog_OBJDUMP"; then
  5545. ac_ct_OBJDUMP=$OBJDUMP
  5546. # Extract the first word of "objdump", so it can be a program name with args.
  5547. set dummy objdump; ac_word=$2
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5549. $as_echo_n "checking for $ac_word... " >&6; }
  5550. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5551. $as_echo_n "(cached) " >&6
  5552. else
  5553. if test -n "$ac_ct_OBJDUMP"; then
  5554. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5555. else
  5556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5557. for as_dir in $PATH
  5558. do
  5559. IFS=$as_save_IFS
  5560. test -z "$as_dir" && as_dir=.
  5561. for ac_exec_ext in '' $ac_executable_extensions; do
  5562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5563. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5565. break 2
  5566. fi
  5567. done
  5568. done
  5569. IFS=$as_save_IFS
  5570. fi
  5571. fi
  5572. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5573. if test -n "$ac_ct_OBJDUMP"; then
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5575. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5576. else
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5578. $as_echo "no" >&6; }
  5579. fi
  5580. if test "x$ac_ct_OBJDUMP" = x; then
  5581. OBJDUMP="false"
  5582. else
  5583. case $cross_compiling:$ac_tool_warned in
  5584. yes:)
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5587. ac_tool_warned=yes ;;
  5588. esac
  5589. OBJDUMP=$ac_ct_OBJDUMP
  5590. fi
  5591. else
  5592. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5593. fi
  5594. test -z "$OBJDUMP" && OBJDUMP=objdump
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5596. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5597. if ${lt_cv_deplibs_check_method+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5601. lt_cv_file_magic_test_file=
  5602. lt_cv_deplibs_check_method='unknown'
  5603. # Need to set the preceding variable on all platforms that support
  5604. # interlibrary dependencies.
  5605. # 'none' -- dependencies not supported.
  5606. # `unknown' -- same as none, but documents that we really don't know.
  5607. # 'pass_all' -- all dependencies passed with no checks.
  5608. # 'test_compile' -- check by making test program.
  5609. # 'file_magic [[regex]]' -- check by looking for files in library path
  5610. # which responds to the $file_magic_cmd with a given extended regex.
  5611. # If you have `file' or equivalent on your system and you're not sure
  5612. # whether `pass_all' will *always* work, you probably want this one.
  5613. case $host_os in
  5614. aix[4-9]*)
  5615. lt_cv_deplibs_check_method=pass_all
  5616. ;;
  5617. beos*)
  5618. lt_cv_deplibs_check_method=pass_all
  5619. ;;
  5620. bsdi[45]*)
  5621. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5622. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5623. lt_cv_file_magic_test_file=/shlib/libc.so
  5624. ;;
  5625. cygwin*)
  5626. # func_win32_libid is a shell function defined in ltmain.sh
  5627. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5628. lt_cv_file_magic_cmd='func_win32_libid'
  5629. ;;
  5630. mingw* | pw32*)
  5631. # Base MSYS/MinGW do not provide the 'file' command needed by
  5632. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5633. # unless we find 'file', for example because we are cross-compiling.
  5634. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5635. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5636. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5637. lt_cv_file_magic_cmd='func_win32_libid'
  5638. else
  5639. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5640. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5641. fi
  5642. ;;
  5643. cegcc*)
  5644. # use the weaker test based on 'objdump'. See mingw*.
  5645. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5646. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5647. ;;
  5648. darwin* | rhapsody*)
  5649. lt_cv_deplibs_check_method=pass_all
  5650. ;;
  5651. freebsd* | dragonfly*)
  5652. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5653. case $host_cpu in
  5654. i*86 )
  5655. # Not sure whether the presence of OpenBSD here was a mistake.
  5656. # Let's accept both of them until this is cleared up.
  5657. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5658. lt_cv_file_magic_cmd=/usr/bin/file
  5659. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5660. ;;
  5661. esac
  5662. else
  5663. lt_cv_deplibs_check_method=pass_all
  5664. fi
  5665. ;;
  5666. gnu*)
  5667. lt_cv_deplibs_check_method=pass_all
  5668. ;;
  5669. haiku*)
  5670. lt_cv_deplibs_check_method=pass_all
  5671. ;;
  5672. hpux10.20* | hpux11*)
  5673. lt_cv_file_magic_cmd=/usr/bin/file
  5674. case $host_cpu in
  5675. ia64*)
  5676. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5677. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5678. ;;
  5679. hppa*64*)
  5680. 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]'
  5681. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5682. ;;
  5683. *)
  5684. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5685. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5686. ;;
  5687. esac
  5688. ;;
  5689. interix[3-9]*)
  5690. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5691. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5692. ;;
  5693. irix5* | irix6* | nonstopux*)
  5694. case $LD in
  5695. *-32|*"-32 ") libmagic=32-bit;;
  5696. *-n32|*"-n32 ") libmagic=N32;;
  5697. *-64|*"-64 ") libmagic=64-bit;;
  5698. *) libmagic=never-match;;
  5699. esac
  5700. lt_cv_deplibs_check_method=pass_all
  5701. ;;
  5702. # This must be Linux ELF.
  5703. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5704. lt_cv_deplibs_check_method=pass_all
  5705. ;;
  5706. netbsd*)
  5707. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5708. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5709. else
  5710. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5711. fi
  5712. ;;
  5713. newos6*)
  5714. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5715. lt_cv_file_magic_cmd=/usr/bin/file
  5716. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5717. ;;
  5718. *nto* | *qnx*)
  5719. lt_cv_deplibs_check_method=pass_all
  5720. ;;
  5721. openbsd*)
  5722. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5723. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5724. else
  5725. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5726. fi
  5727. ;;
  5728. osf3* | osf4* | osf5*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. rdos*)
  5732. lt_cv_deplibs_check_method=pass_all
  5733. ;;
  5734. solaris*)
  5735. lt_cv_deplibs_check_method=pass_all
  5736. ;;
  5737. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5738. lt_cv_deplibs_check_method=pass_all
  5739. ;;
  5740. sysv4 | sysv4.3*)
  5741. case $host_vendor in
  5742. motorola)
  5743. 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]'
  5744. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5745. ;;
  5746. ncr)
  5747. lt_cv_deplibs_check_method=pass_all
  5748. ;;
  5749. sequent)
  5750. lt_cv_file_magic_cmd='/bin/file'
  5751. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5752. ;;
  5753. sni)
  5754. lt_cv_file_magic_cmd='/bin/file'
  5755. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5756. lt_cv_file_magic_test_file=/lib/libc.so
  5757. ;;
  5758. siemens)
  5759. lt_cv_deplibs_check_method=pass_all
  5760. ;;
  5761. pc)
  5762. lt_cv_deplibs_check_method=pass_all
  5763. ;;
  5764. esac
  5765. ;;
  5766. tpf*)
  5767. lt_cv_deplibs_check_method=pass_all
  5768. ;;
  5769. esac
  5770. fi
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5772. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5773. file_magic_cmd=$lt_cv_file_magic_cmd
  5774. deplibs_check_method=$lt_cv_deplibs_check_method
  5775. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5776. if test -n "$ac_tool_prefix"; then
  5777. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5778. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if ${ac_cv_prog_AR+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$AR"; then
  5785. ac_cv_prog_AR="$AR" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. AR=$ac_cv_prog_AR
  5804. if test -n "$AR"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5806. $as_echo "$AR" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. fi
  5812. if test -z "$ac_cv_prog_AR"; then
  5813. ac_ct_AR=$AR
  5814. # Extract the first word of "ar", so it can be a program name with args.
  5815. set dummy ar; ac_word=$2
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. $as_echo_n "checking for $ac_word... " >&6; }
  5818. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. if test -n "$ac_ct_AR"; then
  5822. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. test -z "$as_dir" && as_dir=.
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_AR="ar"
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5841. if test -n "$ac_ct_AR"; then
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5843. $as_echo "$ac_ct_AR" >&6; }
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_AR" = x; then
  5849. AR="false"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. AR=$ac_ct_AR
  5858. fi
  5859. else
  5860. AR="$ac_cv_prog_AR"
  5861. fi
  5862. test -z "$AR" && AR=ar
  5863. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5864. if test -n "$ac_tool_prefix"; then
  5865. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5866. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5868. $as_echo_n "checking for $ac_word... " >&6; }
  5869. if ${ac_cv_prog_STRIP+:} false; then :
  5870. $as_echo_n "(cached) " >&6
  5871. else
  5872. if test -n "$STRIP"; then
  5873. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5874. else
  5875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5876. for as_dir in $PATH
  5877. do
  5878. IFS=$as_save_IFS
  5879. test -z "$as_dir" && as_dir=.
  5880. for ac_exec_ext in '' $ac_executable_extensions; do
  5881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5882. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5884. break 2
  5885. fi
  5886. done
  5887. done
  5888. IFS=$as_save_IFS
  5889. fi
  5890. fi
  5891. STRIP=$ac_cv_prog_STRIP
  5892. if test -n "$STRIP"; then
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5894. $as_echo "$STRIP" >&6; }
  5895. else
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5897. $as_echo "no" >&6; }
  5898. fi
  5899. fi
  5900. if test -z "$ac_cv_prog_STRIP"; then
  5901. ac_ct_STRIP=$STRIP
  5902. # Extract the first word of "strip", so it can be a program name with args.
  5903. set dummy strip; ac_word=$2
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5905. $as_echo_n "checking for $ac_word... " >&6; }
  5906. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. if test -n "$ac_ct_STRIP"; then
  5910. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5911. else
  5912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5913. for as_dir in $PATH
  5914. do
  5915. IFS=$as_save_IFS
  5916. test -z "$as_dir" && as_dir=.
  5917. for ac_exec_ext in '' $ac_executable_extensions; do
  5918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5919. ac_cv_prog_ac_ct_STRIP="strip"
  5920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5921. break 2
  5922. fi
  5923. done
  5924. done
  5925. IFS=$as_save_IFS
  5926. fi
  5927. fi
  5928. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5929. if test -n "$ac_ct_STRIP"; then
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5931. $as_echo "$ac_ct_STRIP" >&6; }
  5932. else
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5934. $as_echo "no" >&6; }
  5935. fi
  5936. if test "x$ac_ct_STRIP" = x; then
  5937. STRIP=":"
  5938. else
  5939. case $cross_compiling:$ac_tool_warned in
  5940. yes:)
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5943. ac_tool_warned=yes ;;
  5944. esac
  5945. STRIP=$ac_ct_STRIP
  5946. fi
  5947. else
  5948. STRIP="$ac_cv_prog_STRIP"
  5949. fi
  5950. test -z "$STRIP" && STRIP=:
  5951. if test -n "$ac_tool_prefix"; then
  5952. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5953. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_RANLIB+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$RANLIB"; then
  5960. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. RANLIB=$ac_cv_prog_RANLIB
  5979. if test -n "$RANLIB"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5981. $as_echo "$RANLIB" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. fi
  5987. if test -z "$ac_cv_prog_RANLIB"; then
  5988. ac_ct_RANLIB=$RANLIB
  5989. # Extract the first word of "ranlib", so it can be a program name with args.
  5990. set dummy ranlib; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$ac_ct_RANLIB"; then
  5997. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6016. if test -n "$ac_ct_RANLIB"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6018. $as_echo "$ac_ct_RANLIB" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. if test "x$ac_ct_RANLIB" = x; then
  6024. RANLIB=":"
  6025. else
  6026. case $cross_compiling:$ac_tool_warned in
  6027. yes:)
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6030. ac_tool_warned=yes ;;
  6031. esac
  6032. RANLIB=$ac_ct_RANLIB
  6033. fi
  6034. else
  6035. RANLIB="$ac_cv_prog_RANLIB"
  6036. fi
  6037. test -z "$RANLIB" && RANLIB=:
  6038. # Determine commands to create old-style static archives.
  6039. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6040. old_postinstall_cmds='chmod 644 $oldlib'
  6041. old_postuninstall_cmds=
  6042. if test -n "$RANLIB"; then
  6043. case $host_os in
  6044. openbsd*)
  6045. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6046. ;;
  6047. *)
  6048. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6049. ;;
  6050. esac
  6051. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6052. fi
  6053. case $host_os in
  6054. darwin*)
  6055. lock_old_archive_extraction=yes ;;
  6056. *)
  6057. lock_old_archive_extraction=no ;;
  6058. esac
  6059. # If no C compiler was specified, use CC.
  6060. LTCC=${LTCC-"$CC"}
  6061. # If no C compiler flags were specified, use CFLAGS.
  6062. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6063. # Allow CC to be a program name with arguments.
  6064. compiler=$CC
  6065. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6067. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6068. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. # These are sane defaults that work on at least a few old systems.
  6072. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6073. # Character class describing NM global symbol codes.
  6074. symcode='[BCDEGRST]'
  6075. # Regexp to match symbols that can be accessed directly from C.
  6076. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6077. # Define system-specific variables.
  6078. case $host_os in
  6079. aix*)
  6080. symcode='[BCDT]'
  6081. ;;
  6082. cygwin* | mingw* | pw32* | cegcc*)
  6083. symcode='[ABCDGISTW]'
  6084. ;;
  6085. hpux*)
  6086. if test "$host_cpu" = ia64; then
  6087. symcode='[ABCDEGRST]'
  6088. fi
  6089. ;;
  6090. irix* | nonstopux*)
  6091. symcode='[BCDEGRST]'
  6092. ;;
  6093. osf*)
  6094. symcode='[BCDEGQRST]'
  6095. ;;
  6096. solaris*)
  6097. symcode='[BDRT]'
  6098. ;;
  6099. sco3.2v5*)
  6100. symcode='[DT]'
  6101. ;;
  6102. sysv4.2uw2*)
  6103. symcode='[DT]'
  6104. ;;
  6105. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6106. symcode='[ABDT]'
  6107. ;;
  6108. sysv4)
  6109. symcode='[DFNSTU]'
  6110. ;;
  6111. esac
  6112. # If we're using GNU nm, then use its standard symbol codes.
  6113. case `$NM -V 2>&1` in
  6114. *GNU* | *'with BFD'*)
  6115. symcode='[ABCDGIRSTW]' ;;
  6116. esac
  6117. # Transform an extracted symbol line into a proper C declaration.
  6118. # Some systems (esp. on ia64) link data and code symbols differently,
  6119. # so use this general approach.
  6120. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6121. # Transform an extracted symbol line into symbol name and symbol address
  6122. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6123. 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'"
  6124. # Handle CRLF in mingw tool chain
  6125. opt_cr=
  6126. case $build_os in
  6127. mingw*)
  6128. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6129. ;;
  6130. esac
  6131. # Try without a prefix underscore, then with it.
  6132. for ac_symprfx in "" "_"; do
  6133. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6134. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6135. # Write the raw and C identifiers.
  6136. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6137. # Fake it for dumpbin and say T for any non-static function
  6138. # and D for any global variable.
  6139. # Also find C++ and __fastcall symbols from MSVC++,
  6140. # which start with @ or ?.
  6141. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6142. " {last_section=section; section=\$ 3};"\
  6143. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6144. " \$ 0!~/External *\|/{next};"\
  6145. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6146. " {if(hide[section]) next};"\
  6147. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6148. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6149. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6150. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6151. " ' prfx=^$ac_symprfx"
  6152. else
  6153. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6154. fi
  6155. # Check to see that the pipe works correctly.
  6156. pipe_works=no
  6157. rm -f conftest*
  6158. cat > conftest.$ac_ext <<_LT_EOF
  6159. #ifdef __cplusplus
  6160. extern "C" {
  6161. #endif
  6162. char nm_test_var;
  6163. void nm_test_func(void);
  6164. void nm_test_func(void){}
  6165. #ifdef __cplusplus
  6166. }
  6167. #endif
  6168. int main(){nm_test_var='a';nm_test_func();return(0);}
  6169. _LT_EOF
  6170. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6171. (eval $ac_compile) 2>&5
  6172. ac_status=$?
  6173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6174. test $ac_status = 0; }; then
  6175. # Now try to grab the symbols.
  6176. nlist=conftest.nm
  6177. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6178. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6179. ac_status=$?
  6180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6181. test $ac_status = 0; } && test -s "$nlist"; then
  6182. # Try sorting and uniquifying the output.
  6183. if sort "$nlist" | uniq > "$nlist"T; then
  6184. mv -f "$nlist"T "$nlist"
  6185. else
  6186. rm -f "$nlist"T
  6187. fi
  6188. # Make sure that we snagged all the symbols we need.
  6189. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6190. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6191. cat <<_LT_EOF > conftest.$ac_ext
  6192. #ifdef __cplusplus
  6193. extern "C" {
  6194. #endif
  6195. _LT_EOF
  6196. # Now generate the symbol file.
  6197. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6198. cat <<_LT_EOF >> conftest.$ac_ext
  6199. /* The mapping between symbol names and symbols. */
  6200. const struct {
  6201. const char *name;
  6202. void *address;
  6203. }
  6204. lt__PROGRAM__LTX_preloaded_symbols[] =
  6205. {
  6206. { "@PROGRAM@", (void *) 0 },
  6207. _LT_EOF
  6208. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6209. cat <<\_LT_EOF >> conftest.$ac_ext
  6210. {0, (void *) 0}
  6211. };
  6212. /* This works around a problem in FreeBSD linker */
  6213. #ifdef FREEBSD_WORKAROUND
  6214. static const void *lt_preloaded_setup() {
  6215. return lt__PROGRAM__LTX_preloaded_symbols;
  6216. }
  6217. #endif
  6218. #ifdef __cplusplus
  6219. }
  6220. #endif
  6221. _LT_EOF
  6222. # Now try linking the two files.
  6223. mv conftest.$ac_objext conftstm.$ac_objext
  6224. lt_save_LIBS="$LIBS"
  6225. lt_save_CFLAGS="$CFLAGS"
  6226. LIBS="conftstm.$ac_objext"
  6227. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6228. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6229. (eval $ac_link) 2>&5
  6230. ac_status=$?
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6232. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6233. pipe_works=yes
  6234. fi
  6235. LIBS="$lt_save_LIBS"
  6236. CFLAGS="$lt_save_CFLAGS"
  6237. else
  6238. echo "cannot find nm_test_func in $nlist" >&5
  6239. fi
  6240. else
  6241. echo "cannot find nm_test_var in $nlist" >&5
  6242. fi
  6243. else
  6244. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6245. fi
  6246. else
  6247. echo "$progname: failed program was:" >&5
  6248. cat conftest.$ac_ext >&5
  6249. fi
  6250. rm -rf conftest* conftst*
  6251. # Do not use the global_symbol_pipe unless it works.
  6252. if test "$pipe_works" = yes; then
  6253. break
  6254. else
  6255. lt_cv_sys_global_symbol_pipe=
  6256. fi
  6257. done
  6258. fi
  6259. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6260. lt_cv_sys_global_symbol_to_cdecl=
  6261. fi
  6262. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6264. $as_echo "failed" >&6; }
  6265. else
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6267. $as_echo "ok" >&6; }
  6268. fi
  6269. # Check whether --enable-libtool-lock was given.
  6270. if test "${enable_libtool_lock+set}" = set; then :
  6271. enableval=$enable_libtool_lock;
  6272. fi
  6273. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6274. # Some flags need to be propagated to the compiler or linker for good
  6275. # libtool support.
  6276. case $host in
  6277. ia64-*-hpux*)
  6278. # Find out which ABI we are using.
  6279. echo 'int i;' > conftest.$ac_ext
  6280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6281. (eval $ac_compile) 2>&5
  6282. ac_status=$?
  6283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6284. test $ac_status = 0; }; then
  6285. case `/usr/bin/file conftest.$ac_objext` in
  6286. *ELF-32*)
  6287. HPUX_IA64_MODE="32"
  6288. ;;
  6289. *ELF-64*)
  6290. HPUX_IA64_MODE="64"
  6291. ;;
  6292. esac
  6293. fi
  6294. rm -rf conftest*
  6295. ;;
  6296. *-*-irix6*)
  6297. # Find out which ABI we are using.
  6298. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6299. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6300. (eval $ac_compile) 2>&5
  6301. ac_status=$?
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6303. test $ac_status = 0; }; then
  6304. if test "$lt_cv_prog_gnu_ld" = yes; then
  6305. case `/usr/bin/file conftest.$ac_objext` in
  6306. *32-bit*)
  6307. LD="${LD-ld} -melf32bsmip"
  6308. ;;
  6309. *N32*)
  6310. LD="${LD-ld} -melf32bmipn32"
  6311. ;;
  6312. *64-bit*)
  6313. LD="${LD-ld} -melf64bmip"
  6314. ;;
  6315. esac
  6316. else
  6317. case `/usr/bin/file conftest.$ac_objext` in
  6318. *32-bit*)
  6319. LD="${LD-ld} -32"
  6320. ;;
  6321. *N32*)
  6322. LD="${LD-ld} -n32"
  6323. ;;
  6324. *64-bit*)
  6325. LD="${LD-ld} -64"
  6326. ;;
  6327. esac
  6328. fi
  6329. fi
  6330. rm -rf conftest*
  6331. ;;
  6332. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6333. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6334. # Find out which ABI we are using.
  6335. echo 'int i;' > conftest.$ac_ext
  6336. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6337. (eval $ac_compile) 2>&5
  6338. ac_status=$?
  6339. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6340. test $ac_status = 0; }; then
  6341. case `/usr/bin/file conftest.o` in
  6342. *32-bit*)
  6343. case $host in
  6344. x86_64-*kfreebsd*-gnu)
  6345. LD="${LD-ld} -m elf_i386_fbsd"
  6346. ;;
  6347. x86_64-*linux*)
  6348. case `/usr/bin/file conftest.o` in
  6349. *x86-64*)
  6350. LD="${LD-ld} -m elf32_x86_64"
  6351. ;;
  6352. *)
  6353. LD="${LD-ld} -m elf_i386"
  6354. ;;
  6355. esac
  6356. ;;
  6357. powerpc64le-*linux*)
  6358. LD="${LD-ld} -m elf32lppclinux"
  6359. ;;
  6360. powerpc64-*linux*)
  6361. LD="${LD-ld} -m elf32ppclinux"
  6362. ;;
  6363. s390x-*linux*)
  6364. LD="${LD-ld} -m elf_s390"
  6365. ;;
  6366. sparc64-*linux*)
  6367. LD="${LD-ld} -m elf32_sparc"
  6368. ;;
  6369. esac
  6370. ;;
  6371. *64-bit*)
  6372. case $host in
  6373. x86_64-*kfreebsd*-gnu)
  6374. LD="${LD-ld} -m elf_x86_64_fbsd"
  6375. ;;
  6376. x86_64-*linux*)
  6377. LD="${LD-ld} -m elf_x86_64"
  6378. ;;
  6379. powerpcle-*linux*)
  6380. LD="${LD-ld} -m elf64lppc"
  6381. ;;
  6382. powerpc-*linux*)
  6383. LD="${LD-ld} -m elf64ppc"
  6384. ;;
  6385. s390*-*linux*|s390*-*tpf*)
  6386. LD="${LD-ld} -m elf64_s390"
  6387. ;;
  6388. sparc*-*linux*)
  6389. LD="${LD-ld} -m elf64_sparc"
  6390. ;;
  6391. esac
  6392. ;;
  6393. esac
  6394. fi
  6395. rm -rf conftest*
  6396. ;;
  6397. *-*-sco3.2v5*)
  6398. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6399. SAVE_CFLAGS="$CFLAGS"
  6400. CFLAGS="$CFLAGS -belf"
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6402. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6403. if ${lt_cv_cc_needs_belf+:} false; then :
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. ac_ext=c
  6407. ac_cpp='$CPP $CPPFLAGS'
  6408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6412. /* end confdefs.h. */
  6413. int
  6414. main ()
  6415. {
  6416. ;
  6417. return 0;
  6418. }
  6419. _ACEOF
  6420. if ac_fn_c_try_link "$LINENO"; then :
  6421. lt_cv_cc_needs_belf=yes
  6422. else
  6423. lt_cv_cc_needs_belf=no
  6424. fi
  6425. rm -f core conftest.err conftest.$ac_objext \
  6426. conftest$ac_exeext conftest.$ac_ext
  6427. ac_ext=c
  6428. ac_cpp='$CPP $CPPFLAGS'
  6429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6432. fi
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6434. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6435. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6436. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6437. CFLAGS="$SAVE_CFLAGS"
  6438. fi
  6439. ;;
  6440. sparc*-*solaris*)
  6441. # Find out which ABI we are using.
  6442. echo 'int i;' > conftest.$ac_ext
  6443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6444. (eval $ac_compile) 2>&5
  6445. ac_status=$?
  6446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6447. test $ac_status = 0; }; then
  6448. case `/usr/bin/file conftest.o` in
  6449. *64-bit*)
  6450. case $lt_cv_prog_gnu_ld in
  6451. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6452. *)
  6453. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6454. LD="${LD-ld} -64"
  6455. fi
  6456. ;;
  6457. esac
  6458. ;;
  6459. esac
  6460. fi
  6461. rm -rf conftest*
  6462. ;;
  6463. esac
  6464. need_locks="$enable_libtool_lock"
  6465. case $host_os in
  6466. rhapsody* | darwin*)
  6467. if test -n "$ac_tool_prefix"; then
  6468. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6469. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6471. $as_echo_n "checking for $ac_word... " >&6; }
  6472. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. if test -n "$DSYMUTIL"; then
  6476. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6477. else
  6478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6479. for as_dir in $PATH
  6480. do
  6481. IFS=$as_save_IFS
  6482. test -z "$as_dir" && as_dir=.
  6483. for ac_exec_ext in '' $ac_executable_extensions; do
  6484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6485. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6487. break 2
  6488. fi
  6489. done
  6490. done
  6491. IFS=$as_save_IFS
  6492. fi
  6493. fi
  6494. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6495. if test -n "$DSYMUTIL"; then
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6497. $as_echo "$DSYMUTIL" >&6; }
  6498. else
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6500. $as_echo "no" >&6; }
  6501. fi
  6502. fi
  6503. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6504. ac_ct_DSYMUTIL=$DSYMUTIL
  6505. # Extract the first word of "dsymutil", so it can be a program name with args.
  6506. set dummy dsymutil; ac_word=$2
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6508. $as_echo_n "checking for $ac_word... " >&6; }
  6509. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. if test -n "$ac_ct_DSYMUTIL"; then
  6513. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6514. else
  6515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6516. for as_dir in $PATH
  6517. do
  6518. IFS=$as_save_IFS
  6519. test -z "$as_dir" && as_dir=.
  6520. for ac_exec_ext in '' $ac_executable_extensions; do
  6521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6522. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6524. break 2
  6525. fi
  6526. done
  6527. done
  6528. IFS=$as_save_IFS
  6529. fi
  6530. fi
  6531. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6532. if test -n "$ac_ct_DSYMUTIL"; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6534. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6535. else
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6537. $as_echo "no" >&6; }
  6538. fi
  6539. if test "x$ac_ct_DSYMUTIL" = x; then
  6540. DSYMUTIL=":"
  6541. else
  6542. case $cross_compiling:$ac_tool_warned in
  6543. yes:)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6546. ac_tool_warned=yes ;;
  6547. esac
  6548. DSYMUTIL=$ac_ct_DSYMUTIL
  6549. fi
  6550. else
  6551. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6552. fi
  6553. if test -n "$ac_tool_prefix"; then
  6554. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6555. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6557. $as_echo_n "checking for $ac_word... " >&6; }
  6558. if ${ac_cv_prog_NMEDIT+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. if test -n "$NMEDIT"; then
  6562. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6563. else
  6564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6565. for as_dir in $PATH
  6566. do
  6567. IFS=$as_save_IFS
  6568. test -z "$as_dir" && as_dir=.
  6569. for ac_exec_ext in '' $ac_executable_extensions; do
  6570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6571. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6573. break 2
  6574. fi
  6575. done
  6576. done
  6577. IFS=$as_save_IFS
  6578. fi
  6579. fi
  6580. NMEDIT=$ac_cv_prog_NMEDIT
  6581. if test -n "$NMEDIT"; then
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6583. $as_echo "$NMEDIT" >&6; }
  6584. else
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6586. $as_echo "no" >&6; }
  6587. fi
  6588. fi
  6589. if test -z "$ac_cv_prog_NMEDIT"; then
  6590. ac_ct_NMEDIT=$NMEDIT
  6591. # Extract the first word of "nmedit", so it can be a program name with args.
  6592. set dummy nmedit; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$ac_ct_NMEDIT"; then
  6599. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6608. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6618. if test -n "$ac_ct_NMEDIT"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6620. $as_echo "$ac_ct_NMEDIT" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. if test "x$ac_ct_NMEDIT" = x; then
  6626. NMEDIT=":"
  6627. else
  6628. case $cross_compiling:$ac_tool_warned in
  6629. yes:)
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6632. ac_tool_warned=yes ;;
  6633. esac
  6634. NMEDIT=$ac_ct_NMEDIT
  6635. fi
  6636. else
  6637. NMEDIT="$ac_cv_prog_NMEDIT"
  6638. fi
  6639. if test -n "$ac_tool_prefix"; then
  6640. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6641. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. $as_echo_n "checking for $ac_word... " >&6; }
  6644. if ${ac_cv_prog_LIPO+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. if test -n "$LIPO"; then
  6648. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6649. else
  6650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6651. for as_dir in $PATH
  6652. do
  6653. IFS=$as_save_IFS
  6654. test -z "$as_dir" && as_dir=.
  6655. for ac_exec_ext in '' $ac_executable_extensions; do
  6656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6657. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6659. break 2
  6660. fi
  6661. done
  6662. done
  6663. IFS=$as_save_IFS
  6664. fi
  6665. fi
  6666. LIPO=$ac_cv_prog_LIPO
  6667. if test -n "$LIPO"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6669. $as_echo "$LIPO" >&6; }
  6670. else
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6672. $as_echo "no" >&6; }
  6673. fi
  6674. fi
  6675. if test -z "$ac_cv_prog_LIPO"; then
  6676. ac_ct_LIPO=$LIPO
  6677. # Extract the first word of "lipo", so it can be a program name with args.
  6678. set dummy lipo; ac_word=$2
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6680. $as_echo_n "checking for $ac_word... " >&6; }
  6681. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6682. $as_echo_n "(cached) " >&6
  6683. else
  6684. if test -n "$ac_ct_LIPO"; then
  6685. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6686. else
  6687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6688. for as_dir in $PATH
  6689. do
  6690. IFS=$as_save_IFS
  6691. test -z "$as_dir" && as_dir=.
  6692. for ac_exec_ext in '' $ac_executable_extensions; do
  6693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6694. ac_cv_prog_ac_ct_LIPO="lipo"
  6695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6696. break 2
  6697. fi
  6698. done
  6699. done
  6700. IFS=$as_save_IFS
  6701. fi
  6702. fi
  6703. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6704. if test -n "$ac_ct_LIPO"; then
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6706. $as_echo "$ac_ct_LIPO" >&6; }
  6707. else
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6709. $as_echo "no" >&6; }
  6710. fi
  6711. if test "x$ac_ct_LIPO" = x; then
  6712. LIPO=":"
  6713. else
  6714. case $cross_compiling:$ac_tool_warned in
  6715. yes:)
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6718. ac_tool_warned=yes ;;
  6719. esac
  6720. LIPO=$ac_ct_LIPO
  6721. fi
  6722. else
  6723. LIPO="$ac_cv_prog_LIPO"
  6724. fi
  6725. if test -n "$ac_tool_prefix"; then
  6726. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6727. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6729. $as_echo_n "checking for $ac_word... " >&6; }
  6730. if ${ac_cv_prog_OTOOL+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. if test -n "$OTOOL"; then
  6734. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6735. else
  6736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6737. for as_dir in $PATH
  6738. do
  6739. IFS=$as_save_IFS
  6740. test -z "$as_dir" && as_dir=.
  6741. for ac_exec_ext in '' $ac_executable_extensions; do
  6742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6743. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6745. break 2
  6746. fi
  6747. done
  6748. done
  6749. IFS=$as_save_IFS
  6750. fi
  6751. fi
  6752. OTOOL=$ac_cv_prog_OTOOL
  6753. if test -n "$OTOOL"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6755. $as_echo "$OTOOL" >&6; }
  6756. else
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. $as_echo "no" >&6; }
  6759. fi
  6760. fi
  6761. if test -z "$ac_cv_prog_OTOOL"; then
  6762. ac_ct_OTOOL=$OTOOL
  6763. # Extract the first word of "otool", so it can be a program name with args.
  6764. set dummy otool; ac_word=$2
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6766. $as_echo_n "checking for $ac_word... " >&6; }
  6767. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. if test -n "$ac_ct_OTOOL"; then
  6771. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6772. else
  6773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6774. for as_dir in $PATH
  6775. do
  6776. IFS=$as_save_IFS
  6777. test -z "$as_dir" && as_dir=.
  6778. for ac_exec_ext in '' $ac_executable_extensions; do
  6779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6780. ac_cv_prog_ac_ct_OTOOL="otool"
  6781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6782. break 2
  6783. fi
  6784. done
  6785. done
  6786. IFS=$as_save_IFS
  6787. fi
  6788. fi
  6789. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6790. if test -n "$ac_ct_OTOOL"; then
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6792. $as_echo "$ac_ct_OTOOL" >&6; }
  6793. else
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6795. $as_echo "no" >&6; }
  6796. fi
  6797. if test "x$ac_ct_OTOOL" = x; then
  6798. OTOOL=":"
  6799. else
  6800. case $cross_compiling:$ac_tool_warned in
  6801. yes:)
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6804. ac_tool_warned=yes ;;
  6805. esac
  6806. OTOOL=$ac_ct_OTOOL
  6807. fi
  6808. else
  6809. OTOOL="$ac_cv_prog_OTOOL"
  6810. fi
  6811. if test -n "$ac_tool_prefix"; then
  6812. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6813. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6815. $as_echo_n "checking for $ac_word... " >&6; }
  6816. if ${ac_cv_prog_OTOOL64+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. if test -n "$OTOOL64"; then
  6820. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6821. else
  6822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6823. for as_dir in $PATH
  6824. do
  6825. IFS=$as_save_IFS
  6826. test -z "$as_dir" && as_dir=.
  6827. for ac_exec_ext in '' $ac_executable_extensions; do
  6828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6829. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6831. break 2
  6832. fi
  6833. done
  6834. done
  6835. IFS=$as_save_IFS
  6836. fi
  6837. fi
  6838. OTOOL64=$ac_cv_prog_OTOOL64
  6839. if test -n "$OTOOL64"; then
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6841. $as_echo "$OTOOL64" >&6; }
  6842. else
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6844. $as_echo "no" >&6; }
  6845. fi
  6846. fi
  6847. if test -z "$ac_cv_prog_OTOOL64"; then
  6848. ac_ct_OTOOL64=$OTOOL64
  6849. # Extract the first word of "otool64", so it can be a program name with args.
  6850. set dummy otool64; ac_word=$2
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6852. $as_echo_n "checking for $ac_word... " >&6; }
  6853. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6854. $as_echo_n "(cached) " >&6
  6855. else
  6856. if test -n "$ac_ct_OTOOL64"; then
  6857. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6858. else
  6859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6860. for as_dir in $PATH
  6861. do
  6862. IFS=$as_save_IFS
  6863. test -z "$as_dir" && as_dir=.
  6864. for ac_exec_ext in '' $ac_executable_extensions; do
  6865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6866. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6868. break 2
  6869. fi
  6870. done
  6871. done
  6872. IFS=$as_save_IFS
  6873. fi
  6874. fi
  6875. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6876. if test -n "$ac_ct_OTOOL64"; then
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6878. $as_echo "$ac_ct_OTOOL64" >&6; }
  6879. else
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6881. $as_echo "no" >&6; }
  6882. fi
  6883. if test "x$ac_ct_OTOOL64" = x; then
  6884. OTOOL64=":"
  6885. else
  6886. case $cross_compiling:$ac_tool_warned in
  6887. yes:)
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6889. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6890. ac_tool_warned=yes ;;
  6891. esac
  6892. OTOOL64=$ac_ct_OTOOL64
  6893. fi
  6894. else
  6895. OTOOL64="$ac_cv_prog_OTOOL64"
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6898. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6899. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. lt_cv_apple_cc_single_mod=no
  6903. if test -z "${LT_MULTI_MODULE}"; then
  6904. # By default we will add the -single_module flag. You can override
  6905. # by either setting the environment variable LT_MULTI_MODULE
  6906. # non-empty at configure time, or by adding -multi_module to the
  6907. # link flags.
  6908. rm -rf libconftest.dylib*
  6909. echo "int foo(void){return 1;}" > conftest.c
  6910. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6911. -dynamiclib -Wl,-single_module conftest.c" >&5
  6912. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6913. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6914. _lt_result=$?
  6915. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6916. lt_cv_apple_cc_single_mod=yes
  6917. else
  6918. cat conftest.err >&5
  6919. fi
  6920. rm -rf libconftest.dylib*
  6921. rm -f conftest.*
  6922. fi
  6923. fi
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6925. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6927. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6928. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6929. $as_echo_n "(cached) " >&6
  6930. else
  6931. lt_cv_ld_exported_symbols_list=no
  6932. save_LDFLAGS=$LDFLAGS
  6933. echo "_main" > conftest.sym
  6934. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6936. /* end confdefs.h. */
  6937. int
  6938. main ()
  6939. {
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. if ac_fn_c_try_link "$LINENO"; then :
  6945. lt_cv_ld_exported_symbols_list=yes
  6946. else
  6947. lt_cv_ld_exported_symbols_list=no
  6948. fi
  6949. rm -f core conftest.err conftest.$ac_objext \
  6950. conftest$ac_exeext conftest.$ac_ext
  6951. LDFLAGS="$save_LDFLAGS"
  6952. fi
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6954. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6956. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6957. if ${lt_cv_ld_force_load+:} false; then :
  6958. $as_echo_n "(cached) " >&6
  6959. else
  6960. lt_cv_ld_force_load=no
  6961. cat > conftest.c << _LT_EOF
  6962. int forced_loaded() { return 2;}
  6963. _LT_EOF
  6964. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6965. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6966. echo "$AR cru libconftest.a conftest.o" >&5
  6967. $AR cru libconftest.a conftest.o 2>&5
  6968. cat > conftest.c << _LT_EOF
  6969. int main() { return 0;}
  6970. _LT_EOF
  6971. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6972. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6973. _lt_result=$?
  6974. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6975. lt_cv_ld_force_load=yes
  6976. else
  6977. cat conftest.err >&5
  6978. fi
  6979. rm -f conftest.err libconftest.a conftest conftest.c
  6980. rm -rf conftest.dSYM
  6981. fi
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6983. $as_echo "$lt_cv_ld_force_load" >&6; }
  6984. case $host_os in
  6985. rhapsody* | darwin1.[012])
  6986. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6987. darwin1.*)
  6988. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6989. darwin*) # darwin 5.x on
  6990. # if running on 10.5 or later, the deployment target defaults
  6991. # to the OS version, if on x86, and 10.4, the deployment
  6992. # target defaults to 10.4. Don't you love it?
  6993. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6994. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6995. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6996. 10.[012][,.]*)
  6997. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6998. 10.*)
  6999. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7000. esac
  7001. ;;
  7002. esac
  7003. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7004. _lt_dar_single_mod='$single_module'
  7005. fi
  7006. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7007. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7008. else
  7009. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7010. fi
  7011. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7012. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7013. else
  7014. _lt_dsymutil=
  7015. fi
  7016. ;;
  7017. esac
  7018. for ac_header in dlfcn.h
  7019. do :
  7020. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7021. "
  7022. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7023. cat >>confdefs.h <<_ACEOF
  7024. #define HAVE_DLFCN_H 1
  7025. _ACEOF
  7026. fi
  7027. done
  7028. # Set options
  7029. enable_win32_dll=no
  7030. # Check whether --enable-shared was given.
  7031. if test "${enable_shared+set}" = set; then :
  7032. enableval=$enable_shared; p=${PACKAGE-default}
  7033. case $enableval in
  7034. yes) enable_shared=yes ;;
  7035. no) enable_shared=no ;;
  7036. *)
  7037. enable_shared=no
  7038. # Look at the argument we got. We use all the common list separators.
  7039. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7040. for pkg in $enableval; do
  7041. IFS="$lt_save_ifs"
  7042. if test "X$pkg" = "X$p"; then
  7043. enable_shared=yes
  7044. fi
  7045. done
  7046. IFS="$lt_save_ifs"
  7047. ;;
  7048. esac
  7049. else
  7050. enable_shared=yes
  7051. fi
  7052. # Check whether --enable-static was given.
  7053. if test "${enable_static+set}" = set; then :
  7054. enableval=$enable_static; p=${PACKAGE-default}
  7055. case $enableval in
  7056. yes) enable_static=yes ;;
  7057. no) enable_static=no ;;
  7058. *)
  7059. enable_static=no
  7060. # Look at the argument we got. We use all the common list separators.
  7061. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7062. for pkg in $enableval; do
  7063. IFS="$lt_save_ifs"
  7064. if test "X$pkg" = "X$p"; then
  7065. enable_static=yes
  7066. fi
  7067. done
  7068. IFS="$lt_save_ifs"
  7069. ;;
  7070. esac
  7071. else
  7072. enable_static=yes
  7073. fi
  7074. # Check whether --with-pic was given.
  7075. if test "${with_pic+set}" = set; then :
  7076. withval=$with_pic; pic_mode="$withval"
  7077. else
  7078. pic_mode=default
  7079. fi
  7080. test -z "$pic_mode" && pic_mode=default
  7081. # Check whether --enable-fast-install was given.
  7082. if test "${enable_fast_install+set}" = set; then :
  7083. enableval=$enable_fast_install; p=${PACKAGE-default}
  7084. case $enableval in
  7085. yes) enable_fast_install=yes ;;
  7086. no) enable_fast_install=no ;;
  7087. *)
  7088. enable_fast_install=no
  7089. # Look at the argument we got. We use all the common list separators.
  7090. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7091. for pkg in $enableval; do
  7092. IFS="$lt_save_ifs"
  7093. if test "X$pkg" = "X$p"; then
  7094. enable_fast_install=yes
  7095. fi
  7096. done
  7097. IFS="$lt_save_ifs"
  7098. ;;
  7099. esac
  7100. else
  7101. enable_fast_install=yes
  7102. fi
  7103. # This can be used to rebuild libtool when needed
  7104. LIBTOOL_DEPS="$ltmain"
  7105. # Always use our own libtool.
  7106. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7107. test -z "$LN_S" && LN_S="ln -s"
  7108. if test -n "${ZSH_VERSION+set}" ; then
  7109. setopt NO_GLOB_SUBST
  7110. fi
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7112. $as_echo_n "checking for objdir... " >&6; }
  7113. if ${lt_cv_objdir+:} false; then :
  7114. $as_echo_n "(cached) " >&6
  7115. else
  7116. rm -f .libs 2>/dev/null
  7117. mkdir .libs 2>/dev/null
  7118. if test -d .libs; then
  7119. lt_cv_objdir=.libs
  7120. else
  7121. # MS-DOS does not allow filenames that begin with a dot.
  7122. lt_cv_objdir=_libs
  7123. fi
  7124. rmdir .libs 2>/dev/null
  7125. fi
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7127. $as_echo "$lt_cv_objdir" >&6; }
  7128. objdir=$lt_cv_objdir
  7129. cat >>confdefs.h <<_ACEOF
  7130. #define LT_OBJDIR "$lt_cv_objdir/"
  7131. _ACEOF
  7132. case $host_os in
  7133. aix3*)
  7134. # AIX sometimes has problems with the GCC collect2 program. For some
  7135. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7136. # vanish in a puff of smoke.
  7137. if test "X${COLLECT_NAMES+set}" != Xset; then
  7138. COLLECT_NAMES=
  7139. export COLLECT_NAMES
  7140. fi
  7141. ;;
  7142. esac
  7143. # Global variables:
  7144. ofile=libtool
  7145. can_build_shared=yes
  7146. # All known linkers require a `.a' archive for static linking (except MSVC,
  7147. # which needs '.lib').
  7148. libext=a
  7149. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7150. old_CC="$CC"
  7151. old_CFLAGS="$CFLAGS"
  7152. # Set sane defaults for various variables
  7153. test -z "$CC" && CC=cc
  7154. test -z "$LTCC" && LTCC=$CC
  7155. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7156. test -z "$LD" && LD=ld
  7157. test -z "$ac_objext" && ac_objext=o
  7158. for cc_temp in $compiler""; do
  7159. case $cc_temp in
  7160. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7161. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7162. \-*) ;;
  7163. *) break;;
  7164. esac
  7165. done
  7166. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7167. # Only perform the check for file, if the check method requires it
  7168. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7169. case $deplibs_check_method in
  7170. file_magic*)
  7171. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7173. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7174. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. case $MAGIC_CMD in
  7178. [\\/*] | ?:[\\/]*)
  7179. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7180. ;;
  7181. *)
  7182. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7183. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7184. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7185. for ac_dir in $ac_dummy; do
  7186. IFS="$lt_save_ifs"
  7187. test -z "$ac_dir" && ac_dir=.
  7188. if test -f $ac_dir/${ac_tool_prefix}file; then
  7189. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7190. if test -n "$file_magic_test_file"; then
  7191. case $deplibs_check_method in
  7192. "file_magic "*)
  7193. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7194. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7195. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7196. $EGREP "$file_magic_regex" > /dev/null; then
  7197. :
  7198. else
  7199. cat <<_LT_EOF 1>&2
  7200. *** Warning: the command libtool uses to detect shared libraries,
  7201. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7202. *** The result is that libtool may fail to recognize shared libraries
  7203. *** as such. This will affect the creation of libtool libraries that
  7204. *** depend on shared libraries, but programs linked with such libtool
  7205. *** libraries will work regardless of this problem. Nevertheless, you
  7206. *** may want to report the problem to your system manager and/or to
  7207. *** bug-libtool@gnu.org
  7208. _LT_EOF
  7209. fi ;;
  7210. esac
  7211. fi
  7212. break
  7213. fi
  7214. done
  7215. IFS="$lt_save_ifs"
  7216. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7217. ;;
  7218. esac
  7219. fi
  7220. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7221. if test -n "$MAGIC_CMD"; then
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7223. $as_echo "$MAGIC_CMD" >&6; }
  7224. else
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7226. $as_echo "no" >&6; }
  7227. fi
  7228. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7229. if test -n "$ac_tool_prefix"; then
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7231. $as_echo_n "checking for file... " >&6; }
  7232. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7233. $as_echo_n "(cached) " >&6
  7234. else
  7235. case $MAGIC_CMD in
  7236. [\\/*] | ?:[\\/]*)
  7237. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7238. ;;
  7239. *)
  7240. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7241. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7242. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7243. for ac_dir in $ac_dummy; do
  7244. IFS="$lt_save_ifs"
  7245. test -z "$ac_dir" && ac_dir=.
  7246. if test -f $ac_dir/file; then
  7247. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7248. if test -n "$file_magic_test_file"; then
  7249. case $deplibs_check_method in
  7250. "file_magic "*)
  7251. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7252. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7253. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7254. $EGREP "$file_magic_regex" > /dev/null; then
  7255. :
  7256. else
  7257. cat <<_LT_EOF 1>&2
  7258. *** Warning: the command libtool uses to detect shared libraries,
  7259. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7260. *** The result is that libtool may fail to recognize shared libraries
  7261. *** as such. This will affect the creation of libtool libraries that
  7262. *** depend on shared libraries, but programs linked with such libtool
  7263. *** libraries will work regardless of this problem. Nevertheless, you
  7264. *** may want to report the problem to your system manager and/or to
  7265. *** bug-libtool@gnu.org
  7266. _LT_EOF
  7267. fi ;;
  7268. esac
  7269. fi
  7270. break
  7271. fi
  7272. done
  7273. IFS="$lt_save_ifs"
  7274. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7275. ;;
  7276. esac
  7277. fi
  7278. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7279. if test -n "$MAGIC_CMD"; then
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7281. $as_echo "$MAGIC_CMD" >&6; }
  7282. else
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7284. $as_echo "no" >&6; }
  7285. fi
  7286. else
  7287. MAGIC_CMD=:
  7288. fi
  7289. fi
  7290. fi
  7291. ;;
  7292. esac
  7293. # Use C for the default configuration in the libtool script
  7294. lt_save_CC="$CC"
  7295. ac_ext=c
  7296. ac_cpp='$CPP $CPPFLAGS'
  7297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7300. # Source file extension for C test sources.
  7301. ac_ext=c
  7302. # Object file extension for compiled C test sources.
  7303. objext=o
  7304. objext=$objext
  7305. # Code to be used in simple compile tests
  7306. lt_simple_compile_test_code="int some_variable = 0;"
  7307. # Code to be used in simple link tests
  7308. lt_simple_link_test_code='int main(){return(0);}'
  7309. # If no C compiler was specified, use CC.
  7310. LTCC=${LTCC-"$CC"}
  7311. # If no C compiler flags were specified, use CFLAGS.
  7312. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7313. # Allow CC to be a program name with arguments.
  7314. compiler=$CC
  7315. # Save the default compiler, since it gets overwritten when the other
  7316. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7317. compiler_DEFAULT=$CC
  7318. # save warnings/boilerplate of simple test code
  7319. ac_outfile=conftest.$ac_objext
  7320. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7321. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7322. _lt_compiler_boilerplate=`cat conftest.err`
  7323. $RM conftest*
  7324. ac_outfile=conftest.$ac_objext
  7325. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7326. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7327. _lt_linker_boilerplate=`cat conftest.err`
  7328. $RM -r conftest*
  7329. ## CAVEAT EMPTOR:
  7330. ## There is no encapsulation within the following macros, do not change
  7331. ## the running order or otherwise move them around unless you know exactly
  7332. ## what you are doing...
  7333. if test -n "$compiler"; then
  7334. lt_prog_compiler_no_builtin_flag=
  7335. if test "$GCC" = yes; then
  7336. case $cc_basename in
  7337. nvcc*)
  7338. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7339. *)
  7340. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7341. esac
  7342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7343. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7344. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7345. $as_echo_n "(cached) " >&6
  7346. else
  7347. lt_cv_prog_compiler_rtti_exceptions=no
  7348. ac_outfile=conftest.$ac_objext
  7349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7350. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7351. # Insert the option either (1) after the last *FLAGS variable, or
  7352. # (2) before a word containing "conftest.", or (3) at the end.
  7353. # Note that $ac_compile itself does not contain backslashes and begins
  7354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7355. # The option is referenced via a variable to avoid confusing sed.
  7356. lt_compile=`echo "$ac_compile" | $SED \
  7357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7359. -e 's:$: $lt_compiler_flag:'`
  7360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7361. (eval "$lt_compile" 2>conftest.err)
  7362. ac_status=$?
  7363. cat conftest.err >&5
  7364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7365. if (exit $ac_status) && test -s "$ac_outfile"; then
  7366. # The compiler can only warn and ignore the option if not recognized
  7367. # So say no if there are warnings other than the usual output.
  7368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7369. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7370. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7371. lt_cv_prog_compiler_rtti_exceptions=yes
  7372. fi
  7373. fi
  7374. $RM conftest*
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7377. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7378. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7379. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7380. else
  7381. :
  7382. fi
  7383. fi
  7384. lt_prog_compiler_wl=
  7385. lt_prog_compiler_pic=
  7386. lt_prog_compiler_static=
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7388. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7389. if test "$GCC" = yes; then
  7390. lt_prog_compiler_wl='-Wl,'
  7391. lt_prog_compiler_static='-static'
  7392. case $host_os in
  7393. aix*)
  7394. # All AIX code is PIC.
  7395. if test "$host_cpu" = ia64; then
  7396. # AIX 5 now supports IA64 processor
  7397. lt_prog_compiler_static='-Bstatic'
  7398. fi
  7399. lt_prog_compiler_pic='-fPIC'
  7400. ;;
  7401. amigaos*)
  7402. case $host_cpu in
  7403. powerpc)
  7404. # see comment about AmigaOS4 .so support
  7405. lt_prog_compiler_pic='-fPIC'
  7406. ;;
  7407. m68k)
  7408. # FIXME: we need at least 68020 code to build shared libraries, but
  7409. # adding the `-m68020' flag to GCC prevents building anything better,
  7410. # like `-m68040'.
  7411. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7412. ;;
  7413. esac
  7414. ;;
  7415. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7416. # PIC is the default for these OSes.
  7417. ;;
  7418. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7419. # This hack is so that the source file can tell whether it is being
  7420. # built for inclusion in a dll (and should export symbols for example).
  7421. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7422. # (--disable-auto-import) libraries
  7423. lt_prog_compiler_pic='-DDLL_EXPORT'
  7424. ;;
  7425. darwin* | rhapsody*)
  7426. # PIC is the default on this platform
  7427. # Common symbols not allowed in MH_DYLIB files
  7428. lt_prog_compiler_pic='-fno-common'
  7429. ;;
  7430. haiku*)
  7431. # PIC is the default for Haiku.
  7432. # The "-static" flag exists, but is broken.
  7433. lt_prog_compiler_static=
  7434. ;;
  7435. hpux*)
  7436. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7437. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7438. # sets the default TLS model and affects inlining.
  7439. case $host_cpu in
  7440. hppa*64*)
  7441. # +Z the default
  7442. ;;
  7443. *)
  7444. lt_prog_compiler_pic='-fPIC'
  7445. ;;
  7446. esac
  7447. ;;
  7448. interix[3-9]*)
  7449. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7450. # Instead, we relocate shared libraries at runtime.
  7451. ;;
  7452. msdosdjgpp*)
  7453. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7454. # on systems that don't support them.
  7455. lt_prog_compiler_can_build_shared=no
  7456. enable_shared=no
  7457. ;;
  7458. *nto* | *qnx*)
  7459. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7460. # it will coredump.
  7461. lt_prog_compiler_pic='-fPIC -shared'
  7462. ;;
  7463. sysv4*MP*)
  7464. if test -d /usr/nec; then
  7465. lt_prog_compiler_pic=-Kconform_pic
  7466. fi
  7467. ;;
  7468. *)
  7469. lt_prog_compiler_pic='-fPIC'
  7470. ;;
  7471. esac
  7472. case $cc_basename in
  7473. nvcc*) # Cuda Compiler Driver 2.2
  7474. lt_prog_compiler_wl='-Xlinker '
  7475. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7476. ;;
  7477. esac
  7478. else
  7479. # PORTME Check for flag to pass linker flags through the system compiler.
  7480. case $host_os in
  7481. aix*)
  7482. lt_prog_compiler_wl='-Wl,'
  7483. if test "$host_cpu" = ia64; then
  7484. # AIX 5 now supports IA64 processor
  7485. lt_prog_compiler_static='-Bstatic'
  7486. else
  7487. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7488. fi
  7489. ;;
  7490. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7491. # This hack is so that the source file can tell whether it is being
  7492. # built for inclusion in a dll (and should export symbols for example).
  7493. lt_prog_compiler_pic='-DDLL_EXPORT'
  7494. ;;
  7495. hpux9* | hpux10* | hpux11*)
  7496. lt_prog_compiler_wl='-Wl,'
  7497. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7498. # not for PA HP-UX.
  7499. case $host_cpu in
  7500. hppa*64*|ia64*)
  7501. # +Z the default
  7502. ;;
  7503. *)
  7504. lt_prog_compiler_pic='+Z'
  7505. ;;
  7506. esac
  7507. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7508. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7509. ;;
  7510. irix5* | irix6* | nonstopux*)
  7511. lt_prog_compiler_wl='-Wl,'
  7512. # PIC (with -KPIC) is the default.
  7513. lt_prog_compiler_static='-non_shared'
  7514. ;;
  7515. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7516. case $cc_basename in
  7517. # old Intel for x86_64 which still supported -KPIC.
  7518. ecc*)
  7519. lt_prog_compiler_wl='-Wl,'
  7520. lt_prog_compiler_pic='-KPIC'
  7521. lt_prog_compiler_static='-static'
  7522. ;;
  7523. # icc used to be incompatible with GCC.
  7524. # ICC 10 doesn't accept -KPIC any more.
  7525. icc* | ifort*)
  7526. lt_prog_compiler_wl='-Wl,'
  7527. lt_prog_compiler_pic='-fPIC'
  7528. lt_prog_compiler_static='-static'
  7529. ;;
  7530. # Lahey Fortran 8.1.
  7531. lf95*)
  7532. lt_prog_compiler_wl='-Wl,'
  7533. lt_prog_compiler_pic='--shared'
  7534. lt_prog_compiler_static='--static'
  7535. ;;
  7536. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7537. # Portland Group compilers (*not* the Pentium gcc compiler,
  7538. # which looks to be a dead project)
  7539. lt_prog_compiler_wl='-Wl,'
  7540. lt_prog_compiler_pic='-fpic'
  7541. lt_prog_compiler_static='-Bstatic'
  7542. ;;
  7543. ccc*)
  7544. lt_prog_compiler_wl='-Wl,'
  7545. # All Alpha code is PIC.
  7546. lt_prog_compiler_static='-non_shared'
  7547. ;;
  7548. xl* | bgxl* | bgf* | mpixl*)
  7549. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7550. lt_prog_compiler_wl='-Wl,'
  7551. lt_prog_compiler_pic='-qpic'
  7552. lt_prog_compiler_static='-qstaticlink'
  7553. ;;
  7554. *)
  7555. case `$CC -V 2>&1 | sed 5q` in
  7556. *Sun\ F* | *Sun*Fortran*)
  7557. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7558. lt_prog_compiler_pic='-KPIC'
  7559. lt_prog_compiler_static='-Bstatic'
  7560. lt_prog_compiler_wl=''
  7561. ;;
  7562. *Sun\ C*)
  7563. # Sun C 5.9
  7564. lt_prog_compiler_pic='-KPIC'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. lt_prog_compiler_wl='-Wl,'
  7567. ;;
  7568. esac
  7569. ;;
  7570. esac
  7571. ;;
  7572. newsos6)
  7573. lt_prog_compiler_pic='-KPIC'
  7574. lt_prog_compiler_static='-Bstatic'
  7575. ;;
  7576. *nto* | *qnx*)
  7577. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7578. # it will coredump.
  7579. lt_prog_compiler_pic='-fPIC -shared'
  7580. ;;
  7581. osf3* | osf4* | osf5*)
  7582. lt_prog_compiler_wl='-Wl,'
  7583. # All OSF/1 code is PIC.
  7584. lt_prog_compiler_static='-non_shared'
  7585. ;;
  7586. rdos*)
  7587. lt_prog_compiler_static='-non_shared'
  7588. ;;
  7589. solaris*)
  7590. lt_prog_compiler_pic='-KPIC'
  7591. lt_prog_compiler_static='-Bstatic'
  7592. case $cc_basename in
  7593. f77* | f90* | f95*)
  7594. lt_prog_compiler_wl='-Qoption ld ';;
  7595. *)
  7596. lt_prog_compiler_wl='-Wl,';;
  7597. esac
  7598. ;;
  7599. sunos4*)
  7600. lt_prog_compiler_wl='-Qoption ld '
  7601. lt_prog_compiler_pic='-PIC'
  7602. lt_prog_compiler_static='-Bstatic'
  7603. ;;
  7604. sysv4 | sysv4.2uw2* | sysv4.3*)
  7605. lt_prog_compiler_wl='-Wl,'
  7606. lt_prog_compiler_pic='-KPIC'
  7607. lt_prog_compiler_static='-Bstatic'
  7608. ;;
  7609. sysv4*MP*)
  7610. if test -d /usr/nec ;then
  7611. lt_prog_compiler_pic='-Kconform_pic'
  7612. lt_prog_compiler_static='-Bstatic'
  7613. fi
  7614. ;;
  7615. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7616. lt_prog_compiler_wl='-Wl,'
  7617. lt_prog_compiler_pic='-KPIC'
  7618. lt_prog_compiler_static='-Bstatic'
  7619. ;;
  7620. unicos*)
  7621. lt_prog_compiler_wl='-Wl,'
  7622. lt_prog_compiler_can_build_shared=no
  7623. ;;
  7624. uts4*)
  7625. lt_prog_compiler_pic='-pic'
  7626. lt_prog_compiler_static='-Bstatic'
  7627. ;;
  7628. *)
  7629. lt_prog_compiler_can_build_shared=no
  7630. ;;
  7631. esac
  7632. fi
  7633. case $host_os in
  7634. # For platforms which do not support PIC, -DPIC is meaningless:
  7635. *djgpp*)
  7636. lt_prog_compiler_pic=
  7637. ;;
  7638. *)
  7639. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7640. ;;
  7641. esac
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7643. $as_echo "$lt_prog_compiler_pic" >&6; }
  7644. #
  7645. # Check to make sure the PIC flag actually works.
  7646. #
  7647. if test -n "$lt_prog_compiler_pic"; then
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7649. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7650. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7651. $as_echo_n "(cached) " >&6
  7652. else
  7653. lt_cv_prog_compiler_pic_works=no
  7654. ac_outfile=conftest.$ac_objext
  7655. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7656. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7657. # Insert the option either (1) after the last *FLAGS variable, or
  7658. # (2) before a word containing "conftest.", or (3) at the end.
  7659. # Note that $ac_compile itself does not contain backslashes and begins
  7660. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7661. # The option is referenced via a variable to avoid confusing sed.
  7662. lt_compile=`echo "$ac_compile" | $SED \
  7663. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7664. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7665. -e 's:$: $lt_compiler_flag:'`
  7666. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7667. (eval "$lt_compile" 2>conftest.err)
  7668. ac_status=$?
  7669. cat conftest.err >&5
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. if (exit $ac_status) && test -s "$ac_outfile"; then
  7672. # The compiler can only warn and ignore the option if not recognized
  7673. # So say no if there are warnings other than the usual output.
  7674. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7675. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7676. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7677. lt_cv_prog_compiler_pic_works=yes
  7678. fi
  7679. fi
  7680. $RM conftest*
  7681. fi
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7683. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7684. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7685. case $lt_prog_compiler_pic in
  7686. "" | " "*) ;;
  7687. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7688. esac
  7689. else
  7690. lt_prog_compiler_pic=
  7691. lt_prog_compiler_can_build_shared=no
  7692. fi
  7693. fi
  7694. #
  7695. # Check to make sure the static flag actually works.
  7696. #
  7697. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7699. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7700. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7701. $as_echo_n "(cached) " >&6
  7702. else
  7703. lt_cv_prog_compiler_static_works=no
  7704. save_LDFLAGS="$LDFLAGS"
  7705. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7706. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7707. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7708. # The linker can only warn and ignore the option if not recognized
  7709. # So say no if there are warnings
  7710. if test -s conftest.err; then
  7711. # Append any errors to the config.log.
  7712. cat conftest.err 1>&5
  7713. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7714. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7715. if diff conftest.exp conftest.er2 >/dev/null; then
  7716. lt_cv_prog_compiler_static_works=yes
  7717. fi
  7718. else
  7719. lt_cv_prog_compiler_static_works=yes
  7720. fi
  7721. fi
  7722. $RM -r conftest*
  7723. LDFLAGS="$save_LDFLAGS"
  7724. fi
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7726. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7727. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7728. :
  7729. else
  7730. lt_prog_compiler_static=
  7731. fi
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7733. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7734. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7735. $as_echo_n "(cached) " >&6
  7736. else
  7737. lt_cv_prog_compiler_c_o=no
  7738. $RM -r conftest 2>/dev/null
  7739. mkdir conftest
  7740. cd conftest
  7741. mkdir out
  7742. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7743. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7744. # Insert the option either (1) after the last *FLAGS variable, or
  7745. # (2) before a word containing "conftest.", or (3) at the end.
  7746. # Note that $ac_compile itself does not contain backslashes and begins
  7747. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7748. lt_compile=`echo "$ac_compile" | $SED \
  7749. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7750. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7751. -e 's:$: $lt_compiler_flag:'`
  7752. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7753. (eval "$lt_compile" 2>out/conftest.err)
  7754. ac_status=$?
  7755. cat out/conftest.err >&5
  7756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7758. then
  7759. # The compiler can only warn and ignore the option if not recognized
  7760. # So say no if there are warnings
  7761. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7762. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7763. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7764. lt_cv_prog_compiler_c_o=yes
  7765. fi
  7766. fi
  7767. chmod u+w . 2>&5
  7768. $RM conftest*
  7769. # SGI C++ compiler will create directory out/ii_files/ for
  7770. # template instantiation
  7771. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7772. $RM out/* && rmdir out
  7773. cd ..
  7774. $RM -r conftest
  7775. $RM conftest*
  7776. fi
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7778. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7780. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7781. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7782. $as_echo_n "(cached) " >&6
  7783. else
  7784. lt_cv_prog_compiler_c_o=no
  7785. $RM -r conftest 2>/dev/null
  7786. mkdir conftest
  7787. cd conftest
  7788. mkdir out
  7789. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7790. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7791. # Insert the option either (1) after the last *FLAGS variable, or
  7792. # (2) before a word containing "conftest.", or (3) at the end.
  7793. # Note that $ac_compile itself does not contain backslashes and begins
  7794. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7795. lt_compile=`echo "$ac_compile" | $SED \
  7796. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7797. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7798. -e 's:$: $lt_compiler_flag:'`
  7799. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7800. (eval "$lt_compile" 2>out/conftest.err)
  7801. ac_status=$?
  7802. cat out/conftest.err >&5
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7805. then
  7806. # The compiler can only warn and ignore the option if not recognized
  7807. # So say no if there are warnings
  7808. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7809. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7810. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7811. lt_cv_prog_compiler_c_o=yes
  7812. fi
  7813. fi
  7814. chmod u+w . 2>&5
  7815. $RM conftest*
  7816. # SGI C++ compiler will create directory out/ii_files/ for
  7817. # template instantiation
  7818. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7819. $RM out/* && rmdir out
  7820. cd ..
  7821. $RM -r conftest
  7822. $RM conftest*
  7823. fi
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7825. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7826. hard_links="nottested"
  7827. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7828. # do not overwrite the value of need_locks provided by the user
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7830. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7831. hard_links=yes
  7832. $RM conftest*
  7833. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7834. touch conftest.a
  7835. ln conftest.a conftest.b 2>&5 || hard_links=no
  7836. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7838. $as_echo "$hard_links" >&6; }
  7839. if test "$hard_links" = no; then
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7841. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7842. need_locks=warn
  7843. fi
  7844. else
  7845. need_locks=no
  7846. fi
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7848. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7849. runpath_var=
  7850. allow_undefined_flag=
  7851. always_export_symbols=no
  7852. archive_cmds=
  7853. archive_expsym_cmds=
  7854. compiler_needs_object=no
  7855. enable_shared_with_static_runtimes=no
  7856. export_dynamic_flag_spec=
  7857. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7858. hardcode_automatic=no
  7859. hardcode_direct=no
  7860. hardcode_direct_absolute=no
  7861. hardcode_libdir_flag_spec=
  7862. hardcode_libdir_flag_spec_ld=
  7863. hardcode_libdir_separator=
  7864. hardcode_minus_L=no
  7865. hardcode_shlibpath_var=unsupported
  7866. inherit_rpath=no
  7867. link_all_deplibs=unknown
  7868. module_cmds=
  7869. module_expsym_cmds=
  7870. old_archive_from_new_cmds=
  7871. old_archive_from_expsyms_cmds=
  7872. thread_safe_flag_spec=
  7873. whole_archive_flag_spec=
  7874. # include_expsyms should be a list of space-separated symbols to be *always*
  7875. # included in the symbol list
  7876. include_expsyms=
  7877. # exclude_expsyms can be an extended regexp of symbols to exclude
  7878. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7879. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7880. # as well as any symbol that contains `d'.
  7881. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7882. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7883. # platforms (ab)use it in PIC code, but their linkers get confused if
  7884. # the symbol is explicitly referenced. Since portable code cannot
  7885. # rely on this symbol name, it's probably fine to never include it in
  7886. # preloaded symbol tables.
  7887. # Exclude shared library initialization/finalization symbols.
  7888. extract_expsyms_cmds=
  7889. case $host_os in
  7890. cygwin* | mingw* | pw32* | cegcc*)
  7891. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7892. # When not using gcc, we currently assume that we are using
  7893. # Microsoft Visual C++.
  7894. if test "$GCC" != yes; then
  7895. with_gnu_ld=no
  7896. fi
  7897. ;;
  7898. interix*)
  7899. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7900. with_gnu_ld=yes
  7901. ;;
  7902. openbsd*)
  7903. with_gnu_ld=no
  7904. ;;
  7905. esac
  7906. ld_shlibs=yes
  7907. # On some targets, GNU ld is compatible enough with the native linker
  7908. # that we're better off using the native interface for both.
  7909. lt_use_gnu_ld_interface=no
  7910. if test "$with_gnu_ld" = yes; then
  7911. case $host_os in
  7912. aix*)
  7913. # The AIX port of GNU ld has always aspired to compatibility
  7914. # with the native linker. However, as the warning in the GNU ld
  7915. # block says, versions before 2.19.5* couldn't really create working
  7916. # shared libraries, regardless of the interface used.
  7917. case `$LD -v 2>&1` in
  7918. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7919. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7920. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7921. *)
  7922. lt_use_gnu_ld_interface=yes
  7923. ;;
  7924. esac
  7925. ;;
  7926. *)
  7927. lt_use_gnu_ld_interface=yes
  7928. ;;
  7929. esac
  7930. fi
  7931. if test "$lt_use_gnu_ld_interface" = yes; then
  7932. # If archive_cmds runs LD, not CC, wlarc should be empty
  7933. wlarc='${wl}'
  7934. # Set some defaults for GNU ld with shared library support. These
  7935. # are reset later if shared libraries are not supported. Putting them
  7936. # here allows them to be overridden if necessary.
  7937. runpath_var=LD_RUN_PATH
  7938. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7939. export_dynamic_flag_spec='${wl}--export-dynamic'
  7940. # ancient GNU ld didn't support --whole-archive et. al.
  7941. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7942. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7943. else
  7944. whole_archive_flag_spec=
  7945. fi
  7946. supports_anon_versioning=no
  7947. case `$LD -v 2>&1` in
  7948. *GNU\ gold*) supports_anon_versioning=yes ;;
  7949. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7950. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7951. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7952. *\ 2.11.*) ;; # other 2.11 versions
  7953. *) supports_anon_versioning=yes ;;
  7954. esac
  7955. # See if GNU ld supports shared libraries.
  7956. case $host_os in
  7957. aix[3-9]*)
  7958. # On AIX/PPC, the GNU linker is very broken
  7959. if test "$host_cpu" != ia64; then
  7960. ld_shlibs=no
  7961. cat <<_LT_EOF 1>&2
  7962. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7963. *** to be unable to reliably create shared libraries on AIX.
  7964. *** Therefore, libtool is disabling shared libraries support. If you
  7965. *** really care for shared libraries, you may want to install binutils
  7966. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7967. *** You will then need to restart the configuration process.
  7968. _LT_EOF
  7969. fi
  7970. ;;
  7971. amigaos*)
  7972. case $host_cpu in
  7973. powerpc)
  7974. # see comment about AmigaOS4 .so support
  7975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7976. archive_expsym_cmds=''
  7977. ;;
  7978. m68k)
  7979. 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)'
  7980. hardcode_libdir_flag_spec='-L$libdir'
  7981. hardcode_minus_L=yes
  7982. ;;
  7983. esac
  7984. ;;
  7985. beos*)
  7986. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7987. allow_undefined_flag=unsupported
  7988. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7989. # support --undefined. This deserves some investigation. FIXME
  7990. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7991. else
  7992. ld_shlibs=no
  7993. fi
  7994. ;;
  7995. cygwin* | mingw* | pw32* | cegcc*)
  7996. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7997. # as there is no search path for DLLs.
  7998. hardcode_libdir_flag_spec='-L$libdir'
  7999. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8000. allow_undefined_flag=unsupported
  8001. always_export_symbols=no
  8002. enable_shared_with_static_runtimes=yes
  8003. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8004. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8006. # If the export-symbols file already is a .def file (1st line
  8007. # is EXPORTS), use it as is; otherwise, prepend...
  8008. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8009. cp $export_symbols $output_objdir/$soname.def;
  8010. else
  8011. echo EXPORTS > $output_objdir/$soname.def;
  8012. cat $export_symbols >> $output_objdir/$soname.def;
  8013. fi~
  8014. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8015. else
  8016. ld_shlibs=no
  8017. fi
  8018. ;;
  8019. haiku*)
  8020. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8021. link_all_deplibs=yes
  8022. ;;
  8023. interix[3-9]*)
  8024. hardcode_direct=no
  8025. hardcode_shlibpath_var=no
  8026. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8027. export_dynamic_flag_spec='${wl}-E'
  8028. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8029. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8030. # default) and relocated if they conflict, which is a slow very memory
  8031. # consuming and fragmenting process. To avoid this, we pick a random,
  8032. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8033. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8034. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8035. 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'
  8036. ;;
  8037. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8038. tmp_diet=no
  8039. if test "$host_os" = linux-dietlibc; then
  8040. case $cc_basename in
  8041. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8042. esac
  8043. fi
  8044. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8045. && test "$tmp_diet" = no
  8046. then
  8047. tmp_addflag=' $pic_flag'
  8048. tmp_sharedflag='-shared'
  8049. case $cc_basename,$host_cpu in
  8050. pgcc*) # Portland Group C compiler
  8051. 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'
  8052. tmp_addflag=' $pic_flag'
  8053. ;;
  8054. pgf77* | pgf90* | pgf95* | pgfortran*)
  8055. # Portland Group f77 and f90 compilers
  8056. 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'
  8057. tmp_addflag=' $pic_flag -Mnomain' ;;
  8058. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8059. tmp_addflag=' -i_dynamic' ;;
  8060. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8061. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8062. ifc* | ifort*) # Intel Fortran compiler
  8063. tmp_addflag=' -nofor_main' ;;
  8064. lf95*) # Lahey Fortran 8.1
  8065. whole_archive_flag_spec=
  8066. tmp_sharedflag='--shared' ;;
  8067. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8068. tmp_sharedflag='-qmkshrobj'
  8069. tmp_addflag= ;;
  8070. nvcc*) # Cuda Compiler Driver 2.2
  8071. 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'
  8072. compiler_needs_object=yes
  8073. ;;
  8074. esac
  8075. case `$CC -V 2>&1 | sed 5q` in
  8076. *Sun\ C*) # Sun C 5.9
  8077. 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'
  8078. compiler_needs_object=yes
  8079. tmp_sharedflag='-G' ;;
  8080. *Sun\ F*) # Sun Fortran 8.3
  8081. tmp_sharedflag='-G' ;;
  8082. esac
  8083. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8084. if test "x$supports_anon_versioning" = xyes; then
  8085. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8086. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8087. echo "local: *; };" >> $output_objdir/$libname.ver~
  8088. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8089. fi
  8090. case $cc_basename in
  8091. xlf* | bgf* | bgxlf* | mpixlf*)
  8092. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8093. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8094. hardcode_libdir_flag_spec=
  8095. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8096. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8097. if test "x$supports_anon_versioning" = xyes; then
  8098. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8099. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8100. echo "local: *; };" >> $output_objdir/$libname.ver~
  8101. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8102. fi
  8103. ;;
  8104. esac
  8105. else
  8106. ld_shlibs=no
  8107. fi
  8108. ;;
  8109. netbsd*)
  8110. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8111. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8112. wlarc=
  8113. else
  8114. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8115. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8116. fi
  8117. ;;
  8118. solaris*)
  8119. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8120. ld_shlibs=no
  8121. cat <<_LT_EOF 1>&2
  8122. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8123. *** create shared libraries on Solaris systems. Therefore, libtool
  8124. *** is disabling shared libraries support. We urge you to upgrade GNU
  8125. *** binutils to release 2.9.1 or newer. Another option is to modify
  8126. *** your PATH or compiler configuration so that the native linker is
  8127. *** used, and then restart.
  8128. _LT_EOF
  8129. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8130. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8131. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8132. else
  8133. ld_shlibs=no
  8134. fi
  8135. ;;
  8136. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8137. case `$LD -v 2>&1` in
  8138. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8139. ld_shlibs=no
  8140. cat <<_LT_EOF 1>&2
  8141. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8142. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8143. *** is disabling shared libraries support. We urge you to upgrade GNU
  8144. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8145. *** your PATH or compiler configuration so that the native linker is
  8146. *** used, and then restart.
  8147. _LT_EOF
  8148. ;;
  8149. *)
  8150. # For security reasons, it is highly recommended that you always
  8151. # use absolute paths for naming shared libraries, and exclude the
  8152. # DT_RUNPATH tag from executables and libraries. But doing so
  8153. # requires that you compile everything twice, which is a pain.
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8156. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8157. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8158. else
  8159. ld_shlibs=no
  8160. fi
  8161. ;;
  8162. esac
  8163. ;;
  8164. sunos4*)
  8165. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8166. wlarc=
  8167. hardcode_direct=yes
  8168. hardcode_shlibpath_var=no
  8169. ;;
  8170. *)
  8171. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8172. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8173. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8174. else
  8175. ld_shlibs=no
  8176. fi
  8177. ;;
  8178. esac
  8179. if test "$ld_shlibs" = no; then
  8180. runpath_var=
  8181. hardcode_libdir_flag_spec=
  8182. export_dynamic_flag_spec=
  8183. whole_archive_flag_spec=
  8184. fi
  8185. else
  8186. # PORTME fill in a description of your system's linker (not GNU ld)
  8187. case $host_os in
  8188. aix3*)
  8189. allow_undefined_flag=unsupported
  8190. always_export_symbols=yes
  8191. 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'
  8192. # Note: this linker hardcodes the directories in LIBPATH if there
  8193. # are no directories specified by -L.
  8194. hardcode_minus_L=yes
  8195. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8196. # Neither direct hardcoding nor static linking is supported with a
  8197. # broken collect2.
  8198. hardcode_direct=unsupported
  8199. fi
  8200. ;;
  8201. aix[4-9]*)
  8202. if test "$host_cpu" = ia64; then
  8203. # On IA64, the linker does run time linking by default, so we don't
  8204. # have to do anything special.
  8205. aix_use_runtimelinking=no
  8206. exp_sym_flag='-Bexport'
  8207. no_entry_flag=""
  8208. else
  8209. # If we're using GNU nm, then we don't want the "-C" option.
  8210. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8211. # Also, AIX nm treats weak defined symbols like other global
  8212. # defined symbols, whereas GNU nm marks them as "W".
  8213. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8214. 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'
  8215. else
  8216. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8217. fi
  8218. aix_use_runtimelinking=no
  8219. # Test if we are trying to use run time linking or normal
  8220. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8221. # need to do runtime linking.
  8222. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8223. for ld_flag in $LDFLAGS; do
  8224. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8225. aix_use_runtimelinking=yes
  8226. break
  8227. fi
  8228. done
  8229. ;;
  8230. esac
  8231. exp_sym_flag='-bexport'
  8232. no_entry_flag='-bnoentry'
  8233. fi
  8234. # When large executables or shared objects are built, AIX ld can
  8235. # have problems creating the table of contents. If linking a library
  8236. # or program results in "error TOC overflow" add -mminimal-toc to
  8237. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8238. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8239. archive_cmds=''
  8240. hardcode_direct=yes
  8241. hardcode_direct_absolute=yes
  8242. hardcode_libdir_separator=':'
  8243. link_all_deplibs=yes
  8244. file_list_spec='${wl}-f,'
  8245. if test "$GCC" = yes; then
  8246. case $host_os in aix4.[012]|aix4.[012].*)
  8247. # We only want to do this on AIX 4.2 and lower, the check
  8248. # below for broken collect2 doesn't work under 4.3+
  8249. collect2name=`${CC} -print-prog-name=collect2`
  8250. if test -f "$collect2name" &&
  8251. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8252. then
  8253. # We have reworked collect2
  8254. :
  8255. else
  8256. # We have old collect2
  8257. hardcode_direct=unsupported
  8258. # It fails to find uninstalled libraries when the uninstalled
  8259. # path is not listed in the libpath. Setting hardcode_minus_L
  8260. # to unsupported forces relinking
  8261. hardcode_minus_L=yes
  8262. hardcode_libdir_flag_spec='-L$libdir'
  8263. hardcode_libdir_separator=
  8264. fi
  8265. ;;
  8266. esac
  8267. shared_flag='-shared'
  8268. if test "$aix_use_runtimelinking" = yes; then
  8269. shared_flag="$shared_flag "'${wl}-G'
  8270. fi
  8271. else
  8272. # not using gcc
  8273. if test "$host_cpu" = ia64; then
  8274. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8275. # chokes on -Wl,-G. The following line is correct:
  8276. shared_flag='-G'
  8277. else
  8278. if test "$aix_use_runtimelinking" = yes; then
  8279. shared_flag='${wl}-G'
  8280. else
  8281. shared_flag='${wl}-bM:SRE'
  8282. fi
  8283. fi
  8284. fi
  8285. export_dynamic_flag_spec='${wl}-bexpall'
  8286. # It seems that -bexpall does not export symbols beginning with
  8287. # underscore (_), so it is better to generate a list of symbols to export.
  8288. always_export_symbols=yes
  8289. if test "$aix_use_runtimelinking" = yes; then
  8290. # Warning - without using the other runtime loading flags (-brtl),
  8291. # -berok will link without error, but may produce a broken library.
  8292. allow_undefined_flag='-berok'
  8293. # Determine the default libpath from the value encoded in an
  8294. # empty executable.
  8295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8296. /* end confdefs.h. */
  8297. int
  8298. main ()
  8299. {
  8300. ;
  8301. return 0;
  8302. }
  8303. _ACEOF
  8304. if ac_fn_c_try_link "$LINENO"; then :
  8305. lt_aix_libpath_sed='
  8306. /Import File Strings/,/^$/ {
  8307. /^0/ {
  8308. s/^0 *\(.*\)$/\1/
  8309. p
  8310. }
  8311. }'
  8312. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8313. # Check for a 64-bit object if we didn't find anything.
  8314. if test -z "$aix_libpath"; then
  8315. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8316. fi
  8317. fi
  8318. rm -f core conftest.err conftest.$ac_objext \
  8319. conftest$ac_exeext conftest.$ac_ext
  8320. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8321. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8322. 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"
  8323. else
  8324. if test "$host_cpu" = ia64; then
  8325. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8326. allow_undefined_flag="-z nodefs"
  8327. 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"
  8328. else
  8329. # Determine the default libpath from the value encoded in an
  8330. # empty executable.
  8331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8332. /* end confdefs.h. */
  8333. int
  8334. main ()
  8335. {
  8336. ;
  8337. return 0;
  8338. }
  8339. _ACEOF
  8340. if ac_fn_c_try_link "$LINENO"; then :
  8341. lt_aix_libpath_sed='
  8342. /Import File Strings/,/^$/ {
  8343. /^0/ {
  8344. s/^0 *\(.*\)$/\1/
  8345. p
  8346. }
  8347. }'
  8348. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8349. # Check for a 64-bit object if we didn't find anything.
  8350. if test -z "$aix_libpath"; then
  8351. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8352. fi
  8353. fi
  8354. rm -f core conftest.err conftest.$ac_objext \
  8355. conftest$ac_exeext conftest.$ac_ext
  8356. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8357. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8358. # Warning - without using the other run time loading flags,
  8359. # -berok will link without error, but may produce a broken library.
  8360. no_undefined_flag=' ${wl}-bernotok'
  8361. allow_undefined_flag=' ${wl}-berok'
  8362. if test "$with_gnu_ld" = yes; then
  8363. # We only use this code for GNU lds that support --whole-archive.
  8364. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8365. else
  8366. # Exported symbols can be pulled into shared objects from archives
  8367. whole_archive_flag_spec='$convenience'
  8368. fi
  8369. archive_cmds_need_lc=yes
  8370. # This is similar to how AIX traditionally builds its shared libraries.
  8371. 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'
  8372. fi
  8373. fi
  8374. ;;
  8375. amigaos*)
  8376. case $host_cpu in
  8377. powerpc)
  8378. # see comment about AmigaOS4 .so support
  8379. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8380. archive_expsym_cmds=''
  8381. ;;
  8382. m68k)
  8383. 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)'
  8384. hardcode_libdir_flag_spec='-L$libdir'
  8385. hardcode_minus_L=yes
  8386. ;;
  8387. esac
  8388. ;;
  8389. bsdi[45]*)
  8390. export_dynamic_flag_spec=-rdynamic
  8391. ;;
  8392. cygwin* | mingw* | pw32* | cegcc*)
  8393. # When not using gcc, we currently assume that we are using
  8394. # Microsoft Visual C++.
  8395. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8396. # no search path for DLLs.
  8397. hardcode_libdir_flag_spec=' '
  8398. allow_undefined_flag=unsupported
  8399. # Tell ltmain to make .lib files, not .a files.
  8400. libext=lib
  8401. # Tell ltmain to make .dll files, not .so files.
  8402. shrext_cmds=".dll"
  8403. # FIXME: Setting linknames here is a bad hack.
  8404. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8405. # The linker will automatically build a .lib file if we build a DLL.
  8406. old_archive_from_new_cmds='true'
  8407. # FIXME: Should let the user specify the lib program.
  8408. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8409. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8410. enable_shared_with_static_runtimes=yes
  8411. ;;
  8412. darwin* | rhapsody*)
  8413. archive_cmds_need_lc=no
  8414. hardcode_direct=no
  8415. hardcode_automatic=yes
  8416. hardcode_shlibpath_var=unsupported
  8417. if test "$lt_cv_ld_force_load" = "yes"; then
  8418. 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\"`'
  8419. else
  8420. whole_archive_flag_spec=''
  8421. fi
  8422. link_all_deplibs=yes
  8423. allow_undefined_flag="$_lt_dar_allow_undefined"
  8424. case $cc_basename in
  8425. ifort*) _lt_dar_can_shared=yes ;;
  8426. *) _lt_dar_can_shared=$GCC ;;
  8427. esac
  8428. if test "$_lt_dar_can_shared" = "yes"; then
  8429. output_verbose_link_cmd=func_echo_all
  8430. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8431. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8432. 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}"
  8433. 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}"
  8434. else
  8435. ld_shlibs=no
  8436. fi
  8437. ;;
  8438. dgux*)
  8439. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8440. hardcode_libdir_flag_spec='-L$libdir'
  8441. hardcode_shlibpath_var=no
  8442. ;;
  8443. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8444. # support. Future versions do this automatically, but an explicit c++rt0.o
  8445. # does not break anything, and helps significantly (at the cost of a little
  8446. # extra space).
  8447. freebsd2.2*)
  8448. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8449. hardcode_libdir_flag_spec='-R$libdir'
  8450. hardcode_direct=yes
  8451. hardcode_shlibpath_var=no
  8452. ;;
  8453. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8454. freebsd2.*)
  8455. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8456. hardcode_direct=yes
  8457. hardcode_minus_L=yes
  8458. hardcode_shlibpath_var=no
  8459. ;;
  8460. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8461. freebsd* | dragonfly*)
  8462. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8463. hardcode_libdir_flag_spec='-R$libdir'
  8464. hardcode_direct=yes
  8465. hardcode_shlibpath_var=no
  8466. ;;
  8467. hpux9*)
  8468. if test "$GCC" = yes; then
  8469. 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'
  8470. else
  8471. 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'
  8472. fi
  8473. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8474. hardcode_libdir_separator=:
  8475. hardcode_direct=yes
  8476. # hardcode_minus_L: Not really in the search PATH,
  8477. # but as the default location of the library.
  8478. hardcode_minus_L=yes
  8479. export_dynamic_flag_spec='${wl}-E'
  8480. ;;
  8481. hpux10*)
  8482. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8483. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8484. else
  8485. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8486. fi
  8487. if test "$with_gnu_ld" = no; then
  8488. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8489. hardcode_libdir_flag_spec_ld='+b $libdir'
  8490. hardcode_libdir_separator=:
  8491. hardcode_direct=yes
  8492. hardcode_direct_absolute=yes
  8493. export_dynamic_flag_spec='${wl}-E'
  8494. # hardcode_minus_L: Not really in the search PATH,
  8495. # but as the default location of the library.
  8496. hardcode_minus_L=yes
  8497. fi
  8498. ;;
  8499. hpux11*)
  8500. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8501. case $host_cpu in
  8502. hppa*64*)
  8503. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8504. ;;
  8505. ia64*)
  8506. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8507. ;;
  8508. *)
  8509. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8510. ;;
  8511. esac
  8512. else
  8513. case $host_cpu in
  8514. hppa*64*)
  8515. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8516. ;;
  8517. ia64*)
  8518. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8519. ;;
  8520. *)
  8521. # Older versions of the 11.00 compiler do not understand -b yet
  8522. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8524. $as_echo_n "checking if $CC understands -b... " >&6; }
  8525. if ${lt_cv_prog_compiler__b+:} false; then :
  8526. $as_echo_n "(cached) " >&6
  8527. else
  8528. lt_cv_prog_compiler__b=no
  8529. save_LDFLAGS="$LDFLAGS"
  8530. LDFLAGS="$LDFLAGS -b"
  8531. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8532. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8533. # The linker can only warn and ignore the option if not recognized
  8534. # So say no if there are warnings
  8535. if test -s conftest.err; then
  8536. # Append any errors to the config.log.
  8537. cat conftest.err 1>&5
  8538. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8539. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8540. if diff conftest.exp conftest.er2 >/dev/null; then
  8541. lt_cv_prog_compiler__b=yes
  8542. fi
  8543. else
  8544. lt_cv_prog_compiler__b=yes
  8545. fi
  8546. fi
  8547. $RM -r conftest*
  8548. LDFLAGS="$save_LDFLAGS"
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8551. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8552. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8553. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8554. else
  8555. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8556. fi
  8557. ;;
  8558. esac
  8559. fi
  8560. if test "$with_gnu_ld" = no; then
  8561. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8562. hardcode_libdir_separator=:
  8563. case $host_cpu in
  8564. hppa*64*|ia64*)
  8565. hardcode_direct=no
  8566. hardcode_shlibpath_var=no
  8567. ;;
  8568. *)
  8569. hardcode_direct=yes
  8570. hardcode_direct_absolute=yes
  8571. export_dynamic_flag_spec='${wl}-E'
  8572. # hardcode_minus_L: Not really in the search PATH,
  8573. # but as the default location of the library.
  8574. hardcode_minus_L=yes
  8575. ;;
  8576. esac
  8577. fi
  8578. ;;
  8579. irix5* | irix6* | nonstopux*)
  8580. if test "$GCC" = yes; then
  8581. 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'
  8582. # Try to use the -exported_symbol ld option, if it does not
  8583. # work, assume that -exports_file does not work either and
  8584. # implicitly export all symbols.
  8585. save_LDFLAGS="$LDFLAGS"
  8586. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8588. /* end confdefs.h. */
  8589. int foo(void) {}
  8590. _ACEOF
  8591. if ac_fn_c_try_link "$LINENO"; then :
  8592. 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'
  8593. fi
  8594. rm -f core conftest.err conftest.$ac_objext \
  8595. conftest$ac_exeext conftest.$ac_ext
  8596. LDFLAGS="$save_LDFLAGS"
  8597. else
  8598. 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'
  8599. 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'
  8600. fi
  8601. archive_cmds_need_lc='no'
  8602. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8603. hardcode_libdir_separator=:
  8604. inherit_rpath=yes
  8605. link_all_deplibs=yes
  8606. ;;
  8607. netbsd*)
  8608. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8609. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8610. else
  8611. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8612. fi
  8613. hardcode_libdir_flag_spec='-R$libdir'
  8614. hardcode_direct=yes
  8615. hardcode_shlibpath_var=no
  8616. ;;
  8617. newsos6)
  8618. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8619. hardcode_direct=yes
  8620. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8621. hardcode_libdir_separator=:
  8622. hardcode_shlibpath_var=no
  8623. ;;
  8624. *nto* | *qnx*)
  8625. ;;
  8626. openbsd*)
  8627. if test -f /usr/libexec/ld.so; then
  8628. hardcode_direct=yes
  8629. hardcode_shlibpath_var=no
  8630. hardcode_direct_absolute=yes
  8631. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8632. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8633. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8634. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8635. export_dynamic_flag_spec='${wl}-E'
  8636. else
  8637. case $host_os in
  8638. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8639. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8640. hardcode_libdir_flag_spec='-R$libdir'
  8641. ;;
  8642. *)
  8643. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8644. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8645. ;;
  8646. esac
  8647. fi
  8648. else
  8649. ld_shlibs=no
  8650. fi
  8651. ;;
  8652. os2*)
  8653. hardcode_libdir_flag_spec='-L$libdir'
  8654. hardcode_minus_L=yes
  8655. allow_undefined_flag=unsupported
  8656. 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'
  8657. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8658. ;;
  8659. osf3*)
  8660. if test "$GCC" = yes; then
  8661. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8662. 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'
  8663. else
  8664. allow_undefined_flag=' -expect_unresolved \*'
  8665. 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'
  8666. fi
  8667. archive_cmds_need_lc='no'
  8668. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8669. hardcode_libdir_separator=:
  8670. ;;
  8671. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8672. if test "$GCC" = yes; then
  8673. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8674. 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'
  8675. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8676. else
  8677. allow_undefined_flag=' -expect_unresolved \*'
  8678. 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'
  8679. 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~
  8680. $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'
  8681. # Both c and cxx compiler support -rpath directly
  8682. hardcode_libdir_flag_spec='-rpath $libdir'
  8683. fi
  8684. archive_cmds_need_lc='no'
  8685. hardcode_libdir_separator=:
  8686. ;;
  8687. solaris*)
  8688. no_undefined_flag=' -z defs'
  8689. if test "$GCC" = yes; then
  8690. wlarc='${wl}'
  8691. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8692. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8693. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8694. else
  8695. case `$CC -V 2>&1` in
  8696. *"Compilers 5.0"*)
  8697. wlarc=''
  8698. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8699. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8700. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8701. ;;
  8702. *)
  8703. wlarc='${wl}'
  8704. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8705. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8706. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8707. ;;
  8708. esac
  8709. fi
  8710. hardcode_libdir_flag_spec='-R$libdir'
  8711. hardcode_shlibpath_var=no
  8712. case $host_os in
  8713. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8714. *)
  8715. # The compiler driver will combine and reorder linker options,
  8716. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8717. # but is careful enough not to reorder.
  8718. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8719. if test "$GCC" = yes; then
  8720. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8721. else
  8722. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8723. fi
  8724. ;;
  8725. esac
  8726. link_all_deplibs=yes
  8727. ;;
  8728. sunos4*)
  8729. if test "x$host_vendor" = xsequent; then
  8730. # Use $CC to link under sequent, because it throws in some extra .o
  8731. # files that make .init and .fini sections work.
  8732. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8733. else
  8734. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8735. fi
  8736. hardcode_libdir_flag_spec='-L$libdir'
  8737. hardcode_direct=yes
  8738. hardcode_minus_L=yes
  8739. hardcode_shlibpath_var=no
  8740. ;;
  8741. sysv4)
  8742. case $host_vendor in
  8743. sni)
  8744. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8745. hardcode_direct=yes # is this really true???
  8746. ;;
  8747. siemens)
  8748. ## LD is ld it makes a PLAMLIB
  8749. ## CC just makes a GrossModule.
  8750. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8751. reload_cmds='$CC -r -o $output$reload_objs'
  8752. hardcode_direct=no
  8753. ;;
  8754. motorola)
  8755. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8756. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8757. ;;
  8758. esac
  8759. runpath_var='LD_RUN_PATH'
  8760. hardcode_shlibpath_var=no
  8761. ;;
  8762. sysv4.3*)
  8763. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8764. hardcode_shlibpath_var=no
  8765. export_dynamic_flag_spec='-Bexport'
  8766. ;;
  8767. sysv4*MP*)
  8768. if test -d /usr/nec; then
  8769. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8770. hardcode_shlibpath_var=no
  8771. runpath_var=LD_RUN_PATH
  8772. hardcode_runpath_var=yes
  8773. ld_shlibs=yes
  8774. fi
  8775. ;;
  8776. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8777. no_undefined_flag='${wl}-z,text'
  8778. archive_cmds_need_lc=no
  8779. hardcode_shlibpath_var=no
  8780. runpath_var='LD_RUN_PATH'
  8781. if test "$GCC" = yes; then
  8782. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8783. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8784. else
  8785. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8786. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8787. fi
  8788. ;;
  8789. sysv5* | sco3.2v5* | sco5v6*)
  8790. # Note: We can NOT use -z defs as we might desire, because we do not
  8791. # link with -lc, and that would cause any symbols used from libc to
  8792. # always be unresolved, which means just about no library would
  8793. # ever link correctly. If we're not using GNU ld we use -z text
  8794. # though, which does catch some bad symbols but isn't as heavy-handed
  8795. # as -z defs.
  8796. no_undefined_flag='${wl}-z,text'
  8797. allow_undefined_flag='${wl}-z,nodefs'
  8798. archive_cmds_need_lc=no
  8799. hardcode_shlibpath_var=no
  8800. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8801. hardcode_libdir_separator=':'
  8802. link_all_deplibs=yes
  8803. export_dynamic_flag_spec='${wl}-Bexport'
  8804. runpath_var='LD_RUN_PATH'
  8805. if test "$GCC" = yes; then
  8806. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8807. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8808. else
  8809. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8810. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8811. fi
  8812. ;;
  8813. uts4*)
  8814. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8815. hardcode_libdir_flag_spec='-L$libdir'
  8816. hardcode_shlibpath_var=no
  8817. ;;
  8818. *)
  8819. ld_shlibs=no
  8820. ;;
  8821. esac
  8822. if test x$host_vendor = xsni; then
  8823. case $host in
  8824. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8825. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8826. ;;
  8827. esac
  8828. fi
  8829. fi
  8830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8831. $as_echo "$ld_shlibs" >&6; }
  8832. test "$ld_shlibs" = no && can_build_shared=no
  8833. with_gnu_ld=$with_gnu_ld
  8834. #
  8835. # Do we need to explicitly link libc?
  8836. #
  8837. case "x$archive_cmds_need_lc" in
  8838. x|xyes)
  8839. # Assume -lc should be added
  8840. archive_cmds_need_lc=yes
  8841. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8842. case $archive_cmds in
  8843. *'~'*)
  8844. # FIXME: we may have to deal with multi-command sequences.
  8845. ;;
  8846. '$CC '*)
  8847. # Test whether the compiler implicitly links with -lc since on some
  8848. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8849. # to ld, don't add -lc before -lgcc.
  8850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8851. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8852. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8853. $as_echo_n "(cached) " >&6
  8854. else
  8855. $RM conftest*
  8856. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8857. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8858. (eval $ac_compile) 2>&5
  8859. ac_status=$?
  8860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8861. test $ac_status = 0; } 2>conftest.err; then
  8862. soname=conftest
  8863. lib=conftest
  8864. libobjs=conftest.$ac_objext
  8865. deplibs=
  8866. wl=$lt_prog_compiler_wl
  8867. pic_flag=$lt_prog_compiler_pic
  8868. compiler_flags=-v
  8869. linker_flags=-v
  8870. verstring=
  8871. output_objdir=.
  8872. libname=conftest
  8873. lt_save_allow_undefined_flag=$allow_undefined_flag
  8874. allow_undefined_flag=
  8875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8876. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8877. ac_status=$?
  8878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8879. test $ac_status = 0; }
  8880. then
  8881. lt_cv_archive_cmds_need_lc=no
  8882. else
  8883. lt_cv_archive_cmds_need_lc=yes
  8884. fi
  8885. allow_undefined_flag=$lt_save_allow_undefined_flag
  8886. else
  8887. cat conftest.err 1>&5
  8888. fi
  8889. $RM conftest*
  8890. fi
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8892. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8893. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8894. ;;
  8895. esac
  8896. fi
  8897. ;;
  8898. esac
  8899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8900. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8901. if test "$GCC" = yes; then
  8902. case $host_os in
  8903. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8904. *) lt_awk_arg="/^libraries:/" ;;
  8905. esac
  8906. case $host_os in
  8907. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8908. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8909. esac
  8910. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8911. case $lt_search_path_spec in
  8912. *\;*)
  8913. # if the path contains ";" then we assume it to be the separator
  8914. # otherwise default to the standard path separator (i.e. ":") - it is
  8915. # assumed that no part of a normal pathname contains ";" but that should
  8916. # okay in the real world where ";" in dirpaths is itself problematic.
  8917. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8918. ;;
  8919. *)
  8920. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8921. ;;
  8922. esac
  8923. # Ok, now we have the path, separated by spaces, we can step through it
  8924. # and add multilib dir if necessary.
  8925. lt_tmp_lt_search_path_spec=
  8926. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8927. for lt_sys_path in $lt_search_path_spec; do
  8928. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8929. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8930. else
  8931. test -d "$lt_sys_path" && \
  8932. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8933. fi
  8934. done
  8935. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8936. BEGIN {RS=" "; FS="/|\n";} {
  8937. lt_foo="";
  8938. lt_count=0;
  8939. for (lt_i = NF; lt_i > 0; lt_i--) {
  8940. if ($lt_i != "" && $lt_i != ".") {
  8941. if ($lt_i == "..") {
  8942. lt_count++;
  8943. } else {
  8944. if (lt_count == 0) {
  8945. lt_foo="/" $lt_i lt_foo;
  8946. } else {
  8947. lt_count--;
  8948. }
  8949. }
  8950. }
  8951. }
  8952. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8953. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8954. }'`
  8955. # AWK program above erroneously prepends '/' to C:/dos/paths
  8956. # for these hosts.
  8957. case $host_os in
  8958. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8959. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8960. esac
  8961. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8962. else
  8963. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8964. fi
  8965. library_names_spec=
  8966. libname_spec='lib$name'
  8967. soname_spec=
  8968. shrext_cmds=".so"
  8969. postinstall_cmds=
  8970. postuninstall_cmds=
  8971. finish_cmds=
  8972. finish_eval=
  8973. shlibpath_var=
  8974. shlibpath_overrides_runpath=unknown
  8975. version_type=none
  8976. dynamic_linker="$host_os ld.so"
  8977. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8978. need_lib_prefix=unknown
  8979. hardcode_into_libs=no
  8980. # when you set need_version to no, make sure it does not cause -set_version
  8981. # flags to be left without arguments
  8982. need_version=unknown
  8983. case $host_os in
  8984. aix3*)
  8985. version_type=linux
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8987. shlibpath_var=LIBPATH
  8988. # AIX 3 has no versioning support, so we append a major version to the name.
  8989. soname_spec='${libname}${release}${shared_ext}$major'
  8990. ;;
  8991. aix[4-9]*)
  8992. version_type=linux
  8993. need_lib_prefix=no
  8994. need_version=no
  8995. hardcode_into_libs=yes
  8996. if test "$host_cpu" = ia64; then
  8997. # AIX 5 supports IA64
  8998. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8999. shlibpath_var=LD_LIBRARY_PATH
  9000. else
  9001. # With GCC up to 2.95.x, collect2 would create an import file
  9002. # for dependence libraries. The import file would start with
  9003. # the line `#! .'. This would cause the generated library to
  9004. # depend on `.', always an invalid library. This was fixed in
  9005. # development snapshots of GCC prior to 3.0.
  9006. case $host_os in
  9007. aix4 | aix4.[01] | aix4.[01].*)
  9008. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9009. echo ' yes '
  9010. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9011. :
  9012. else
  9013. can_build_shared=no
  9014. fi
  9015. ;;
  9016. esac
  9017. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9018. # soname into executable. Probably we can add versioning support to
  9019. # collect2, so additional links can be useful in future.
  9020. if test "$aix_use_runtimelinking" = yes; then
  9021. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9022. # instead of lib<name>.a to let people know that these are not
  9023. # typical AIX shared libraries.
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9025. else
  9026. # We preserve .a as extension for shared libraries through AIX4.2
  9027. # and later when we are not doing run time linking.
  9028. library_names_spec='${libname}${release}.a $libname.a'
  9029. soname_spec='${libname}${release}${shared_ext}$major'
  9030. fi
  9031. shlibpath_var=LIBPATH
  9032. fi
  9033. ;;
  9034. amigaos*)
  9035. case $host_cpu in
  9036. powerpc)
  9037. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9038. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9040. ;;
  9041. m68k)
  9042. library_names_spec='$libname.ixlibrary $libname.a'
  9043. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9044. 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'
  9045. ;;
  9046. esac
  9047. ;;
  9048. beos*)
  9049. library_names_spec='${libname}${shared_ext}'
  9050. dynamic_linker="$host_os ld.so"
  9051. shlibpath_var=LIBRARY_PATH
  9052. ;;
  9053. bsdi[45]*)
  9054. version_type=linux
  9055. need_version=no
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9057. soname_spec='${libname}${release}${shared_ext}$major'
  9058. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9059. shlibpath_var=LD_LIBRARY_PATH
  9060. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9061. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9062. # the default ld.so.conf also contains /usr/contrib/lib and
  9063. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9064. # libtool to hard-code these into programs
  9065. ;;
  9066. cygwin* | mingw* | pw32* | cegcc*)
  9067. version_type=windows
  9068. shrext_cmds=".dll"
  9069. need_version=no
  9070. need_lib_prefix=no
  9071. case $GCC,$host_os in
  9072. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9073. library_names_spec='$libname.dll.a'
  9074. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9075. postinstall_cmds='base_file=`basename \${file}`~
  9076. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9077. dldir=$destdir/`dirname \$dlpath`~
  9078. test -d \$dldir || mkdir -p \$dldir~
  9079. $install_prog $dir/$dlname \$dldir/$dlname~
  9080. chmod a+x \$dldir/$dlname~
  9081. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9082. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9083. fi'
  9084. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9085. dlpath=$dir/\$dldll~
  9086. $RM \$dlpath'
  9087. shlibpath_overrides_runpath=yes
  9088. case $host_os in
  9089. cygwin*)
  9090. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9091. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9092. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9093. ;;
  9094. mingw* | cegcc*)
  9095. # MinGW DLLs use traditional 'lib' prefix
  9096. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9097. ;;
  9098. pw32*)
  9099. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9100. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9101. ;;
  9102. esac
  9103. ;;
  9104. *)
  9105. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9106. ;;
  9107. esac
  9108. dynamic_linker='Win32 ld.exe'
  9109. # FIXME: first we should search . and the directory the executable is in
  9110. shlibpath_var=PATH
  9111. ;;
  9112. darwin* | rhapsody*)
  9113. dynamic_linker="$host_os dyld"
  9114. version_type=darwin
  9115. need_lib_prefix=no
  9116. need_version=no
  9117. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9118. soname_spec='${libname}${release}${major}$shared_ext'
  9119. shlibpath_overrides_runpath=yes
  9120. shlibpath_var=DYLD_LIBRARY_PATH
  9121. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9122. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9123. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9124. ;;
  9125. dgux*)
  9126. version_type=linux
  9127. need_lib_prefix=no
  9128. need_version=no
  9129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. shlibpath_var=LD_LIBRARY_PATH
  9132. ;;
  9133. freebsd* | dragonfly*)
  9134. # DragonFly does not have aout. When/if they implement a new
  9135. # versioning mechanism, adjust this.
  9136. if test -x /usr/bin/objformat; then
  9137. objformat=`/usr/bin/objformat`
  9138. else
  9139. case $host_os in
  9140. freebsd[23].*) objformat=aout ;;
  9141. *) objformat=elf ;;
  9142. esac
  9143. fi
  9144. version_type=freebsd-$objformat
  9145. case $version_type in
  9146. freebsd-elf*)
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9148. need_version=no
  9149. need_lib_prefix=no
  9150. ;;
  9151. freebsd-*)
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9153. need_version=yes
  9154. ;;
  9155. esac
  9156. shlibpath_var=LD_LIBRARY_PATH
  9157. case $host_os in
  9158. freebsd2.*)
  9159. shlibpath_overrides_runpath=yes
  9160. ;;
  9161. freebsd3.[01]* | freebsdelf3.[01]*)
  9162. shlibpath_overrides_runpath=yes
  9163. hardcode_into_libs=yes
  9164. ;;
  9165. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9166. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9167. shlibpath_overrides_runpath=no
  9168. hardcode_into_libs=yes
  9169. ;;
  9170. *) # from 4.6 on, and DragonFly
  9171. shlibpath_overrides_runpath=yes
  9172. hardcode_into_libs=yes
  9173. ;;
  9174. esac
  9175. ;;
  9176. haiku*)
  9177. version_type=linux
  9178. need_lib_prefix=no
  9179. need_version=no
  9180. dynamic_linker="$host_os runtime_loader"
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. shlibpath_var=LIBRARY_PATH
  9184. shlibpath_overrides_runpath=yes
  9185. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9186. hardcode_into_libs=yes
  9187. ;;
  9188. hpux9* | hpux10* | hpux11*)
  9189. # Give a soname corresponding to the major version so that dld.sl refuses to
  9190. # link against other versions.
  9191. version_type=sunos
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. case $host_cpu in
  9195. ia64*)
  9196. shrext_cmds='.so'
  9197. hardcode_into_libs=yes
  9198. dynamic_linker="$host_os dld.so"
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9202. soname_spec='${libname}${release}${shared_ext}$major'
  9203. if test "X$HPUX_IA64_MODE" = X32; then
  9204. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9205. else
  9206. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9207. fi
  9208. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9209. ;;
  9210. hppa*64*)
  9211. shrext_cmds='.sl'
  9212. hardcode_into_libs=yes
  9213. dynamic_linker="$host_os dld.sl"
  9214. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9215. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9217. soname_spec='${libname}${release}${shared_ext}$major'
  9218. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9219. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9220. ;;
  9221. *)
  9222. shrext_cmds='.sl'
  9223. dynamic_linker="$host_os dld.sl"
  9224. shlibpath_var=SHLIB_PATH
  9225. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9227. soname_spec='${libname}${release}${shared_ext}$major'
  9228. ;;
  9229. esac
  9230. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9231. postinstall_cmds='chmod 555 $lib'
  9232. # or fails outright, so override atomically:
  9233. install_override_mode=555
  9234. ;;
  9235. interix[3-9]*)
  9236. version_type=linux
  9237. need_lib_prefix=no
  9238. need_version=no
  9239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9240. soname_spec='${libname}${release}${shared_ext}$major'
  9241. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9242. shlibpath_var=LD_LIBRARY_PATH
  9243. shlibpath_overrides_runpath=no
  9244. hardcode_into_libs=yes
  9245. ;;
  9246. irix5* | irix6* | nonstopux*)
  9247. case $host_os in
  9248. nonstopux*) version_type=nonstopux ;;
  9249. *)
  9250. if test "$lt_cv_prog_gnu_ld" = yes; then
  9251. version_type=linux
  9252. else
  9253. version_type=irix
  9254. fi ;;
  9255. esac
  9256. need_lib_prefix=no
  9257. need_version=no
  9258. soname_spec='${libname}${release}${shared_ext}$major'
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9260. case $host_os in
  9261. irix5* | nonstopux*)
  9262. libsuff= shlibsuff=
  9263. ;;
  9264. *)
  9265. case $LD in # libtool.m4 will add one of these switches to LD
  9266. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9267. libsuff= shlibsuff= libmagic=32-bit;;
  9268. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9269. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9270. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9271. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9272. *) libsuff= shlibsuff= libmagic=never-match;;
  9273. esac
  9274. ;;
  9275. esac
  9276. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9277. shlibpath_overrides_runpath=no
  9278. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9279. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9280. hardcode_into_libs=yes
  9281. ;;
  9282. # No shared lib support for Linux oldld, aout, or coff.
  9283. linux*oldld* | linux*aout* | linux*coff*)
  9284. dynamic_linker=no
  9285. ;;
  9286. # This must be Linux ELF.
  9287. # uclinux* changes (here and below) have been submitted to the libtool
  9288. # project, but have not yet been accepted: they are GCC-local changes
  9289. # for the time being. (See
  9290. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9291. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9292. version_type=linux
  9293. need_lib_prefix=no
  9294. need_version=no
  9295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9296. soname_spec='${libname}${release}${shared_ext}$major'
  9297. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9298. shlibpath_var=LD_LIBRARY_PATH
  9299. shlibpath_overrides_runpath=no
  9300. # Some binutils ld are patched to set DT_RUNPATH
  9301. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9302. $as_echo_n "(cached) " >&6
  9303. else
  9304. lt_cv_shlibpath_overrides_runpath=no
  9305. save_LDFLAGS=$LDFLAGS
  9306. save_libdir=$libdir
  9307. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9308. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9310. /* end confdefs.h. */
  9311. int
  9312. main ()
  9313. {
  9314. ;
  9315. return 0;
  9316. }
  9317. _ACEOF
  9318. if ac_fn_c_try_link "$LINENO"; then :
  9319. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9320. lt_cv_shlibpath_overrides_runpath=yes
  9321. fi
  9322. fi
  9323. rm -f core conftest.err conftest.$ac_objext \
  9324. conftest$ac_exeext conftest.$ac_ext
  9325. LDFLAGS=$save_LDFLAGS
  9326. libdir=$save_libdir
  9327. fi
  9328. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9329. # This implies no fast_install, which is unacceptable.
  9330. # Some rework will be needed to allow for fast_install
  9331. # before this can be enabled.
  9332. hardcode_into_libs=yes
  9333. # Append ld.so.conf contents to the search path
  9334. if test -f /etc/ld.so.conf; then
  9335. 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' ' '`
  9336. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9337. fi
  9338. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9339. # powerpc, because MkLinux only supported shared libraries with the
  9340. # GNU dynamic linker. Since this was broken with cross compilers,
  9341. # most powerpc-linux boxes support dynamic linking these days and
  9342. # people can always --disable-shared, the test was removed, and we
  9343. # assume the GNU/Linux dynamic linker is in use.
  9344. dynamic_linker='GNU/Linux ld.so'
  9345. ;;
  9346. netbsd*)
  9347. version_type=sunos
  9348. need_lib_prefix=no
  9349. need_version=no
  9350. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9352. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9353. dynamic_linker='NetBSD (a.out) ld.so'
  9354. else
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9356. soname_spec='${libname}${release}${shared_ext}$major'
  9357. dynamic_linker='NetBSD ld.elf_so'
  9358. fi
  9359. shlibpath_var=LD_LIBRARY_PATH
  9360. shlibpath_overrides_runpath=yes
  9361. hardcode_into_libs=yes
  9362. ;;
  9363. newsos6)
  9364. version_type=linux
  9365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9366. shlibpath_var=LD_LIBRARY_PATH
  9367. shlibpath_overrides_runpath=yes
  9368. ;;
  9369. *nto* | *qnx*)
  9370. version_type=qnx
  9371. need_lib_prefix=no
  9372. need_version=no
  9373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9374. soname_spec='${libname}${release}${shared_ext}$major'
  9375. shlibpath_var=LD_LIBRARY_PATH
  9376. shlibpath_overrides_runpath=no
  9377. hardcode_into_libs=yes
  9378. dynamic_linker='ldqnx.so'
  9379. ;;
  9380. openbsd*)
  9381. version_type=sunos
  9382. sys_lib_dlsearch_path_spec="/usr/lib"
  9383. need_lib_prefix=no
  9384. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9385. case $host_os in
  9386. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9387. *) need_version=no ;;
  9388. esac
  9389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9390. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9391. shlibpath_var=LD_LIBRARY_PATH
  9392. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9393. case $host_os in
  9394. openbsd2.[89] | openbsd2.[89].*)
  9395. shlibpath_overrides_runpath=no
  9396. ;;
  9397. *)
  9398. shlibpath_overrides_runpath=yes
  9399. ;;
  9400. esac
  9401. else
  9402. shlibpath_overrides_runpath=yes
  9403. fi
  9404. ;;
  9405. os2*)
  9406. libname_spec='$name'
  9407. shrext_cmds=".dll"
  9408. need_lib_prefix=no
  9409. library_names_spec='$libname${shared_ext} $libname.a'
  9410. dynamic_linker='OS/2 ld.exe'
  9411. shlibpath_var=LIBPATH
  9412. ;;
  9413. osf3* | osf4* | osf5*)
  9414. version_type=osf
  9415. need_lib_prefix=no
  9416. need_version=no
  9417. soname_spec='${libname}${release}${shared_ext}$major'
  9418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9419. shlibpath_var=LD_LIBRARY_PATH
  9420. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9421. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9422. ;;
  9423. rdos*)
  9424. dynamic_linker=no
  9425. ;;
  9426. solaris*)
  9427. version_type=linux
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9431. soname_spec='${libname}${release}${shared_ext}$major'
  9432. shlibpath_var=LD_LIBRARY_PATH
  9433. shlibpath_overrides_runpath=yes
  9434. hardcode_into_libs=yes
  9435. # ldd complains unless libraries are executable
  9436. postinstall_cmds='chmod +x $lib'
  9437. ;;
  9438. sunos4*)
  9439. version_type=sunos
  9440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9441. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9442. shlibpath_var=LD_LIBRARY_PATH
  9443. shlibpath_overrides_runpath=yes
  9444. if test "$with_gnu_ld" = yes; then
  9445. need_lib_prefix=no
  9446. fi
  9447. need_version=yes
  9448. ;;
  9449. sysv4 | sysv4.3*)
  9450. version_type=linux
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9452. soname_spec='${libname}${release}${shared_ext}$major'
  9453. shlibpath_var=LD_LIBRARY_PATH
  9454. case $host_vendor in
  9455. sni)
  9456. shlibpath_overrides_runpath=no
  9457. need_lib_prefix=no
  9458. runpath_var=LD_RUN_PATH
  9459. ;;
  9460. siemens)
  9461. need_lib_prefix=no
  9462. ;;
  9463. motorola)
  9464. need_lib_prefix=no
  9465. need_version=no
  9466. shlibpath_overrides_runpath=no
  9467. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9468. ;;
  9469. esac
  9470. ;;
  9471. sysv4*MP*)
  9472. if test -d /usr/nec ;then
  9473. version_type=linux
  9474. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9475. soname_spec='$libname${shared_ext}.$major'
  9476. shlibpath_var=LD_LIBRARY_PATH
  9477. fi
  9478. ;;
  9479. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9480. version_type=freebsd-elf
  9481. need_lib_prefix=no
  9482. need_version=no
  9483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9484. soname_spec='${libname}${release}${shared_ext}$major'
  9485. shlibpath_var=LD_LIBRARY_PATH
  9486. shlibpath_overrides_runpath=yes
  9487. hardcode_into_libs=yes
  9488. if test "$with_gnu_ld" = yes; then
  9489. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9490. else
  9491. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9492. case $host_os in
  9493. sco3.2v5*)
  9494. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9495. ;;
  9496. esac
  9497. fi
  9498. sys_lib_dlsearch_path_spec='/usr/lib'
  9499. ;;
  9500. tpf*)
  9501. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9502. version_type=linux
  9503. need_lib_prefix=no
  9504. need_version=no
  9505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9506. shlibpath_var=LD_LIBRARY_PATH
  9507. shlibpath_overrides_runpath=no
  9508. hardcode_into_libs=yes
  9509. ;;
  9510. uts4*)
  9511. version_type=linux
  9512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9513. soname_spec='${libname}${release}${shared_ext}$major'
  9514. shlibpath_var=LD_LIBRARY_PATH
  9515. ;;
  9516. *)
  9517. dynamic_linker=no
  9518. ;;
  9519. esac
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9521. $as_echo "$dynamic_linker" >&6; }
  9522. test "$dynamic_linker" = no && can_build_shared=no
  9523. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9524. if test "$GCC" = yes; then
  9525. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9526. fi
  9527. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9528. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9529. fi
  9530. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9531. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9532. fi
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9534. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9535. hardcode_action=
  9536. if test -n "$hardcode_libdir_flag_spec" ||
  9537. test -n "$runpath_var" ||
  9538. test "X$hardcode_automatic" = "Xyes" ; then
  9539. # We can hardcode non-existent directories.
  9540. if test "$hardcode_direct" != no &&
  9541. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9542. # have to relink, otherwise we might link with an installed library
  9543. # when we should be linking with a yet-to-be-installed one
  9544. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9545. test "$hardcode_minus_L" != no; then
  9546. # Linking always hardcodes the temporary library directory.
  9547. hardcode_action=relink
  9548. else
  9549. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9550. hardcode_action=immediate
  9551. fi
  9552. else
  9553. # We cannot hardcode anything, or else we can only hardcode existing
  9554. # directories.
  9555. hardcode_action=unsupported
  9556. fi
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9558. $as_echo "$hardcode_action" >&6; }
  9559. if test "$hardcode_action" = relink ||
  9560. test "$inherit_rpath" = yes; then
  9561. # Fast installation is not supported
  9562. enable_fast_install=no
  9563. elif test "$shlibpath_overrides_runpath" = yes ||
  9564. test "$enable_shared" = no; then
  9565. # Fast installation is not necessary
  9566. enable_fast_install=needless
  9567. fi
  9568. if test "x$enable_dlopen" != xyes; then
  9569. enable_dlopen=unknown
  9570. enable_dlopen_self=unknown
  9571. enable_dlopen_self_static=unknown
  9572. else
  9573. lt_cv_dlopen=no
  9574. lt_cv_dlopen_libs=
  9575. case $host_os in
  9576. beos*)
  9577. lt_cv_dlopen="load_add_on"
  9578. lt_cv_dlopen_libs=
  9579. lt_cv_dlopen_self=yes
  9580. ;;
  9581. mingw* | pw32* | cegcc*)
  9582. lt_cv_dlopen="LoadLibrary"
  9583. lt_cv_dlopen_libs=
  9584. ;;
  9585. cygwin*)
  9586. lt_cv_dlopen="dlopen"
  9587. lt_cv_dlopen_libs=
  9588. ;;
  9589. darwin*)
  9590. # if libdl is installed we need to link against it
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9592. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9593. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9594. $as_echo_n "(cached) " >&6
  9595. else
  9596. ac_check_lib_save_LIBS=$LIBS
  9597. LIBS="-ldl $LIBS"
  9598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9599. /* end confdefs.h. */
  9600. /* Override any GCC internal prototype to avoid an error.
  9601. Use char because int might match the return type of a GCC
  9602. builtin and then its argument prototype would still apply. */
  9603. #ifdef __cplusplus
  9604. extern "C"
  9605. #endif
  9606. char dlopen ();
  9607. int
  9608. main ()
  9609. {
  9610. return dlopen ();
  9611. ;
  9612. return 0;
  9613. }
  9614. _ACEOF
  9615. if ac_fn_c_try_link "$LINENO"; then :
  9616. ac_cv_lib_dl_dlopen=yes
  9617. else
  9618. ac_cv_lib_dl_dlopen=no
  9619. fi
  9620. rm -f core conftest.err conftest.$ac_objext \
  9621. conftest$ac_exeext conftest.$ac_ext
  9622. LIBS=$ac_check_lib_save_LIBS
  9623. fi
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9625. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9626. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9627. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9628. else
  9629. lt_cv_dlopen="dyld"
  9630. lt_cv_dlopen_libs=
  9631. lt_cv_dlopen_self=yes
  9632. fi
  9633. ;;
  9634. *)
  9635. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9636. if test "x$ac_cv_func_shl_load" = xyes; then :
  9637. lt_cv_dlopen="shl_load"
  9638. else
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9640. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9641. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9642. $as_echo_n "(cached) " >&6
  9643. else
  9644. ac_check_lib_save_LIBS=$LIBS
  9645. LIBS="-ldld $LIBS"
  9646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9647. /* end confdefs.h. */
  9648. /* Override any GCC internal prototype to avoid an error.
  9649. Use char because int might match the return type of a GCC
  9650. builtin and then its argument prototype would still apply. */
  9651. #ifdef __cplusplus
  9652. extern "C"
  9653. #endif
  9654. char shl_load ();
  9655. int
  9656. main ()
  9657. {
  9658. return shl_load ();
  9659. ;
  9660. return 0;
  9661. }
  9662. _ACEOF
  9663. if ac_fn_c_try_link "$LINENO"; then :
  9664. ac_cv_lib_dld_shl_load=yes
  9665. else
  9666. ac_cv_lib_dld_shl_load=no
  9667. fi
  9668. rm -f core conftest.err conftest.$ac_objext \
  9669. conftest$ac_exeext conftest.$ac_ext
  9670. LIBS=$ac_check_lib_save_LIBS
  9671. fi
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9673. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9674. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9675. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9676. else
  9677. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9678. if test "x$ac_cv_func_dlopen" = xyes; then :
  9679. lt_cv_dlopen="dlopen"
  9680. else
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9682. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9683. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9684. $as_echo_n "(cached) " >&6
  9685. else
  9686. ac_check_lib_save_LIBS=$LIBS
  9687. LIBS="-ldl $LIBS"
  9688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9689. /* end confdefs.h. */
  9690. /* Override any GCC internal prototype to avoid an error.
  9691. Use char because int might match the return type of a GCC
  9692. builtin and then its argument prototype would still apply. */
  9693. #ifdef __cplusplus
  9694. extern "C"
  9695. #endif
  9696. char dlopen ();
  9697. int
  9698. main ()
  9699. {
  9700. return dlopen ();
  9701. ;
  9702. return 0;
  9703. }
  9704. _ACEOF
  9705. if ac_fn_c_try_link "$LINENO"; then :
  9706. ac_cv_lib_dl_dlopen=yes
  9707. else
  9708. ac_cv_lib_dl_dlopen=no
  9709. fi
  9710. rm -f core conftest.err conftest.$ac_objext \
  9711. conftest$ac_exeext conftest.$ac_ext
  9712. LIBS=$ac_check_lib_save_LIBS
  9713. fi
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9715. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9716. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9717. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9718. else
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9720. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9721. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9722. $as_echo_n "(cached) " >&6
  9723. else
  9724. ac_check_lib_save_LIBS=$LIBS
  9725. LIBS="-lsvld $LIBS"
  9726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9727. /* end confdefs.h. */
  9728. /* Override any GCC internal prototype to avoid an error.
  9729. Use char because int might match the return type of a GCC
  9730. builtin and then its argument prototype would still apply. */
  9731. #ifdef __cplusplus
  9732. extern "C"
  9733. #endif
  9734. char dlopen ();
  9735. int
  9736. main ()
  9737. {
  9738. return dlopen ();
  9739. ;
  9740. return 0;
  9741. }
  9742. _ACEOF
  9743. if ac_fn_c_try_link "$LINENO"; then :
  9744. ac_cv_lib_svld_dlopen=yes
  9745. else
  9746. ac_cv_lib_svld_dlopen=no
  9747. fi
  9748. rm -f core conftest.err conftest.$ac_objext \
  9749. conftest$ac_exeext conftest.$ac_ext
  9750. LIBS=$ac_check_lib_save_LIBS
  9751. fi
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9753. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9754. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9755. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9756. else
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9758. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9759. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9760. $as_echo_n "(cached) " >&6
  9761. else
  9762. ac_check_lib_save_LIBS=$LIBS
  9763. LIBS="-ldld $LIBS"
  9764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9765. /* end confdefs.h. */
  9766. /* Override any GCC internal prototype to avoid an error.
  9767. Use char because int might match the return type of a GCC
  9768. builtin and then its argument prototype would still apply. */
  9769. #ifdef __cplusplus
  9770. extern "C"
  9771. #endif
  9772. char dld_link ();
  9773. int
  9774. main ()
  9775. {
  9776. return dld_link ();
  9777. ;
  9778. return 0;
  9779. }
  9780. _ACEOF
  9781. if ac_fn_c_try_link "$LINENO"; then :
  9782. ac_cv_lib_dld_dld_link=yes
  9783. else
  9784. ac_cv_lib_dld_dld_link=no
  9785. fi
  9786. rm -f core conftest.err conftest.$ac_objext \
  9787. conftest$ac_exeext conftest.$ac_ext
  9788. LIBS=$ac_check_lib_save_LIBS
  9789. fi
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9791. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9792. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9793. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9794. fi
  9795. fi
  9796. fi
  9797. fi
  9798. fi
  9799. fi
  9800. ;;
  9801. esac
  9802. if test "x$lt_cv_dlopen" != xno; then
  9803. enable_dlopen=yes
  9804. else
  9805. enable_dlopen=no
  9806. fi
  9807. case $lt_cv_dlopen in
  9808. dlopen)
  9809. save_CPPFLAGS="$CPPFLAGS"
  9810. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9811. save_LDFLAGS="$LDFLAGS"
  9812. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9813. save_LIBS="$LIBS"
  9814. LIBS="$lt_cv_dlopen_libs $LIBS"
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9816. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9817. if ${lt_cv_dlopen_self+:} false; then :
  9818. $as_echo_n "(cached) " >&6
  9819. else
  9820. if test "$cross_compiling" = yes; then :
  9821. lt_cv_dlopen_self=cross
  9822. else
  9823. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9824. lt_status=$lt_dlunknown
  9825. cat > conftest.$ac_ext <<_LT_EOF
  9826. #line 11433 "configure"
  9827. #include "confdefs.h"
  9828. #if HAVE_DLFCN_H
  9829. #include <dlfcn.h>
  9830. #endif
  9831. #include <stdio.h>
  9832. #ifdef RTLD_GLOBAL
  9833. # define LT_DLGLOBAL RTLD_GLOBAL
  9834. #else
  9835. # ifdef DL_GLOBAL
  9836. # define LT_DLGLOBAL DL_GLOBAL
  9837. # else
  9838. # define LT_DLGLOBAL 0
  9839. # endif
  9840. #endif
  9841. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9842. find out it does not work in some platform. */
  9843. #ifndef LT_DLLAZY_OR_NOW
  9844. # ifdef RTLD_LAZY
  9845. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9846. # else
  9847. # ifdef DL_LAZY
  9848. # define LT_DLLAZY_OR_NOW DL_LAZY
  9849. # else
  9850. # ifdef RTLD_NOW
  9851. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9852. # else
  9853. # ifdef DL_NOW
  9854. # define LT_DLLAZY_OR_NOW DL_NOW
  9855. # else
  9856. # define LT_DLLAZY_OR_NOW 0
  9857. # endif
  9858. # endif
  9859. # endif
  9860. # endif
  9861. #endif
  9862. /* When -fvisbility=hidden is used, assume the code has been annotated
  9863. correspondingly for the symbols needed. */
  9864. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9865. void fnord () __attribute__((visibility("default")));
  9866. #endif
  9867. void fnord () { int i=42; }
  9868. int main ()
  9869. {
  9870. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9871. int status = $lt_dlunknown;
  9872. if (self)
  9873. {
  9874. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9875. else
  9876. {
  9877. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9878. else puts (dlerror ());
  9879. }
  9880. /* dlclose (self); */
  9881. }
  9882. else
  9883. puts (dlerror ());
  9884. return status;
  9885. }
  9886. _LT_EOF
  9887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9888. (eval $ac_link) 2>&5
  9889. ac_status=$?
  9890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9891. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9892. (./conftest; exit; ) >&5 2>/dev/null
  9893. lt_status=$?
  9894. case x$lt_status in
  9895. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9896. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9897. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9898. esac
  9899. else :
  9900. # compilation failed
  9901. lt_cv_dlopen_self=no
  9902. fi
  9903. fi
  9904. rm -fr conftest*
  9905. fi
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9907. $as_echo "$lt_cv_dlopen_self" >&6; }
  9908. if test "x$lt_cv_dlopen_self" = xyes; then
  9909. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9911. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9912. if ${lt_cv_dlopen_self_static+:} false; then :
  9913. $as_echo_n "(cached) " >&6
  9914. else
  9915. if test "$cross_compiling" = yes; then :
  9916. lt_cv_dlopen_self_static=cross
  9917. else
  9918. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9919. lt_status=$lt_dlunknown
  9920. cat > conftest.$ac_ext <<_LT_EOF
  9921. #line 11539 "configure"
  9922. #include "confdefs.h"
  9923. #if HAVE_DLFCN_H
  9924. #include <dlfcn.h>
  9925. #endif
  9926. #include <stdio.h>
  9927. #ifdef RTLD_GLOBAL
  9928. # define LT_DLGLOBAL RTLD_GLOBAL
  9929. #else
  9930. # ifdef DL_GLOBAL
  9931. # define LT_DLGLOBAL DL_GLOBAL
  9932. # else
  9933. # define LT_DLGLOBAL 0
  9934. # endif
  9935. #endif
  9936. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9937. find out it does not work in some platform. */
  9938. #ifndef LT_DLLAZY_OR_NOW
  9939. # ifdef RTLD_LAZY
  9940. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9941. # else
  9942. # ifdef DL_LAZY
  9943. # define LT_DLLAZY_OR_NOW DL_LAZY
  9944. # else
  9945. # ifdef RTLD_NOW
  9946. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9947. # else
  9948. # ifdef DL_NOW
  9949. # define LT_DLLAZY_OR_NOW DL_NOW
  9950. # else
  9951. # define LT_DLLAZY_OR_NOW 0
  9952. # endif
  9953. # endif
  9954. # endif
  9955. # endif
  9956. #endif
  9957. /* When -fvisbility=hidden is used, assume the code has been annotated
  9958. correspondingly for the symbols needed. */
  9959. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9960. void fnord () __attribute__((visibility("default")));
  9961. #endif
  9962. void fnord () { int i=42; }
  9963. int main ()
  9964. {
  9965. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9966. int status = $lt_dlunknown;
  9967. if (self)
  9968. {
  9969. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9970. else
  9971. {
  9972. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9973. else puts (dlerror ());
  9974. }
  9975. /* dlclose (self); */
  9976. }
  9977. else
  9978. puts (dlerror ());
  9979. return status;
  9980. }
  9981. _LT_EOF
  9982. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9983. (eval $ac_link) 2>&5
  9984. ac_status=$?
  9985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9986. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9987. (./conftest; exit; ) >&5 2>/dev/null
  9988. lt_status=$?
  9989. case x$lt_status in
  9990. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9991. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9992. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9993. esac
  9994. else :
  9995. # compilation failed
  9996. lt_cv_dlopen_self_static=no
  9997. fi
  9998. fi
  9999. rm -fr conftest*
  10000. fi
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10002. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10003. fi
  10004. CPPFLAGS="$save_CPPFLAGS"
  10005. LDFLAGS="$save_LDFLAGS"
  10006. LIBS="$save_LIBS"
  10007. ;;
  10008. esac
  10009. case $lt_cv_dlopen_self in
  10010. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10011. *) enable_dlopen_self=unknown ;;
  10012. esac
  10013. case $lt_cv_dlopen_self_static in
  10014. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10015. *) enable_dlopen_self_static=unknown ;;
  10016. esac
  10017. fi
  10018. striplib=
  10019. old_striplib=
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10021. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10022. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10023. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10024. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10026. $as_echo "yes" >&6; }
  10027. else
  10028. # FIXME - insert some real tests, host_os isn't really good enough
  10029. case $host_os in
  10030. darwin*)
  10031. if test -n "$STRIP" ; then
  10032. striplib="$STRIP -x"
  10033. old_striplib="$STRIP -S"
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10035. $as_echo "yes" >&6; }
  10036. else
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10038. $as_echo "no" >&6; }
  10039. fi
  10040. ;;
  10041. *)
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10043. $as_echo "no" >&6; }
  10044. ;;
  10045. esac
  10046. fi
  10047. # Report which library types will actually be built
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10049. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10051. $as_echo "$can_build_shared" >&6; }
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10053. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10054. test "$can_build_shared" = "no" && enable_shared=no
  10055. # On AIX, shared libraries and static libraries use the same namespace, and
  10056. # are all built from PIC.
  10057. case $host_os in
  10058. aix3*)
  10059. test "$enable_shared" = yes && enable_static=no
  10060. if test -n "$RANLIB"; then
  10061. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10062. postinstall_cmds='$RANLIB $lib'
  10063. fi
  10064. ;;
  10065. aix[4-9]*)
  10066. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10067. test "$enable_shared" = yes && enable_static=no
  10068. fi
  10069. ;;
  10070. esac
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10072. $as_echo "$enable_shared" >&6; }
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10074. $as_echo_n "checking whether to build static libraries... " >&6; }
  10075. # Make sure either enable_shared or enable_static is yes.
  10076. test "$enable_shared" = yes || enable_static=yes
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10078. $as_echo "$enable_static" >&6; }
  10079. fi
  10080. ac_ext=c
  10081. ac_cpp='$CPP $CPPFLAGS'
  10082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10085. CC="$lt_save_CC"
  10086. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10087. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10088. (test "X$CXX" != "Xg++"))) ; then
  10089. ac_ext=cpp
  10090. ac_cpp='$CXXCPP $CPPFLAGS'
  10091. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10092. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10093. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10095. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10096. if test -z "$CXXCPP"; then
  10097. if ${ac_cv_prog_CXXCPP+:} false; then :
  10098. $as_echo_n "(cached) " >&6
  10099. else
  10100. # Double quotes because CXXCPP needs to be expanded
  10101. for CXXCPP in "$CXX -E" "/lib/cpp"
  10102. do
  10103. ac_preproc_ok=false
  10104. for ac_cxx_preproc_warn_flag in '' yes
  10105. do
  10106. # Use a header file that comes with gcc, so configuring glibc
  10107. # with a fresh cross-compiler works.
  10108. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10109. # <limits.h> exists even on freestanding compilers.
  10110. # On the NeXT, cc -E runs the code through the compiler's parser,
  10111. # not just through cpp. "Syntax error" is here to catch this case.
  10112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10113. /* end confdefs.h. */
  10114. #ifdef __STDC__
  10115. # include <limits.h>
  10116. #else
  10117. # include <assert.h>
  10118. #endif
  10119. Syntax error
  10120. _ACEOF
  10121. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10122. else
  10123. # Broken: fails on valid input.
  10124. continue
  10125. fi
  10126. rm -f conftest.err conftest.i conftest.$ac_ext
  10127. # OK, works on sane cases. Now check whether nonexistent headers
  10128. # can be detected and how.
  10129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10130. /* end confdefs.h. */
  10131. #include <ac_nonexistent.h>
  10132. _ACEOF
  10133. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10134. # Broken: success on invalid input.
  10135. continue
  10136. else
  10137. # Passes both tests.
  10138. ac_preproc_ok=:
  10139. break
  10140. fi
  10141. rm -f conftest.err conftest.i conftest.$ac_ext
  10142. done
  10143. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10144. rm -f conftest.i conftest.err conftest.$ac_ext
  10145. if $ac_preproc_ok; then :
  10146. break
  10147. fi
  10148. done
  10149. ac_cv_prog_CXXCPP=$CXXCPP
  10150. fi
  10151. CXXCPP=$ac_cv_prog_CXXCPP
  10152. else
  10153. ac_cv_prog_CXXCPP=$CXXCPP
  10154. fi
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10156. $as_echo "$CXXCPP" >&6; }
  10157. ac_preproc_ok=false
  10158. for ac_cxx_preproc_warn_flag in '' yes
  10159. do
  10160. # Use a header file that comes with gcc, so configuring glibc
  10161. # with a fresh cross-compiler works.
  10162. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10163. # <limits.h> exists even on freestanding compilers.
  10164. # On the NeXT, cc -E runs the code through the compiler's parser,
  10165. # not just through cpp. "Syntax error" is here to catch this case.
  10166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10167. /* end confdefs.h. */
  10168. #ifdef __STDC__
  10169. # include <limits.h>
  10170. #else
  10171. # include <assert.h>
  10172. #endif
  10173. Syntax error
  10174. _ACEOF
  10175. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10176. else
  10177. # Broken: fails on valid input.
  10178. continue
  10179. fi
  10180. rm -f conftest.err conftest.i conftest.$ac_ext
  10181. # OK, works on sane cases. Now check whether nonexistent headers
  10182. # can be detected and how.
  10183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10184. /* end confdefs.h. */
  10185. #include <ac_nonexistent.h>
  10186. _ACEOF
  10187. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10188. # Broken: success on invalid input.
  10189. continue
  10190. else
  10191. # Passes both tests.
  10192. ac_preproc_ok=:
  10193. break
  10194. fi
  10195. rm -f conftest.err conftest.i conftest.$ac_ext
  10196. done
  10197. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10198. rm -f conftest.i conftest.err conftest.$ac_ext
  10199. if $ac_preproc_ok; then :
  10200. else
  10201. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10203. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10204. See \`config.log' for more details" "$LINENO" 5; }
  10205. fi
  10206. ac_ext=c
  10207. ac_cpp='$CPP $CPPFLAGS'
  10208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10211. else
  10212. _lt_caught_CXX_error=yes
  10213. fi
  10214. ac_ext=cpp
  10215. ac_cpp='$CXXCPP $CPPFLAGS'
  10216. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10217. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10218. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10219. archive_cmds_need_lc_CXX=no
  10220. allow_undefined_flag_CXX=
  10221. always_export_symbols_CXX=no
  10222. archive_expsym_cmds_CXX=
  10223. compiler_needs_object_CXX=no
  10224. export_dynamic_flag_spec_CXX=
  10225. hardcode_direct_CXX=no
  10226. hardcode_direct_absolute_CXX=no
  10227. hardcode_libdir_flag_spec_CXX=
  10228. hardcode_libdir_flag_spec_ld_CXX=
  10229. hardcode_libdir_separator_CXX=
  10230. hardcode_minus_L_CXX=no
  10231. hardcode_shlibpath_var_CXX=unsupported
  10232. hardcode_automatic_CXX=no
  10233. inherit_rpath_CXX=no
  10234. module_cmds_CXX=
  10235. module_expsym_cmds_CXX=
  10236. link_all_deplibs_CXX=unknown
  10237. old_archive_cmds_CXX=$old_archive_cmds
  10238. reload_flag_CXX=$reload_flag
  10239. reload_cmds_CXX=$reload_cmds
  10240. no_undefined_flag_CXX=
  10241. whole_archive_flag_spec_CXX=
  10242. enable_shared_with_static_runtimes_CXX=no
  10243. # Source file extension for C++ test sources.
  10244. ac_ext=cpp
  10245. # Object file extension for compiled C++ test sources.
  10246. objext=o
  10247. objext_CXX=$objext
  10248. # No sense in running all these tests if we already determined that
  10249. # the CXX compiler isn't working. Some variables (like enable_shared)
  10250. # are currently assumed to apply to all compilers on this platform,
  10251. # and will be corrupted by setting them based on a non-working compiler.
  10252. if test "$_lt_caught_CXX_error" != yes; then
  10253. # Code to be used in simple compile tests
  10254. lt_simple_compile_test_code="int some_variable = 0;"
  10255. # Code to be used in simple link tests
  10256. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10257. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10258. # If no C compiler was specified, use CC.
  10259. LTCC=${LTCC-"$CC"}
  10260. # If no C compiler flags were specified, use CFLAGS.
  10261. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10262. # Allow CC to be a program name with arguments.
  10263. compiler=$CC
  10264. # save warnings/boilerplate of simple test code
  10265. ac_outfile=conftest.$ac_objext
  10266. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10267. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10268. _lt_compiler_boilerplate=`cat conftest.err`
  10269. $RM conftest*
  10270. ac_outfile=conftest.$ac_objext
  10271. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10272. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10273. _lt_linker_boilerplate=`cat conftest.err`
  10274. $RM -r conftest*
  10275. # Allow CC to be a program name with arguments.
  10276. lt_save_CC=$CC
  10277. lt_save_LD=$LD
  10278. lt_save_GCC=$GCC
  10279. GCC=$GXX
  10280. lt_save_with_gnu_ld=$with_gnu_ld
  10281. lt_save_path_LD=$lt_cv_path_LD
  10282. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10283. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10284. else
  10285. $as_unset lt_cv_prog_gnu_ld
  10286. fi
  10287. if test -n "${lt_cv_path_LDCXX+set}"; then
  10288. lt_cv_path_LD=$lt_cv_path_LDCXX
  10289. else
  10290. $as_unset lt_cv_path_LD
  10291. fi
  10292. test -z "${LDCXX+set}" || LD=$LDCXX
  10293. CC=${CXX-"c++"}
  10294. compiler=$CC
  10295. compiler_CXX=$CC
  10296. for cc_temp in $compiler""; do
  10297. case $cc_temp in
  10298. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10299. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10300. \-*) ;;
  10301. *) break;;
  10302. esac
  10303. done
  10304. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10305. if test -n "$compiler"; then
  10306. # We don't want -fno-exception when compiling C++ code, so set the
  10307. # no_builtin_flag separately
  10308. if test "$GXX" = yes; then
  10309. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10310. else
  10311. lt_prog_compiler_no_builtin_flag_CXX=
  10312. fi
  10313. if test "$GXX" = yes; then
  10314. # Set up default GNU C++ configuration
  10315. # Check whether --with-gnu-ld was given.
  10316. if test "${with_gnu_ld+set}" = set; then :
  10317. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10318. else
  10319. with_gnu_ld=no
  10320. fi
  10321. ac_prog=ld
  10322. if test "$GCC" = yes; then
  10323. # Check if gcc -print-prog-name=ld gives a path.
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10325. $as_echo_n "checking for ld used by $CC... " >&6; }
  10326. case $host in
  10327. *-*-mingw*)
  10328. # gcc leaves a trailing carriage return which upsets mingw
  10329. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10330. *)
  10331. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10332. esac
  10333. case $ac_prog in
  10334. # Accept absolute paths.
  10335. [\\/]* | ?:[\\/]*)
  10336. re_direlt='/[^/][^/]*/\.\./'
  10337. # Canonicalize the pathname of ld
  10338. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10339. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10340. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10341. done
  10342. test -z "$LD" && LD="$ac_prog"
  10343. ;;
  10344. "")
  10345. # If it fails, then pretend we aren't using GCC.
  10346. ac_prog=ld
  10347. ;;
  10348. *)
  10349. # If it is relative, then search for the first ld in PATH.
  10350. with_gnu_ld=unknown
  10351. ;;
  10352. esac
  10353. elif test "$with_gnu_ld" = yes; then
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10355. $as_echo_n "checking for GNU ld... " >&6; }
  10356. else
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10358. $as_echo_n "checking for non-GNU ld... " >&6; }
  10359. fi
  10360. if ${lt_cv_path_LD+:} false; then :
  10361. $as_echo_n "(cached) " >&6
  10362. else
  10363. if test -z "$LD"; then
  10364. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10365. for ac_dir in $PATH; do
  10366. IFS="$lt_save_ifs"
  10367. test -z "$ac_dir" && ac_dir=.
  10368. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10369. lt_cv_path_LD="$ac_dir/$ac_prog"
  10370. # Check to see if the program is GNU ld. I'd rather use --version,
  10371. # but apparently some variants of GNU ld only accept -v.
  10372. # Break only if it was the GNU/non-GNU ld that we prefer.
  10373. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10374. *GNU* | *'with BFD'*)
  10375. test "$with_gnu_ld" != no && break
  10376. ;;
  10377. *)
  10378. test "$with_gnu_ld" != yes && break
  10379. ;;
  10380. esac
  10381. fi
  10382. done
  10383. IFS="$lt_save_ifs"
  10384. else
  10385. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10386. fi
  10387. fi
  10388. LD="$lt_cv_path_LD"
  10389. if test -n "$LD"; then
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10391. $as_echo "$LD" >&6; }
  10392. else
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10394. $as_echo "no" >&6; }
  10395. fi
  10396. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10398. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10399. if ${lt_cv_prog_gnu_ld+:} false; then :
  10400. $as_echo_n "(cached) " >&6
  10401. else
  10402. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10403. case `$LD -v 2>&1 </dev/null` in
  10404. *GNU* | *'with BFD'*)
  10405. lt_cv_prog_gnu_ld=yes
  10406. ;;
  10407. *)
  10408. lt_cv_prog_gnu_ld=no
  10409. ;;
  10410. esac
  10411. fi
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10413. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10414. with_gnu_ld=$lt_cv_prog_gnu_ld
  10415. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10416. # archiving commands below assume that GNU ld is being used.
  10417. if test "$with_gnu_ld" = yes; then
  10418. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10419. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10420. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10421. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10422. # If archive_cmds runs LD, not CC, wlarc should be empty
  10423. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10424. # investigate it a little bit more. (MM)
  10425. wlarc='${wl}'
  10426. # ancient GNU ld didn't support --whole-archive et. al.
  10427. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10428. $GREP 'no-whole-archive' > /dev/null; then
  10429. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10430. else
  10431. whole_archive_flag_spec_CXX=
  10432. fi
  10433. else
  10434. with_gnu_ld=no
  10435. wlarc=
  10436. # A generic and very simple default shared library creation
  10437. # command for GNU C++ for the case where it uses the native
  10438. # linker, instead of GNU ld. If possible, this setting should
  10439. # overridden to take advantage of the native linker features on
  10440. # the platform it is being used on.
  10441. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10442. fi
  10443. # Commands to make compiler produce verbose output that lists
  10444. # what "hidden" libraries, object files and flags are used when
  10445. # linking a shared library.
  10446. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10447. else
  10448. GXX=no
  10449. with_gnu_ld=no
  10450. wlarc=
  10451. fi
  10452. # PORTME: fill in a description of your system's C++ link characteristics
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10454. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10455. ld_shlibs_CXX=yes
  10456. case $host_os in
  10457. aix3*)
  10458. # FIXME: insert proper C++ library support
  10459. ld_shlibs_CXX=no
  10460. ;;
  10461. aix[4-9]*)
  10462. if test "$host_cpu" = ia64; then
  10463. # On IA64, the linker does run time linking by default, so we don't
  10464. # have to do anything special.
  10465. aix_use_runtimelinking=no
  10466. exp_sym_flag='-Bexport'
  10467. no_entry_flag=""
  10468. else
  10469. aix_use_runtimelinking=no
  10470. # Test if we are trying to use run time linking or normal
  10471. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10472. # need to do runtime linking.
  10473. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10474. for ld_flag in $LDFLAGS; do
  10475. case $ld_flag in
  10476. *-brtl*)
  10477. aix_use_runtimelinking=yes
  10478. break
  10479. ;;
  10480. esac
  10481. done
  10482. ;;
  10483. esac
  10484. exp_sym_flag='-bexport'
  10485. no_entry_flag='-bnoentry'
  10486. fi
  10487. # When large executables or shared objects are built, AIX ld can
  10488. # have problems creating the table of contents. If linking a library
  10489. # or program results in "error TOC overflow" add -mminimal-toc to
  10490. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10491. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10492. archive_cmds_CXX=''
  10493. hardcode_direct_CXX=yes
  10494. hardcode_direct_absolute_CXX=yes
  10495. hardcode_libdir_separator_CXX=':'
  10496. link_all_deplibs_CXX=yes
  10497. file_list_spec_CXX='${wl}-f,'
  10498. if test "$GXX" = yes; then
  10499. case $host_os in aix4.[012]|aix4.[012].*)
  10500. # We only want to do this on AIX 4.2 and lower, the check
  10501. # below for broken collect2 doesn't work under 4.3+
  10502. collect2name=`${CC} -print-prog-name=collect2`
  10503. if test -f "$collect2name" &&
  10504. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10505. then
  10506. # We have reworked collect2
  10507. :
  10508. else
  10509. # We have old collect2
  10510. hardcode_direct_CXX=unsupported
  10511. # It fails to find uninstalled libraries when the uninstalled
  10512. # path is not listed in the libpath. Setting hardcode_minus_L
  10513. # to unsupported forces relinking
  10514. hardcode_minus_L_CXX=yes
  10515. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10516. hardcode_libdir_separator_CXX=
  10517. fi
  10518. esac
  10519. shared_flag='-shared'
  10520. if test "$aix_use_runtimelinking" = yes; then
  10521. shared_flag="$shared_flag "'${wl}-G'
  10522. fi
  10523. else
  10524. # not using gcc
  10525. if test "$host_cpu" = ia64; then
  10526. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10527. # chokes on -Wl,-G. The following line is correct:
  10528. shared_flag='-G'
  10529. else
  10530. if test "$aix_use_runtimelinking" = yes; then
  10531. shared_flag='${wl}-G'
  10532. else
  10533. shared_flag='${wl}-bM:SRE'
  10534. fi
  10535. fi
  10536. fi
  10537. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10538. # It seems that -bexpall does not export symbols beginning with
  10539. # underscore (_), so it is better to generate a list of symbols to
  10540. # export.
  10541. always_export_symbols_CXX=yes
  10542. if test "$aix_use_runtimelinking" = yes; then
  10543. # Warning - without using the other runtime loading flags (-brtl),
  10544. # -berok will link without error, but may produce a broken library.
  10545. allow_undefined_flag_CXX='-berok'
  10546. # Determine the default libpath from the value encoded in an empty
  10547. # executable.
  10548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10549. /* end confdefs.h. */
  10550. int
  10551. main ()
  10552. {
  10553. ;
  10554. return 0;
  10555. }
  10556. _ACEOF
  10557. if ac_fn_cxx_try_link "$LINENO"; then :
  10558. lt_aix_libpath_sed='
  10559. /Import File Strings/,/^$/ {
  10560. /^0/ {
  10561. s/^0 *\(.*\)$/\1/
  10562. p
  10563. }
  10564. }'
  10565. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10566. # Check for a 64-bit object if we didn't find anything.
  10567. if test -z "$aix_libpath"; then
  10568. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10569. fi
  10570. fi
  10571. rm -f core conftest.err conftest.$ac_objext \
  10572. conftest$ac_exeext conftest.$ac_ext
  10573. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10574. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10575. 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"
  10576. else
  10577. if test "$host_cpu" = ia64; then
  10578. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10579. allow_undefined_flag_CXX="-z nodefs"
  10580. 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"
  10581. else
  10582. # Determine the default libpath from the value encoded in an
  10583. # empty executable.
  10584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10585. /* end confdefs.h. */
  10586. int
  10587. main ()
  10588. {
  10589. ;
  10590. return 0;
  10591. }
  10592. _ACEOF
  10593. if ac_fn_cxx_try_link "$LINENO"; then :
  10594. lt_aix_libpath_sed='
  10595. /Import File Strings/,/^$/ {
  10596. /^0/ {
  10597. s/^0 *\(.*\)$/\1/
  10598. p
  10599. }
  10600. }'
  10601. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10602. # Check for a 64-bit object if we didn't find anything.
  10603. if test -z "$aix_libpath"; then
  10604. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10605. fi
  10606. fi
  10607. rm -f core conftest.err conftest.$ac_objext \
  10608. conftest$ac_exeext conftest.$ac_ext
  10609. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10610. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10611. # Warning - without using the other run time loading flags,
  10612. # -berok will link without error, but may produce a broken library.
  10613. no_undefined_flag_CXX=' ${wl}-bernotok'
  10614. allow_undefined_flag_CXX=' ${wl}-berok'
  10615. if test "$with_gnu_ld" = yes; then
  10616. # We only use this code for GNU lds that support --whole-archive.
  10617. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10618. else
  10619. # Exported symbols can be pulled into shared objects from archives
  10620. whole_archive_flag_spec_CXX='$convenience'
  10621. fi
  10622. archive_cmds_need_lc_CXX=yes
  10623. # This is similar to how AIX traditionally builds its shared
  10624. # libraries.
  10625. 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'
  10626. fi
  10627. fi
  10628. ;;
  10629. beos*)
  10630. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10631. allow_undefined_flag_CXX=unsupported
  10632. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10633. # support --undefined. This deserves some investigation. FIXME
  10634. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10635. else
  10636. ld_shlibs_CXX=no
  10637. fi
  10638. ;;
  10639. chorus*)
  10640. case $cc_basename in
  10641. *)
  10642. # FIXME: insert proper C++ library support
  10643. ld_shlibs_CXX=no
  10644. ;;
  10645. esac
  10646. ;;
  10647. cygwin* | mingw* | pw32* | cegcc*)
  10648. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10649. # as there is no search path for DLLs.
  10650. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10651. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10652. allow_undefined_flag_CXX=unsupported
  10653. always_export_symbols_CXX=no
  10654. enable_shared_with_static_runtimes_CXX=yes
  10655. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10656. 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'
  10657. # If the export-symbols file already is a .def file (1st line
  10658. # is EXPORTS), use it as is; otherwise, prepend...
  10659. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10660. cp $export_symbols $output_objdir/$soname.def;
  10661. else
  10662. echo EXPORTS > $output_objdir/$soname.def;
  10663. cat $export_symbols >> $output_objdir/$soname.def;
  10664. fi~
  10665. $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'
  10666. else
  10667. ld_shlibs_CXX=no
  10668. fi
  10669. ;;
  10670. darwin* | rhapsody*)
  10671. archive_cmds_need_lc_CXX=no
  10672. hardcode_direct_CXX=no
  10673. hardcode_automatic_CXX=yes
  10674. hardcode_shlibpath_var_CXX=unsupported
  10675. if test "$lt_cv_ld_force_load" = "yes"; then
  10676. 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\"`'
  10677. else
  10678. whole_archive_flag_spec_CXX=''
  10679. fi
  10680. link_all_deplibs_CXX=yes
  10681. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10682. case $cc_basename in
  10683. ifort*) _lt_dar_can_shared=yes ;;
  10684. *) _lt_dar_can_shared=$GCC ;;
  10685. esac
  10686. if test "$_lt_dar_can_shared" = "yes"; then
  10687. output_verbose_link_cmd=func_echo_all
  10688. 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}"
  10689. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10690. 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}"
  10691. 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}"
  10692. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10693. 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}"
  10694. 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}"
  10695. fi
  10696. else
  10697. ld_shlibs_CXX=no
  10698. fi
  10699. ;;
  10700. dgux*)
  10701. case $cc_basename in
  10702. ec++*)
  10703. # FIXME: insert proper C++ library support
  10704. ld_shlibs_CXX=no
  10705. ;;
  10706. ghcx*)
  10707. # Green Hills C++ Compiler
  10708. # FIXME: insert proper C++ library support
  10709. ld_shlibs_CXX=no
  10710. ;;
  10711. *)
  10712. # FIXME: insert proper C++ library support
  10713. ld_shlibs_CXX=no
  10714. ;;
  10715. esac
  10716. ;;
  10717. freebsd2.*)
  10718. # C++ shared libraries reported to be fairly broken before
  10719. # switch to ELF
  10720. ld_shlibs_CXX=no
  10721. ;;
  10722. freebsd-elf*)
  10723. archive_cmds_need_lc_CXX=no
  10724. ;;
  10725. freebsd* | dragonfly*)
  10726. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10727. # conventions
  10728. ld_shlibs_CXX=yes
  10729. ;;
  10730. gnu*)
  10731. ;;
  10732. haiku*)
  10733. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10734. link_all_deplibs_CXX=yes
  10735. ;;
  10736. hpux9*)
  10737. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10738. hardcode_libdir_separator_CXX=:
  10739. export_dynamic_flag_spec_CXX='${wl}-E'
  10740. hardcode_direct_CXX=yes
  10741. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10742. # but as the default
  10743. # location of the library.
  10744. case $cc_basename in
  10745. CC*)
  10746. # FIXME: insert proper C++ library support
  10747. ld_shlibs_CXX=no
  10748. ;;
  10749. aCC*)
  10750. 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'
  10751. # Commands to make compiler produce verbose output that lists
  10752. # what "hidden" libraries, object files and flags are used when
  10753. # linking a shared library.
  10754. #
  10755. # There doesn't appear to be a way to prevent this compiler from
  10756. # explicitly linking system object files so we need to strip them
  10757. # from the output so that they don't get included in the library
  10758. # dependencies.
  10759. 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"'
  10760. ;;
  10761. *)
  10762. if test "$GXX" = yes; then
  10763. 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'
  10764. else
  10765. # FIXME: insert proper C++ library support
  10766. ld_shlibs_CXX=no
  10767. fi
  10768. ;;
  10769. esac
  10770. ;;
  10771. hpux10*|hpux11*)
  10772. if test $with_gnu_ld = no; then
  10773. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10774. hardcode_libdir_separator_CXX=:
  10775. case $host_cpu in
  10776. hppa*64*|ia64*)
  10777. ;;
  10778. *)
  10779. export_dynamic_flag_spec_CXX='${wl}-E'
  10780. ;;
  10781. esac
  10782. fi
  10783. case $host_cpu in
  10784. hppa*64*|ia64*)
  10785. hardcode_direct_CXX=no
  10786. hardcode_shlibpath_var_CXX=no
  10787. ;;
  10788. *)
  10789. hardcode_direct_CXX=yes
  10790. hardcode_direct_absolute_CXX=yes
  10791. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10792. # but as the default
  10793. # location of the library.
  10794. ;;
  10795. esac
  10796. case $cc_basename in
  10797. CC*)
  10798. # FIXME: insert proper C++ library support
  10799. ld_shlibs_CXX=no
  10800. ;;
  10801. aCC*)
  10802. case $host_cpu in
  10803. hppa*64*)
  10804. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10805. ;;
  10806. ia64*)
  10807. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10808. ;;
  10809. *)
  10810. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10811. ;;
  10812. esac
  10813. # Commands to make compiler produce verbose output that lists
  10814. # what "hidden" libraries, object files and flags are used when
  10815. # linking a shared library.
  10816. #
  10817. # There doesn't appear to be a way to prevent this compiler from
  10818. # explicitly linking system object files so we need to strip them
  10819. # from the output so that they don't get included in the library
  10820. # dependencies.
  10821. 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"'
  10822. ;;
  10823. *)
  10824. if test "$GXX" = yes; then
  10825. if test $with_gnu_ld = no; then
  10826. case $host_cpu in
  10827. hppa*64*)
  10828. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10829. ;;
  10830. ia64*)
  10831. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10832. ;;
  10833. *)
  10834. 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'
  10835. ;;
  10836. esac
  10837. fi
  10838. else
  10839. # FIXME: insert proper C++ library support
  10840. ld_shlibs_CXX=no
  10841. fi
  10842. ;;
  10843. esac
  10844. ;;
  10845. interix[3-9]*)
  10846. hardcode_direct_CXX=no
  10847. hardcode_shlibpath_var_CXX=no
  10848. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10849. export_dynamic_flag_spec_CXX='${wl}-E'
  10850. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10851. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10852. # default) and relocated if they conflict, which is a slow very memory
  10853. # consuming and fragmenting process. To avoid this, we pick a random,
  10854. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10855. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10856. 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'
  10857. 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'
  10858. ;;
  10859. irix5* | irix6*)
  10860. case $cc_basename in
  10861. CC*)
  10862. # SGI C++
  10863. 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'
  10864. # Archives containing C++ object files must be created using
  10865. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10866. # necessary to make sure instantiated templates are included
  10867. # in the archive.
  10868. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10869. ;;
  10870. *)
  10871. if test "$GXX" = yes; then
  10872. if test "$with_gnu_ld" = no; then
  10873. 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'
  10874. else
  10875. 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'
  10876. fi
  10877. fi
  10878. link_all_deplibs_CXX=yes
  10879. ;;
  10880. esac
  10881. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10882. hardcode_libdir_separator_CXX=:
  10883. inherit_rpath_CXX=yes
  10884. ;;
  10885. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10886. case $cc_basename in
  10887. KCC*)
  10888. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10889. # KCC will only create a shared library if the output file
  10890. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10891. # to its proper name (with version) after linking.
  10892. 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'
  10893. 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'
  10894. # Commands to make compiler produce verbose output that lists
  10895. # what "hidden" libraries, object files and flags are used when
  10896. # linking a shared library.
  10897. #
  10898. # There doesn't appear to be a way to prevent this compiler from
  10899. # explicitly linking system object files so we need to strip them
  10900. # from the output so that they don't get included in the library
  10901. # dependencies.
  10902. 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"'
  10903. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10904. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10905. # Archives containing C++ object files must be created using
  10906. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10907. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10908. ;;
  10909. icpc* | ecpc* )
  10910. # Intel C++
  10911. with_gnu_ld=yes
  10912. # version 8.0 and above of icpc choke on multiply defined symbols
  10913. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10914. # earlier do not add the objects themselves.
  10915. case `$CC -V 2>&1` in
  10916. *"Version 7."*)
  10917. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10918. 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'
  10919. ;;
  10920. *) # Version 8.0 or newer
  10921. tmp_idyn=
  10922. case $host_cpu in
  10923. ia64*) tmp_idyn=' -i_dynamic';;
  10924. esac
  10925. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10926. 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'
  10927. ;;
  10928. esac
  10929. archive_cmds_need_lc_CXX=no
  10930. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10931. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10932. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10933. ;;
  10934. pgCC* | pgcpp*)
  10935. # Portland Group C++ compiler
  10936. case `$CC -V` in
  10937. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10938. prelink_cmds_CXX='tpldir=Template.dir~
  10939. rm -rf $tpldir~
  10940. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10941. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10942. old_archive_cmds_CXX='tpldir=Template.dir~
  10943. rm -rf $tpldir~
  10944. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10945. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10946. $RANLIB $oldlib'
  10947. archive_cmds_CXX='tpldir=Template.dir~
  10948. rm -rf $tpldir~
  10949. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10950. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10951. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10952. rm -rf $tpldir~
  10953. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10954. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10955. ;;
  10956. *) # Version 6 and above use weak symbols
  10957. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10958. 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'
  10959. ;;
  10960. esac
  10961. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10962. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10963. 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'
  10964. ;;
  10965. cxx*)
  10966. # Compaq C++
  10967. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10968. 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'
  10969. runpath_var=LD_RUN_PATH
  10970. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10971. hardcode_libdir_separator_CXX=:
  10972. # Commands to make compiler produce verbose output that lists
  10973. # what "hidden" libraries, object files and flags are used when
  10974. # linking a shared library.
  10975. #
  10976. # There doesn't appear to be a way to prevent this compiler from
  10977. # explicitly linking system object files so we need to strip them
  10978. # from the output so that they don't get included in the library
  10979. # dependencies.
  10980. 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'
  10981. ;;
  10982. xl* | mpixl* | bgxl*)
  10983. # IBM XL 8.0 on PPC, with GNU ld
  10984. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10985. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10986. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10987. if test "x$supports_anon_versioning" = xyes; then
  10988. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10989. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10990. echo "local: *; };" >> $output_objdir/$libname.ver~
  10991. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10992. fi
  10993. ;;
  10994. *)
  10995. case `$CC -V 2>&1 | sed 5q` in
  10996. *Sun\ C*)
  10997. # Sun C++ 5.9
  10998. no_undefined_flag_CXX=' -zdefs'
  10999. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11000. 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'
  11001. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11002. 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'
  11003. compiler_needs_object_CXX=yes
  11004. # Not sure whether something based on
  11005. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11006. # would be better.
  11007. output_verbose_link_cmd='func_echo_all'
  11008. # Archives containing C++ object files must be created using
  11009. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11010. # necessary to make sure instantiated templates are included
  11011. # in the archive.
  11012. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11013. ;;
  11014. esac
  11015. ;;
  11016. esac
  11017. ;;
  11018. lynxos*)
  11019. # FIXME: insert proper C++ library support
  11020. ld_shlibs_CXX=no
  11021. ;;
  11022. m88k*)
  11023. # FIXME: insert proper C++ library support
  11024. ld_shlibs_CXX=no
  11025. ;;
  11026. mvs*)
  11027. case $cc_basename in
  11028. cxx*)
  11029. # FIXME: insert proper C++ library support
  11030. ld_shlibs_CXX=no
  11031. ;;
  11032. *)
  11033. # FIXME: insert proper C++ library support
  11034. ld_shlibs_CXX=no
  11035. ;;
  11036. esac
  11037. ;;
  11038. netbsd*)
  11039. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11040. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11041. wlarc=
  11042. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11043. hardcode_direct_CXX=yes
  11044. hardcode_shlibpath_var_CXX=no
  11045. fi
  11046. # Workaround some broken pre-1.5 toolchains
  11047. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11048. ;;
  11049. *nto* | *qnx*)
  11050. ld_shlibs_CXX=yes
  11051. ;;
  11052. openbsd2*)
  11053. # C++ shared libraries are fairly broken
  11054. ld_shlibs_CXX=no
  11055. ;;
  11056. openbsd*)
  11057. if test -f /usr/libexec/ld.so; then
  11058. hardcode_direct_CXX=yes
  11059. hardcode_shlibpath_var_CXX=no
  11060. hardcode_direct_absolute_CXX=yes
  11061. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11062. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11063. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11064. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11065. export_dynamic_flag_spec_CXX='${wl}-E'
  11066. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11067. fi
  11068. output_verbose_link_cmd=func_echo_all
  11069. else
  11070. ld_shlibs_CXX=no
  11071. fi
  11072. ;;
  11073. osf3* | osf4* | osf5*)
  11074. case $cc_basename in
  11075. KCC*)
  11076. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11077. # KCC will only create a shared library if the output file
  11078. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11079. # to its proper name (with version) after linking.
  11080. 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'
  11081. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11082. hardcode_libdir_separator_CXX=:
  11083. # Archives containing C++ object files must be created using
  11084. # the KAI C++ compiler.
  11085. case $host in
  11086. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11087. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11088. esac
  11089. ;;
  11090. RCC*)
  11091. # Rational C++ 2.4.1
  11092. # FIXME: insert proper C++ library support
  11093. ld_shlibs_CXX=no
  11094. ;;
  11095. cxx*)
  11096. case $host in
  11097. osf3*)
  11098. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11099. 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'
  11100. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11101. ;;
  11102. *)
  11103. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11104. 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'
  11105. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11106. echo "-hidden">> $lib.exp~
  11107. $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~
  11108. $RM $lib.exp'
  11109. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11110. ;;
  11111. esac
  11112. hardcode_libdir_separator_CXX=:
  11113. # Commands to make compiler produce verbose output that lists
  11114. # what "hidden" libraries, object files and flags are used when
  11115. # linking a shared library.
  11116. #
  11117. # There doesn't appear to be a way to prevent this compiler from
  11118. # explicitly linking system object files so we need to strip them
  11119. # from the output so that they don't get included in the library
  11120. # dependencies.
  11121. 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"'
  11122. ;;
  11123. *)
  11124. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11125. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11126. case $host in
  11127. osf3*)
  11128. 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'
  11129. ;;
  11130. *)
  11131. 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'
  11132. ;;
  11133. esac
  11134. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11135. hardcode_libdir_separator_CXX=:
  11136. # Commands to make compiler produce verbose output that lists
  11137. # what "hidden" libraries, object files and flags are used when
  11138. # linking a shared library.
  11139. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11140. else
  11141. # FIXME: insert proper C++ library support
  11142. ld_shlibs_CXX=no
  11143. fi
  11144. ;;
  11145. esac
  11146. ;;
  11147. psos*)
  11148. # FIXME: insert proper C++ library support
  11149. ld_shlibs_CXX=no
  11150. ;;
  11151. sunos4*)
  11152. case $cc_basename in
  11153. CC*)
  11154. # Sun C++ 4.x
  11155. # FIXME: insert proper C++ library support
  11156. ld_shlibs_CXX=no
  11157. ;;
  11158. lcc*)
  11159. # Lucid
  11160. # FIXME: insert proper C++ library support
  11161. ld_shlibs_CXX=no
  11162. ;;
  11163. *)
  11164. # FIXME: insert proper C++ library support
  11165. ld_shlibs_CXX=no
  11166. ;;
  11167. esac
  11168. ;;
  11169. solaris*)
  11170. case $cc_basename in
  11171. CC*)
  11172. # Sun C++ 4.2, 5.x and Centerline C++
  11173. archive_cmds_need_lc_CXX=yes
  11174. no_undefined_flag_CXX=' -zdefs'
  11175. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11176. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11177. $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'
  11178. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11179. hardcode_shlibpath_var_CXX=no
  11180. case $host_os in
  11181. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11182. *)
  11183. # The compiler driver will combine and reorder linker options,
  11184. # but understands `-z linker_flag'.
  11185. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11186. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11187. ;;
  11188. esac
  11189. link_all_deplibs_CXX=yes
  11190. output_verbose_link_cmd='func_echo_all'
  11191. # Archives containing C++ object files must be created using
  11192. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11193. # necessary to make sure instantiated templates are included
  11194. # in the archive.
  11195. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11196. ;;
  11197. gcx*)
  11198. # Green Hills C++ Compiler
  11199. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11200. # The C++ compiler must be used to create the archive.
  11201. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11202. ;;
  11203. *)
  11204. # GNU C++ compiler with Solaris linker
  11205. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11206. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11207. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11208. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11209. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11210. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11211. # Commands to make compiler produce verbose output that lists
  11212. # what "hidden" libraries, object files and flags are used when
  11213. # linking a shared library.
  11214. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11215. else
  11216. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11217. # platform.
  11218. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11219. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11220. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11221. # Commands to make compiler produce verbose output that lists
  11222. # what "hidden" libraries, object files and flags are used when
  11223. # linking a shared library.
  11224. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11225. fi
  11226. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11227. case $host_os in
  11228. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11229. *)
  11230. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11231. ;;
  11232. esac
  11233. fi
  11234. ;;
  11235. esac
  11236. ;;
  11237. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11238. no_undefined_flag_CXX='${wl}-z,text'
  11239. archive_cmds_need_lc_CXX=no
  11240. hardcode_shlibpath_var_CXX=no
  11241. runpath_var='LD_RUN_PATH'
  11242. case $cc_basename in
  11243. CC*)
  11244. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11245. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11246. ;;
  11247. *)
  11248. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11249. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11250. ;;
  11251. esac
  11252. ;;
  11253. sysv5* | sco3.2v5* | sco5v6*)
  11254. # Note: We can NOT use -z defs as we might desire, because we do not
  11255. # link with -lc, and that would cause any symbols used from libc to
  11256. # always be unresolved, which means just about no library would
  11257. # ever link correctly. If we're not using GNU ld we use -z text
  11258. # though, which does catch some bad symbols but isn't as heavy-handed
  11259. # as -z defs.
  11260. no_undefined_flag_CXX='${wl}-z,text'
  11261. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11262. archive_cmds_need_lc_CXX=no
  11263. hardcode_shlibpath_var_CXX=no
  11264. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11265. hardcode_libdir_separator_CXX=':'
  11266. link_all_deplibs_CXX=yes
  11267. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11268. runpath_var='LD_RUN_PATH'
  11269. case $cc_basename in
  11270. CC*)
  11271. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11272. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11273. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11274. '"$old_archive_cmds_CXX"
  11275. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11276. '"$reload_cmds_CXX"
  11277. ;;
  11278. *)
  11279. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11280. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11281. ;;
  11282. esac
  11283. ;;
  11284. tandem*)
  11285. case $cc_basename in
  11286. NCC*)
  11287. # NonStop-UX NCC 3.20
  11288. # FIXME: insert proper C++ library support
  11289. ld_shlibs_CXX=no
  11290. ;;
  11291. *)
  11292. # FIXME: insert proper C++ library support
  11293. ld_shlibs_CXX=no
  11294. ;;
  11295. esac
  11296. ;;
  11297. vxworks*)
  11298. # FIXME: insert proper C++ library support
  11299. ld_shlibs_CXX=no
  11300. ;;
  11301. *)
  11302. # FIXME: insert proper C++ library support
  11303. ld_shlibs_CXX=no
  11304. ;;
  11305. esac
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11307. $as_echo "$ld_shlibs_CXX" >&6; }
  11308. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11309. GCC_CXX="$GXX"
  11310. LD_CXX="$LD"
  11311. ## CAVEAT EMPTOR:
  11312. ## There is no encapsulation within the following macros, do not change
  11313. ## the running order or otherwise move them around unless you know exactly
  11314. ## what you are doing...
  11315. # Dependencies to place before and after the object being linked:
  11316. predep_objects_CXX=
  11317. postdep_objects_CXX=
  11318. predeps_CXX=
  11319. postdeps_CXX=
  11320. compiler_lib_search_path_CXX=
  11321. cat > conftest.$ac_ext <<_LT_EOF
  11322. class Foo
  11323. {
  11324. public:
  11325. Foo (void) { a = 0; }
  11326. private:
  11327. int a;
  11328. };
  11329. _LT_EOF
  11330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11331. (eval $ac_compile) 2>&5
  11332. ac_status=$?
  11333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11334. test $ac_status = 0; }; then
  11335. # Parse the compiler output and extract the necessary
  11336. # objects, libraries and library flags.
  11337. # Sentinel used to keep track of whether or not we are before
  11338. # the conftest object file.
  11339. pre_test_object_deps_done=no
  11340. for p in `eval "$output_verbose_link_cmd"`; do
  11341. case $p in
  11342. -L* | -R* | -l*)
  11343. # Some compilers place space between "-{L,R}" and the path.
  11344. # Remove the space.
  11345. if test $p = "-L" ||
  11346. test $p = "-R"; then
  11347. prev=$p
  11348. continue
  11349. else
  11350. prev=
  11351. fi
  11352. if test "$pre_test_object_deps_done" = no; then
  11353. case $p in
  11354. -L* | -R*)
  11355. # Internal compiler library paths should come after those
  11356. # provided the user. The postdeps already come after the
  11357. # user supplied libs so there is no need to process them.
  11358. if test -z "$compiler_lib_search_path_CXX"; then
  11359. compiler_lib_search_path_CXX="${prev}${p}"
  11360. else
  11361. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11362. fi
  11363. ;;
  11364. # The "-l" case would never come before the object being
  11365. # linked, so don't bother handling this case.
  11366. esac
  11367. else
  11368. if test -z "$postdeps_CXX"; then
  11369. postdeps_CXX="${prev}${p}"
  11370. else
  11371. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11372. fi
  11373. fi
  11374. ;;
  11375. *.$objext)
  11376. # This assumes that the test object file only shows up
  11377. # once in the compiler output.
  11378. if test "$p" = "conftest.$objext"; then
  11379. pre_test_object_deps_done=yes
  11380. continue
  11381. fi
  11382. if test "$pre_test_object_deps_done" = no; then
  11383. if test -z "$predep_objects_CXX"; then
  11384. predep_objects_CXX="$p"
  11385. else
  11386. predep_objects_CXX="$predep_objects_CXX $p"
  11387. fi
  11388. else
  11389. if test -z "$postdep_objects_CXX"; then
  11390. postdep_objects_CXX="$p"
  11391. else
  11392. postdep_objects_CXX="$postdep_objects_CXX $p"
  11393. fi
  11394. fi
  11395. ;;
  11396. *) ;; # Ignore the rest.
  11397. esac
  11398. done
  11399. # Clean up.
  11400. rm -f a.out a.exe
  11401. else
  11402. echo "libtool.m4: error: problem compiling CXX test program"
  11403. fi
  11404. $RM -f confest.$objext
  11405. # PORTME: override above test on systems where it is broken
  11406. case $host_os in
  11407. interix[3-9]*)
  11408. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11409. # hack all around it, let's just trust "g++" to DTRT.
  11410. predep_objects_CXX=
  11411. postdep_objects_CXX=
  11412. postdeps_CXX=
  11413. ;;
  11414. linux*)
  11415. case `$CC -V 2>&1 | sed 5q` in
  11416. *Sun\ C*)
  11417. # Sun C++ 5.9
  11418. # The more standards-conforming stlport4 library is
  11419. # incompatible with the Cstd library. Avoid specifying
  11420. # it if it's in CXXFLAGS. Ignore libCrun as
  11421. # -library=stlport4 depends on it.
  11422. case " $CXX $CXXFLAGS " in
  11423. *" -library=stlport4 "*)
  11424. solaris_use_stlport4=yes
  11425. ;;
  11426. esac
  11427. if test "$solaris_use_stlport4" != yes; then
  11428. postdeps_CXX='-library=Cstd -library=Crun'
  11429. fi
  11430. ;;
  11431. esac
  11432. ;;
  11433. solaris*)
  11434. case $cc_basename in
  11435. CC*)
  11436. # The more standards-conforming stlport4 library is
  11437. # incompatible with the Cstd library. Avoid specifying
  11438. # it if it's in CXXFLAGS. Ignore libCrun as
  11439. # -library=stlport4 depends on it.
  11440. case " $CXX $CXXFLAGS " in
  11441. *" -library=stlport4 "*)
  11442. solaris_use_stlport4=yes
  11443. ;;
  11444. esac
  11445. # Adding this requires a known-good setup of shared libraries for
  11446. # Sun compiler versions before 5.6, else PIC objects from an old
  11447. # archive will be linked into the output, leading to subtle bugs.
  11448. if test "$solaris_use_stlport4" != yes; then
  11449. postdeps_CXX='-library=Cstd -library=Crun'
  11450. fi
  11451. ;;
  11452. esac
  11453. ;;
  11454. esac
  11455. case " $postdeps_CXX " in
  11456. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11457. esac
  11458. compiler_lib_search_dirs_CXX=
  11459. if test -n "${compiler_lib_search_path_CXX}"; then
  11460. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11461. fi
  11462. lt_prog_compiler_wl_CXX=
  11463. lt_prog_compiler_pic_CXX=
  11464. lt_prog_compiler_static_CXX=
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11466. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11467. # C++ specific cases for pic, static, wl, etc.
  11468. if test "$GXX" = yes; then
  11469. lt_prog_compiler_wl_CXX='-Wl,'
  11470. lt_prog_compiler_static_CXX='-static'
  11471. case $host_os in
  11472. aix*)
  11473. # All AIX code is PIC.
  11474. if test "$host_cpu" = ia64; then
  11475. # AIX 5 now supports IA64 processor
  11476. lt_prog_compiler_static_CXX='-Bstatic'
  11477. fi
  11478. lt_prog_compiler_pic_CXX='-fPIC'
  11479. ;;
  11480. amigaos*)
  11481. case $host_cpu in
  11482. powerpc)
  11483. # see comment about AmigaOS4 .so support
  11484. lt_prog_compiler_pic_CXX='-fPIC'
  11485. ;;
  11486. m68k)
  11487. # FIXME: we need at least 68020 code to build shared libraries, but
  11488. # adding the `-m68020' flag to GCC prevents building anything better,
  11489. # like `-m68040'.
  11490. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11491. ;;
  11492. esac
  11493. ;;
  11494. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11495. # PIC is the default for these OSes.
  11496. ;;
  11497. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11498. # This hack is so that the source file can tell whether it is being
  11499. # built for inclusion in a dll (and should export symbols for example).
  11500. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11501. # (--disable-auto-import) libraries
  11502. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11503. ;;
  11504. darwin* | rhapsody*)
  11505. # PIC is the default on this platform
  11506. # Common symbols not allowed in MH_DYLIB files
  11507. lt_prog_compiler_pic_CXX='-fno-common'
  11508. ;;
  11509. *djgpp*)
  11510. # DJGPP does not support shared libraries at all
  11511. lt_prog_compiler_pic_CXX=
  11512. ;;
  11513. haiku*)
  11514. # PIC is the default for Haiku.
  11515. # The "-static" flag exists, but is broken.
  11516. lt_prog_compiler_static_CXX=
  11517. ;;
  11518. interix[3-9]*)
  11519. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11520. # Instead, we relocate shared libraries at runtime.
  11521. ;;
  11522. sysv4*MP*)
  11523. if test -d /usr/nec; then
  11524. lt_prog_compiler_pic_CXX=-Kconform_pic
  11525. fi
  11526. ;;
  11527. hpux*)
  11528. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11529. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11530. # sets the default TLS model and affects inlining.
  11531. case $host_cpu in
  11532. hppa*64*)
  11533. ;;
  11534. *)
  11535. lt_prog_compiler_pic_CXX='-fPIC'
  11536. ;;
  11537. esac
  11538. ;;
  11539. *qnx* | *nto*)
  11540. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11541. # it will coredump.
  11542. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11543. ;;
  11544. *)
  11545. lt_prog_compiler_pic_CXX='-fPIC'
  11546. ;;
  11547. esac
  11548. else
  11549. case $host_os in
  11550. aix[4-9]*)
  11551. # All AIX code is PIC.
  11552. if test "$host_cpu" = ia64; then
  11553. # AIX 5 now supports IA64 processor
  11554. lt_prog_compiler_static_CXX='-Bstatic'
  11555. else
  11556. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11557. fi
  11558. ;;
  11559. chorus*)
  11560. case $cc_basename in
  11561. cxch68*)
  11562. # Green Hills C++ Compiler
  11563. # _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"
  11564. ;;
  11565. esac
  11566. ;;
  11567. dgux*)
  11568. case $cc_basename in
  11569. ec++*)
  11570. lt_prog_compiler_pic_CXX='-KPIC'
  11571. ;;
  11572. ghcx*)
  11573. # Green Hills C++ Compiler
  11574. lt_prog_compiler_pic_CXX='-pic'
  11575. ;;
  11576. *)
  11577. ;;
  11578. esac
  11579. ;;
  11580. freebsd* | dragonfly*)
  11581. # FreeBSD uses GNU C++
  11582. ;;
  11583. hpux9* | hpux10* | hpux11*)
  11584. case $cc_basename in
  11585. CC*)
  11586. lt_prog_compiler_wl_CXX='-Wl,'
  11587. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11588. if test "$host_cpu" != ia64; then
  11589. lt_prog_compiler_pic_CXX='+Z'
  11590. fi
  11591. ;;
  11592. aCC*)
  11593. lt_prog_compiler_wl_CXX='-Wl,'
  11594. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11595. case $host_cpu in
  11596. hppa*64*|ia64*)
  11597. # +Z the default
  11598. ;;
  11599. *)
  11600. lt_prog_compiler_pic_CXX='+Z'
  11601. ;;
  11602. esac
  11603. ;;
  11604. *)
  11605. ;;
  11606. esac
  11607. ;;
  11608. interix*)
  11609. # This is c89, which is MS Visual C++ (no shared libs)
  11610. # Anyone wants to do a port?
  11611. ;;
  11612. irix5* | irix6* | nonstopux*)
  11613. case $cc_basename in
  11614. CC*)
  11615. lt_prog_compiler_wl_CXX='-Wl,'
  11616. lt_prog_compiler_static_CXX='-non_shared'
  11617. # CC pic flag -KPIC is the default.
  11618. ;;
  11619. *)
  11620. ;;
  11621. esac
  11622. ;;
  11623. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11624. case $cc_basename in
  11625. KCC*)
  11626. # KAI C++ Compiler
  11627. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11628. lt_prog_compiler_pic_CXX='-fPIC'
  11629. ;;
  11630. ecpc* )
  11631. # old Intel C++ for x86_64 which still supported -KPIC.
  11632. lt_prog_compiler_wl_CXX='-Wl,'
  11633. lt_prog_compiler_pic_CXX='-KPIC'
  11634. lt_prog_compiler_static_CXX='-static'
  11635. ;;
  11636. icpc* )
  11637. # Intel C++, used to be incompatible with GCC.
  11638. # ICC 10 doesn't accept -KPIC any more.
  11639. lt_prog_compiler_wl_CXX='-Wl,'
  11640. lt_prog_compiler_pic_CXX='-fPIC'
  11641. lt_prog_compiler_static_CXX='-static'
  11642. ;;
  11643. pgCC* | pgcpp*)
  11644. # Portland Group C++ compiler
  11645. lt_prog_compiler_wl_CXX='-Wl,'
  11646. lt_prog_compiler_pic_CXX='-fpic'
  11647. lt_prog_compiler_static_CXX='-Bstatic'
  11648. ;;
  11649. cxx*)
  11650. # Compaq C++
  11651. # Make sure the PIC flag is empty. It appears that all Alpha
  11652. # Linux and Compaq Tru64 Unix objects are PIC.
  11653. lt_prog_compiler_pic_CXX=
  11654. lt_prog_compiler_static_CXX='-non_shared'
  11655. ;;
  11656. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11657. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11658. lt_prog_compiler_wl_CXX='-Wl,'
  11659. lt_prog_compiler_pic_CXX='-qpic'
  11660. lt_prog_compiler_static_CXX='-qstaticlink'
  11661. ;;
  11662. *)
  11663. case `$CC -V 2>&1 | sed 5q` in
  11664. *Sun\ C*)
  11665. # Sun C++ 5.9
  11666. lt_prog_compiler_pic_CXX='-KPIC'
  11667. lt_prog_compiler_static_CXX='-Bstatic'
  11668. lt_prog_compiler_wl_CXX='-Qoption ld '
  11669. ;;
  11670. esac
  11671. ;;
  11672. esac
  11673. ;;
  11674. lynxos*)
  11675. ;;
  11676. m88k*)
  11677. ;;
  11678. mvs*)
  11679. case $cc_basename in
  11680. cxx*)
  11681. lt_prog_compiler_pic_CXX='-W c,exportall'
  11682. ;;
  11683. *)
  11684. ;;
  11685. esac
  11686. ;;
  11687. netbsd*)
  11688. ;;
  11689. *qnx* | *nto*)
  11690. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11691. # it will coredump.
  11692. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11693. ;;
  11694. osf3* | osf4* | osf5*)
  11695. case $cc_basename in
  11696. KCC*)
  11697. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11698. ;;
  11699. RCC*)
  11700. # Rational C++ 2.4.1
  11701. lt_prog_compiler_pic_CXX='-pic'
  11702. ;;
  11703. cxx*)
  11704. # Digital/Compaq C++
  11705. lt_prog_compiler_wl_CXX='-Wl,'
  11706. # Make sure the PIC flag is empty. It appears that all Alpha
  11707. # Linux and Compaq Tru64 Unix objects are PIC.
  11708. lt_prog_compiler_pic_CXX=
  11709. lt_prog_compiler_static_CXX='-non_shared'
  11710. ;;
  11711. *)
  11712. ;;
  11713. esac
  11714. ;;
  11715. psos*)
  11716. ;;
  11717. solaris*)
  11718. case $cc_basename in
  11719. CC*)
  11720. # Sun C++ 4.2, 5.x and Centerline C++
  11721. lt_prog_compiler_pic_CXX='-KPIC'
  11722. lt_prog_compiler_static_CXX='-Bstatic'
  11723. lt_prog_compiler_wl_CXX='-Qoption ld '
  11724. ;;
  11725. gcx*)
  11726. # Green Hills C++ Compiler
  11727. lt_prog_compiler_pic_CXX='-PIC'
  11728. ;;
  11729. *)
  11730. ;;
  11731. esac
  11732. ;;
  11733. sunos4*)
  11734. case $cc_basename in
  11735. CC*)
  11736. # Sun C++ 4.x
  11737. lt_prog_compiler_pic_CXX='-pic'
  11738. lt_prog_compiler_static_CXX='-Bstatic'
  11739. ;;
  11740. lcc*)
  11741. # Lucid
  11742. lt_prog_compiler_pic_CXX='-pic'
  11743. ;;
  11744. *)
  11745. ;;
  11746. esac
  11747. ;;
  11748. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11749. case $cc_basename in
  11750. CC*)
  11751. lt_prog_compiler_wl_CXX='-Wl,'
  11752. lt_prog_compiler_pic_CXX='-KPIC'
  11753. lt_prog_compiler_static_CXX='-Bstatic'
  11754. ;;
  11755. esac
  11756. ;;
  11757. tandem*)
  11758. case $cc_basename in
  11759. NCC*)
  11760. # NonStop-UX NCC 3.20
  11761. lt_prog_compiler_pic_CXX='-KPIC'
  11762. ;;
  11763. *)
  11764. ;;
  11765. esac
  11766. ;;
  11767. vxworks*)
  11768. ;;
  11769. *)
  11770. lt_prog_compiler_can_build_shared_CXX=no
  11771. ;;
  11772. esac
  11773. fi
  11774. case $host_os in
  11775. # For platforms which do not support PIC, -DPIC is meaningless:
  11776. *djgpp*)
  11777. lt_prog_compiler_pic_CXX=
  11778. ;;
  11779. *)
  11780. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11781. ;;
  11782. esac
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11784. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11785. #
  11786. # Check to make sure the PIC flag actually works.
  11787. #
  11788. if test -n "$lt_prog_compiler_pic_CXX"; then
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11790. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11791. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11792. $as_echo_n "(cached) " >&6
  11793. else
  11794. lt_cv_prog_compiler_pic_works_CXX=no
  11795. ac_outfile=conftest.$ac_objext
  11796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11797. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11798. # Insert the option either (1) after the last *FLAGS variable, or
  11799. # (2) before a word containing "conftest.", or (3) at the end.
  11800. # Note that $ac_compile itself does not contain backslashes and begins
  11801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11802. # The option is referenced via a variable to avoid confusing sed.
  11803. lt_compile=`echo "$ac_compile" | $SED \
  11804. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11805. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11806. -e 's:$: $lt_compiler_flag:'`
  11807. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11808. (eval "$lt_compile" 2>conftest.err)
  11809. ac_status=$?
  11810. cat conftest.err >&5
  11811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11812. if (exit $ac_status) && test -s "$ac_outfile"; then
  11813. # The compiler can only warn and ignore the option if not recognized
  11814. # So say no if there are warnings other than the usual output.
  11815. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11816. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11817. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11818. lt_cv_prog_compiler_pic_works_CXX=yes
  11819. fi
  11820. fi
  11821. $RM conftest*
  11822. fi
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11824. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11825. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11826. case $lt_prog_compiler_pic_CXX in
  11827. "" | " "*) ;;
  11828. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11829. esac
  11830. else
  11831. lt_prog_compiler_pic_CXX=
  11832. lt_prog_compiler_can_build_shared_CXX=no
  11833. fi
  11834. fi
  11835. #
  11836. # Check to make sure the static flag actually works.
  11837. #
  11838. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11840. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11841. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11842. $as_echo_n "(cached) " >&6
  11843. else
  11844. lt_cv_prog_compiler_static_works_CXX=no
  11845. save_LDFLAGS="$LDFLAGS"
  11846. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11847. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11848. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11849. # The linker can only warn and ignore the option if not recognized
  11850. # So say no if there are warnings
  11851. if test -s conftest.err; then
  11852. # Append any errors to the config.log.
  11853. cat conftest.err 1>&5
  11854. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11855. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11856. if diff conftest.exp conftest.er2 >/dev/null; then
  11857. lt_cv_prog_compiler_static_works_CXX=yes
  11858. fi
  11859. else
  11860. lt_cv_prog_compiler_static_works_CXX=yes
  11861. fi
  11862. fi
  11863. $RM -r conftest*
  11864. LDFLAGS="$save_LDFLAGS"
  11865. fi
  11866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11867. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11868. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11869. :
  11870. else
  11871. lt_prog_compiler_static_CXX=
  11872. fi
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11874. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11875. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11876. $as_echo_n "(cached) " >&6
  11877. else
  11878. lt_cv_prog_compiler_c_o_CXX=no
  11879. $RM -r conftest 2>/dev/null
  11880. mkdir conftest
  11881. cd conftest
  11882. mkdir out
  11883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11884. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11885. # Insert the option either (1) after the last *FLAGS variable, or
  11886. # (2) before a word containing "conftest.", or (3) at the end.
  11887. # Note that $ac_compile itself does not contain backslashes and begins
  11888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11889. lt_compile=`echo "$ac_compile" | $SED \
  11890. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11891. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11892. -e 's:$: $lt_compiler_flag:'`
  11893. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11894. (eval "$lt_compile" 2>out/conftest.err)
  11895. ac_status=$?
  11896. cat out/conftest.err >&5
  11897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11898. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11899. then
  11900. # The compiler can only warn and ignore the option if not recognized
  11901. # So say no if there are warnings
  11902. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11903. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11904. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11905. lt_cv_prog_compiler_c_o_CXX=yes
  11906. fi
  11907. fi
  11908. chmod u+w . 2>&5
  11909. $RM conftest*
  11910. # SGI C++ compiler will create directory out/ii_files/ for
  11911. # template instantiation
  11912. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11913. $RM out/* && rmdir out
  11914. cd ..
  11915. $RM -r conftest
  11916. $RM conftest*
  11917. fi
  11918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11919. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11921. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11922. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11923. $as_echo_n "(cached) " >&6
  11924. else
  11925. lt_cv_prog_compiler_c_o_CXX=no
  11926. $RM -r conftest 2>/dev/null
  11927. mkdir conftest
  11928. cd conftest
  11929. mkdir out
  11930. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11931. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11932. # Insert the option either (1) after the last *FLAGS variable, or
  11933. # (2) before a word containing "conftest.", or (3) at the end.
  11934. # Note that $ac_compile itself does not contain backslashes and begins
  11935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11936. lt_compile=`echo "$ac_compile" | $SED \
  11937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11939. -e 's:$: $lt_compiler_flag:'`
  11940. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11941. (eval "$lt_compile" 2>out/conftest.err)
  11942. ac_status=$?
  11943. cat out/conftest.err >&5
  11944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11945. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11946. then
  11947. # The compiler can only warn and ignore the option if not recognized
  11948. # So say no if there are warnings
  11949. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11950. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11951. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11952. lt_cv_prog_compiler_c_o_CXX=yes
  11953. fi
  11954. fi
  11955. chmod u+w . 2>&5
  11956. $RM conftest*
  11957. # SGI C++ compiler will create directory out/ii_files/ for
  11958. # template instantiation
  11959. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11960. $RM out/* && rmdir out
  11961. cd ..
  11962. $RM -r conftest
  11963. $RM conftest*
  11964. fi
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11966. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11967. hard_links="nottested"
  11968. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11969. # do not overwrite the value of need_locks provided by the user
  11970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11971. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11972. hard_links=yes
  11973. $RM conftest*
  11974. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11975. touch conftest.a
  11976. ln conftest.a conftest.b 2>&5 || hard_links=no
  11977. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11979. $as_echo "$hard_links" >&6; }
  11980. if test "$hard_links" = no; then
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11982. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11983. need_locks=warn
  11984. fi
  11985. else
  11986. need_locks=no
  11987. fi
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11989. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11990. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11991. case $host_os in
  11992. aix[4-9]*)
  11993. # If we're using GNU nm, then we don't want the "-C" option.
  11994. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11995. # Also, AIX nm treats weak defined symbols like other global defined
  11996. # symbols, whereas GNU nm marks them as "W".
  11997. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11998. 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'
  11999. else
  12000. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12001. fi
  12002. ;;
  12003. pw32*)
  12004. export_symbols_cmds_CXX="$ltdll_cmds"
  12005. ;;
  12006. cygwin* | mingw* | cegcc*)
  12007. 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'
  12008. ;;
  12009. *)
  12010. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12011. ;;
  12012. esac
  12013. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12015. $as_echo "$ld_shlibs_CXX" >&6; }
  12016. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12017. with_gnu_ld_CXX=$with_gnu_ld
  12018. #
  12019. # Do we need to explicitly link libc?
  12020. #
  12021. case "x$archive_cmds_need_lc_CXX" in
  12022. x|xyes)
  12023. # Assume -lc should be added
  12024. archive_cmds_need_lc_CXX=yes
  12025. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12026. case $archive_cmds_CXX in
  12027. *'~'*)
  12028. # FIXME: we may have to deal with multi-command sequences.
  12029. ;;
  12030. '$CC '*)
  12031. # Test whether the compiler implicitly links with -lc since on some
  12032. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12033. # to ld, don't add -lc before -lgcc.
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12035. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12036. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12037. $as_echo_n "(cached) " >&6
  12038. else
  12039. $RM conftest*
  12040. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12041. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12042. (eval $ac_compile) 2>&5
  12043. ac_status=$?
  12044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12045. test $ac_status = 0; } 2>conftest.err; then
  12046. soname=conftest
  12047. lib=conftest
  12048. libobjs=conftest.$ac_objext
  12049. deplibs=
  12050. wl=$lt_prog_compiler_wl_CXX
  12051. pic_flag=$lt_prog_compiler_pic_CXX
  12052. compiler_flags=-v
  12053. linker_flags=-v
  12054. verstring=
  12055. output_objdir=.
  12056. libname=conftest
  12057. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12058. allow_undefined_flag_CXX=
  12059. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12060. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12061. ac_status=$?
  12062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12063. test $ac_status = 0; }
  12064. then
  12065. lt_cv_archive_cmds_need_lc_CXX=no
  12066. else
  12067. lt_cv_archive_cmds_need_lc_CXX=yes
  12068. fi
  12069. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12070. else
  12071. cat conftest.err 1>&5
  12072. fi
  12073. $RM conftest*
  12074. fi
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12076. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12077. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12078. ;;
  12079. esac
  12080. fi
  12081. ;;
  12082. esac
  12083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12084. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12085. library_names_spec=
  12086. libname_spec='lib$name'
  12087. soname_spec=
  12088. shrext_cmds=".so"
  12089. postinstall_cmds=
  12090. postuninstall_cmds=
  12091. finish_cmds=
  12092. finish_eval=
  12093. shlibpath_var=
  12094. shlibpath_overrides_runpath=unknown
  12095. version_type=none
  12096. dynamic_linker="$host_os ld.so"
  12097. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12098. need_lib_prefix=unknown
  12099. hardcode_into_libs=no
  12100. # when you set need_version to no, make sure it does not cause -set_version
  12101. # flags to be left without arguments
  12102. need_version=unknown
  12103. case $host_os in
  12104. aix3*)
  12105. version_type=linux
  12106. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12107. shlibpath_var=LIBPATH
  12108. # AIX 3 has no versioning support, so we append a major version to the name.
  12109. soname_spec='${libname}${release}${shared_ext}$major'
  12110. ;;
  12111. aix[4-9]*)
  12112. version_type=linux
  12113. need_lib_prefix=no
  12114. need_version=no
  12115. hardcode_into_libs=yes
  12116. if test "$host_cpu" = ia64; then
  12117. # AIX 5 supports IA64
  12118. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12119. shlibpath_var=LD_LIBRARY_PATH
  12120. else
  12121. # With GCC up to 2.95.x, collect2 would create an import file
  12122. # for dependence libraries. The import file would start with
  12123. # the line `#! .'. This would cause the generated library to
  12124. # depend on `.', always an invalid library. This was fixed in
  12125. # development snapshots of GCC prior to 3.0.
  12126. case $host_os in
  12127. aix4 | aix4.[01] | aix4.[01].*)
  12128. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12129. echo ' yes '
  12130. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12131. :
  12132. else
  12133. can_build_shared=no
  12134. fi
  12135. ;;
  12136. esac
  12137. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12138. # soname into executable. Probably we can add versioning support to
  12139. # collect2, so additional links can be useful in future.
  12140. if test "$aix_use_runtimelinking" = yes; then
  12141. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12142. # instead of lib<name>.a to let people know that these are not
  12143. # typical AIX shared libraries.
  12144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12145. else
  12146. # We preserve .a as extension for shared libraries through AIX4.2
  12147. # and later when we are not doing run time linking.
  12148. library_names_spec='${libname}${release}.a $libname.a'
  12149. soname_spec='${libname}${release}${shared_ext}$major'
  12150. fi
  12151. shlibpath_var=LIBPATH
  12152. fi
  12153. ;;
  12154. amigaos*)
  12155. case $host_cpu in
  12156. powerpc)
  12157. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12158. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12160. ;;
  12161. m68k)
  12162. library_names_spec='$libname.ixlibrary $libname.a'
  12163. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12164. 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'
  12165. ;;
  12166. esac
  12167. ;;
  12168. beos*)
  12169. library_names_spec='${libname}${shared_ext}'
  12170. dynamic_linker="$host_os ld.so"
  12171. shlibpath_var=LIBRARY_PATH
  12172. ;;
  12173. bsdi[45]*)
  12174. version_type=linux
  12175. need_version=no
  12176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12177. soname_spec='${libname}${release}${shared_ext}$major'
  12178. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12179. shlibpath_var=LD_LIBRARY_PATH
  12180. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12181. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12182. # the default ld.so.conf also contains /usr/contrib/lib and
  12183. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12184. # libtool to hard-code these into programs
  12185. ;;
  12186. cygwin* | mingw* | pw32* | cegcc*)
  12187. version_type=windows
  12188. shrext_cmds=".dll"
  12189. need_version=no
  12190. need_lib_prefix=no
  12191. case $GCC,$host_os in
  12192. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12193. library_names_spec='$libname.dll.a'
  12194. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12195. postinstall_cmds='base_file=`basename \${file}`~
  12196. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12197. dldir=$destdir/`dirname \$dlpath`~
  12198. test -d \$dldir || mkdir -p \$dldir~
  12199. $install_prog $dir/$dlname \$dldir/$dlname~
  12200. chmod a+x \$dldir/$dlname~
  12201. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12202. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12203. fi'
  12204. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12205. dlpath=$dir/\$dldll~
  12206. $RM \$dlpath'
  12207. shlibpath_overrides_runpath=yes
  12208. case $host_os in
  12209. cygwin*)
  12210. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12211. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12212. ;;
  12213. mingw* | cegcc*)
  12214. # MinGW DLLs use traditional 'lib' prefix
  12215. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12216. ;;
  12217. pw32*)
  12218. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12219. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12220. ;;
  12221. esac
  12222. ;;
  12223. *)
  12224. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12225. ;;
  12226. esac
  12227. dynamic_linker='Win32 ld.exe'
  12228. # FIXME: first we should search . and the directory the executable is in
  12229. shlibpath_var=PATH
  12230. ;;
  12231. darwin* | rhapsody*)
  12232. dynamic_linker="$host_os dyld"
  12233. version_type=darwin
  12234. need_lib_prefix=no
  12235. need_version=no
  12236. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12237. soname_spec='${libname}${release}${major}$shared_ext'
  12238. shlibpath_overrides_runpath=yes
  12239. shlibpath_var=DYLD_LIBRARY_PATH
  12240. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12241. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12242. ;;
  12243. dgux*)
  12244. version_type=linux
  12245. need_lib_prefix=no
  12246. need_version=no
  12247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12248. soname_spec='${libname}${release}${shared_ext}$major'
  12249. shlibpath_var=LD_LIBRARY_PATH
  12250. ;;
  12251. freebsd* | dragonfly*)
  12252. # DragonFly does not have aout. When/if they implement a new
  12253. # versioning mechanism, adjust this.
  12254. if test -x /usr/bin/objformat; then
  12255. objformat=`/usr/bin/objformat`
  12256. else
  12257. case $host_os in
  12258. freebsd[23].*) objformat=aout ;;
  12259. *) objformat=elf ;;
  12260. esac
  12261. fi
  12262. version_type=freebsd-$objformat
  12263. case $version_type in
  12264. freebsd-elf*)
  12265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12266. need_version=no
  12267. need_lib_prefix=no
  12268. ;;
  12269. freebsd-*)
  12270. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12271. need_version=yes
  12272. ;;
  12273. esac
  12274. shlibpath_var=LD_LIBRARY_PATH
  12275. case $host_os in
  12276. freebsd2.*)
  12277. shlibpath_overrides_runpath=yes
  12278. ;;
  12279. freebsd3.[01]* | freebsdelf3.[01]*)
  12280. shlibpath_overrides_runpath=yes
  12281. hardcode_into_libs=yes
  12282. ;;
  12283. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12284. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12285. shlibpath_overrides_runpath=no
  12286. hardcode_into_libs=yes
  12287. ;;
  12288. *) # from 4.6 on, and DragonFly
  12289. shlibpath_overrides_runpath=yes
  12290. hardcode_into_libs=yes
  12291. ;;
  12292. esac
  12293. ;;
  12294. gnu*)
  12295. version_type=linux
  12296. need_lib_prefix=no
  12297. need_version=no
  12298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12299. soname_spec='${libname}${release}${shared_ext}$major'
  12300. shlibpath_var=LD_LIBRARY_PATH
  12301. hardcode_into_libs=yes
  12302. ;;
  12303. haiku*)
  12304. version_type=linux
  12305. need_lib_prefix=no
  12306. need_version=no
  12307. dynamic_linker="$host_os runtime_loader"
  12308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12309. soname_spec='${libname}${release}${shared_ext}$major'
  12310. shlibpath_var=LIBRARY_PATH
  12311. shlibpath_overrides_runpath=yes
  12312. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12313. hardcode_into_libs=yes
  12314. ;;
  12315. hpux9* | hpux10* | hpux11*)
  12316. # Give a soname corresponding to the major version so that dld.sl refuses to
  12317. # link against other versions.
  12318. version_type=sunos
  12319. need_lib_prefix=no
  12320. need_version=no
  12321. case $host_cpu in
  12322. ia64*)
  12323. shrext_cmds='.so'
  12324. hardcode_into_libs=yes
  12325. dynamic_linker="$host_os dld.so"
  12326. shlibpath_var=LD_LIBRARY_PATH
  12327. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12329. soname_spec='${libname}${release}${shared_ext}$major'
  12330. if test "X$HPUX_IA64_MODE" = X32; then
  12331. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12332. else
  12333. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12334. fi
  12335. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12336. ;;
  12337. hppa*64*)
  12338. shrext_cmds='.sl'
  12339. hardcode_into_libs=yes
  12340. dynamic_linker="$host_os dld.sl"
  12341. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12342. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12346. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12347. ;;
  12348. *)
  12349. shrext_cmds='.sl'
  12350. dynamic_linker="$host_os dld.sl"
  12351. shlibpath_var=SHLIB_PATH
  12352. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12354. soname_spec='${libname}${release}${shared_ext}$major'
  12355. ;;
  12356. esac
  12357. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12358. postinstall_cmds='chmod 555 $lib'
  12359. # or fails outright, so override atomically:
  12360. install_override_mode=555
  12361. ;;
  12362. interix[3-9]*)
  12363. version_type=linux
  12364. need_lib_prefix=no
  12365. need_version=no
  12366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12367. soname_spec='${libname}${release}${shared_ext}$major'
  12368. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12369. shlibpath_var=LD_LIBRARY_PATH
  12370. shlibpath_overrides_runpath=no
  12371. hardcode_into_libs=yes
  12372. ;;
  12373. irix5* | irix6* | nonstopux*)
  12374. case $host_os in
  12375. nonstopux*) version_type=nonstopux ;;
  12376. *)
  12377. if test "$lt_cv_prog_gnu_ld" = yes; then
  12378. version_type=linux
  12379. else
  12380. version_type=irix
  12381. fi ;;
  12382. esac
  12383. need_lib_prefix=no
  12384. need_version=no
  12385. soname_spec='${libname}${release}${shared_ext}$major'
  12386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12387. case $host_os in
  12388. irix5* | nonstopux*)
  12389. libsuff= shlibsuff=
  12390. ;;
  12391. *)
  12392. case $LD in # libtool.m4 will add one of these switches to LD
  12393. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12394. libsuff= shlibsuff= libmagic=32-bit;;
  12395. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12396. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12397. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12398. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12399. *) libsuff= shlibsuff= libmagic=never-match;;
  12400. esac
  12401. ;;
  12402. esac
  12403. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12404. shlibpath_overrides_runpath=no
  12405. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12406. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12407. hardcode_into_libs=yes
  12408. ;;
  12409. # No shared lib support for Linux oldld, aout, or coff.
  12410. linux*oldld* | linux*aout* | linux*coff*)
  12411. dynamic_linker=no
  12412. ;;
  12413. # This must be Linux ELF.
  12414. # uclinux* changes (here and below) have been submitted to the libtool
  12415. # project, but have not yet been accepted: they are GCC-local changes
  12416. # for the time being. (See
  12417. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  12418. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  12419. version_type=linux
  12420. need_lib_prefix=no
  12421. need_version=no
  12422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12423. soname_spec='${libname}${release}${shared_ext}$major'
  12424. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12425. shlibpath_var=LD_LIBRARY_PATH
  12426. shlibpath_overrides_runpath=no
  12427. # Some binutils ld are patched to set DT_RUNPATH
  12428. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12429. $as_echo_n "(cached) " >&6
  12430. else
  12431. lt_cv_shlibpath_overrides_runpath=no
  12432. save_LDFLAGS=$LDFLAGS
  12433. save_libdir=$libdir
  12434. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12435. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12437. /* end confdefs.h. */
  12438. int
  12439. main ()
  12440. {
  12441. ;
  12442. return 0;
  12443. }
  12444. _ACEOF
  12445. if ac_fn_cxx_try_link "$LINENO"; then :
  12446. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12447. lt_cv_shlibpath_overrides_runpath=yes
  12448. fi
  12449. fi
  12450. rm -f core conftest.err conftest.$ac_objext \
  12451. conftest$ac_exeext conftest.$ac_ext
  12452. LDFLAGS=$save_LDFLAGS
  12453. libdir=$save_libdir
  12454. fi
  12455. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12456. # This implies no fast_install, which is unacceptable.
  12457. # Some rework will be needed to allow for fast_install
  12458. # before this can be enabled.
  12459. hardcode_into_libs=yes
  12460. # Append ld.so.conf contents to the search path
  12461. if test -f /etc/ld.so.conf; then
  12462. 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' ' '`
  12463. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12464. fi
  12465. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12466. # powerpc, because MkLinux only supported shared libraries with the
  12467. # GNU dynamic linker. Since this was broken with cross compilers,
  12468. # most powerpc-linux boxes support dynamic linking these days and
  12469. # people can always --disable-shared, the test was removed, and we
  12470. # assume the GNU/Linux dynamic linker is in use.
  12471. dynamic_linker='GNU/Linux ld.so'
  12472. ;;
  12473. netbsd*)
  12474. version_type=sunos
  12475. need_lib_prefix=no
  12476. need_version=no
  12477. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12479. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12480. dynamic_linker='NetBSD (a.out) ld.so'
  12481. else
  12482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12483. soname_spec='${libname}${release}${shared_ext}$major'
  12484. dynamic_linker='NetBSD ld.elf_so'
  12485. fi
  12486. shlibpath_var=LD_LIBRARY_PATH
  12487. shlibpath_overrides_runpath=yes
  12488. hardcode_into_libs=yes
  12489. ;;
  12490. newsos6)
  12491. version_type=linux
  12492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12493. shlibpath_var=LD_LIBRARY_PATH
  12494. shlibpath_overrides_runpath=yes
  12495. ;;
  12496. *nto* | *qnx*)
  12497. version_type=qnx
  12498. need_lib_prefix=no
  12499. need_version=no
  12500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12501. soname_spec='${libname}${release}${shared_ext}$major'
  12502. shlibpath_var=LD_LIBRARY_PATH
  12503. shlibpath_overrides_runpath=no
  12504. hardcode_into_libs=yes
  12505. dynamic_linker='ldqnx.so'
  12506. ;;
  12507. openbsd*)
  12508. version_type=sunos
  12509. sys_lib_dlsearch_path_spec="/usr/lib"
  12510. need_lib_prefix=no
  12511. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12512. case $host_os in
  12513. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12514. *) need_version=no ;;
  12515. esac
  12516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12518. shlibpath_var=LD_LIBRARY_PATH
  12519. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12520. case $host_os in
  12521. openbsd2.[89] | openbsd2.[89].*)
  12522. shlibpath_overrides_runpath=no
  12523. ;;
  12524. *)
  12525. shlibpath_overrides_runpath=yes
  12526. ;;
  12527. esac
  12528. else
  12529. shlibpath_overrides_runpath=yes
  12530. fi
  12531. ;;
  12532. os2*)
  12533. libname_spec='$name'
  12534. shrext_cmds=".dll"
  12535. need_lib_prefix=no
  12536. library_names_spec='$libname${shared_ext} $libname.a'
  12537. dynamic_linker='OS/2 ld.exe'
  12538. shlibpath_var=LIBPATH
  12539. ;;
  12540. osf3* | osf4* | osf5*)
  12541. version_type=osf
  12542. need_lib_prefix=no
  12543. need_version=no
  12544. soname_spec='${libname}${release}${shared_ext}$major'
  12545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12546. shlibpath_var=LD_LIBRARY_PATH
  12547. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12548. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12549. ;;
  12550. rdos*)
  12551. dynamic_linker=no
  12552. ;;
  12553. solaris*)
  12554. version_type=linux
  12555. need_lib_prefix=no
  12556. need_version=no
  12557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12558. soname_spec='${libname}${release}${shared_ext}$major'
  12559. shlibpath_var=LD_LIBRARY_PATH
  12560. shlibpath_overrides_runpath=yes
  12561. hardcode_into_libs=yes
  12562. # ldd complains unless libraries are executable
  12563. postinstall_cmds='chmod +x $lib'
  12564. ;;
  12565. sunos4*)
  12566. version_type=sunos
  12567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12568. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12569. shlibpath_var=LD_LIBRARY_PATH
  12570. shlibpath_overrides_runpath=yes
  12571. if test "$with_gnu_ld" = yes; then
  12572. need_lib_prefix=no
  12573. fi
  12574. need_version=yes
  12575. ;;
  12576. sysv4 | sysv4.3*)
  12577. version_type=linux
  12578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12579. soname_spec='${libname}${release}${shared_ext}$major'
  12580. shlibpath_var=LD_LIBRARY_PATH
  12581. case $host_vendor in
  12582. sni)
  12583. shlibpath_overrides_runpath=no
  12584. need_lib_prefix=no
  12585. runpath_var=LD_RUN_PATH
  12586. ;;
  12587. siemens)
  12588. need_lib_prefix=no
  12589. ;;
  12590. motorola)
  12591. need_lib_prefix=no
  12592. need_version=no
  12593. shlibpath_overrides_runpath=no
  12594. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12595. ;;
  12596. esac
  12597. ;;
  12598. sysv4*MP*)
  12599. if test -d /usr/nec ;then
  12600. version_type=linux
  12601. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12602. soname_spec='$libname${shared_ext}.$major'
  12603. shlibpath_var=LD_LIBRARY_PATH
  12604. fi
  12605. ;;
  12606. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12607. version_type=freebsd-elf
  12608. need_lib_prefix=no
  12609. need_version=no
  12610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12611. soname_spec='${libname}${release}${shared_ext}$major'
  12612. shlibpath_var=LD_LIBRARY_PATH
  12613. shlibpath_overrides_runpath=yes
  12614. hardcode_into_libs=yes
  12615. if test "$with_gnu_ld" = yes; then
  12616. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12617. else
  12618. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12619. case $host_os in
  12620. sco3.2v5*)
  12621. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12622. ;;
  12623. esac
  12624. fi
  12625. sys_lib_dlsearch_path_spec='/usr/lib'
  12626. ;;
  12627. tpf*)
  12628. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12629. version_type=linux
  12630. need_lib_prefix=no
  12631. need_version=no
  12632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12633. shlibpath_var=LD_LIBRARY_PATH
  12634. shlibpath_overrides_runpath=no
  12635. hardcode_into_libs=yes
  12636. ;;
  12637. uts4*)
  12638. version_type=linux
  12639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12640. soname_spec='${libname}${release}${shared_ext}$major'
  12641. shlibpath_var=LD_LIBRARY_PATH
  12642. ;;
  12643. *)
  12644. dynamic_linker=no
  12645. ;;
  12646. esac
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12648. $as_echo "$dynamic_linker" >&6; }
  12649. test "$dynamic_linker" = no && can_build_shared=no
  12650. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12651. if test "$GCC" = yes; then
  12652. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12653. fi
  12654. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12655. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12656. fi
  12657. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12658. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12659. fi
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12661. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12662. hardcode_action_CXX=
  12663. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12664. test -n "$runpath_var_CXX" ||
  12665. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12666. # We can hardcode non-existent directories.
  12667. if test "$hardcode_direct_CXX" != no &&
  12668. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12669. # have to relink, otherwise we might link with an installed library
  12670. # when we should be linking with a yet-to-be-installed one
  12671. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12672. test "$hardcode_minus_L_CXX" != no; then
  12673. # Linking always hardcodes the temporary library directory.
  12674. hardcode_action_CXX=relink
  12675. else
  12676. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12677. hardcode_action_CXX=immediate
  12678. fi
  12679. else
  12680. # We cannot hardcode anything, or else we can only hardcode existing
  12681. # directories.
  12682. hardcode_action_CXX=unsupported
  12683. fi
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12685. $as_echo "$hardcode_action_CXX" >&6; }
  12686. if test "$hardcode_action_CXX" = relink ||
  12687. test "$inherit_rpath_CXX" = yes; then
  12688. # Fast installation is not supported
  12689. enable_fast_install=no
  12690. elif test "$shlibpath_overrides_runpath" = yes ||
  12691. test "$enable_shared" = no; then
  12692. # Fast installation is not necessary
  12693. enable_fast_install=needless
  12694. fi
  12695. fi # test -n "$compiler"
  12696. CC=$lt_save_CC
  12697. LDCXX=$LD
  12698. LD=$lt_save_LD
  12699. GCC=$lt_save_GCC
  12700. with_gnu_ld=$lt_save_with_gnu_ld
  12701. lt_cv_path_LDCXX=$lt_cv_path_LD
  12702. lt_cv_path_LD=$lt_save_path_LD
  12703. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12704. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12705. fi # test "$_lt_caught_CXX_error" != yes
  12706. ac_ext=c
  12707. ac_cpp='$CPP $CPPFLAGS'
  12708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12711. ac_config_commands="$ac_config_commands libtool"
  12712. # Only expand once:
  12713. # Forbid libtool to hardcode RPATH, because we want to be able to specify
  12714. # library search directory using LD_LIBRARY_PATH
  12715. hardcode_into_libs=no
  12716. if test $enable_shared = yes; then
  12717. link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
  12718. link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
  12719. else
  12720. link_offloadmic_host="-loffloadmic_host $LIBS"
  12721. link_offloadmic_target="-loffloadmic_target $LIBS"
  12722. fi
  12723. # Determine what GCC version number to use in filesystem paths.
  12724. get_gcc_base_ver="cat"
  12725. # Check whether --with-gcc-major-version-only was given.
  12726. if test "${with_gcc_major_version_only+set}" = set; then :
  12727. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  12728. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  12729. fi
  12730. fi
  12731. # Must be last
  12732. cat >confcache <<\_ACEOF
  12733. # This file is a shell script that caches the results of configure
  12734. # tests run on this system so they can be shared between configure
  12735. # scripts and configure runs, see configure's option --config-cache.
  12736. # It is not useful on other systems. If it contains results you don't
  12737. # want to keep, you may remove or edit it.
  12738. #
  12739. # config.status only pays attention to the cache file if you give it
  12740. # the --recheck option to rerun configure.
  12741. #
  12742. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12743. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12744. # following values.
  12745. _ACEOF
  12746. # The following way of writing the cache mishandles newlines in values,
  12747. # but we know of no workaround that is simple, portable, and efficient.
  12748. # So, we kill variables containing newlines.
  12749. # Ultrix sh set writes to stderr and can't be redirected directly,
  12750. # and sets the high bit in the cache file unless we assign to the vars.
  12751. (
  12752. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12753. eval ac_val=\$$ac_var
  12754. case $ac_val in #(
  12755. *${as_nl}*)
  12756. case $ac_var in #(
  12757. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12758. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12759. esac
  12760. case $ac_var in #(
  12761. _ | IFS | as_nl) ;; #(
  12762. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12763. *) { eval $ac_var=; unset $ac_var;} ;;
  12764. esac ;;
  12765. esac
  12766. done
  12767. (set) 2>&1 |
  12768. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12769. *${as_nl}ac_space=\ *)
  12770. # `set' does not quote correctly, so add quotes: double-quote
  12771. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12772. sed -n \
  12773. "s/'/'\\\\''/g;
  12774. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12775. ;; #(
  12776. *)
  12777. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12778. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12779. ;;
  12780. esac |
  12781. sort
  12782. ) |
  12783. sed '
  12784. /^ac_cv_env_/b end
  12785. t clear
  12786. :clear
  12787. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12788. t end
  12789. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12790. :end' >>confcache
  12791. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12792. if test -w "$cache_file"; then
  12793. if test "x$cache_file" != "x/dev/null"; then
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12795. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12796. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12797. cat confcache >"$cache_file"
  12798. else
  12799. case $cache_file in #(
  12800. */* | ?:*)
  12801. mv -f confcache "$cache_file"$$ &&
  12802. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12803. *)
  12804. mv -f confcache "$cache_file" ;;
  12805. esac
  12806. fi
  12807. fi
  12808. else
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12810. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12811. fi
  12812. fi
  12813. rm -f confcache
  12814. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12815. # Let make expand exec_prefix.
  12816. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12817. # Transform confdefs.h into DEFS.
  12818. # Protect against shell expansion while executing Makefile rules.
  12819. # Protect against Makefile macro expansion.
  12820. #
  12821. # If the first sed substitution is executed (which looks for macros that
  12822. # take arguments), then branch to the quote section. Otherwise,
  12823. # look for a macro that doesn't take arguments.
  12824. ac_script='
  12825. :mline
  12826. /\\$/{
  12827. N
  12828. s,\\\n,,
  12829. b mline
  12830. }
  12831. t clear
  12832. :clear
  12833. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12834. t quote
  12835. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12836. t quote
  12837. b any
  12838. :quote
  12839. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12840. s/\[/\\&/g
  12841. s/\]/\\&/g
  12842. s/\$/$$/g
  12843. H
  12844. :any
  12845. ${
  12846. g
  12847. s/^\n//
  12848. s/\n/ /g
  12849. p
  12850. }
  12851. '
  12852. DEFS=`sed -n "$ac_script" confdefs.h`
  12853. ac_libobjs=
  12854. ac_ltlibobjs=
  12855. U=
  12856. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12857. # 1. Remove the extension, and $U if already installed.
  12858. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12859. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12860. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12861. # will be set to the directory where LIBOBJS objects are built.
  12862. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12863. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12864. done
  12865. LIBOBJS=$ac_libobjs
  12866. LTLIBOBJS=$ac_ltlibobjs
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12868. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12869. if test -n "$am_sleep_pid"; then
  12870. # Hide warnings about reused PIDs.
  12871. wait $am_sleep_pid 2>/dev/null
  12872. fi
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12874. $as_echo "done" >&6; }
  12875. if test -n "$EXEEXT"; then
  12876. am__EXEEXT_TRUE=
  12877. am__EXEEXT_FALSE='#'
  12878. else
  12879. am__EXEEXT_TRUE='#'
  12880. am__EXEEXT_FALSE=
  12881. fi
  12882. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12883. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12884. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12885. fi
  12886. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12887. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12889. fi
  12890. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12891. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12893. fi
  12894. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12895. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  12896. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12897. fi
  12898. if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
  12899. as_fn_error $? "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
  12900. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12901. fi
  12902. : "${CONFIG_STATUS=./config.status}"
  12903. ac_write_fail=0
  12904. ac_clean_files_save=$ac_clean_files
  12905. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12907. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12908. as_write_fail=0
  12909. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12910. #! $SHELL
  12911. # Generated by $as_me.
  12912. # Run this file to recreate the current configuration.
  12913. # Compiler output produced by configure, useful for debugging
  12914. # configure, is in config.log if it exists.
  12915. debug=false
  12916. ac_cs_recheck=false
  12917. ac_cs_silent=false
  12918. SHELL=\${CONFIG_SHELL-$SHELL}
  12919. export SHELL
  12920. _ASEOF
  12921. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12922. ## -------------------- ##
  12923. ## M4sh Initialization. ##
  12924. ## -------------------- ##
  12925. # Be more Bourne compatible
  12926. DUALCASE=1; export DUALCASE # for MKS sh
  12927. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12928. emulate sh
  12929. NULLCMD=:
  12930. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12931. # is contrary to our usage. Disable this feature.
  12932. alias -g '${1+"$@"}'='"$@"'
  12933. setopt NO_GLOB_SUBST
  12934. else
  12935. case `(set -o) 2>/dev/null` in #(
  12936. *posix*) :
  12937. set -o posix ;; #(
  12938. *) :
  12939. ;;
  12940. esac
  12941. fi
  12942. as_nl='
  12943. '
  12944. export as_nl
  12945. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12946. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12947. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12948. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12949. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12950. # but without wasting forks for bash or zsh.
  12951. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12952. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12953. as_echo='print -r --'
  12954. as_echo_n='print -rn --'
  12955. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12956. as_echo='printf %s\n'
  12957. as_echo_n='printf %s'
  12958. else
  12959. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12960. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12961. as_echo_n='/usr/ucb/echo -n'
  12962. else
  12963. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12964. as_echo_n_body='eval
  12965. arg=$1;
  12966. case $arg in #(
  12967. *"$as_nl"*)
  12968. expr "X$arg" : "X\\(.*\\)$as_nl";
  12969. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12970. esac;
  12971. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12972. '
  12973. export as_echo_n_body
  12974. as_echo_n='sh -c $as_echo_n_body as_echo'
  12975. fi
  12976. export as_echo_body
  12977. as_echo='sh -c $as_echo_body as_echo'
  12978. fi
  12979. # The user is always right.
  12980. if test "${PATH_SEPARATOR+set}" != set; then
  12981. PATH_SEPARATOR=:
  12982. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12983. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12984. PATH_SEPARATOR=';'
  12985. }
  12986. fi
  12987. # IFS
  12988. # We need space, tab and new line, in precisely that order. Quoting is
  12989. # there to prevent editors from complaining about space-tab.
  12990. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12991. # splitting by setting IFS to empty value.)
  12992. IFS=" "" $as_nl"
  12993. # Find who we are. Look in the path if we contain no directory separator.
  12994. as_myself=
  12995. case $0 in #((
  12996. *[\\/]* ) as_myself=$0 ;;
  12997. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12998. for as_dir in $PATH
  12999. do
  13000. IFS=$as_save_IFS
  13001. test -z "$as_dir" && as_dir=.
  13002. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13003. done
  13004. IFS=$as_save_IFS
  13005. ;;
  13006. esac
  13007. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13008. # in which case we are not to be found in the path.
  13009. if test "x$as_myself" = x; then
  13010. as_myself=$0
  13011. fi
  13012. if test ! -f "$as_myself"; then
  13013. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13014. exit 1
  13015. fi
  13016. # Unset variables that we do not need and which cause bugs (e.g. in
  13017. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13018. # suppresses any "Segmentation fault" message there. '((' could
  13019. # trigger a bug in pdksh 5.2.14.
  13020. for as_var in BASH_ENV ENV MAIL MAILPATH
  13021. do eval test x\${$as_var+set} = xset \
  13022. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13023. done
  13024. PS1='$ '
  13025. PS2='> '
  13026. PS4='+ '
  13027. # NLS nuisances.
  13028. LC_ALL=C
  13029. export LC_ALL
  13030. LANGUAGE=C
  13031. export LANGUAGE
  13032. # CDPATH.
  13033. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13034. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13035. # ----------------------------------------
  13036. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13037. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13038. # script with STATUS, using 1 if that was 0.
  13039. as_fn_error ()
  13040. {
  13041. as_status=$1; test $as_status -eq 0 && as_status=1
  13042. if test "$4"; then
  13043. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13044. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13045. fi
  13046. $as_echo "$as_me: error: $2" >&2
  13047. as_fn_exit $as_status
  13048. } # as_fn_error
  13049. # as_fn_set_status STATUS
  13050. # -----------------------
  13051. # Set $? to STATUS, without forking.
  13052. as_fn_set_status ()
  13053. {
  13054. return $1
  13055. } # as_fn_set_status
  13056. # as_fn_exit STATUS
  13057. # -----------------
  13058. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13059. as_fn_exit ()
  13060. {
  13061. set +e
  13062. as_fn_set_status $1
  13063. exit $1
  13064. } # as_fn_exit
  13065. # as_fn_unset VAR
  13066. # ---------------
  13067. # Portably unset VAR.
  13068. as_fn_unset ()
  13069. {
  13070. { eval $1=; unset $1;}
  13071. }
  13072. as_unset=as_fn_unset
  13073. # as_fn_append VAR VALUE
  13074. # ----------------------
  13075. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13076. # advantage of any shell optimizations that allow amortized linear growth over
  13077. # repeated appends, instead of the typical quadratic growth present in naive
  13078. # implementations.
  13079. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13080. eval 'as_fn_append ()
  13081. {
  13082. eval $1+=\$2
  13083. }'
  13084. else
  13085. as_fn_append ()
  13086. {
  13087. eval $1=\$$1\$2
  13088. }
  13089. fi # as_fn_append
  13090. # as_fn_arith ARG...
  13091. # ------------------
  13092. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13093. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13094. # must be portable across $(()) and expr.
  13095. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13096. eval 'as_fn_arith ()
  13097. {
  13098. as_val=$(( $* ))
  13099. }'
  13100. else
  13101. as_fn_arith ()
  13102. {
  13103. as_val=`expr "$@" || test $? -eq 1`
  13104. }
  13105. fi # as_fn_arith
  13106. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13107. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13108. as_expr=expr
  13109. else
  13110. as_expr=false
  13111. fi
  13112. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13113. as_basename=basename
  13114. else
  13115. as_basename=false
  13116. fi
  13117. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13118. as_dirname=dirname
  13119. else
  13120. as_dirname=false
  13121. fi
  13122. as_me=`$as_basename -- "$0" ||
  13123. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13124. X"$0" : 'X\(//\)$' \| \
  13125. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13126. $as_echo X/"$0" |
  13127. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13128. s//\1/
  13129. q
  13130. }
  13131. /^X\/\(\/\/\)$/{
  13132. s//\1/
  13133. q
  13134. }
  13135. /^X\/\(\/\).*/{
  13136. s//\1/
  13137. q
  13138. }
  13139. s/.*/./; q'`
  13140. # Avoid depending upon Character Ranges.
  13141. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13142. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13143. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13144. as_cr_digits='0123456789'
  13145. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13146. ECHO_C= ECHO_N= ECHO_T=
  13147. case `echo -n x` in #(((((
  13148. -n*)
  13149. case `echo 'xy\c'` in
  13150. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13151. xy) ECHO_C='\c';;
  13152. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13153. ECHO_T=' ';;
  13154. esac;;
  13155. *)
  13156. ECHO_N='-n';;
  13157. esac
  13158. rm -f conf$$ conf$$.exe conf$$.file
  13159. if test -d conf$$.dir; then
  13160. rm -f conf$$.dir/conf$$.file
  13161. else
  13162. rm -f conf$$.dir
  13163. mkdir conf$$.dir 2>/dev/null
  13164. fi
  13165. if (echo >conf$$.file) 2>/dev/null; then
  13166. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13167. as_ln_s='ln -s'
  13168. # ... but there are two gotchas:
  13169. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13170. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13171. # In both cases, we have to default to `cp -pR'.
  13172. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13173. as_ln_s='cp -pR'
  13174. elif ln conf$$.file conf$$ 2>/dev/null; then
  13175. as_ln_s=ln
  13176. else
  13177. as_ln_s='cp -pR'
  13178. fi
  13179. else
  13180. as_ln_s='cp -pR'
  13181. fi
  13182. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13183. rmdir conf$$.dir 2>/dev/null
  13184. # as_fn_mkdir_p
  13185. # -------------
  13186. # Create "$as_dir" as a directory, including parents if necessary.
  13187. as_fn_mkdir_p ()
  13188. {
  13189. case $as_dir in #(
  13190. -*) as_dir=./$as_dir;;
  13191. esac
  13192. test -d "$as_dir" || eval $as_mkdir_p || {
  13193. as_dirs=
  13194. while :; do
  13195. case $as_dir in #(
  13196. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13197. *) as_qdir=$as_dir;;
  13198. esac
  13199. as_dirs="'$as_qdir' $as_dirs"
  13200. as_dir=`$as_dirname -- "$as_dir" ||
  13201. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13202. X"$as_dir" : 'X\(//\)[^/]' \| \
  13203. X"$as_dir" : 'X\(//\)$' \| \
  13204. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13205. $as_echo X"$as_dir" |
  13206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13207. s//\1/
  13208. q
  13209. }
  13210. /^X\(\/\/\)[^/].*/{
  13211. s//\1/
  13212. q
  13213. }
  13214. /^X\(\/\/\)$/{
  13215. s//\1/
  13216. q
  13217. }
  13218. /^X\(\/\).*/{
  13219. s//\1/
  13220. q
  13221. }
  13222. s/.*/./; q'`
  13223. test -d "$as_dir" && break
  13224. done
  13225. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13226. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13227. } # as_fn_mkdir_p
  13228. if mkdir -p . 2>/dev/null; then
  13229. as_mkdir_p='mkdir -p "$as_dir"'
  13230. else
  13231. test -d ./-p && rmdir ./-p
  13232. as_mkdir_p=false
  13233. fi
  13234. # as_fn_executable_p FILE
  13235. # -----------------------
  13236. # Test if FILE is an executable regular file.
  13237. as_fn_executable_p ()
  13238. {
  13239. test -f "$1" && test -x "$1"
  13240. } # as_fn_executable_p
  13241. as_test_x='test -x'
  13242. as_executable_p=as_fn_executable_p
  13243. # Sed expression to map a string onto a valid CPP name.
  13244. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13245. # Sed expression to map a string onto a valid variable name.
  13246. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13247. exec 6>&1
  13248. ## ----------------------------------- ##
  13249. ## Main body of $CONFIG_STATUS script. ##
  13250. ## ----------------------------------- ##
  13251. _ASEOF
  13252. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13253. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13254. # Save the log message, to keep $0 and so on meaningful, and to
  13255. # report actual input values of CONFIG_FILES etc. instead of their
  13256. # values after options handling.
  13257. ac_log="
  13258. This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
  13259. generated by GNU Autoconf 2.69. Invocation command line was
  13260. CONFIG_FILES = $CONFIG_FILES
  13261. CONFIG_HEADERS = $CONFIG_HEADERS
  13262. CONFIG_LINKS = $CONFIG_LINKS
  13263. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13264. $ $0 $@
  13265. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13266. "
  13267. _ACEOF
  13268. case $ac_config_files in *"
  13269. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13270. esac
  13271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13272. # Files that config.status was made for.
  13273. config_files="$ac_config_files"
  13274. config_commands="$ac_config_commands"
  13275. _ACEOF
  13276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13277. ac_cs_usage="\
  13278. \`$as_me' instantiates files and other configuration actions
  13279. from templates according to the current configuration. Unless the files
  13280. and actions are specified as TAGs, all are instantiated by default.
  13281. Usage: $0 [OPTION]... [TAG]...
  13282. -h, --help print this help, then exit
  13283. -V, --version print version number and configuration settings, then exit
  13284. --config print configuration, then exit
  13285. -q, --quiet, --silent
  13286. do not print progress messages
  13287. -d, --debug don't remove temporary files
  13288. --recheck update $as_me by reconfiguring in the same conditions
  13289. --file=FILE[:TEMPLATE]
  13290. instantiate the configuration file FILE
  13291. Configuration files:
  13292. $config_files
  13293. Configuration commands:
  13294. $config_commands
  13295. Report bugs to the package provider."
  13296. _ACEOF
  13297. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13298. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13299. ac_cs_version="\\
  13300. MIC Offload Runtime Library config.status 1.0
  13301. configured by $0, generated by GNU Autoconf 2.69,
  13302. with options \\"\$ac_cs_config\\"
  13303. Copyright (C) 2012 Free Software Foundation, Inc.
  13304. This config.status script is free software; the Free Software Foundation
  13305. gives unlimited permission to copy, distribute and modify it."
  13306. ac_pwd='$ac_pwd'
  13307. srcdir='$srcdir'
  13308. INSTALL='$INSTALL'
  13309. MKDIR_P='$MKDIR_P'
  13310. AWK='$AWK'
  13311. test -n "\$AWK" || AWK=awk
  13312. _ACEOF
  13313. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13314. # The default lists apply if the user does not specify any file.
  13315. ac_need_defaults=:
  13316. while test $# != 0
  13317. do
  13318. case $1 in
  13319. --*=?*)
  13320. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13321. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13322. ac_shift=:
  13323. ;;
  13324. --*=)
  13325. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13326. ac_optarg=
  13327. ac_shift=:
  13328. ;;
  13329. *)
  13330. ac_option=$1
  13331. ac_optarg=$2
  13332. ac_shift=shift
  13333. ;;
  13334. esac
  13335. case $ac_option in
  13336. # Handling of the options.
  13337. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13338. ac_cs_recheck=: ;;
  13339. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13340. $as_echo "$ac_cs_version"; exit ;;
  13341. --config | --confi | --conf | --con | --co | --c )
  13342. $as_echo "$ac_cs_config"; exit ;;
  13343. --debug | --debu | --deb | --de | --d | -d )
  13344. debug=: ;;
  13345. --file | --fil | --fi | --f )
  13346. $ac_shift
  13347. case $ac_optarg in
  13348. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13349. '') as_fn_error $? "missing file argument" ;;
  13350. esac
  13351. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13352. ac_need_defaults=false;;
  13353. --he | --h | --help | --hel | -h )
  13354. $as_echo "$ac_cs_usage"; exit ;;
  13355. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13356. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13357. ac_cs_silent=: ;;
  13358. # This is an error.
  13359. -*) as_fn_error $? "unrecognized option: \`$1'
  13360. Try \`$0 --help' for more information." ;;
  13361. *) as_fn_append ac_config_targets " $1"
  13362. ac_need_defaults=false ;;
  13363. esac
  13364. shift
  13365. done
  13366. ac_configure_extra_args=
  13367. if $ac_cs_silent; then
  13368. exec 6>/dev/null
  13369. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13370. fi
  13371. _ACEOF
  13372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13373. if \$ac_cs_recheck; then
  13374. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13375. shift
  13376. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13377. CONFIG_SHELL='$SHELL'
  13378. export CONFIG_SHELL
  13379. exec "\$@"
  13380. fi
  13381. _ACEOF
  13382. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13383. exec 5>>config.log
  13384. {
  13385. echo
  13386. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13387. ## Running $as_me. ##
  13388. _ASBOX
  13389. $as_echo "$ac_log"
  13390. } >&5
  13391. _ACEOF
  13392. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13393. #
  13394. # INIT-COMMANDS
  13395. #
  13396. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13397. srcdir="$srcdir"
  13398. host="$host"
  13399. target="$target"
  13400. with_multisubdir="$with_multisubdir"
  13401. with_multisrctop="$with_multisrctop"
  13402. with_target_subdir="$with_target_subdir"
  13403. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  13404. multi_basedir="$multi_basedir"
  13405. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13406. CC="$CC"
  13407. CXX="$CXX"
  13408. GFORTRAN="$GFORTRAN"
  13409. GDC="$GDC"
  13410. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13411. # if CDPATH is set.
  13412. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13413. sed_quote_subst='$sed_quote_subst'
  13414. double_quote_subst='$double_quote_subst'
  13415. delay_variable_subst='$delay_variable_subst'
  13416. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13417. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13418. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13419. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13420. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13421. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13422. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13423. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13424. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13425. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13426. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13427. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13428. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13429. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13430. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13431. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13432. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13433. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13434. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13435. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13436. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13437. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13438. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13439. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13440. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13441. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13442. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13443. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13444. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13445. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13446. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13447. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13448. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13449. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13450. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13451. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13452. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13453. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13454. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13455. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13456. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13457. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13458. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13459. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13460. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13461. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13462. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13463. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13464. 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"`'
  13465. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13466. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13467. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13468. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13469. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13470. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13471. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13472. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13473. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13474. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13475. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13476. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13477. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13478. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13479. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13480. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13481. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13482. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13483. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13484. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13485. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13486. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13487. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13488. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13489. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13490. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13491. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13492. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13493. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13494. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13495. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13496. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13497. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13498. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13499. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13500. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13501. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13502. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13503. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13504. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13505. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13506. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13507. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13508. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13509. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13510. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13511. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13512. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13513. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13514. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13515. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13516. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13517. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13518. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13519. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13520. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13521. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13522. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13523. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13524. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13525. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13526. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13527. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13528. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13529. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13530. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13531. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13532. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13533. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13534. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13535. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13536. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13537. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13538. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13539. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13540. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13541. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13542. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13543. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13544. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13545. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13546. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13547. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13548. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13549. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13550. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13551. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13552. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13553. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13554. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13555. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13556. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13557. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13558. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13559. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13560. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13561. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13562. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13563. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13564. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13565. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13566. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13567. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13568. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13569. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13570. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13571. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13572. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13573. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13574. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13575. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13576. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13577. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13578. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13579. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13580. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13581. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13582. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13583. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13584. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13585. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13586. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13587. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13588. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13589. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13590. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13591. LTCC='$LTCC'
  13592. LTCFLAGS='$LTCFLAGS'
  13593. compiler='$compiler_DEFAULT'
  13594. # A function that is used when there is no print builtin or printf.
  13595. func_fallback_echo ()
  13596. {
  13597. eval 'cat <<_LTECHO_EOF
  13598. \$1
  13599. _LTECHO_EOF'
  13600. }
  13601. # Quote evaled strings.
  13602. for var in SHELL \
  13603. ECHO \
  13604. SED \
  13605. GREP \
  13606. EGREP \
  13607. FGREP \
  13608. LD \
  13609. NM \
  13610. LN_S \
  13611. lt_SP2NL \
  13612. lt_NL2SP \
  13613. reload_flag \
  13614. OBJDUMP \
  13615. deplibs_check_method \
  13616. file_magic_cmd \
  13617. AR \
  13618. AR_FLAGS \
  13619. STRIP \
  13620. RANLIB \
  13621. CC \
  13622. CFLAGS \
  13623. compiler \
  13624. lt_cv_sys_global_symbol_pipe \
  13625. lt_cv_sys_global_symbol_to_cdecl \
  13626. lt_cv_sys_global_symbol_to_c_name_address \
  13627. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13628. lt_prog_compiler_no_builtin_flag \
  13629. lt_prog_compiler_wl \
  13630. lt_prog_compiler_pic \
  13631. lt_prog_compiler_static \
  13632. lt_cv_prog_compiler_c_o \
  13633. need_locks \
  13634. DSYMUTIL \
  13635. NMEDIT \
  13636. LIPO \
  13637. OTOOL \
  13638. OTOOL64 \
  13639. shrext_cmds \
  13640. export_dynamic_flag_spec \
  13641. whole_archive_flag_spec \
  13642. compiler_needs_object \
  13643. with_gnu_ld \
  13644. allow_undefined_flag \
  13645. no_undefined_flag \
  13646. hardcode_libdir_flag_spec \
  13647. hardcode_libdir_flag_spec_ld \
  13648. hardcode_libdir_separator \
  13649. fix_srcfile_path \
  13650. exclude_expsyms \
  13651. include_expsyms \
  13652. file_list_spec \
  13653. variables_saved_for_relink \
  13654. libname_spec \
  13655. library_names_spec \
  13656. soname_spec \
  13657. install_override_mode \
  13658. finish_eval \
  13659. old_striplib \
  13660. striplib \
  13661. compiler_lib_search_dirs \
  13662. predep_objects \
  13663. postdep_objects \
  13664. predeps \
  13665. postdeps \
  13666. compiler_lib_search_path \
  13667. LD_CXX \
  13668. reload_flag_CXX \
  13669. compiler_CXX \
  13670. lt_prog_compiler_no_builtin_flag_CXX \
  13671. lt_prog_compiler_wl_CXX \
  13672. lt_prog_compiler_pic_CXX \
  13673. lt_prog_compiler_static_CXX \
  13674. lt_cv_prog_compiler_c_o_CXX \
  13675. export_dynamic_flag_spec_CXX \
  13676. whole_archive_flag_spec_CXX \
  13677. compiler_needs_object_CXX \
  13678. with_gnu_ld_CXX \
  13679. allow_undefined_flag_CXX \
  13680. no_undefined_flag_CXX \
  13681. hardcode_libdir_flag_spec_CXX \
  13682. hardcode_libdir_flag_spec_ld_CXX \
  13683. hardcode_libdir_separator_CXX \
  13684. fix_srcfile_path_CXX \
  13685. exclude_expsyms_CXX \
  13686. include_expsyms_CXX \
  13687. file_list_spec_CXX \
  13688. compiler_lib_search_dirs_CXX \
  13689. predep_objects_CXX \
  13690. postdep_objects_CXX \
  13691. predeps_CXX \
  13692. postdeps_CXX \
  13693. compiler_lib_search_path_CXX; do
  13694. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13695. *[\\\\\\\`\\"\\\$]*)
  13696. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13697. ;;
  13698. *)
  13699. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13700. ;;
  13701. esac
  13702. done
  13703. # Double-quote double-evaled strings.
  13704. for var in reload_cmds \
  13705. old_postinstall_cmds \
  13706. old_postuninstall_cmds \
  13707. old_archive_cmds \
  13708. extract_expsyms_cmds \
  13709. old_archive_from_new_cmds \
  13710. old_archive_from_expsyms_cmds \
  13711. archive_cmds \
  13712. archive_expsym_cmds \
  13713. module_cmds \
  13714. module_expsym_cmds \
  13715. export_symbols_cmds \
  13716. prelink_cmds \
  13717. postinstall_cmds \
  13718. postuninstall_cmds \
  13719. finish_cmds \
  13720. sys_lib_search_path_spec \
  13721. sys_lib_dlsearch_path_spec \
  13722. reload_cmds_CXX \
  13723. old_archive_cmds_CXX \
  13724. old_archive_from_new_cmds_CXX \
  13725. old_archive_from_expsyms_cmds_CXX \
  13726. archive_cmds_CXX \
  13727. archive_expsym_cmds_CXX \
  13728. module_cmds_CXX \
  13729. module_expsym_cmds_CXX \
  13730. export_symbols_cmds_CXX \
  13731. prelink_cmds_CXX; do
  13732. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13733. *[\\\\\\\`\\"\\\$]*)
  13734. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13735. ;;
  13736. *)
  13737. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13738. ;;
  13739. esac
  13740. done
  13741. ac_aux_dir='$ac_aux_dir'
  13742. xsi_shell='$xsi_shell'
  13743. lt_shell_append='$lt_shell_append'
  13744. # See if we are running on zsh, and set the options which allow our
  13745. # commands through without removal of \ escapes INIT.
  13746. if test -n "\${ZSH_VERSION+set}" ; then
  13747. setopt NO_GLOB_SUBST
  13748. fi
  13749. PACKAGE='$PACKAGE'
  13750. VERSION='$VERSION'
  13751. TIMESTAMP='$TIMESTAMP'
  13752. RM='$RM'
  13753. ofile='$ofile'
  13754. _ACEOF
  13755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13756. # Handling of arguments.
  13757. for ac_config_target in $ac_config_targets
  13758. do
  13759. case $ac_config_target in
  13760. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13761. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13762. "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
  13763. "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
  13764. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13765. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13766. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13767. esac
  13768. done
  13769. # If the user did not use the arguments to specify the items to instantiate,
  13770. # then the envvar interface is used. Set only those that are not.
  13771. # We use the long form for the default assignment because of an extremely
  13772. # bizarre bug on SunOS 4.1.3.
  13773. if $ac_need_defaults; then
  13774. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13775. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13776. fi
  13777. # Have a temporary directory for convenience. Make it in the build tree
  13778. # simply because there is no reason against having it here, and in addition,
  13779. # creating and moving files from /tmp can sometimes cause problems.
  13780. # Hook for its removal unless debugging.
  13781. # Note that there is a small window in which the directory will not be cleaned:
  13782. # after its creation but before its name has been assigned to `$tmp'.
  13783. $debug ||
  13784. {
  13785. tmp= ac_tmp=
  13786. trap 'exit_status=$?
  13787. : "${ac_tmp:=$tmp}"
  13788. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13789. ' 0
  13790. trap 'as_fn_exit 1' 1 2 13 15
  13791. }
  13792. # Create a (secure) tmp directory for tmp files.
  13793. {
  13794. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13795. test -d "$tmp"
  13796. } ||
  13797. {
  13798. tmp=./conf$$-$RANDOM
  13799. (umask 077 && mkdir "$tmp")
  13800. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13801. ac_tmp=$tmp
  13802. # Set up the scripts for CONFIG_FILES section.
  13803. # No need to generate them if there are no CONFIG_FILES.
  13804. # This happens for instance with `./config.status config.h'.
  13805. if test -n "$CONFIG_FILES"; then
  13806. ac_cr=`echo X | tr X '\015'`
  13807. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13808. # But we know of no other shell where ac_cr would be empty at this
  13809. # point, so we can use a bashism as a fallback.
  13810. if test "x$ac_cr" = x; then
  13811. eval ac_cr=\$\'\\r\'
  13812. fi
  13813. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13814. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13815. ac_cs_awk_cr='\\r'
  13816. else
  13817. ac_cs_awk_cr=$ac_cr
  13818. fi
  13819. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13820. _ACEOF
  13821. {
  13822. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13823. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13824. echo "_ACEOF"
  13825. } >conf$$subs.sh ||
  13826. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13827. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13828. ac_delim='%!_!# '
  13829. for ac_last_try in false false false false false :; do
  13830. . ./conf$$subs.sh ||
  13831. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13832. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13833. if test $ac_delim_n = $ac_delim_num; then
  13834. break
  13835. elif $ac_last_try; then
  13836. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13837. else
  13838. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13839. fi
  13840. done
  13841. rm -f conf$$subs.sh
  13842. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13843. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13844. _ACEOF
  13845. sed -n '
  13846. h
  13847. s/^/S["/; s/!.*/"]=/
  13848. p
  13849. g
  13850. s/^[^!]*!//
  13851. :repl
  13852. t repl
  13853. s/'"$ac_delim"'$//
  13854. t delim
  13855. :nl
  13856. h
  13857. s/\(.\{148\}\)..*/\1/
  13858. t more1
  13859. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13860. p
  13861. n
  13862. b repl
  13863. :more1
  13864. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13865. p
  13866. g
  13867. s/.\{148\}//
  13868. t nl
  13869. :delim
  13870. h
  13871. s/\(.\{148\}\)..*/\1/
  13872. t more2
  13873. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13874. p
  13875. b
  13876. :more2
  13877. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13878. p
  13879. g
  13880. s/.\{148\}//
  13881. t delim
  13882. ' <conf$$subs.awk | sed '
  13883. /^[^""]/{
  13884. N
  13885. s/\n//
  13886. }
  13887. ' >>$CONFIG_STATUS || ac_write_fail=1
  13888. rm -f conf$$subs.awk
  13889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13890. _ACAWK
  13891. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13892. for (key in S) S_is_set[key] = 1
  13893. FS = ""
  13894. }
  13895. {
  13896. line = $ 0
  13897. nfields = split(line, field, "@")
  13898. substed = 0
  13899. len = length(field[1])
  13900. for (i = 2; i < nfields; i++) {
  13901. key = field[i]
  13902. keylen = length(key)
  13903. if (S_is_set[key]) {
  13904. value = S[key]
  13905. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13906. len += length(value) + length(field[++i])
  13907. substed = 1
  13908. } else
  13909. len += 1 + keylen
  13910. }
  13911. print line
  13912. }
  13913. _ACAWK
  13914. _ACEOF
  13915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13916. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13917. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13918. else
  13919. cat
  13920. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13921. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13922. _ACEOF
  13923. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13924. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13925. # trailing colons and then remove the whole line if VPATH becomes empty
  13926. # (actually we leave an empty line to preserve line numbers).
  13927. if test "x$srcdir" = x.; then
  13928. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13929. h
  13930. s///
  13931. s/^/:/
  13932. s/[ ]*$/:/
  13933. s/:\$(srcdir):/:/g
  13934. s/:\${srcdir}:/:/g
  13935. s/:@srcdir@:/:/g
  13936. s/^:*//
  13937. s/:*$//
  13938. x
  13939. s/\(=[ ]*\).*/\1/
  13940. G
  13941. s/\n//
  13942. s/^[^=]*=[ ]*$//
  13943. }'
  13944. fi
  13945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13946. fi # test -n "$CONFIG_FILES"
  13947. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13948. shift
  13949. for ac_tag
  13950. do
  13951. case $ac_tag in
  13952. :[FHLC]) ac_mode=$ac_tag; continue;;
  13953. esac
  13954. case $ac_mode$ac_tag in
  13955. :[FHL]*:*);;
  13956. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13957. :[FH]-) ac_tag=-:-;;
  13958. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13959. esac
  13960. ac_save_IFS=$IFS
  13961. IFS=:
  13962. set x $ac_tag
  13963. IFS=$ac_save_IFS
  13964. shift
  13965. ac_file=$1
  13966. shift
  13967. case $ac_mode in
  13968. :L) ac_source=$1;;
  13969. :[FH])
  13970. ac_file_inputs=
  13971. for ac_f
  13972. do
  13973. case $ac_f in
  13974. -) ac_f="$ac_tmp/stdin";;
  13975. *) # Look for the file first in the build tree, then in the source tree
  13976. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13977. # because $ac_f cannot contain `:'.
  13978. test -f "$ac_f" ||
  13979. case $ac_f in
  13980. [\\/$]*) false;;
  13981. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13982. esac ||
  13983. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13984. esac
  13985. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13986. as_fn_append ac_file_inputs " '$ac_f'"
  13987. done
  13988. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13989. # use $as_me), people would be surprised to read:
  13990. # /* config.h. Generated by config.status. */
  13991. configure_input='Generated from '`
  13992. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13993. `' by configure.'
  13994. if test x"$ac_file" != x-; then
  13995. configure_input="$ac_file. $configure_input"
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13997. $as_echo "$as_me: creating $ac_file" >&6;}
  13998. fi
  13999. # Neutralize special characters interpreted by sed in replacement strings.
  14000. case $configure_input in #(
  14001. *\&* | *\|* | *\\* )
  14002. ac_sed_conf_input=`$as_echo "$configure_input" |
  14003. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14004. *) ac_sed_conf_input=$configure_input;;
  14005. esac
  14006. case $ac_tag in
  14007. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14008. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14009. esac
  14010. ;;
  14011. esac
  14012. ac_dir=`$as_dirname -- "$ac_file" ||
  14013. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14014. X"$ac_file" : 'X\(//\)[^/]' \| \
  14015. X"$ac_file" : 'X\(//\)$' \| \
  14016. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14017. $as_echo X"$ac_file" |
  14018. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14019. s//\1/
  14020. q
  14021. }
  14022. /^X\(\/\/\)[^/].*/{
  14023. s//\1/
  14024. q
  14025. }
  14026. /^X\(\/\/\)$/{
  14027. s//\1/
  14028. q
  14029. }
  14030. /^X\(\/\).*/{
  14031. s//\1/
  14032. q
  14033. }
  14034. s/.*/./; q'`
  14035. as_dir="$ac_dir"; as_fn_mkdir_p
  14036. ac_builddir=.
  14037. case "$ac_dir" in
  14038. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14039. *)
  14040. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14041. # A ".." for each directory in $ac_dir_suffix.
  14042. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14043. case $ac_top_builddir_sub in
  14044. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14045. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14046. esac ;;
  14047. esac
  14048. ac_abs_top_builddir=$ac_pwd
  14049. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14050. # for backward compatibility:
  14051. ac_top_builddir=$ac_top_build_prefix
  14052. case $srcdir in
  14053. .) # We are building in place.
  14054. ac_srcdir=.
  14055. ac_top_srcdir=$ac_top_builddir_sub
  14056. ac_abs_top_srcdir=$ac_pwd ;;
  14057. [\\/]* | ?:[\\/]* ) # Absolute name.
  14058. ac_srcdir=$srcdir$ac_dir_suffix;
  14059. ac_top_srcdir=$srcdir
  14060. ac_abs_top_srcdir=$srcdir ;;
  14061. *) # Relative name.
  14062. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14063. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14064. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14065. esac
  14066. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14067. case $ac_mode in
  14068. :F)
  14069. #
  14070. # CONFIG_FILE
  14071. #
  14072. case $INSTALL in
  14073. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14074. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14075. esac
  14076. ac_MKDIR_P=$MKDIR_P
  14077. case $MKDIR_P in
  14078. [\\/$]* | ?:[\\/]* ) ;;
  14079. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14080. esac
  14081. _ACEOF
  14082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14083. # If the template does not know about datarootdir, expand it.
  14084. # FIXME: This hack should be removed a few years after 2.60.
  14085. ac_datarootdir_hack=; ac_datarootdir_seen=
  14086. ac_sed_dataroot='
  14087. /datarootdir/ {
  14088. p
  14089. q
  14090. }
  14091. /@datadir@/p
  14092. /@docdir@/p
  14093. /@infodir@/p
  14094. /@localedir@/p
  14095. /@mandir@/p'
  14096. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14097. *datarootdir*) ac_datarootdir_seen=yes;;
  14098. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14100. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14101. _ACEOF
  14102. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14103. ac_datarootdir_hack='
  14104. s&@datadir@&$datadir&g
  14105. s&@docdir@&$docdir&g
  14106. s&@infodir@&$infodir&g
  14107. s&@localedir@&$localedir&g
  14108. s&@mandir@&$mandir&g
  14109. s&\\\${datarootdir}&$datarootdir&g' ;;
  14110. esac
  14111. _ACEOF
  14112. # Neutralize VPATH when `$srcdir' = `.'.
  14113. # Shell code in configure.ac might set extrasub.
  14114. # FIXME: do we really want to maintain this feature?
  14115. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14116. ac_sed_extra="$ac_vpsub
  14117. $extrasub
  14118. _ACEOF
  14119. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14120. :t
  14121. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14122. s|@configure_input@|$ac_sed_conf_input|;t t
  14123. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14124. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14125. s&@srcdir@&$ac_srcdir&;t t
  14126. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14127. s&@top_srcdir@&$ac_top_srcdir&;t t
  14128. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14129. s&@builddir@&$ac_builddir&;t t
  14130. s&@abs_builddir@&$ac_abs_builddir&;t t
  14131. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14132. s&@INSTALL@&$ac_INSTALL&;t t
  14133. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14134. $ac_datarootdir_hack
  14135. "
  14136. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14137. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14138. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14139. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14140. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14141. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14143. which seems to be undefined. Please make sure it is defined" >&5
  14144. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14145. which seems to be undefined. Please make sure it is defined" >&2;}
  14146. rm -f "$ac_tmp/stdin"
  14147. case $ac_file in
  14148. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14149. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14150. esac \
  14151. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14152. ;;
  14153. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14154. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14155. ;;
  14156. esac
  14157. case $ac_file$ac_mode in
  14158. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14159. # Older Autoconf quotes --file arguments for eval, but not when files
  14160. # are listed without --file. Let's play safe and only enable the eval
  14161. # if we detect the quoting.
  14162. case $CONFIG_FILES in
  14163. *\'*) eval set x "$CONFIG_FILES" ;;
  14164. *) set x $CONFIG_FILES ;;
  14165. esac
  14166. shift
  14167. for mf
  14168. do
  14169. # Strip MF so we end up with the name of the file.
  14170. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14171. # Check whether this is an Automake generated Makefile or not.
  14172. # We used to match only the files named 'Makefile.in', but
  14173. # some people rename them; so instead we look at the file content.
  14174. # Grep'ing the first line is not enough: some people post-process
  14175. # each Makefile.in and add a new line on top of each file to say so.
  14176. # Grep'ing the whole file is not good either: AIX grep has a line
  14177. # limit of 2048, but all sed's we know have understand at least 4000.
  14178. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14179. dirpart=`$as_dirname -- "$mf" ||
  14180. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14181. X"$mf" : 'X\(//\)[^/]' \| \
  14182. X"$mf" : 'X\(//\)$' \| \
  14183. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14184. $as_echo X"$mf" |
  14185. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14186. s//\1/
  14187. q
  14188. }
  14189. /^X\(\/\/\)[^/].*/{
  14190. s//\1/
  14191. q
  14192. }
  14193. /^X\(\/\/\)$/{
  14194. s//\1/
  14195. q
  14196. }
  14197. /^X\(\/\).*/{
  14198. s//\1/
  14199. q
  14200. }
  14201. s/.*/./; q'`
  14202. else
  14203. continue
  14204. fi
  14205. # Extract the definition of DEPDIR, am__include, and am__quote
  14206. # from the Makefile without running 'make'.
  14207. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14208. test -z "$DEPDIR" && continue
  14209. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14210. test -z "$am__include" && continue
  14211. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14212. # Find all dependency output files, they are included files with
  14213. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14214. # simplest approach to changing $(DEPDIR) to its actual value in the
  14215. # expansion.
  14216. for file in `sed -n "
  14217. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14218. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14219. # Make sure the directory exists.
  14220. test -f "$dirpart/$file" && continue
  14221. fdir=`$as_dirname -- "$file" ||
  14222. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14223. X"$file" : 'X\(//\)[^/]' \| \
  14224. X"$file" : 'X\(//\)$' \| \
  14225. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14226. $as_echo X"$file" |
  14227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14228. s//\1/
  14229. q
  14230. }
  14231. /^X\(\/\/\)[^/].*/{
  14232. s//\1/
  14233. q
  14234. }
  14235. /^X\(\/\/\)$/{
  14236. s//\1/
  14237. q
  14238. }
  14239. /^X\(\/\).*/{
  14240. s//\1/
  14241. q
  14242. }
  14243. s/.*/./; q'`
  14244. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14245. # echo "creating $dirpart/$file"
  14246. echo '# dummy' > "$dirpart/$file"
  14247. done
  14248. done
  14249. }
  14250. ;;
  14251. "default-1":C)
  14252. # Only add multilib support code if we just rebuilt the top-level
  14253. # Makefile.
  14254. case " $CONFIG_FILES " in
  14255. *" Makefile "*)
  14256. ac_file=Makefile . ${multi_basedir}/config-ml.in
  14257. ;;
  14258. esac ;;
  14259. "libtool":C)
  14260. # See if we are running on zsh, and set the options which allow our
  14261. # commands through without removal of \ escapes.
  14262. if test -n "${ZSH_VERSION+set}" ; then
  14263. setopt NO_GLOB_SUBST
  14264. fi
  14265. cfgfile="${ofile}T"
  14266. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14267. $RM "$cfgfile"
  14268. cat <<_LT_EOF >> "$cfgfile"
  14269. #! $SHELL
  14270. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14271. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14272. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14273. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14274. #
  14275. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14276. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14277. # Written by Gordon Matzigkeit, 1996
  14278. #
  14279. # This file is part of GNU Libtool.
  14280. #
  14281. # GNU Libtool is free software; you can redistribute it and/or
  14282. # modify it under the terms of the GNU General Public License as
  14283. # published by the Free Software Foundation; either version 2 of
  14284. # the License, or (at your option) any later version.
  14285. #
  14286. # As a special exception to the GNU General Public License,
  14287. # if you distribute this file as part of a program or library that
  14288. # is built using GNU Libtool, you may include this file under the
  14289. # same distribution terms that you use for the rest of that program.
  14290. #
  14291. # GNU Libtool is distributed in the hope that it will be useful,
  14292. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14293. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14294. # GNU General Public License for more details.
  14295. #
  14296. # You should have received a copy of the GNU General Public License
  14297. # along with GNU Libtool; see the file COPYING. If not, a copy
  14298. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14299. # obtained by writing to the Free Software Foundation, Inc.,
  14300. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14301. # The names of the tagged configurations supported by this script.
  14302. available_tags="CXX "
  14303. # ### BEGIN LIBTOOL CONFIG
  14304. # Which release of libtool.m4 was used?
  14305. macro_version=$macro_version
  14306. macro_revision=$macro_revision
  14307. # Whether or not to build shared libraries.
  14308. build_libtool_libs=$enable_shared
  14309. # Whether or not to build static libraries.
  14310. build_old_libs=$enable_static
  14311. # What type of objects to build.
  14312. pic_mode=$pic_mode
  14313. # Whether or not to optimize for fast installation.
  14314. fast_install=$enable_fast_install
  14315. # Shell to use when invoking shell scripts.
  14316. SHELL=$lt_SHELL
  14317. # An echo program that protects backslashes.
  14318. ECHO=$lt_ECHO
  14319. # The host system.
  14320. host_alias=$host_alias
  14321. host=$host
  14322. host_os=$host_os
  14323. # The build system.
  14324. build_alias=$build_alias
  14325. build=$build
  14326. build_os=$build_os
  14327. # A sed program that does not truncate output.
  14328. SED=$lt_SED
  14329. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14330. Xsed="\$SED -e 1s/^X//"
  14331. # A grep program that handles long lines.
  14332. GREP=$lt_GREP
  14333. # An ERE matcher.
  14334. EGREP=$lt_EGREP
  14335. # A literal string matcher.
  14336. FGREP=$lt_FGREP
  14337. # A BSD- or MS-compatible name lister.
  14338. NM=$lt_NM
  14339. # Whether we need soft or hard links.
  14340. LN_S=$lt_LN_S
  14341. # What is the maximum length of a command?
  14342. max_cmd_len=$max_cmd_len
  14343. # Object file suffix (normally "o").
  14344. objext=$ac_objext
  14345. # Executable file suffix (normally "").
  14346. exeext=$exeext
  14347. # whether the shell understands "unset".
  14348. lt_unset=$lt_unset
  14349. # turn spaces into newlines.
  14350. SP2NL=$lt_lt_SP2NL
  14351. # turn newlines into spaces.
  14352. NL2SP=$lt_lt_NL2SP
  14353. # An object symbol dumper.
  14354. OBJDUMP=$lt_OBJDUMP
  14355. # Method to check whether dependent libraries are shared objects.
  14356. deplibs_check_method=$lt_deplibs_check_method
  14357. # Command to use when deplibs_check_method == "file_magic".
  14358. file_magic_cmd=$lt_file_magic_cmd
  14359. # The archiver.
  14360. AR=$lt_AR
  14361. AR_FLAGS=$lt_AR_FLAGS
  14362. # A symbol stripping program.
  14363. STRIP=$lt_STRIP
  14364. # Commands used to install an old-style archive.
  14365. RANLIB=$lt_RANLIB
  14366. old_postinstall_cmds=$lt_old_postinstall_cmds
  14367. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14368. # Whether to use a lock for old archive extraction.
  14369. lock_old_archive_extraction=$lock_old_archive_extraction
  14370. # A C compiler.
  14371. LTCC=$lt_CC
  14372. # LTCC compiler flags.
  14373. LTCFLAGS=$lt_CFLAGS
  14374. # Take the output of nm and produce a listing of raw symbols and C names.
  14375. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14376. # Transform the output of nm in a proper C declaration.
  14377. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14378. # Transform the output of nm in a C name address pair.
  14379. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14380. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14381. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14382. # The name of the directory that contains temporary libtool files.
  14383. objdir=$objdir
  14384. # Used to examine libraries when file_magic_cmd begins with "file".
  14385. MAGIC_CMD=$MAGIC_CMD
  14386. # Must we lock files when doing compilation?
  14387. need_locks=$lt_need_locks
  14388. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14389. DSYMUTIL=$lt_DSYMUTIL
  14390. # Tool to change global to local symbols on Mac OS X.
  14391. NMEDIT=$lt_NMEDIT
  14392. # Tool to manipulate fat objects and archives on Mac OS X.
  14393. LIPO=$lt_LIPO
  14394. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14395. OTOOL=$lt_OTOOL
  14396. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14397. OTOOL64=$lt_OTOOL64
  14398. # Old archive suffix (normally "a").
  14399. libext=$libext
  14400. # Shared library suffix (normally ".so").
  14401. shrext_cmds=$lt_shrext_cmds
  14402. # The commands to extract the exported symbol list from a shared archive.
  14403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14404. # Variables whose values should be saved in libtool wrapper scripts and
  14405. # restored at link time.
  14406. variables_saved_for_relink=$lt_variables_saved_for_relink
  14407. # Do we need the "lib" prefix for modules?
  14408. need_lib_prefix=$need_lib_prefix
  14409. # Do we need a version for libraries?
  14410. need_version=$need_version
  14411. # Library versioning type.
  14412. version_type=$version_type
  14413. # Shared library runtime path variable.
  14414. runpath_var=$runpath_var
  14415. # Shared library path variable.
  14416. shlibpath_var=$shlibpath_var
  14417. # Is shlibpath searched before the hard-coded library search path?
  14418. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14419. # Format of library name prefix.
  14420. libname_spec=$lt_libname_spec
  14421. # List of archive names. First name is the real one, the rest are links.
  14422. # The last name is the one that the linker finds with -lNAME
  14423. library_names_spec=$lt_library_names_spec
  14424. # The coded name of the library, if different from the real name.
  14425. soname_spec=$lt_soname_spec
  14426. # Permission mode override for installation of shared libraries.
  14427. install_override_mode=$lt_install_override_mode
  14428. # Command to use after installation of a shared archive.
  14429. postinstall_cmds=$lt_postinstall_cmds
  14430. # Command to use after uninstallation of a shared archive.
  14431. postuninstall_cmds=$lt_postuninstall_cmds
  14432. # Commands used to finish a libtool library installation in a directory.
  14433. finish_cmds=$lt_finish_cmds
  14434. # As "finish_cmds", except a single script fragment to be evaled but
  14435. # not shown.
  14436. finish_eval=$lt_finish_eval
  14437. # Whether we should hardcode library paths into libraries.
  14438. hardcode_into_libs=$hardcode_into_libs
  14439. # Compile-time system search path for libraries.
  14440. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14441. # Run-time system search path for libraries.
  14442. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14443. # Whether dlopen is supported.
  14444. dlopen_support=$enable_dlopen
  14445. # Whether dlopen of programs is supported.
  14446. dlopen_self=$enable_dlopen_self
  14447. # Whether dlopen of statically linked programs is supported.
  14448. dlopen_self_static=$enable_dlopen_self_static
  14449. # Commands to strip libraries.
  14450. old_striplib=$lt_old_striplib
  14451. striplib=$lt_striplib
  14452. # The linker used to build libraries.
  14453. LD=$lt_LD
  14454. # How to create reloadable object files.
  14455. reload_flag=$lt_reload_flag
  14456. reload_cmds=$lt_reload_cmds
  14457. # Commands used to build an old-style archive.
  14458. old_archive_cmds=$lt_old_archive_cmds
  14459. # A language specific compiler.
  14460. CC=$lt_compiler
  14461. # Is the compiler the GNU compiler?
  14462. with_gcc=$GCC
  14463. # Compiler flag to turn off builtin functions.
  14464. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14465. # How to pass a linker flag through the compiler.
  14466. wl=$lt_lt_prog_compiler_wl
  14467. # Additional compiler flags for building library objects.
  14468. pic_flag=$lt_lt_prog_compiler_pic
  14469. # Compiler flag to prevent dynamic linking.
  14470. link_static_flag=$lt_lt_prog_compiler_static
  14471. # Does compiler simultaneously support -c and -o options?
  14472. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14473. # Whether or not to add -lc for building shared libraries.
  14474. build_libtool_need_lc=$archive_cmds_need_lc
  14475. # Whether or not to disallow shared libs when runtime libs are static.
  14476. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14477. # Compiler flag to allow reflexive dlopens.
  14478. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14479. # Compiler flag to generate shared objects directly from archives.
  14480. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14481. # Whether the compiler copes with passing no objects directly.
  14482. compiler_needs_object=$lt_compiler_needs_object
  14483. # Create an old-style archive from a shared archive.
  14484. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14485. # Create a temporary old-style archive to link instead of a shared archive.
  14486. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14487. # Commands used to build a shared archive.
  14488. archive_cmds=$lt_archive_cmds
  14489. archive_expsym_cmds=$lt_archive_expsym_cmds
  14490. # Commands used to build a loadable module if different from building
  14491. # a shared archive.
  14492. module_cmds=$lt_module_cmds
  14493. module_expsym_cmds=$lt_module_expsym_cmds
  14494. # Whether we are building with GNU ld or not.
  14495. with_gnu_ld=$lt_with_gnu_ld
  14496. # Flag that allows shared libraries with undefined symbols to be built.
  14497. allow_undefined_flag=$lt_allow_undefined_flag
  14498. # Flag that enforces no undefined symbols.
  14499. no_undefined_flag=$lt_no_undefined_flag
  14500. # Flag to hardcode \$libdir into a binary during linking.
  14501. # This must work even if \$libdir does not exist
  14502. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14503. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14504. # during linking. This must work even if \$libdir does not exist.
  14505. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14506. # Whether we need a single "-rpath" flag with a separated argument.
  14507. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14508. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14509. # DIR into the resulting binary.
  14510. hardcode_direct=$hardcode_direct
  14511. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14512. # DIR into the resulting binary and the resulting library dependency is
  14513. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14514. # library is relocated.
  14515. hardcode_direct_absolute=$hardcode_direct_absolute
  14516. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14517. # into the resulting binary.
  14518. hardcode_minus_L=$hardcode_minus_L
  14519. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14520. # into the resulting binary.
  14521. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14522. # Set to "yes" if building a shared library automatically hardcodes DIR
  14523. # into the library and all subsequent libraries and executables linked
  14524. # against it.
  14525. hardcode_automatic=$hardcode_automatic
  14526. # Set to yes if linker adds runtime paths of dependent libraries
  14527. # to runtime path list.
  14528. inherit_rpath=$inherit_rpath
  14529. # Whether libtool must link a program against all its dependency libraries.
  14530. link_all_deplibs=$link_all_deplibs
  14531. # Fix the shell variable \$srcfile for the compiler.
  14532. fix_srcfile_path=$lt_fix_srcfile_path
  14533. # Set to "yes" if exported symbols are required.
  14534. always_export_symbols=$always_export_symbols
  14535. # The commands to list exported symbols.
  14536. export_symbols_cmds=$lt_export_symbols_cmds
  14537. # Symbols that should not be listed in the preloaded symbols.
  14538. exclude_expsyms=$lt_exclude_expsyms
  14539. # Symbols that must always be exported.
  14540. include_expsyms=$lt_include_expsyms
  14541. # Commands necessary for linking programs (against libraries) with templates.
  14542. prelink_cmds=$lt_prelink_cmds
  14543. # Specify filename containing input files.
  14544. file_list_spec=$lt_file_list_spec
  14545. # How to hardcode a shared library path into an executable.
  14546. hardcode_action=$hardcode_action
  14547. # The directories searched by this compiler when creating a shared library.
  14548. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14549. # Dependencies to place before and after the objects being linked to
  14550. # create a shared library.
  14551. predep_objects=$lt_predep_objects
  14552. postdep_objects=$lt_postdep_objects
  14553. predeps=$lt_predeps
  14554. postdeps=$lt_postdeps
  14555. # The library search path used internally by the compiler when linking
  14556. # a shared library.
  14557. compiler_lib_search_path=$lt_compiler_lib_search_path
  14558. # ### END LIBTOOL CONFIG
  14559. _LT_EOF
  14560. case $host_os in
  14561. aix3*)
  14562. cat <<\_LT_EOF >> "$cfgfile"
  14563. # AIX sometimes has problems with the GCC collect2 program. For some
  14564. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14565. # vanish in a puff of smoke.
  14566. if test "X${COLLECT_NAMES+set}" != Xset; then
  14567. COLLECT_NAMES=
  14568. export COLLECT_NAMES
  14569. fi
  14570. _LT_EOF
  14571. ;;
  14572. esac
  14573. ltmain="$ac_aux_dir/ltmain.sh"
  14574. # We use sed instead of cat because bash on DJGPP gets confused if
  14575. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14576. # text mode, it properly converts lines to CR/LF. This bash problem
  14577. # is reportedly fixed, but why not run on old versions too?
  14578. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14579. || (rm -f "$cfgfile"; exit 1)
  14580. case $xsi_shell in
  14581. yes)
  14582. cat << \_LT_EOF >> "$cfgfile"
  14583. # func_dirname file append nondir_replacement
  14584. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14585. # otherwise set result to NONDIR_REPLACEMENT.
  14586. func_dirname ()
  14587. {
  14588. case ${1} in
  14589. */*) func_dirname_result="${1%/*}${2}" ;;
  14590. * ) func_dirname_result="${3}" ;;
  14591. esac
  14592. }
  14593. # func_basename file
  14594. func_basename ()
  14595. {
  14596. func_basename_result="${1##*/}"
  14597. }
  14598. # func_dirname_and_basename file append nondir_replacement
  14599. # perform func_basename and func_dirname in a single function
  14600. # call:
  14601. # dirname: Compute the dirname of FILE. If nonempty,
  14602. # add APPEND to the result, otherwise set result
  14603. # to NONDIR_REPLACEMENT.
  14604. # value returned in "$func_dirname_result"
  14605. # basename: Compute filename of FILE.
  14606. # value retuned in "$func_basename_result"
  14607. # Implementation must be kept synchronized with func_dirname
  14608. # and func_basename. For efficiency, we do not delegate to
  14609. # those functions but instead duplicate the functionality here.
  14610. func_dirname_and_basename ()
  14611. {
  14612. case ${1} in
  14613. */*) func_dirname_result="${1%/*}${2}" ;;
  14614. * ) func_dirname_result="${3}" ;;
  14615. esac
  14616. func_basename_result="${1##*/}"
  14617. }
  14618. # func_stripname prefix suffix name
  14619. # strip PREFIX and SUFFIX off of NAME.
  14620. # PREFIX and SUFFIX must not contain globbing or regex special
  14621. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14622. # dot (in which case that matches only a dot).
  14623. func_stripname ()
  14624. {
  14625. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14626. # positional parameters, so assign one to ordinary parameter first.
  14627. func_stripname_result=${3}
  14628. func_stripname_result=${func_stripname_result#"${1}"}
  14629. func_stripname_result=${func_stripname_result%"${2}"}
  14630. }
  14631. # func_opt_split
  14632. func_opt_split ()
  14633. {
  14634. func_opt_split_opt=${1%%=*}
  14635. func_opt_split_arg=${1#*=}
  14636. }
  14637. # func_lo2o object
  14638. func_lo2o ()
  14639. {
  14640. case ${1} in
  14641. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14642. *) func_lo2o_result=${1} ;;
  14643. esac
  14644. }
  14645. # func_xform libobj-or-source
  14646. func_xform ()
  14647. {
  14648. func_xform_result=${1%.*}.lo
  14649. }
  14650. # func_arith arithmetic-term...
  14651. func_arith ()
  14652. {
  14653. func_arith_result=$(( $* ))
  14654. }
  14655. # func_len string
  14656. # STRING may not start with a hyphen.
  14657. func_len ()
  14658. {
  14659. func_len_result=${#1}
  14660. }
  14661. _LT_EOF
  14662. ;;
  14663. *) # Bourne compatible functions.
  14664. cat << \_LT_EOF >> "$cfgfile"
  14665. # func_dirname file append nondir_replacement
  14666. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14667. # otherwise set result to NONDIR_REPLACEMENT.
  14668. func_dirname ()
  14669. {
  14670. # Extract subdirectory from the argument.
  14671. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14672. if test "X$func_dirname_result" = "X${1}"; then
  14673. func_dirname_result="${3}"
  14674. else
  14675. func_dirname_result="$func_dirname_result${2}"
  14676. fi
  14677. }
  14678. # func_basename file
  14679. func_basename ()
  14680. {
  14681. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14682. }
  14683. # func_stripname prefix suffix name
  14684. # strip PREFIX and SUFFIX off of NAME.
  14685. # PREFIX and SUFFIX must not contain globbing or regex special
  14686. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14687. # dot (in which case that matches only a dot).
  14688. # func_strip_suffix prefix name
  14689. func_stripname ()
  14690. {
  14691. case ${2} in
  14692. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14693. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14694. esac
  14695. }
  14696. # sed scripts:
  14697. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14698. my_sed_long_arg='1s/^-[^=]*=//'
  14699. # func_opt_split
  14700. func_opt_split ()
  14701. {
  14702. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14703. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14704. }
  14705. # func_lo2o object
  14706. func_lo2o ()
  14707. {
  14708. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14709. }
  14710. # func_xform libobj-or-source
  14711. func_xform ()
  14712. {
  14713. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14714. }
  14715. # func_arith arithmetic-term...
  14716. func_arith ()
  14717. {
  14718. func_arith_result=`expr "$@"`
  14719. }
  14720. # func_len string
  14721. # STRING may not start with a hyphen.
  14722. func_len ()
  14723. {
  14724. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14725. }
  14726. _LT_EOF
  14727. esac
  14728. case $lt_shell_append in
  14729. yes)
  14730. cat << \_LT_EOF >> "$cfgfile"
  14731. # func_append var value
  14732. # Append VALUE to the end of shell variable VAR.
  14733. func_append ()
  14734. {
  14735. eval "$1+=\$2"
  14736. }
  14737. _LT_EOF
  14738. ;;
  14739. *)
  14740. cat << \_LT_EOF >> "$cfgfile"
  14741. # func_append var value
  14742. # Append VALUE to the end of shell variable VAR.
  14743. func_append ()
  14744. {
  14745. eval "$1=\$$1\$2"
  14746. }
  14747. _LT_EOF
  14748. ;;
  14749. esac
  14750. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14751. || (rm -f "$cfgfile"; exit 1)
  14752. mv -f "$cfgfile" "$ofile" ||
  14753. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14754. chmod +x "$ofile"
  14755. cat <<_LT_EOF >> "$ofile"
  14756. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14757. # The linker used to build libraries.
  14758. LD=$lt_LD_CXX
  14759. # How to create reloadable object files.
  14760. reload_flag=$lt_reload_flag_CXX
  14761. reload_cmds=$lt_reload_cmds_CXX
  14762. # Commands used to build an old-style archive.
  14763. old_archive_cmds=$lt_old_archive_cmds_CXX
  14764. # A language specific compiler.
  14765. CC=$lt_compiler_CXX
  14766. # Is the compiler the GNU compiler?
  14767. with_gcc=$GCC_CXX
  14768. # Compiler flag to turn off builtin functions.
  14769. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14770. # How to pass a linker flag through the compiler.
  14771. wl=$lt_lt_prog_compiler_wl_CXX
  14772. # Additional compiler flags for building library objects.
  14773. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14774. # Compiler flag to prevent dynamic linking.
  14775. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14776. # Does compiler simultaneously support -c and -o options?
  14777. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14778. # Whether or not to add -lc for building shared libraries.
  14779. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14780. # Whether or not to disallow shared libs when runtime libs are static.
  14781. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14782. # Compiler flag to allow reflexive dlopens.
  14783. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14784. # Compiler flag to generate shared objects directly from archives.
  14785. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14786. # Whether the compiler copes with passing no objects directly.
  14787. compiler_needs_object=$lt_compiler_needs_object_CXX
  14788. # Create an old-style archive from a shared archive.
  14789. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14790. # Create a temporary old-style archive to link instead of a shared archive.
  14791. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14792. # Commands used to build a shared archive.
  14793. archive_cmds=$lt_archive_cmds_CXX
  14794. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14795. # Commands used to build a loadable module if different from building
  14796. # a shared archive.
  14797. module_cmds=$lt_module_cmds_CXX
  14798. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14799. # Whether we are building with GNU ld or not.
  14800. with_gnu_ld=$lt_with_gnu_ld_CXX
  14801. # Flag that allows shared libraries with undefined symbols to be built.
  14802. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14803. # Flag that enforces no undefined symbols.
  14804. no_undefined_flag=$lt_no_undefined_flag_CXX
  14805. # Flag to hardcode \$libdir into a binary during linking.
  14806. # This must work even if \$libdir does not exist
  14807. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14808. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14809. # during linking. This must work even if \$libdir does not exist.
  14810. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14811. # Whether we need a single "-rpath" flag with a separated argument.
  14812. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14813. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14814. # DIR into the resulting binary.
  14815. hardcode_direct=$hardcode_direct_CXX
  14816. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14817. # DIR into the resulting binary and the resulting library dependency is
  14818. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14819. # library is relocated.
  14820. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14821. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14822. # into the resulting binary.
  14823. hardcode_minus_L=$hardcode_minus_L_CXX
  14824. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14825. # into the resulting binary.
  14826. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14827. # Set to "yes" if building a shared library automatically hardcodes DIR
  14828. # into the library and all subsequent libraries and executables linked
  14829. # against it.
  14830. hardcode_automatic=$hardcode_automatic_CXX
  14831. # Set to yes if linker adds runtime paths of dependent libraries
  14832. # to runtime path list.
  14833. inherit_rpath=$inherit_rpath_CXX
  14834. # Whether libtool must link a program against all its dependency libraries.
  14835. link_all_deplibs=$link_all_deplibs_CXX
  14836. # Fix the shell variable \$srcfile for the compiler.
  14837. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14838. # Set to "yes" if exported symbols are required.
  14839. always_export_symbols=$always_export_symbols_CXX
  14840. # The commands to list exported symbols.
  14841. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14842. # Symbols that should not be listed in the preloaded symbols.
  14843. exclude_expsyms=$lt_exclude_expsyms_CXX
  14844. # Symbols that must always be exported.
  14845. include_expsyms=$lt_include_expsyms_CXX
  14846. # Commands necessary for linking programs (against libraries) with templates.
  14847. prelink_cmds=$lt_prelink_cmds_CXX
  14848. # Specify filename containing input files.
  14849. file_list_spec=$lt_file_list_spec_CXX
  14850. # How to hardcode a shared library path into an executable.
  14851. hardcode_action=$hardcode_action_CXX
  14852. # The directories searched by this compiler when creating a shared library.
  14853. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14854. # Dependencies to place before and after the objects being linked to
  14855. # create a shared library.
  14856. predep_objects=$lt_predep_objects_CXX
  14857. postdep_objects=$lt_postdep_objects_CXX
  14858. predeps=$lt_predeps_CXX
  14859. postdeps=$lt_postdeps_CXX
  14860. # The library search path used internally by the compiler when linking
  14861. # a shared library.
  14862. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14863. # ### END LIBTOOL TAG CONFIG: CXX
  14864. _LT_EOF
  14865. ;;
  14866. esac
  14867. done # for ac_tag
  14868. as_fn_exit 0
  14869. _ACEOF
  14870. ac_clean_files=$ac_clean_files_save
  14871. test $ac_write_fail = 0 ||
  14872. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14873. # configure is writing to config.log, and then calls config.status.
  14874. # config.status does its own redirection, appending to config.log.
  14875. # Unfortunately, on DOS this fails, as config.log is still kept open
  14876. # by configure, so config.status won't be able to write to it; its
  14877. # output is simply discarded. So we exec the FD to /dev/null,
  14878. # effectively closing config.log, so it can be properly (re)opened and
  14879. # appended to by config.status. When coming back to configure, we
  14880. # need to make the FD available again.
  14881. if test "$no_create" != yes; then
  14882. ac_cs_success=:
  14883. ac_config_status_args=
  14884. test "$silent" = yes &&
  14885. ac_config_status_args="$ac_config_status_args --quiet"
  14886. exec 5>/dev/null
  14887. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14888. exec 5>>config.log
  14889. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14890. # would make configure fail if this is the last instruction.
  14891. $ac_cs_success || as_fn_exit 1
  14892. fi
  14893. #
  14894. # CONFIG_SUBDIRS section.
  14895. #
  14896. if test "$no_recursion" != yes; then
  14897. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  14898. # so they do not pile up.
  14899. ac_sub_configure_args=
  14900. ac_prev=
  14901. eval "set x $ac_configure_args"
  14902. shift
  14903. for ac_arg
  14904. do
  14905. if test -n "$ac_prev"; then
  14906. ac_prev=
  14907. continue
  14908. fi
  14909. case $ac_arg in
  14910. -cache-file | --cache-file | --cache-fil | --cache-fi \
  14911. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  14912. ac_prev=cache_file ;;
  14913. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  14914. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  14915. | --c=*)
  14916. ;;
  14917. --config-cache | -C)
  14918. ;;
  14919. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  14920. ac_prev=srcdir ;;
  14921. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  14922. ;;
  14923. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  14924. ac_prev=prefix ;;
  14925. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  14926. ;;
  14927. --disable-option-checking)
  14928. ;;
  14929. *)
  14930. case $ac_arg in
  14931. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14932. esac
  14933. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  14934. esac
  14935. done
  14936. # Always prepend --prefix to ensure using the same prefix
  14937. # in subdir configurations.
  14938. ac_arg="--prefix=$prefix"
  14939. case $ac_arg in
  14940. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14941. esac
  14942. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  14943. # Pass --silent
  14944. if test "$silent" = yes; then
  14945. ac_sub_configure_args="--silent $ac_sub_configure_args"
  14946. fi
  14947. # Always prepend --disable-option-checking to silence warnings, since
  14948. # different subdirs can have different --enable and --with options.
  14949. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  14950. ac_popdir=`pwd`
  14951. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  14952. # Do not complain, so a configure script can configure whichever
  14953. # parts of a large source tree are present.
  14954. test -d "$srcdir/$ac_dir" || continue
  14955. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  14956. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  14957. $as_echo "$ac_msg" >&6
  14958. as_dir="$ac_dir"; as_fn_mkdir_p
  14959. ac_builddir=.
  14960. case "$ac_dir" in
  14961. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14962. *)
  14963. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14964. # A ".." for each directory in $ac_dir_suffix.
  14965. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14966. case $ac_top_builddir_sub in
  14967. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14968. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14969. esac ;;
  14970. esac
  14971. ac_abs_top_builddir=$ac_pwd
  14972. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14973. # for backward compatibility:
  14974. ac_top_builddir=$ac_top_build_prefix
  14975. case $srcdir in
  14976. .) # We are building in place.
  14977. ac_srcdir=.
  14978. ac_top_srcdir=$ac_top_builddir_sub
  14979. ac_abs_top_srcdir=$ac_pwd ;;
  14980. [\\/]* | ?:[\\/]* ) # Absolute name.
  14981. ac_srcdir=$srcdir$ac_dir_suffix;
  14982. ac_top_srcdir=$srcdir
  14983. ac_abs_top_srcdir=$srcdir ;;
  14984. *) # Relative name.
  14985. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14986. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14987. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14988. esac
  14989. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14990. cd "$ac_dir"
  14991. # Check for guested configure; otherwise get Cygnus style configure.
  14992. if test -f "$ac_srcdir/configure.gnu"; then
  14993. ac_sub_configure=$ac_srcdir/configure.gnu
  14994. elif test -f "$ac_srcdir/configure"; then
  14995. ac_sub_configure=$ac_srcdir/configure
  14996. elif test -f "$ac_srcdir/configure.in"; then
  14997. # This should be Cygnus configure.
  14998. ac_sub_configure=$ac_aux_dir/configure
  14999. else
  15000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  15001. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  15002. ac_sub_configure=
  15003. fi
  15004. # The recursion is here.
  15005. if test -n "$ac_sub_configure"; then
  15006. # Make the cache file name correct relative to the subdirectory.
  15007. case $cache_file in
  15008. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  15009. *) # Relative name.
  15010. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  15011. esac
  15012. { $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
  15013. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  15014. # The eval makes quoting arguments work.
  15015. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  15016. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  15017. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  15018. fi
  15019. cd "$ac_popdir"
  15020. done
  15021. fi
  15022. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15024. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15025. fi