configure 584 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing 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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
  539. PACKAGE_TARNAME='libgomp'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL='http://www.gnu.org/software/libgomp/'
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_header_list=
  580. ac_func_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. get_gcc_base_ver
  586. OMP_DEPEND_KIND
  587. OMP_NEST_LOCK_25_KIND
  588. OMP_LOCK_25_KIND
  589. OMP_NEST_LOCK_25_ALIGN
  590. OMP_NEST_LOCK_25_SIZE
  591. OMP_LOCK_25_ALIGN
  592. OMP_LOCK_25_SIZE
  593. OMP_NEST_LOCK_KIND
  594. OMP_LOCK_KIND
  595. OMP_NEST_LOCK_ALIGN
  596. OMP_NEST_LOCK_SIZE
  597. OMP_LOCK_ALIGN
  598. OMP_LOCK_SIZE
  599. INTPTR_T_KIND
  600. USE_FORTRAN_FALSE
  601. USE_FORTRAN_TRUE
  602. link_gomp
  603. tmake_file
  604. XLDFLAGS
  605. XCFLAGS
  606. config_path
  607. CPU_COUNT
  608. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
  609. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
  610. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
  611. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
  612. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
  613. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
  614. OPT_LDFLAGS
  615. SECTION_LDFLAGS
  616. PLUGIN_GCN_FALSE
  617. PLUGIN_GCN_TRUE
  618. PLUGIN_NVPTX_FALSE
  619. PLUGIN_NVPTX_TRUE
  620. offload_additional_lib_paths
  621. offload_additional_options
  622. offload_targets
  623. offload_plugins
  624. PLUGIN_GCN_LIBS
  625. PLUGIN_GCN_LDFLAGS
  626. PLUGIN_GCN_CPPFLAGS
  627. PLUGIN_GCN
  628. HSA_RUNTIME_LIB
  629. HSA_RUNTIME_INCLUDE
  630. PLUGIN_NVPTX_LIBS
  631. PLUGIN_NVPTX_LDFLAGS
  632. PLUGIN_NVPTX_CPPFLAGS
  633. PLUGIN_NVPTX
  634. CUDA_DRIVER_LIB
  635. CUDA_DRIVER_INCLUDE
  636. libtool_VERSION
  637. ac_ct_FC
  638. FCFLAGS
  639. FC
  640. MAINT
  641. MAINTAINER_MODE_FALSE
  642. MAINTAINER_MODE_TRUE
  643. enable_static
  644. enable_shared
  645. lt_host_flags
  646. CPP
  647. OTOOL64
  648. OTOOL
  649. LIPO
  650. NMEDIT
  651. DSYMUTIL
  652. OBJDUMP
  653. LN_S
  654. NM
  655. ac_ct_DUMPBIN
  656. DUMPBIN
  657. LD
  658. FGREP
  659. EGREP
  660. GREP
  661. SED
  662. LIBTOOL
  663. BUILD_INFO_FALSE
  664. BUILD_INFO_TRUE
  665. PERL
  666. RANLIB
  667. AR
  668. am__fastdepCC_FALSE
  669. am__fastdepCC_TRUE
  670. CCDEPMODE
  671. am__nodep
  672. AMDEPBACKSLASH
  673. AMDEP_FALSE
  674. AMDEP_TRUE
  675. am__quote
  676. am__include
  677. DEPDIR
  678. OBJEXT
  679. EXEEXT
  680. ac_ct_CC
  681. CPPFLAGS
  682. LDFLAGS
  683. CFLAGS
  684. CC
  685. toolexeclibdir
  686. toolexecdir
  687. multi_basedir
  688. AM_BACKSLASH
  689. AM_DEFAULT_VERBOSITY
  690. AM_DEFAULT_V
  691. AM_V
  692. am__untar
  693. am__tar
  694. AMTAR
  695. am__leading_dot
  696. SET_MAKE
  697. AWK
  698. mkdir_p
  699. MKDIR_P
  700. INSTALL_STRIP_PROGRAM
  701. STRIP
  702. install_sh
  703. MAKEINFO
  704. AUTOHEADER
  705. AUTOMAKE
  706. AUTOCONF
  707. ACLOCAL
  708. VERSION
  709. PACKAGE
  710. CYGPATH_W
  711. am__isrc
  712. INSTALL_DATA
  713. INSTALL_SCRIPT
  714. INSTALL_PROGRAM
  715. target_os
  716. target_vendor
  717. target_cpu
  718. target
  719. host_os
  720. host_vendor
  721. host_cpu
  722. host
  723. build_os
  724. build_vendor
  725. build_cpu
  726. build
  727. GENINSRC_FALSE
  728. GENINSRC_TRUE
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. localstatedir
  749. sharedstatedir
  750. sysconfdir
  751. datadir
  752. datarootdir
  753. libexecdir
  754. sbindir
  755. bindir
  756. program_transform_name
  757. prefix
  758. exec_prefix
  759. PACKAGE_URL
  760. PACKAGE_BUGREPORT
  761. PACKAGE_STRING
  762. PACKAGE_VERSION
  763. PACKAGE_TARNAME
  764. PACKAGE_NAME
  765. PATH_SEPARATOR
  766. SHELL'
  767. ac_subst_files=''
  768. ac_user_opts='
  769. enable_option_checking
  770. enable_version_specific_runtime_libs
  771. enable_generated_files_in_srcdir
  772. enable_silent_rules
  773. enable_multilib
  774. with_toolexeclibdir
  775. enable_dependency_tracking
  776. enable_werror
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_gnu_ld
  782. enable_libtool_lock
  783. enable_maintainer_mode
  784. with_cuda_driver
  785. with_cuda_driver_include
  786. with_cuda_driver_lib
  787. with_hsa_runtime
  788. with_hsa_runtime_include
  789. with_hsa_runtime_lib
  790. enable_linux_futex
  791. enable_tls
  792. enable_symvers
  793. enable_cet
  794. with_gcc_major_version_only
  795. '
  796. ac_precious_vars='build_alias
  797. host_alias
  798. target_alias
  799. CPP
  800. CPPFLAGS
  801. FC
  802. FCFLAGS
  803. LDFLAGS
  804. LIBS'
  805. # Initialize some variables set by options.
  806. ac_init_help=
  807. ac_init_version=false
  808. ac_unrecognized_opts=
  809. ac_unrecognized_sep=
  810. # The variables have the same names as the options, with
  811. # dashes changed to underlines.
  812. cache_file=/dev/null
  813. exec_prefix=NONE
  814. no_create=
  815. no_recursion=
  816. prefix=NONE
  817. program_prefix=NONE
  818. program_suffix=NONE
  819. program_transform_name=s,x,x,
  820. silent=
  821. site=
  822. srcdir=
  823. verbose=
  824. x_includes=NONE
  825. x_libraries=NONE
  826. # Installation directory options.
  827. # These are left unexpanded so users can "make install exec_prefix=/foo"
  828. # and all the variables that are supposed to be based on exec_prefix
  829. # by default will actually change.
  830. # Use braces instead of parens because sh, perl, etc. also accept them.
  831. # (The list follows the same order as the GNU Coding Standards.)
  832. bindir='${exec_prefix}/bin'
  833. sbindir='${exec_prefix}/sbin'
  834. libexecdir='${exec_prefix}/libexec'
  835. datarootdir='${prefix}/share'
  836. datadir='${datarootdir}'
  837. sysconfdir='${prefix}/etc'
  838. sharedstatedir='${prefix}/com'
  839. localstatedir='${prefix}/var'
  840. includedir='${prefix}/include'
  841. oldincludedir='/usr/include'
  842. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  843. infodir='${datarootdir}/info'
  844. htmldir='${docdir}'
  845. dvidir='${docdir}'
  846. pdfdir='${docdir}'
  847. psdir='${docdir}'
  848. libdir='${exec_prefix}/lib'
  849. localedir='${datarootdir}/locale'
  850. mandir='${datarootdir}/man'
  851. ac_prev=
  852. ac_dashdash=
  853. for ac_option
  854. do
  855. # If the previous option needs an argument, assign it.
  856. if test -n "$ac_prev"; then
  857. eval $ac_prev=\$ac_option
  858. ac_prev=
  859. continue
  860. fi
  861. case $ac_option in
  862. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  863. *=) ac_optarg= ;;
  864. *) ac_optarg=yes ;;
  865. esac
  866. # Accept the important Cygnus configure options, so we can diagnose typos.
  867. case $ac_dashdash$ac_option in
  868. --)
  869. ac_dashdash=yes ;;
  870. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  871. ac_prev=bindir ;;
  872. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  873. bindir=$ac_optarg ;;
  874. -build | --build | --buil | --bui | --bu)
  875. ac_prev=build_alias ;;
  876. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  877. build_alias=$ac_optarg ;;
  878. -cache-file | --cache-file | --cache-fil | --cache-fi \
  879. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  880. ac_prev=cache_file ;;
  881. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  882. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  883. cache_file=$ac_optarg ;;
  884. --config-cache | -C)
  885. cache_file=config.cache ;;
  886. -datadir | --datadir | --datadi | --datad)
  887. ac_prev=datadir ;;
  888. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  889. datadir=$ac_optarg ;;
  890. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  891. | --dataroo | --dataro | --datar)
  892. ac_prev=datarootdir ;;
  893. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  894. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  895. datarootdir=$ac_optarg ;;
  896. -disable-* | --disable-*)
  897. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  900. as_fn_error $? "invalid feature name: $ac_useropt"
  901. ac_useropt_orig=$ac_useropt
  902. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  903. case $ac_user_opts in
  904. *"
  905. "enable_$ac_useropt"
  906. "*) ;;
  907. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  908. ac_unrecognized_sep=', ';;
  909. esac
  910. eval enable_$ac_useropt=no ;;
  911. -docdir | --docdir | --docdi | --doc | --do)
  912. ac_prev=docdir ;;
  913. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  914. docdir=$ac_optarg ;;
  915. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  916. ac_prev=dvidir ;;
  917. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  918. dvidir=$ac_optarg ;;
  919. -enable-* | --enable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: $ac_useropt"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=\$ac_optarg ;;
  934. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  935. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  936. | --exec | --exe | --ex)
  937. ac_prev=exec_prefix ;;
  938. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  939. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  940. | --exec=* | --exe=* | --ex=*)
  941. exec_prefix=$ac_optarg ;;
  942. -gas | --gas | --ga | --g)
  943. # Obsolete; use --with-gas.
  944. with_gas=yes ;;
  945. -help | --help | --hel | --he | -h)
  946. ac_init_help=long ;;
  947. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  948. ac_init_help=recursive ;;
  949. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  950. ac_init_help=short ;;
  951. -host | --host | --hos | --ho)
  952. ac_prev=host_alias ;;
  953. -host=* | --host=* | --hos=* | --ho=*)
  954. host_alias=$ac_optarg ;;
  955. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  956. ac_prev=htmldir ;;
  957. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  958. | --ht=*)
  959. htmldir=$ac_optarg ;;
  960. -includedir | --includedir | --includedi | --included | --include \
  961. | --includ | --inclu | --incl | --inc)
  962. ac_prev=includedir ;;
  963. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  964. | --includ=* | --inclu=* | --incl=* | --inc=*)
  965. includedir=$ac_optarg ;;
  966. -infodir | --infodir | --infodi | --infod | --info | --inf)
  967. ac_prev=infodir ;;
  968. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  969. infodir=$ac_optarg ;;
  970. -libdir | --libdir | --libdi | --libd)
  971. ac_prev=libdir ;;
  972. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  973. libdir=$ac_optarg ;;
  974. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  975. | --libexe | --libex | --libe)
  976. ac_prev=libexecdir ;;
  977. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  978. | --libexe=* | --libex=* | --libe=*)
  979. libexecdir=$ac_optarg ;;
  980. -localedir | --localedir | --localedi | --localed | --locale)
  981. ac_prev=localedir ;;
  982. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  983. localedir=$ac_optarg ;;
  984. -localstatedir | --localstatedir | --localstatedi | --localstated \
  985. | --localstate | --localstat | --localsta | --localst | --locals)
  986. ac_prev=localstatedir ;;
  987. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  988. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  989. localstatedir=$ac_optarg ;;
  990. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  991. ac_prev=mandir ;;
  992. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  993. mandir=$ac_optarg ;;
  994. -nfp | --nfp | --nf)
  995. # Obsolete; use --without-fp.
  996. with_fp=no ;;
  997. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  998. | --no-cr | --no-c | -n)
  999. no_create=yes ;;
  1000. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1001. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1002. no_recursion=yes ;;
  1003. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1004. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1005. | --oldin | --oldi | --old | --ol | --o)
  1006. ac_prev=oldincludedir ;;
  1007. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1008. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1009. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1010. oldincludedir=$ac_optarg ;;
  1011. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1012. ac_prev=prefix ;;
  1013. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1014. prefix=$ac_optarg ;;
  1015. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1016. | --program-pre | --program-pr | --program-p)
  1017. ac_prev=program_prefix ;;
  1018. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1019. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1020. program_prefix=$ac_optarg ;;
  1021. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1022. | --program-suf | --program-su | --program-s)
  1023. ac_prev=program_suffix ;;
  1024. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1025. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1026. program_suffix=$ac_optarg ;;
  1027. -program-transform-name | --program-transform-name \
  1028. | --program-transform-nam | --program-transform-na \
  1029. | --program-transform-n | --program-transform- \
  1030. | --program-transform | --program-transfor \
  1031. | --program-transfo | --program-transf \
  1032. | --program-trans | --program-tran \
  1033. | --progr-tra | --program-tr | --program-t)
  1034. ac_prev=program_transform_name ;;
  1035. -program-transform-name=* | --program-transform-name=* \
  1036. | --program-transform-nam=* | --program-transform-na=* \
  1037. | --program-transform-n=* | --program-transform-=* \
  1038. | --program-transform=* | --program-transfor=* \
  1039. | --program-transfo=* | --program-transf=* \
  1040. | --program-trans=* | --program-tran=* \
  1041. | --progr-tra=* | --program-tr=* | --program-t=*)
  1042. program_transform_name=$ac_optarg ;;
  1043. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1044. ac_prev=pdfdir ;;
  1045. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1046. pdfdir=$ac_optarg ;;
  1047. -psdir | --psdir | --psdi | --psd | --ps)
  1048. ac_prev=psdir ;;
  1049. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1050. psdir=$ac_optarg ;;
  1051. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1052. | -silent | --silent | --silen | --sile | --sil)
  1053. silent=yes ;;
  1054. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1055. ac_prev=sbindir ;;
  1056. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1057. | --sbi=* | --sb=*)
  1058. sbindir=$ac_optarg ;;
  1059. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1060. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1061. | --sharedst | --shareds | --shared | --share | --shar \
  1062. | --sha | --sh)
  1063. ac_prev=sharedstatedir ;;
  1064. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1065. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1066. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1067. | --sha=* | --sh=*)
  1068. sharedstatedir=$ac_optarg ;;
  1069. -site | --site | --sit)
  1070. ac_prev=site ;;
  1071. -site=* | --site=* | --sit=*)
  1072. site=$ac_optarg ;;
  1073. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1074. ac_prev=srcdir ;;
  1075. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1076. srcdir=$ac_optarg ;;
  1077. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1078. | --syscon | --sysco | --sysc | --sys | --sy)
  1079. ac_prev=sysconfdir ;;
  1080. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1081. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1082. sysconfdir=$ac_optarg ;;
  1083. -target | --target | --targe | --targ | --tar | --ta | --t)
  1084. ac_prev=target_alias ;;
  1085. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1086. target_alias=$ac_optarg ;;
  1087. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1088. verbose=yes ;;
  1089. -version | --version | --versio | --versi | --vers | -V)
  1090. ac_init_version=: ;;
  1091. -with-* | --with-*)
  1092. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1093. # Reject names that are not valid shell variable names.
  1094. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1095. as_fn_error $? "invalid package name: $ac_useropt"
  1096. ac_useropt_orig=$ac_useropt
  1097. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1098. case $ac_user_opts in
  1099. *"
  1100. "with_$ac_useropt"
  1101. "*) ;;
  1102. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1103. ac_unrecognized_sep=', ';;
  1104. esac
  1105. eval with_$ac_useropt=\$ac_optarg ;;
  1106. -without-* | --without-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=no ;;
  1121. --x)
  1122. # Obsolete; use --with-x.
  1123. with_x=yes ;;
  1124. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1125. | --x-incl | --x-inc | --x-in | --x-i)
  1126. ac_prev=x_includes ;;
  1127. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1128. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1129. x_includes=$ac_optarg ;;
  1130. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1131. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1132. ac_prev=x_libraries ;;
  1133. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1134. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1135. x_libraries=$ac_optarg ;;
  1136. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1137. Try \`$0 --help' for more information"
  1138. ;;
  1139. *=*)
  1140. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1141. # Reject names that are not valid shell variable names.
  1142. case $ac_envvar in #(
  1143. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1144. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1145. esac
  1146. eval $ac_envvar=\$ac_optarg
  1147. export $ac_envvar ;;
  1148. *)
  1149. # FIXME: should be removed in autoconf 3.0.
  1150. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1151. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1152. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1153. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1154. ;;
  1155. esac
  1156. done
  1157. if test -n "$ac_prev"; then
  1158. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1159. as_fn_error $? "missing argument to $ac_option"
  1160. fi
  1161. if test -n "$ac_unrecognized_opts"; then
  1162. case $enable_option_checking in
  1163. no) ;;
  1164. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1165. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1166. esac
  1167. fi
  1168. # Check all directory arguments for consistency.
  1169. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1170. datadir sysconfdir sharedstatedir localstatedir includedir \
  1171. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1172. libdir localedir mandir
  1173. do
  1174. eval ac_val=\$$ac_var
  1175. # Remove trailing slashes.
  1176. case $ac_val in
  1177. */ )
  1178. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1179. eval $ac_var=\$ac_val;;
  1180. esac
  1181. # Be sure to have absolute directory names.
  1182. case $ac_val in
  1183. [\\/$]* | ?:[\\/]* ) continue;;
  1184. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1185. esac
  1186. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1187. done
  1188. # There might be people who depend on the old broken behavior: `$host'
  1189. # used to hold the argument of --host etc.
  1190. # FIXME: To remove some day.
  1191. build=$build_alias
  1192. host=$host_alias
  1193. target=$target_alias
  1194. # FIXME: To remove some day.
  1195. if test "x$host_alias" != x; then
  1196. if test "x$build_alias" = x; then
  1197. cross_compiling=maybe
  1198. elif test "x$build_alias" != "x$host_alias"; then
  1199. cross_compiling=yes
  1200. fi
  1201. fi
  1202. ac_tool_prefix=
  1203. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1204. test "$silent" = yes && exec 6>/dev/null
  1205. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1206. ac_ls_di=`ls -di .` &&
  1207. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1208. as_fn_error $? "working directory cannot be determined"
  1209. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1210. as_fn_error $? "pwd does not report name of working directory"
  1211. # Find the source files, if location was not specified.
  1212. if test -z "$srcdir"; then
  1213. ac_srcdir_defaulted=yes
  1214. # Try the directory containing this script, then the parent directory.
  1215. ac_confdir=`$as_dirname -- "$as_myself" ||
  1216. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1217. X"$as_myself" : 'X\(//\)[^/]' \| \
  1218. X"$as_myself" : 'X\(//\)$' \| \
  1219. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1220. $as_echo X"$as_myself" |
  1221. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1222. s//\1/
  1223. q
  1224. }
  1225. /^X\(\/\/\)[^/].*/{
  1226. s//\1/
  1227. q
  1228. }
  1229. /^X\(\/\/\)$/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\).*/{
  1234. s//\1/
  1235. q
  1236. }
  1237. s/.*/./; q'`
  1238. srcdir=$ac_confdir
  1239. if test ! -r "$srcdir/$ac_unique_file"; then
  1240. srcdir=..
  1241. fi
  1242. else
  1243. ac_srcdir_defaulted=no
  1244. fi
  1245. if test ! -r "$srcdir/$ac_unique_file"; then
  1246. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1247. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1248. fi
  1249. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1250. ac_abs_confdir=`(
  1251. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1252. pwd)`
  1253. # When building in place, set srcdir=.
  1254. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1255. srcdir=.
  1256. fi
  1257. # Remove unnecessary trailing slashes from srcdir.
  1258. # Double slashes in file names in object file debugging info
  1259. # mess up M-x gdb in Emacs.
  1260. case $srcdir in
  1261. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1262. esac
  1263. for ac_var in $ac_precious_vars; do
  1264. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1265. eval ac_env_${ac_var}_value=\$${ac_var}
  1266. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1267. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1268. done
  1269. #
  1270. # Report the --help message.
  1271. #
  1272. if test "$ac_init_help" = "long"; then
  1273. # Omit some internal or obsolete options to make the list less imposing.
  1274. # This message is too long to be a string in the A/UX 3.1 sh.
  1275. cat <<_ACEOF
  1276. \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
  1277. Usage: $0 [OPTION]... [VAR=VALUE]...
  1278. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1279. VAR=VALUE. See below for descriptions of some of the useful variables.
  1280. Defaults for the options are specified in brackets.
  1281. Configuration:
  1282. -h, --help display this help and exit
  1283. --help=short display options specific to this package
  1284. --help=recursive display the short help of all the included packages
  1285. -V, --version display version information and exit
  1286. -q, --quiet, --silent do not print \`checking ...' messages
  1287. --cache-file=FILE cache test results in FILE [disabled]
  1288. -C, --config-cache alias for \`--cache-file=config.cache'
  1289. -n, --no-create do not create output files
  1290. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1291. Installation directories:
  1292. --prefix=PREFIX install architecture-independent files in PREFIX
  1293. [$ac_default_prefix]
  1294. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1295. [PREFIX]
  1296. By default, \`make install' will install all the files in
  1297. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1298. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1299. for instance \`--prefix=\$HOME'.
  1300. For better control, use the options below.
  1301. Fine tuning of the installation directories:
  1302. --bindir=DIR user executables [EPREFIX/bin]
  1303. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1304. --libexecdir=DIR program executables [EPREFIX/libexec]
  1305. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1306. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1307. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1308. --libdir=DIR object code libraries [EPREFIX/lib]
  1309. --includedir=DIR C header files [PREFIX/include]
  1310. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1311. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1312. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1313. --infodir=DIR info documentation [DATAROOTDIR/info]
  1314. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1315. --mandir=DIR man documentation [DATAROOTDIR/man]
  1316. --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
  1317. --htmldir=DIR html documentation [DOCDIR]
  1318. --dvidir=DIR dvi documentation [DOCDIR]
  1319. --pdfdir=DIR pdf documentation [DOCDIR]
  1320. --psdir=DIR ps documentation [DOCDIR]
  1321. _ACEOF
  1322. cat <<\_ACEOF
  1323. Program names:
  1324. --program-prefix=PREFIX prepend PREFIX to installed program names
  1325. --program-suffix=SUFFIX append SUFFIX to installed program names
  1326. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1327. System types:
  1328. --build=BUILD configure for building on BUILD [guessed]
  1329. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1330. --target=TARGET configure for building compilers for TARGET [HOST]
  1331. _ACEOF
  1332. fi
  1333. if test -n "$ac_init_help"; then
  1334. case $ac_init_help in
  1335. short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
  1336. esac
  1337. cat <<\_ACEOF
  1338. Optional Features:
  1339. --disable-option-checking ignore unrecognized --enable/--with options
  1340. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1341. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1342. --enable-version-specific-runtime-libs
  1343. Specify that runtime libraries should be installed
  1344. in a compiler-specific directory [default=no]
  1345. --enable-generated-files-in-srcdir
  1346. put copies of generated files in source dir intended
  1347. for creating source tarballs for users without
  1348. texinfo bison or flex. [default=no]
  1349. --enable-silent-rules less verbose build output (undo: "make V=1")
  1350. --disable-silent-rules verbose build output (undo: "make V=0")
  1351. --enable-multilib build many library versions (default)
  1352. --enable-dependency-tracking
  1353. do not reject slow dependency extractors
  1354. --disable-dependency-tracking
  1355. speeds up one-time build
  1356. --disable-werror disable building with -Werror
  1357. --enable-shared[=PKGS] build shared libraries [default=yes]
  1358. --enable-static[=PKGS] build static libraries [default=yes]
  1359. --enable-fast-install[=PKGS]
  1360. optimize for fast installation [default=yes]
  1361. --disable-libtool-lock avoid locking (might break parallel builds)
  1362. --enable-maintainer-mode
  1363. enable make rules and dependencies not useful (and
  1364. sometimes confusing) to the casual installer
  1365. --enable-linux-futex use the Linux futex system call [default=default]
  1366. --enable-tls Use thread-local storage [default=yes]
  1367. --enable-symvers=STYLE enables symbol versioning of the shared library
  1368. [default=yes]
  1369. --enable-cet enable Intel CET in target libraries [default=auto]
  1370. Optional Packages:
  1371. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1372. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1373. --with-toolexeclibdir=DIR
  1374. install libraries built with a cross compiler within
  1375. DIR
  1376. --with-pic try to use only PIC/non-PIC objects [default=use
  1377. both]
  1378. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1379. --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
  1380. package. Equivalent to
  1381. --with-cuda-driver-include=PATH/include plus
  1382. --with-cuda-driver-lib=PATH/lib
  1383. --with-cuda-driver-include=PATH
  1384. specify directory for installed CUDA driver include
  1385. files
  1386. --with-cuda-driver-lib=PATH
  1387. specify directory for the installed CUDA driver
  1388. library
  1389. --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
  1390. package. Equivalent to
  1391. --with-hsa-runtime-include=PATH/include plus
  1392. --with-hsa-runtime-lib=PATH/lib
  1393. --with-hsa-runtime-include=PATH
  1394. specify directory for installed HSA run-time include
  1395. files
  1396. --with-hsa-runtime-lib=PATH
  1397. specify directory for the installed HSA run-time
  1398. library
  1399. --with-gcc-major-version-only
  1400. use only GCC major number in filesystem paths
  1401. Some influential environment variables:
  1402. CC C compiler command
  1403. CFLAGS C compiler flags
  1404. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1405. nonstandard directory <lib dir>
  1406. LIBS libraries to pass to the linker, e.g. -l<library>
  1407. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1408. you have headers in a nonstandard directory <include dir>
  1409. CPP C preprocessor
  1410. FC Fortran compiler command
  1411. FCFLAGS Fortran compiler flags
  1412. Use these variables to override the choices made by `configure' or to help
  1413. it to find libraries and programs with nonstandard names/locations.
  1414. Report bugs to the package provider.
  1415. GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
  1416. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1417. _ACEOF
  1418. ac_status=$?
  1419. fi
  1420. if test "$ac_init_help" = "recursive"; then
  1421. # If there are subdirs, report their specific --help.
  1422. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1423. test -d "$ac_dir" ||
  1424. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1425. continue
  1426. ac_builddir=.
  1427. case "$ac_dir" in
  1428. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1429. *)
  1430. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1431. # A ".." for each directory in $ac_dir_suffix.
  1432. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1433. case $ac_top_builddir_sub in
  1434. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1435. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1436. esac ;;
  1437. esac
  1438. ac_abs_top_builddir=$ac_pwd
  1439. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1440. # for backward compatibility:
  1441. ac_top_builddir=$ac_top_build_prefix
  1442. case $srcdir in
  1443. .) # We are building in place.
  1444. ac_srcdir=.
  1445. ac_top_srcdir=$ac_top_builddir_sub
  1446. ac_abs_top_srcdir=$ac_pwd ;;
  1447. [\\/]* | ?:[\\/]* ) # Absolute name.
  1448. ac_srcdir=$srcdir$ac_dir_suffix;
  1449. ac_top_srcdir=$srcdir
  1450. ac_abs_top_srcdir=$srcdir ;;
  1451. *) # Relative name.
  1452. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1453. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1454. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1455. esac
  1456. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1457. cd "$ac_dir" || { ac_status=$?; continue; }
  1458. # Check for guested configure.
  1459. if test -f "$ac_srcdir/configure.gnu"; then
  1460. echo &&
  1461. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1462. elif test -f "$ac_srcdir/configure"; then
  1463. echo &&
  1464. $SHELL "$ac_srcdir/configure" --help=recursive
  1465. else
  1466. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1467. fi || ac_status=$?
  1468. cd "$ac_pwd" || { ac_status=$?; break; }
  1469. done
  1470. fi
  1471. test -n "$ac_init_help" && exit $ac_status
  1472. if $ac_init_version; then
  1473. cat <<\_ACEOF
  1474. GNU Offloading and Multi Processing Runtime Library configure 1.0
  1475. generated by GNU Autoconf 2.69
  1476. Copyright (C) 2012 Free Software Foundation, Inc.
  1477. This configure script is free software; the Free Software Foundation
  1478. gives unlimited permission to copy, distribute and modify it.
  1479. _ACEOF
  1480. exit
  1481. fi
  1482. ## ------------------------ ##
  1483. ## Autoconf initialization. ##
  1484. ## ------------------------ ##
  1485. # ac_fn_c_try_compile LINENO
  1486. # --------------------------
  1487. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1488. ac_fn_c_try_compile ()
  1489. {
  1490. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1491. rm -f conftest.$ac_objext
  1492. if { { ac_try="$ac_compile"
  1493. case "(($ac_try" in
  1494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1495. *) ac_try_echo=$ac_try;;
  1496. esac
  1497. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1498. $as_echo "$ac_try_echo"; } >&5
  1499. (eval "$ac_compile") 2>conftest.err
  1500. ac_status=$?
  1501. if test -s conftest.err; then
  1502. grep -v '^ *+' conftest.err >conftest.er1
  1503. cat conftest.er1 >&5
  1504. mv -f conftest.er1 conftest.err
  1505. fi
  1506. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1507. test $ac_status = 0; } && {
  1508. test -z "$ac_c_werror_flag" ||
  1509. test ! -s conftest.err
  1510. } && test -s conftest.$ac_objext; then :
  1511. ac_retval=0
  1512. else
  1513. $as_echo "$as_me: failed program was:" >&5
  1514. sed 's/^/| /' conftest.$ac_ext >&5
  1515. ac_retval=1
  1516. fi
  1517. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1518. as_fn_set_status $ac_retval
  1519. } # ac_fn_c_try_compile
  1520. # ac_fn_c_try_link LINENO
  1521. # -----------------------
  1522. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1523. ac_fn_c_try_link ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. rm -f conftest.$ac_objext conftest$ac_exeext
  1527. if { { ac_try="$ac_link"
  1528. case "(($ac_try" in
  1529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1530. *) ac_try_echo=$ac_try;;
  1531. esac
  1532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1533. $as_echo "$ac_try_echo"; } >&5
  1534. (eval "$ac_link") 2>conftest.err
  1535. ac_status=$?
  1536. if test -s conftest.err; then
  1537. grep -v '^ *+' conftest.err >conftest.er1
  1538. cat conftest.er1 >&5
  1539. mv -f conftest.er1 conftest.err
  1540. fi
  1541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1542. test $ac_status = 0; } && {
  1543. test -z "$ac_c_werror_flag" ||
  1544. test ! -s conftest.err
  1545. } && test -s conftest$ac_exeext && {
  1546. test "$cross_compiling" = yes ||
  1547. test -x conftest$ac_exeext
  1548. }; then :
  1549. ac_retval=0
  1550. else
  1551. $as_echo "$as_me: failed program was:" >&5
  1552. sed 's/^/| /' conftest.$ac_ext >&5
  1553. ac_retval=1
  1554. fi
  1555. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1556. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1557. # interfere with the next link command; also delete a directory that is
  1558. # left behind by Apple's compiler. We do this before executing the actions.
  1559. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. as_fn_set_status $ac_retval
  1562. } # ac_fn_c_try_link
  1563. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1564. # -------------------------------------------------------
  1565. # Tests whether HEADER exists and can be compiled using the include files in
  1566. # INCLUDES, setting the cache variable VAR accordingly.
  1567. ac_fn_c_check_header_compile ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if eval \${$3+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end confdefs.h. */
  1577. $4
  1578. #include <$2>
  1579. _ACEOF
  1580. if ac_fn_c_try_compile "$LINENO"; then :
  1581. eval "$3=yes"
  1582. else
  1583. eval "$3=no"
  1584. fi
  1585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1586. fi
  1587. eval ac_res=\$$3
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1589. $as_echo "$ac_res" >&6; }
  1590. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1591. } # ac_fn_c_check_header_compile
  1592. # ac_fn_c_try_cpp LINENO
  1593. # ----------------------
  1594. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1595. ac_fn_c_try_cpp ()
  1596. {
  1597. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1598. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1599. case "(($ac_try" in
  1600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1601. *) ac_try_echo=$ac_try;;
  1602. esac
  1603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1604. $as_echo "$ac_try_echo"; } >&5
  1605. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1606. ac_status=$?
  1607. if test -s conftest.err; then
  1608. grep -v '^ *+' conftest.err >conftest.er1
  1609. cat conftest.er1 >&5
  1610. mv -f conftest.er1 conftest.err
  1611. fi
  1612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1613. test $ac_status = 0; } > conftest.i && {
  1614. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1615. test ! -s conftest.err
  1616. }; then :
  1617. ac_retval=0
  1618. else
  1619. $as_echo "$as_me: failed program was:" >&5
  1620. sed 's/^/| /' conftest.$ac_ext >&5
  1621. ac_retval=1
  1622. fi
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. as_fn_set_status $ac_retval
  1625. } # ac_fn_c_try_cpp
  1626. # ac_fn_c_try_run LINENO
  1627. # ----------------------
  1628. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1629. # that executables *can* be run.
  1630. ac_fn_c_try_run ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. if { { ac_try="$ac_link"
  1634. case "(($ac_try" in
  1635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1636. *) ac_try_echo=$ac_try;;
  1637. esac
  1638. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1639. $as_echo "$ac_try_echo"; } >&5
  1640. (eval "$ac_link") 2>&5
  1641. ac_status=$?
  1642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1643. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1644. { { case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_try") 2>&5
  1651. ac_status=$?
  1652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1653. test $ac_status = 0; }; }; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: program exited with status $ac_status" >&5
  1657. $as_echo "$as_me: failed program was:" >&5
  1658. sed 's/^/| /' conftest.$ac_ext >&5
  1659. ac_retval=$ac_status
  1660. fi
  1661. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. as_fn_set_status $ac_retval
  1664. } # ac_fn_c_try_run
  1665. # ac_fn_c_check_func LINENO FUNC VAR
  1666. # ----------------------------------
  1667. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1668. ac_fn_c_check_func ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1679. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1680. #define $2 innocuous_$2
  1681. /* System header to define __stub macros and hopefully few prototypes,
  1682. which can conflict with char $2 (); below.
  1683. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1684. <limits.h> exists even on freestanding compilers. */
  1685. #ifdef __STDC__
  1686. # include <limits.h>
  1687. #else
  1688. # include <assert.h>
  1689. #endif
  1690. #undef $2
  1691. /* Override any GCC internal prototype to avoid an error.
  1692. Use char because int might match the return type of a GCC
  1693. builtin and then its argument prototype would still apply. */
  1694. #ifdef __cplusplus
  1695. extern "C"
  1696. #endif
  1697. char $2 ();
  1698. /* The GNU C library defines this for functions which it implements
  1699. to always fail with ENOSYS. Some functions are actually named
  1700. something starting with __ and the normal name is an alias. */
  1701. #if defined __stub_$2 || defined __stub___$2
  1702. choke me
  1703. #endif
  1704. int
  1705. main ()
  1706. {
  1707. return $2 ();
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_link "$LINENO"; then :
  1713. eval "$3=yes"
  1714. else
  1715. eval "$3=no"
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext \
  1718. conftest$ac_exeext conftest.$ac_ext
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1724. } # ac_fn_c_check_func
  1725. # ac_fn_fc_try_compile LINENO
  1726. # ---------------------------
  1727. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1728. ac_fn_fc_try_compile ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. rm -f conftest.$ac_objext
  1732. if { { ac_try="$ac_compile"
  1733. case "(($ac_try" in
  1734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1735. *) ac_try_echo=$ac_try;;
  1736. esac
  1737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1738. $as_echo "$ac_try_echo"; } >&5
  1739. (eval "$ac_compile") 2>conftest.err
  1740. ac_status=$?
  1741. if test -s conftest.err; then
  1742. grep -v '^ *+' conftest.err >conftest.er1
  1743. cat conftest.er1 >&5
  1744. mv -f conftest.er1 conftest.err
  1745. fi
  1746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1747. test $ac_status = 0; } && {
  1748. test -z "$ac_fc_werror_flag" ||
  1749. test ! -s conftest.err
  1750. } && test -s conftest.$ac_objext; then :
  1751. ac_retval=0
  1752. else
  1753. $as_echo "$as_me: failed program was:" >&5
  1754. sed 's/^/| /' conftest.$ac_ext >&5
  1755. ac_retval=1
  1756. fi
  1757. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1758. as_fn_set_status $ac_retval
  1759. } # ac_fn_fc_try_compile
  1760. # ac_fn_fc_try_link LINENO
  1761. # ------------------------
  1762. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1763. ac_fn_fc_try_link ()
  1764. {
  1765. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766. rm -f conftest.$ac_objext conftest$ac_exeext
  1767. if { { ac_try="$ac_link"
  1768. case "(($ac_try" in
  1769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1770. *) ac_try_echo=$ac_try;;
  1771. esac
  1772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1773. $as_echo "$ac_try_echo"; } >&5
  1774. (eval "$ac_link") 2>conftest.err
  1775. ac_status=$?
  1776. if test -s conftest.err; then
  1777. grep -v '^ *+' conftest.err >conftest.er1
  1778. cat conftest.er1 >&5
  1779. mv -f conftest.er1 conftest.err
  1780. fi
  1781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1782. test $ac_status = 0; } && {
  1783. test -z "$ac_fc_werror_flag" ||
  1784. test ! -s conftest.err
  1785. } && test -s conftest$ac_exeext && {
  1786. test "$cross_compiling" = yes ||
  1787. test -x conftest$ac_exeext
  1788. }; then :
  1789. ac_retval=0
  1790. else
  1791. $as_echo "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=1
  1794. fi
  1795. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1796. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1797. # interfere with the next link command; also delete a directory that is
  1798. # left behind by Apple's compiler. We do this before executing the actions.
  1799. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1800. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1801. as_fn_set_status $ac_retval
  1802. } # ac_fn_fc_try_link
  1803. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1804. # -------------------------------------------------------
  1805. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1806. # the include files in INCLUDES and setting the cache variable VAR
  1807. # accordingly.
  1808. ac_fn_c_check_header_mongrel ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. if eval \${$3+:} false; then :
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1813. $as_echo_n "checking for $2... " >&6; }
  1814. if eval \${$3+:} false; then :
  1815. $as_echo_n "(cached) " >&6
  1816. fi
  1817. eval ac_res=\$$3
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1819. $as_echo "$ac_res" >&6; }
  1820. else
  1821. # Is the header compilable?
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1823. $as_echo_n "checking $2 usability... " >&6; }
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. #include <$2>
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. ac_header_compiler=yes
  1831. else
  1832. ac_header_compiler=no
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1836. $as_echo "$ac_header_compiler" >&6; }
  1837. # Is the header present?
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1839. $as_echo_n "checking $2 presence... " >&6; }
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. #include <$2>
  1843. _ACEOF
  1844. if ac_fn_c_try_cpp "$LINENO"; then :
  1845. ac_header_preproc=yes
  1846. else
  1847. ac_header_preproc=no
  1848. fi
  1849. rm -f conftest.err conftest.i conftest.$ac_ext
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1851. $as_echo "$ac_header_preproc" >&6; }
  1852. # So? What about this header?
  1853. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1854. yes:no: )
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1856. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1858. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1859. ;;
  1860. no:yes:* )
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1862. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1864. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1866. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1868. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1870. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1871. ;;
  1872. esac
  1873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1874. $as_echo_n "checking for $2... " >&6; }
  1875. if eval \${$3+:} false; then :
  1876. $as_echo_n "(cached) " >&6
  1877. else
  1878. eval "$3=\$ac_header_compiler"
  1879. fi
  1880. eval ac_res=\$$3
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. $as_echo "$ac_res" >&6; }
  1883. fi
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. } # ac_fn_c_check_header_mongrel
  1886. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1887. # --------------------------------------------
  1888. # Tries to find the compile-time value of EXPR in a program that includes
  1889. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1890. # computed
  1891. ac_fn_c_compute_int ()
  1892. {
  1893. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1894. if test "$cross_compiling" = yes; then
  1895. # Depending upon the size, compute the lo and hi bounds.
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. $4
  1899. int
  1900. main ()
  1901. {
  1902. static int test_array [1 - 2 * !(($2) >= 0)];
  1903. test_array [0] = 0;
  1904. return test_array [0];
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. ac_lo=0 ac_mid=0
  1911. while :; do
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. $4
  1915. int
  1916. main ()
  1917. {
  1918. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1919. test_array [0] = 0;
  1920. return test_array [0];
  1921. ;
  1922. return 0;
  1923. }
  1924. _ACEOF
  1925. if ac_fn_c_try_compile "$LINENO"; then :
  1926. ac_hi=$ac_mid; break
  1927. else
  1928. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1929. if test $ac_lo -le $ac_mid; then
  1930. ac_lo= ac_hi=
  1931. break
  1932. fi
  1933. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. done
  1937. else
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $4
  1941. int
  1942. main ()
  1943. {
  1944. static int test_array [1 - 2 * !(($2) < 0)];
  1945. test_array [0] = 0;
  1946. return test_array [0];
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_compile "$LINENO"; then :
  1952. ac_hi=-1 ac_mid=-1
  1953. while :; do
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $4
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1961. test_array [0] = 0;
  1962. return test_array [0];
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_c_try_compile "$LINENO"; then :
  1968. ac_lo=$ac_mid; break
  1969. else
  1970. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1971. if test $ac_mid -le $ac_hi; then
  1972. ac_lo= ac_hi=
  1973. break
  1974. fi
  1975. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. done
  1979. else
  1980. ac_lo= ac_hi=
  1981. fi
  1982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. # Binary search between lo and hi bounds.
  1986. while test "x$ac_lo" != "x$ac_hi"; do
  1987. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. $4
  1991. int
  1992. main ()
  1993. {
  1994. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1995. test_array [0] = 0;
  1996. return test_array [0];
  1997. ;
  1998. return 0;
  1999. }
  2000. _ACEOF
  2001. if ac_fn_c_try_compile "$LINENO"; then :
  2002. ac_hi=$ac_mid
  2003. else
  2004. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2005. fi
  2006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2007. done
  2008. case $ac_lo in #((
  2009. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2010. '') ac_retval=1 ;;
  2011. esac
  2012. else
  2013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2014. /* end confdefs.h. */
  2015. $4
  2016. static long int longval () { return $2; }
  2017. static unsigned long int ulongval () { return $2; }
  2018. #include <stdio.h>
  2019. #include <stdlib.h>
  2020. int
  2021. main ()
  2022. {
  2023. FILE *f = fopen ("conftest.val", "w");
  2024. if (! f)
  2025. return 1;
  2026. if (($2) < 0)
  2027. {
  2028. long int i = longval ();
  2029. if (i != ($2))
  2030. return 1;
  2031. fprintf (f, "%ld", i);
  2032. }
  2033. else
  2034. {
  2035. unsigned long int i = ulongval ();
  2036. if (i != ($2))
  2037. return 1;
  2038. fprintf (f, "%lu", i);
  2039. }
  2040. /* Do not output a trailing newline, as this causes \r\n confusion
  2041. on some platforms. */
  2042. return ferror (f) || fclose (f) != 0;
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_run "$LINENO"; then :
  2048. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2049. else
  2050. ac_retval=1
  2051. fi
  2052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2053. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2054. rm -f conftest.val
  2055. fi
  2056. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2057. as_fn_set_status $ac_retval
  2058. } # ac_fn_c_compute_int
  2059. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2060. # -------------------------------------------
  2061. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2062. # variable VAR accordingly.
  2063. ac_fn_c_check_type ()
  2064. {
  2065. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2067. $as_echo_n "checking for $2... " >&6; }
  2068. if eval \${$3+:} false; then :
  2069. $as_echo_n "(cached) " >&6
  2070. else
  2071. eval "$3=no"
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $4
  2075. int
  2076. main ()
  2077. {
  2078. if (sizeof ($2))
  2079. return 0;
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. if ac_fn_c_try_compile "$LINENO"; then :
  2085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2086. /* end confdefs.h. */
  2087. $4
  2088. int
  2089. main ()
  2090. {
  2091. if (sizeof (($2)))
  2092. return 0;
  2093. ;
  2094. return 0;
  2095. }
  2096. _ACEOF
  2097. if ac_fn_c_try_compile "$LINENO"; then :
  2098. else
  2099. eval "$3=yes"
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2104. fi
  2105. eval ac_res=\$$3
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2107. $as_echo "$ac_res" >&6; }
  2108. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2109. } # ac_fn_c_check_type
  2110. cat >config.log <<_ACEOF
  2111. This file contains any messages produced by compilers while
  2112. running configure, to aid debugging if configure makes a mistake.
  2113. It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
  2114. generated by GNU Autoconf 2.69. Invocation command line was
  2115. $ $0 $@
  2116. _ACEOF
  2117. exec 5>>config.log
  2118. {
  2119. cat <<_ASUNAME
  2120. ## --------- ##
  2121. ## Platform. ##
  2122. ## --------- ##
  2123. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2124. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2125. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2126. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2127. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2128. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2129. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2130. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2131. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2132. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2133. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2134. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2135. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2136. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2137. _ASUNAME
  2138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2139. for as_dir in $PATH
  2140. do
  2141. IFS=$as_save_IFS
  2142. test -z "$as_dir" && as_dir=.
  2143. $as_echo "PATH: $as_dir"
  2144. done
  2145. IFS=$as_save_IFS
  2146. } >&5
  2147. cat >&5 <<_ACEOF
  2148. ## ----------- ##
  2149. ## Core tests. ##
  2150. ## ----------- ##
  2151. _ACEOF
  2152. # Keep a trace of the command line.
  2153. # Strip out --no-create and --no-recursion so they do not pile up.
  2154. # Strip out --silent because we don't want to record it for future runs.
  2155. # Also quote any args containing shell meta-characters.
  2156. # Make two passes to allow for proper duplicate-argument suppression.
  2157. ac_configure_args=
  2158. ac_configure_args0=
  2159. ac_configure_args1=
  2160. ac_must_keep_next=false
  2161. for ac_pass in 1 2
  2162. do
  2163. for ac_arg
  2164. do
  2165. case $ac_arg in
  2166. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2167. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2168. | -silent | --silent | --silen | --sile | --sil)
  2169. continue ;;
  2170. *\'*)
  2171. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2172. esac
  2173. case $ac_pass in
  2174. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2175. 2)
  2176. as_fn_append ac_configure_args1 " '$ac_arg'"
  2177. if test $ac_must_keep_next = true; then
  2178. ac_must_keep_next=false # Got value, back to normal.
  2179. else
  2180. case $ac_arg in
  2181. *=* | --config-cache | -C | -disable-* | --disable-* \
  2182. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2183. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2184. | -with-* | --with-* | -without-* | --without-* | --x)
  2185. case "$ac_configure_args0 " in
  2186. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2187. esac
  2188. ;;
  2189. -* ) ac_must_keep_next=true ;;
  2190. esac
  2191. fi
  2192. as_fn_append ac_configure_args " '$ac_arg'"
  2193. ;;
  2194. esac
  2195. done
  2196. done
  2197. { ac_configure_args0=; unset ac_configure_args0;}
  2198. { ac_configure_args1=; unset ac_configure_args1;}
  2199. # When interrupted or exit'd, cleanup temporary files, and complete
  2200. # config.log. We remove comments because anyway the quotes in there
  2201. # would cause problems or look ugly.
  2202. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2203. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2204. trap 'exit_status=$?
  2205. # Save into config.log some information that might help in debugging.
  2206. {
  2207. echo
  2208. $as_echo "## ---------------- ##
  2209. ## Cache variables. ##
  2210. ## ---------------- ##"
  2211. echo
  2212. # The following way of writing the cache mishandles newlines in values,
  2213. (
  2214. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2215. eval ac_val=\$$ac_var
  2216. case $ac_val in #(
  2217. *${as_nl}*)
  2218. case $ac_var in #(
  2219. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2220. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2221. esac
  2222. case $ac_var in #(
  2223. _ | IFS | as_nl) ;; #(
  2224. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2225. *) { eval $ac_var=; unset $ac_var;} ;;
  2226. esac ;;
  2227. esac
  2228. done
  2229. (set) 2>&1 |
  2230. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2231. *${as_nl}ac_space=\ *)
  2232. sed -n \
  2233. "s/'\''/'\''\\\\'\'''\''/g;
  2234. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2235. ;; #(
  2236. *)
  2237. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2238. ;;
  2239. esac |
  2240. sort
  2241. )
  2242. echo
  2243. $as_echo "## ----------------- ##
  2244. ## Output variables. ##
  2245. ## ----------------- ##"
  2246. echo
  2247. for ac_var in $ac_subst_vars
  2248. do
  2249. eval ac_val=\$$ac_var
  2250. case $ac_val in
  2251. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2252. esac
  2253. $as_echo "$ac_var='\''$ac_val'\''"
  2254. done | sort
  2255. echo
  2256. if test -n "$ac_subst_files"; then
  2257. $as_echo "## ------------------- ##
  2258. ## File substitutions. ##
  2259. ## ------------------- ##"
  2260. echo
  2261. for ac_var in $ac_subst_files
  2262. do
  2263. eval ac_val=\$$ac_var
  2264. case $ac_val in
  2265. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2266. esac
  2267. $as_echo "$ac_var='\''$ac_val'\''"
  2268. done | sort
  2269. echo
  2270. fi
  2271. if test -s confdefs.h; then
  2272. $as_echo "## ----------- ##
  2273. ## confdefs.h. ##
  2274. ## ----------- ##"
  2275. echo
  2276. cat confdefs.h
  2277. echo
  2278. fi
  2279. test "$ac_signal" != 0 &&
  2280. $as_echo "$as_me: caught signal $ac_signal"
  2281. $as_echo "$as_me: exit $exit_status"
  2282. } >&5
  2283. rm -f core *.core core.conftest.* &&
  2284. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2285. exit $exit_status
  2286. ' 0
  2287. for ac_signal in 1 2 13 15; do
  2288. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2289. done
  2290. ac_signal=0
  2291. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2292. rm -f -r conftest* confdefs.h
  2293. $as_echo "/* confdefs.h */" > confdefs.h
  2294. # Predefined preprocessor variables.
  2295. cat >>confdefs.h <<_ACEOF
  2296. #define PACKAGE_NAME "$PACKAGE_NAME"
  2297. _ACEOF
  2298. cat >>confdefs.h <<_ACEOF
  2299. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2300. _ACEOF
  2301. cat >>confdefs.h <<_ACEOF
  2302. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2303. _ACEOF
  2304. cat >>confdefs.h <<_ACEOF
  2305. #define PACKAGE_STRING "$PACKAGE_STRING"
  2306. _ACEOF
  2307. cat >>confdefs.h <<_ACEOF
  2308. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2309. _ACEOF
  2310. cat >>confdefs.h <<_ACEOF
  2311. #define PACKAGE_URL "$PACKAGE_URL"
  2312. _ACEOF
  2313. # Let the site file select an alternate cache file if it wants to.
  2314. # Prefer an explicitly selected file to automatically selected ones.
  2315. ac_site_file1=NONE
  2316. ac_site_file2=NONE
  2317. if test -n "$CONFIG_SITE"; then
  2318. # We do not want a PATH search for config.site.
  2319. case $CONFIG_SITE in #((
  2320. -*) ac_site_file1=./$CONFIG_SITE;;
  2321. */*) ac_site_file1=$CONFIG_SITE;;
  2322. *) ac_site_file1=./$CONFIG_SITE;;
  2323. esac
  2324. elif test "x$prefix" != xNONE; then
  2325. ac_site_file1=$prefix/share/config.site
  2326. ac_site_file2=$prefix/etc/config.site
  2327. else
  2328. ac_site_file1=$ac_default_prefix/share/config.site
  2329. ac_site_file2=$ac_default_prefix/etc/config.site
  2330. fi
  2331. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2332. do
  2333. test "x$ac_site_file" = xNONE && continue
  2334. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2336. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2337. sed 's/^/| /' "$ac_site_file" >&5
  2338. . "$ac_site_file" \
  2339. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2340. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2341. as_fn_error $? "failed to load site script $ac_site_file
  2342. See \`config.log' for more details" "$LINENO" 5; }
  2343. fi
  2344. done
  2345. if test -r "$cache_file"; then
  2346. # Some versions of bash will fail to source /dev/null (special files
  2347. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2348. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2350. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2351. case $cache_file in
  2352. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2353. *) . "./$cache_file";;
  2354. esac
  2355. fi
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2358. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2359. >$cache_file
  2360. fi
  2361. as_fn_append ac_header_list " unistd.h"
  2362. as_fn_append ac_func_list " secure_getenv"
  2363. as_fn_append ac_func_list " __secure_getenv"
  2364. as_fn_append ac_func_list " getuid"
  2365. as_fn_append ac_func_list " geteuid"
  2366. as_fn_append ac_func_list " getgid"
  2367. as_fn_append ac_func_list " getegid"
  2368. # Check that the precious variables saved in the cache have kept the same
  2369. # value.
  2370. ac_cache_corrupted=false
  2371. for ac_var in $ac_precious_vars; do
  2372. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2373. eval ac_new_set=\$ac_env_${ac_var}_set
  2374. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2375. eval ac_new_val=\$ac_env_${ac_var}_value
  2376. case $ac_old_set,$ac_new_set in
  2377. set,)
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2379. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2380. ac_cache_corrupted=: ;;
  2381. ,set)
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2383. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2384. ac_cache_corrupted=: ;;
  2385. ,);;
  2386. *)
  2387. if test "x$ac_old_val" != "x$ac_new_val"; then
  2388. # differences in whitespace do not lead to failure.
  2389. ac_old_val_w=`echo x $ac_old_val`
  2390. ac_new_val_w=`echo x $ac_new_val`
  2391. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2394. ac_cache_corrupted=:
  2395. else
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2397. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2398. eval $ac_var=\$ac_old_val
  2399. fi
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2401. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2403. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2404. fi;;
  2405. esac
  2406. # Pass precious variables to config.status.
  2407. if test "$ac_new_set" = set; then
  2408. case $ac_new_val in
  2409. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2410. *) ac_arg=$ac_var=$ac_new_val ;;
  2411. esac
  2412. case " $ac_configure_args " in
  2413. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2414. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2415. esac
  2416. fi
  2417. done
  2418. if $ac_cache_corrupted; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2422. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2423. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2424. fi
  2425. ## -------------------- ##
  2426. ## Main body of script. ##
  2427. ## -------------------- ##
  2428. ac_ext=c
  2429. ac_cpp='$CPP $CPPFLAGS'
  2430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2433. ac_config_headers="$ac_config_headers config.h"
  2434. # -------
  2435. # Options
  2436. # -------
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2438. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2439. # Check whether --enable-version-specific-runtime-libs was given.
  2440. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2441. enableval=$enable_version_specific_runtime_libs;
  2442. case "$enableval" in
  2443. yes|no) ;;
  2444. *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
  2445. esac
  2446. else
  2447. enable_version_specific_runtime_libs=no
  2448. fi
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  2450. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  2451. # We would like our source tree to be readonly. However when releases or
  2452. # pre-releases are generated, the flex/bison generated files as well as the
  2453. # various formats of manuals need to be included along with the rest of the
  2454. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2455. # just that.
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
  2457. $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
  2458. # Check whether --enable-generated-files-in-srcdir was given.
  2459. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2460. enableval=$enable_generated_files_in_srcdir;
  2461. case "$enableval" in
  2462. yes|no) ;;
  2463. *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
  2464. esac
  2465. else
  2466. enable_generated_files_in_srcdir=no
  2467. fi
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2469. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2470. if test "$enable_generated_files_in_srcdir" = yes; then
  2471. GENINSRC_TRUE=
  2472. GENINSRC_FALSE='#'
  2473. else
  2474. GENINSRC_TRUE='#'
  2475. GENINSRC_FALSE=
  2476. fi
  2477. # -------
  2478. # -------
  2479. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2480. #
  2481. # You will slowly go insane if you do not grok the following fact: when
  2482. # building this library, the top-level /target/ becomes the library's /host/.
  2483. #
  2484. # configure then causes --target to default to --host, exactly like any
  2485. # other package using autoconf. Therefore, 'target' and 'host' will
  2486. # always be the same. This makes sense both for native and cross compilers
  2487. # just think about it for a little while. :-)
  2488. #
  2489. # Also, if this library is being configured as part of a cross compiler, the
  2490. # top-level configure script will pass the "real" host as $with_cross_host.
  2491. #
  2492. # Do not delete or change the following two lines. For why, see
  2493. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2494. ac_aux_dir=
  2495. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2496. if test -f "$ac_dir/install-sh"; then
  2497. ac_aux_dir=$ac_dir
  2498. ac_install_sh="$ac_aux_dir/install-sh -c"
  2499. break
  2500. elif test -f "$ac_dir/install.sh"; then
  2501. ac_aux_dir=$ac_dir
  2502. ac_install_sh="$ac_aux_dir/install.sh -c"
  2503. break
  2504. elif test -f "$ac_dir/shtool"; then
  2505. ac_aux_dir=$ac_dir
  2506. ac_install_sh="$ac_aux_dir/shtool install -c"
  2507. break
  2508. fi
  2509. done
  2510. if test -z "$ac_aux_dir"; then
  2511. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2512. fi
  2513. # These three variables are undocumented and unsupported,
  2514. # and are intended to be withdrawn in a future Autoconf release.
  2515. # They can cause serious problems if a builder's source tree is in a directory
  2516. # whose full name contains unusual characters.
  2517. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2518. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2519. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2520. # Make sure we can run config.sub.
  2521. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2522. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2524. $as_echo_n "checking build system type... " >&6; }
  2525. if ${ac_cv_build+:} false; then :
  2526. $as_echo_n "(cached) " >&6
  2527. else
  2528. ac_build_alias=$build_alias
  2529. test "x$ac_build_alias" = x &&
  2530. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2531. test "x$ac_build_alias" = x &&
  2532. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2533. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2534. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2535. fi
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2537. $as_echo "$ac_cv_build" >&6; }
  2538. case $ac_cv_build in
  2539. *-*-*) ;;
  2540. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2541. esac
  2542. build=$ac_cv_build
  2543. ac_save_IFS=$IFS; IFS='-'
  2544. set x $ac_cv_build
  2545. shift
  2546. build_cpu=$1
  2547. build_vendor=$2
  2548. shift; shift
  2549. # Remember, the first character of IFS is used to create $*,
  2550. # except with old shells:
  2551. build_os=$*
  2552. IFS=$ac_save_IFS
  2553. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2555. $as_echo_n "checking host system type... " >&6; }
  2556. if ${ac_cv_host+:} false; then :
  2557. $as_echo_n "(cached) " >&6
  2558. else
  2559. if test "x$host_alias" = x; then
  2560. ac_cv_host=$ac_cv_build
  2561. else
  2562. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2563. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2564. fi
  2565. fi
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2567. $as_echo "$ac_cv_host" >&6; }
  2568. case $ac_cv_host in
  2569. *-*-*) ;;
  2570. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2571. esac
  2572. host=$ac_cv_host
  2573. ac_save_IFS=$IFS; IFS='-'
  2574. set x $ac_cv_host
  2575. shift
  2576. host_cpu=$1
  2577. host_vendor=$2
  2578. shift; shift
  2579. # Remember, the first character of IFS is used to create $*,
  2580. # except with old shells:
  2581. host_os=$*
  2582. IFS=$ac_save_IFS
  2583. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2585. $as_echo_n "checking target system type... " >&6; }
  2586. if ${ac_cv_target+:} false; then :
  2587. $as_echo_n "(cached) " >&6
  2588. else
  2589. if test "x$target_alias" = x; then
  2590. ac_cv_target=$ac_cv_host
  2591. else
  2592. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2593. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2594. fi
  2595. fi
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2597. $as_echo "$ac_cv_target" >&6; }
  2598. case $ac_cv_target in
  2599. *-*-*) ;;
  2600. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2601. esac
  2602. target=$ac_cv_target
  2603. ac_save_IFS=$IFS; IFS='-'
  2604. set x $ac_cv_target
  2605. shift
  2606. target_cpu=$1
  2607. target_vendor=$2
  2608. shift; shift
  2609. # Remember, the first character of IFS is used to create $*,
  2610. # except with old shells:
  2611. target_os=$*
  2612. IFS=$ac_save_IFS
  2613. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2614. # The aliases save the names the user supplied, while $host etc.
  2615. # will get canonicalized.
  2616. test -n "$target_alias" &&
  2617. test "$program_prefix$program_suffix$program_transform_name" = \
  2618. NONENONEs,x,x, &&
  2619. program_prefix=${target_alias}-
  2620. target_alias=${target_alias-$host_alias}
  2621. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2622. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2623. # 1.9.0: minimum required version
  2624. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2625. # of other PACKAGE_* variables will, however, and there's nothing
  2626. # we can do about that; they come from AC_INIT).
  2627. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2628. # file in the top srcdir, etc, etc), so stop complaining.
  2629. # no-dist: we don't want 'dist' and related rules.
  2630. # -Wall: turns on all automake warnings...
  2631. # -Wno-portability: ...except this one, since GNU make is required.
  2632. # -Wno-override: ... and this one, since we do want this in testsuite.
  2633. am__api_version='1.15'
  2634. # Find a good install program. We prefer a C program (faster),
  2635. # so one script is as good as another. But avoid the broken or
  2636. # incompatible versions:
  2637. # SysV /etc/install, /usr/sbin/install
  2638. # SunOS /usr/etc/install
  2639. # IRIX /sbin/install
  2640. # AIX /bin/install
  2641. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2642. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2643. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2644. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2645. # OS/2's system install, which has a completely different semantic
  2646. # ./install, which can be erroneously created by make from ./install.sh.
  2647. # Reject install programs that cannot install multiple files.
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2649. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2650. if test -z "$INSTALL"; then
  2651. if ${ac_cv_path_install+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2655. for as_dir in $PATH
  2656. do
  2657. IFS=$as_save_IFS
  2658. test -z "$as_dir" && as_dir=.
  2659. # Account for people who put trailing slashes in PATH elements.
  2660. case $as_dir/ in #((
  2661. ./ | .// | /[cC]/* | \
  2662. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2663. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2664. /usr/ucb/* ) ;;
  2665. *)
  2666. # OSF1 and SCO ODT 3.0 have their own names for install.
  2667. # Don't use installbsd from OSF since it installs stuff as root
  2668. # by default.
  2669. for ac_prog in ginstall scoinst install; do
  2670. for ac_exec_ext in '' $ac_executable_extensions; do
  2671. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2672. if test $ac_prog = install &&
  2673. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2674. # AIX install. It has an incompatible calling convention.
  2675. :
  2676. elif test $ac_prog = install &&
  2677. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2678. # program-specific install script used by HP pwplus--don't use.
  2679. :
  2680. else
  2681. rm -rf conftest.one conftest.two conftest.dir
  2682. echo one > conftest.one
  2683. echo two > conftest.two
  2684. mkdir conftest.dir
  2685. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2686. test -s conftest.one && test -s conftest.two &&
  2687. test -s conftest.dir/conftest.one &&
  2688. test -s conftest.dir/conftest.two
  2689. then
  2690. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2691. break 3
  2692. fi
  2693. fi
  2694. fi
  2695. done
  2696. done
  2697. ;;
  2698. esac
  2699. done
  2700. IFS=$as_save_IFS
  2701. rm -rf conftest.one conftest.two conftest.dir
  2702. fi
  2703. if test "${ac_cv_path_install+set}" = set; then
  2704. INSTALL=$ac_cv_path_install
  2705. else
  2706. # As a last resort, use the slow shell script. Don't cache a
  2707. # value for INSTALL within a source directory, because that will
  2708. # break other packages using the cache if that directory is
  2709. # removed, or if the value is a relative name.
  2710. INSTALL=$ac_install_sh
  2711. fi
  2712. fi
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2714. $as_echo "$INSTALL" >&6; }
  2715. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2716. # It thinks the first close brace ends the variable substitution.
  2717. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2718. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2719. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2721. $as_echo_n "checking whether build environment is sane... " >&6; }
  2722. # Reject unsafe characters in $srcdir or the absolute working directory
  2723. # name. Accept space and tab only in the latter.
  2724. am_lf='
  2725. '
  2726. case `pwd` in
  2727. *[\\\"\#\$\&\'\`$am_lf]*)
  2728. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2729. esac
  2730. case $srcdir in
  2731. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2732. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2733. esac
  2734. # Do 'set' in a subshell so we don't clobber the current shell's
  2735. # arguments. Must try -L first in case configure is actually a
  2736. # symlink; some systems play weird games with the mod time of symlinks
  2737. # (eg FreeBSD returns the mod time of the symlink's containing
  2738. # directory).
  2739. if (
  2740. am_has_slept=no
  2741. for am_try in 1 2; do
  2742. echo "timestamp, slept: $am_has_slept" > conftest.file
  2743. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2744. if test "$*" = "X"; then
  2745. # -L didn't work.
  2746. set X `ls -t "$srcdir/configure" conftest.file`
  2747. fi
  2748. if test "$*" != "X $srcdir/configure conftest.file" \
  2749. && test "$*" != "X conftest.file $srcdir/configure"; then
  2750. # If neither matched, then we have a broken ls. This can happen
  2751. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2752. # broken ls alias from the environment. This has actually
  2753. # happened. Such a system could not be considered "sane".
  2754. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2755. alias in your environment" "$LINENO" 5
  2756. fi
  2757. if test "$2" = conftest.file || test $am_try -eq 2; then
  2758. break
  2759. fi
  2760. # Just in case.
  2761. sleep 1
  2762. am_has_slept=yes
  2763. done
  2764. test "$2" = conftest.file
  2765. )
  2766. then
  2767. # Ok.
  2768. :
  2769. else
  2770. as_fn_error $? "newly created file is older than distributed files!
  2771. Check your system clock" "$LINENO" 5
  2772. fi
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2774. $as_echo "yes" >&6; }
  2775. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2776. # generated files are strictly newer.
  2777. am_sleep_pid=
  2778. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2779. ( sleep 1 ) &
  2780. am_sleep_pid=$!
  2781. fi
  2782. rm -f conftest.file
  2783. test "$program_prefix" != NONE &&
  2784. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2785. # Use a double $ so make ignores it.
  2786. test "$program_suffix" != NONE &&
  2787. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2788. # Double any \ or $.
  2789. # By default was `s,x,x', remove it if useless.
  2790. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2791. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2792. # Expand $ac_aux_dir to an absolute path.
  2793. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2794. if test x"${MISSING+set}" != xset; then
  2795. case $am_aux_dir in
  2796. *\ * | *\ *)
  2797. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2798. *)
  2799. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2800. esac
  2801. fi
  2802. # Use eval to expand $SHELL
  2803. if eval "$MISSING --is-lightweight"; then
  2804. am_missing_run="$MISSING "
  2805. else
  2806. am_missing_run=
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2808. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2809. fi
  2810. if test x"${install_sh+set}" != xset; then
  2811. case $am_aux_dir in
  2812. *\ * | *\ *)
  2813. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2814. *)
  2815. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2816. esac
  2817. fi
  2818. # Installed binaries are usually stripped using 'strip' when the user
  2819. # run "make install-strip". However 'strip' might not be the right
  2820. # tool to use in cross-compilation environments, therefore Automake
  2821. # will honor the 'STRIP' environment variable to overrule this program.
  2822. if test "$cross_compiling" != no; then
  2823. if test -n "$ac_tool_prefix"; then
  2824. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2825. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. $as_echo_n "checking for $ac_word... " >&6; }
  2828. if ${ac_cv_prog_STRIP+:} false; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. if test -n "$STRIP"; then
  2832. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. test -z "$as_dir" && as_dir=.
  2839. for ac_exec_ext in '' $ac_executable_extensions; do
  2840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2841. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2843. break 2
  2844. fi
  2845. done
  2846. done
  2847. IFS=$as_save_IFS
  2848. fi
  2849. fi
  2850. STRIP=$ac_cv_prog_STRIP
  2851. if test -n "$STRIP"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2853. $as_echo "$STRIP" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. fi
  2859. if test -z "$ac_cv_prog_STRIP"; then
  2860. ac_ct_STRIP=$STRIP
  2861. # Extract the first word of "strip", so it can be a program name with args.
  2862. set dummy strip; 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_ac_ct_STRIP+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test -n "$ac_ct_STRIP"; then
  2869. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
  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. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2888. if test -n "$ac_ct_STRIP"; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2890. $as_echo "$ac_ct_STRIP" >&6; }
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2893. $as_echo "no" >&6; }
  2894. fi
  2895. if test "x$ac_ct_STRIP" = x; then
  2896. STRIP=":"
  2897. else
  2898. case $cross_compiling:$ac_tool_warned in
  2899. yes:)
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2902. ac_tool_warned=yes ;;
  2903. esac
  2904. STRIP=$ac_ct_STRIP
  2905. fi
  2906. else
  2907. STRIP="$ac_cv_prog_STRIP"
  2908. fi
  2909. fi
  2910. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2912. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2913. if test -z "$MKDIR_P"; then
  2914. if ${ac_cv_path_mkdir+:} false; then :
  2915. $as_echo_n "(cached) " >&6
  2916. else
  2917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2918. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2919. do
  2920. IFS=$as_save_IFS
  2921. test -z "$as_dir" && as_dir=.
  2922. for ac_prog in mkdir gmkdir; do
  2923. for ac_exec_ext in '' $ac_executable_extensions; do
  2924. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2925. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2926. 'mkdir (GNU coreutils) '* | \
  2927. 'mkdir (coreutils) '* | \
  2928. 'mkdir (fileutils) '4.1*)
  2929. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2930. break 3;;
  2931. esac
  2932. done
  2933. done
  2934. done
  2935. IFS=$as_save_IFS
  2936. fi
  2937. test -d ./--version && rmdir ./--version
  2938. if test "${ac_cv_path_mkdir+set}" = set; then
  2939. MKDIR_P="$ac_cv_path_mkdir -p"
  2940. else
  2941. # As a last resort, use the slow shell script. Don't cache a
  2942. # value for MKDIR_P within a source directory, because that will
  2943. # break other packages using the cache if that directory is
  2944. # removed, or if the value is a relative name.
  2945. MKDIR_P="$ac_install_sh -d"
  2946. fi
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2949. $as_echo "$MKDIR_P" >&6; }
  2950. for ac_prog in gawk mawk nawk awk
  2951. do
  2952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2953. set dummy $ac_prog; ac_word=$2
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2955. $as_echo_n "checking for $ac_word... " >&6; }
  2956. if ${ac_cv_prog_AWK+:} false; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. if test -n "$AWK"; then
  2960. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2961. else
  2962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963. for as_dir in $PATH
  2964. do
  2965. IFS=$as_save_IFS
  2966. test -z "$as_dir" && as_dir=.
  2967. for ac_exec_ext in '' $ac_executable_extensions; do
  2968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2969. ac_cv_prog_AWK="$ac_prog"
  2970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2971. break 2
  2972. fi
  2973. done
  2974. done
  2975. IFS=$as_save_IFS
  2976. fi
  2977. fi
  2978. AWK=$ac_cv_prog_AWK
  2979. if test -n "$AWK"; then
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2981. $as_echo "$AWK" >&6; }
  2982. else
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2984. $as_echo "no" >&6; }
  2985. fi
  2986. test -n "$AWK" && break
  2987. done
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2989. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2990. set x ${MAKE-make}
  2991. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2992. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2993. $as_echo_n "(cached) " >&6
  2994. else
  2995. cat >conftest.make <<\_ACEOF
  2996. SHELL = /bin/sh
  2997. all:
  2998. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2999. _ACEOF
  3000. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3001. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3002. *@@@%%%=?*=@@@%%%*)
  3003. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3004. *)
  3005. eval ac_cv_prog_make_${ac_make}_set=no;;
  3006. esac
  3007. rm -f conftest.make
  3008. fi
  3009. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3011. $as_echo "yes" >&6; }
  3012. SET_MAKE=
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3015. $as_echo "no" >&6; }
  3016. SET_MAKE="MAKE=${MAKE-make}"
  3017. fi
  3018. rm -rf .tst 2>/dev/null
  3019. mkdir .tst 2>/dev/null
  3020. if test -d .tst; then
  3021. am__leading_dot=.
  3022. else
  3023. am__leading_dot=_
  3024. fi
  3025. rmdir .tst 2>/dev/null
  3026. # Check whether --enable-silent-rules was given.
  3027. if test "${enable_silent_rules+set}" = set; then :
  3028. enableval=$enable_silent_rules;
  3029. fi
  3030. case $enable_silent_rules in # (((
  3031. yes) AM_DEFAULT_VERBOSITY=0;;
  3032. no) AM_DEFAULT_VERBOSITY=1;;
  3033. *) AM_DEFAULT_VERBOSITY=1;;
  3034. esac
  3035. am_make=${MAKE-make}
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3037. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3038. if ${am_cv_make_support_nested_variables+:} false; then :
  3039. $as_echo_n "(cached) " >&6
  3040. else
  3041. if $as_echo 'TRUE=$(BAR$(V))
  3042. BAR0=false
  3043. BAR1=true
  3044. V=1
  3045. am__doit:
  3046. @$(TRUE)
  3047. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3048. am_cv_make_support_nested_variables=yes
  3049. else
  3050. am_cv_make_support_nested_variables=no
  3051. fi
  3052. fi
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3054. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3055. if test $am_cv_make_support_nested_variables = yes; then
  3056. AM_V='$(V)'
  3057. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3058. else
  3059. AM_V=$AM_DEFAULT_VERBOSITY
  3060. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3061. fi
  3062. AM_BACKSLASH='\'
  3063. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3064. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3065. # is not polluted with repeated "-I."
  3066. am__isrc=' -I$(srcdir)'
  3067. # test to see if srcdir already configured
  3068. if test -f $srcdir/config.status; then
  3069. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3070. fi
  3071. fi
  3072. # test whether we have cygpath
  3073. if test -z "$CYGPATH_W"; then
  3074. if (cygpath --version) >/dev/null 2>/dev/null; then
  3075. CYGPATH_W='cygpath -w'
  3076. else
  3077. CYGPATH_W=echo
  3078. fi
  3079. fi
  3080. # Define the identity of the package.
  3081. PACKAGE='libgomp'
  3082. VERSION='1.0'
  3083. cat >>confdefs.h <<_ACEOF
  3084. #define PACKAGE "$PACKAGE"
  3085. _ACEOF
  3086. cat >>confdefs.h <<_ACEOF
  3087. #define VERSION "$VERSION"
  3088. _ACEOF
  3089. # Some tools Automake needs.
  3090. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3091. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3092. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3093. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3094. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3095. # For better backward compatibility. To be removed once Automake 1.9.x
  3096. # dies out for good. For more background, see:
  3097. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3098. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3099. mkdir_p='$(MKDIR_P)'
  3100. # We need awk for the "check" target (and possibly the TAP driver). The
  3101. # system "awk" is bad on some platforms.
  3102. # Always define AMTAR for backward compatibility. Yes, it's still used
  3103. # in the wild :-( We should find a proper way to deprecate it ...
  3104. AMTAR='$${TAR-tar}'
  3105. # We'll loop over all known methods to create a tar archive until one works.
  3106. _am_tools='gnutar pax cpio none'
  3107. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3108. # POSIX will say in a future version that running "rm -f" with no argument
  3109. # is OK; and we want to be able to make that assumption in our Makefile
  3110. # recipes. So use an aggressive probe to check that the usage we want is
  3111. # actually supported "in the wild" to an acceptable degree.
  3112. # See automake bug#10828.
  3113. # To make any issue more visible, cause the running configure to be aborted
  3114. # by default if the 'rm' program in use doesn't match our expectations; the
  3115. # user can still override this though.
  3116. if rm -f && rm -fr && rm -rf; then : OK; else
  3117. cat >&2 <<'END'
  3118. Oops!
  3119. Your 'rm' program seems unable to run without file operands specified
  3120. on the command line, even when the '-f' option is present. This is contrary
  3121. to the behaviour of most rm programs out there, and not conforming with
  3122. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3123. Please tell bug-automake@gnu.org about your system, including the value
  3124. of your $PATH and any error possibly output before this message. This
  3125. can help us improve future automake versions.
  3126. END
  3127. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3128. echo 'Configuration will proceed anyway, since you have set the' >&2
  3129. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3130. echo >&2
  3131. else
  3132. cat >&2 <<'END'
  3133. Aborting the configuration process, to ensure you take notice of the issue.
  3134. You can download and install GNU coreutils to get an 'rm' implementation
  3135. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3136. If you want to complete the configuration process using your problematic
  3137. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3138. to "yes", and re-run configure.
  3139. END
  3140. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3141. fi
  3142. fi
  3143. # Default to --enable-multilib
  3144. # Check whether --enable-multilib was given.
  3145. if test "${enable_multilib+set}" = set; then :
  3146. enableval=$enable_multilib; case "$enableval" in
  3147. yes) multilib=yes ;;
  3148. no) multilib=no ;;
  3149. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3150. esac
  3151. else
  3152. multilib=yes
  3153. fi
  3154. # We may get other options which we leave undocumented:
  3155. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3156. # See config-ml.in if you want the gory details.
  3157. if test "$srcdir" = "."; then
  3158. if test "$with_target_subdir" != "."; then
  3159. multi_basedir="$srcdir/$with_multisrctop../.."
  3160. else
  3161. multi_basedir="$srcdir/$with_multisrctop.."
  3162. fi
  3163. else
  3164. multi_basedir="$srcdir/.."
  3165. fi
  3166. # Even if the default multilib is not a cross compilation,
  3167. # it may be that some of the other multilibs are.
  3168. if test $cross_compiling = no && test $multilib = yes \
  3169. && test "x${with_multisubdir}" != x ; then
  3170. cross_compiling=maybe
  3171. fi
  3172. ac_config_commands="$ac_config_commands default-1"
  3173. # Check whether --with-toolexeclibdir was given.
  3174. if test "${with_toolexeclibdir+set}" = set; then :
  3175. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  3176. /)
  3177. ;;
  3178. */)
  3179. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  3180. ;;
  3181. esac
  3182. else
  3183. with_toolexeclibdir=no
  3184. fi
  3185. # Calculate toolexeclibdir
  3186. # Also toolexecdir, though it's only used in toolexeclibdir
  3187. case ${enable_version_specific_runtime_libs} in
  3188. yes)
  3189. # Need the gcc compiler version to know where to install libraries
  3190. # and header files if --enable-version-specific-runtime-libs option
  3191. # is selected.
  3192. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3193. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3194. ;;
  3195. no)
  3196. if test -n "$with_cross_host" &&
  3197. test x"$with_cross_host" != x"no"; then
  3198. # Install a library built with a cross compiler in tooldir, not libdir.
  3199. toolexecdir='$(exec_prefix)/$(target_alias)'
  3200. case ${with_toolexeclibdir} in
  3201. no)
  3202. toolexeclibdir='$(toolexecdir)/lib'
  3203. ;;
  3204. *)
  3205. toolexeclibdir=${with_toolexeclibdir}
  3206. ;;
  3207. esac
  3208. else
  3209. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3210. toolexeclibdir='$(libdir)'
  3211. fi
  3212. multi_os_directory=`$CC -print-multi-os-directory`
  3213. case $multi_os_directory in
  3214. .) ;; # Avoid trailing /.
  3215. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3216. esac
  3217. ;;
  3218. esac
  3219. # Check the compiler.
  3220. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3221. # We must force CC to /not/ be precious variables; otherwise
  3222. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3223. # As a side effect, we have to subst CFLAGS ourselves.
  3224. ac_ext=c
  3225. ac_cpp='$CPP $CPPFLAGS'
  3226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3229. if test -n "$ac_tool_prefix"; then
  3230. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3231. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3233. $as_echo_n "checking for $ac_word... " >&6; }
  3234. if ${ac_cv_prog_CC+:} false; then :
  3235. $as_echo_n "(cached) " >&6
  3236. else
  3237. if test -n "$CC"; then
  3238. ac_cv_prog_CC="$CC" # Let the user override the test.
  3239. else
  3240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3241. for as_dir in $PATH
  3242. do
  3243. IFS=$as_save_IFS
  3244. test -z "$as_dir" && as_dir=.
  3245. for ac_exec_ext in '' $ac_executable_extensions; do
  3246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3247. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3249. break 2
  3250. fi
  3251. done
  3252. done
  3253. IFS=$as_save_IFS
  3254. fi
  3255. fi
  3256. CC=$ac_cv_prog_CC
  3257. if test -n "$CC"; then
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3259. $as_echo "$CC" >&6; }
  3260. else
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3262. $as_echo "no" >&6; }
  3263. fi
  3264. fi
  3265. if test -z "$ac_cv_prog_CC"; then
  3266. ac_ct_CC=$CC
  3267. # Extract the first word of "gcc", so it can be a program name with args.
  3268. set dummy gcc; ac_word=$2
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3270. $as_echo_n "checking for $ac_word... " >&6; }
  3271. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3272. $as_echo_n "(cached) " >&6
  3273. else
  3274. if test -n "$ac_ct_CC"; then
  3275. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3276. else
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280. IFS=$as_save_IFS
  3281. test -z "$as_dir" && as_dir=.
  3282. for ac_exec_ext in '' $ac_executable_extensions; do
  3283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3284. ac_cv_prog_ac_ct_CC="gcc"
  3285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3286. break 2
  3287. fi
  3288. done
  3289. done
  3290. IFS=$as_save_IFS
  3291. fi
  3292. fi
  3293. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3294. if test -n "$ac_ct_CC"; then
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3296. $as_echo "$ac_ct_CC" >&6; }
  3297. else
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3299. $as_echo "no" >&6; }
  3300. fi
  3301. if test "x$ac_ct_CC" = x; then
  3302. CC=""
  3303. else
  3304. case $cross_compiling:$ac_tool_warned in
  3305. yes:)
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3307. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3308. ac_tool_warned=yes ;;
  3309. esac
  3310. CC=$ac_ct_CC
  3311. fi
  3312. else
  3313. CC="$ac_cv_prog_CC"
  3314. fi
  3315. if test -z "$CC"; then
  3316. if test -n "$ac_tool_prefix"; then
  3317. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3318. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3320. $as_echo_n "checking for $ac_word... " >&6; }
  3321. if ${ac_cv_prog_CC+:} false; then :
  3322. $as_echo_n "(cached) " >&6
  3323. else
  3324. if test -n "$CC"; then
  3325. ac_cv_prog_CC="$CC" # Let the user override the test.
  3326. else
  3327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3328. for as_dir in $PATH
  3329. do
  3330. IFS=$as_save_IFS
  3331. test -z "$as_dir" && as_dir=.
  3332. for ac_exec_ext in '' $ac_executable_extensions; do
  3333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3334. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3336. break 2
  3337. fi
  3338. done
  3339. done
  3340. IFS=$as_save_IFS
  3341. fi
  3342. fi
  3343. CC=$ac_cv_prog_CC
  3344. if test -n "$CC"; then
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3346. $as_echo "$CC" >&6; }
  3347. else
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3349. $as_echo "no" >&6; }
  3350. fi
  3351. fi
  3352. fi
  3353. if test -z "$CC"; then
  3354. # Extract the first word of "cc", so it can be a program name with args.
  3355. set dummy cc; ac_word=$2
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3357. $as_echo_n "checking for $ac_word... " >&6; }
  3358. if ${ac_cv_prog_CC+:} false; then :
  3359. $as_echo_n "(cached) " >&6
  3360. else
  3361. if test -n "$CC"; then
  3362. ac_cv_prog_CC="$CC" # Let the user override the test.
  3363. else
  3364. ac_prog_rejected=no
  3365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3366. for as_dir in $PATH
  3367. do
  3368. IFS=$as_save_IFS
  3369. test -z "$as_dir" && as_dir=.
  3370. for ac_exec_ext in '' $ac_executable_extensions; do
  3371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3372. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3373. ac_prog_rejected=yes
  3374. continue
  3375. fi
  3376. ac_cv_prog_CC="cc"
  3377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3378. break 2
  3379. fi
  3380. done
  3381. done
  3382. IFS=$as_save_IFS
  3383. if test $ac_prog_rejected = yes; then
  3384. # We found a bogon in the path, so make sure we never use it.
  3385. set dummy $ac_cv_prog_CC
  3386. shift
  3387. if test $# != 0; then
  3388. # We chose a different compiler from the bogus one.
  3389. # However, it has the same basename, so the bogon will be chosen
  3390. # first if we set CC to just the basename; use the full file name.
  3391. shift
  3392. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3393. fi
  3394. fi
  3395. fi
  3396. fi
  3397. CC=$ac_cv_prog_CC
  3398. if test -n "$CC"; then
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3400. $as_echo "$CC" >&6; }
  3401. else
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. $as_echo "no" >&6; }
  3404. fi
  3405. fi
  3406. if test -z "$CC"; then
  3407. if test -n "$ac_tool_prefix"; then
  3408. for ac_prog in cl.exe
  3409. do
  3410. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3411. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3413. $as_echo_n "checking for $ac_word... " >&6; }
  3414. if ${ac_cv_prog_CC+:} false; then :
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. if test -n "$CC"; then
  3418. ac_cv_prog_CC="$CC" # Let the user override the test.
  3419. else
  3420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3421. for as_dir in $PATH
  3422. do
  3423. IFS=$as_save_IFS
  3424. test -z "$as_dir" && as_dir=.
  3425. for ac_exec_ext in '' $ac_executable_extensions; do
  3426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3427. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3429. break 2
  3430. fi
  3431. done
  3432. done
  3433. IFS=$as_save_IFS
  3434. fi
  3435. fi
  3436. CC=$ac_cv_prog_CC
  3437. if test -n "$CC"; then
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3439. $as_echo "$CC" >&6; }
  3440. else
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3442. $as_echo "no" >&6; }
  3443. fi
  3444. test -n "$CC" && break
  3445. done
  3446. fi
  3447. if test -z "$CC"; then
  3448. ac_ct_CC=$CC
  3449. for ac_prog in cl.exe
  3450. do
  3451. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3452. set dummy $ac_prog; ac_word=$2
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3454. $as_echo_n "checking for $ac_word... " >&6; }
  3455. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3456. $as_echo_n "(cached) " >&6
  3457. else
  3458. if test -n "$ac_ct_CC"; then
  3459. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3460. else
  3461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3462. for as_dir in $PATH
  3463. do
  3464. IFS=$as_save_IFS
  3465. test -z "$as_dir" && as_dir=.
  3466. for ac_exec_ext in '' $ac_executable_extensions; do
  3467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3468. ac_cv_prog_ac_ct_CC="$ac_prog"
  3469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3470. break 2
  3471. fi
  3472. done
  3473. done
  3474. IFS=$as_save_IFS
  3475. fi
  3476. fi
  3477. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3478. if test -n "$ac_ct_CC"; then
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3480. $as_echo "$ac_ct_CC" >&6; }
  3481. else
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3483. $as_echo "no" >&6; }
  3484. fi
  3485. test -n "$ac_ct_CC" && break
  3486. done
  3487. if test "x$ac_ct_CC" = x; then
  3488. CC=""
  3489. else
  3490. case $cross_compiling:$ac_tool_warned in
  3491. yes:)
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3494. ac_tool_warned=yes ;;
  3495. esac
  3496. CC=$ac_ct_CC
  3497. fi
  3498. fi
  3499. fi
  3500. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. as_fn_error $? "no acceptable C compiler found in \$PATH
  3503. See \`config.log' for more details" "$LINENO" 5; }
  3504. # Provide some information about the compiler.
  3505. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3506. set X $ac_compile
  3507. ac_compiler=$2
  3508. for ac_option in --version -v -V -qversion; do
  3509. { { ac_try="$ac_compiler $ac_option >&5"
  3510. case "(($ac_try" in
  3511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3512. *) ac_try_echo=$ac_try;;
  3513. esac
  3514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3515. $as_echo "$ac_try_echo"; } >&5
  3516. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3517. ac_status=$?
  3518. if test -s conftest.err; then
  3519. sed '10a\
  3520. ... rest of stderr output deleted ...
  3521. 10q' conftest.err >conftest.er1
  3522. cat conftest.er1 >&5
  3523. fi
  3524. rm -f conftest.er1 conftest.err
  3525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3526. test $ac_status = 0; }
  3527. done
  3528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3529. /* end confdefs.h. */
  3530. int
  3531. main ()
  3532. {
  3533. ;
  3534. return 0;
  3535. }
  3536. _ACEOF
  3537. ac_clean_files_save=$ac_clean_files
  3538. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3539. # Try to create an executable without -o first, disregard a.out.
  3540. # It will help us diagnose broken compilers, and finding out an intuition
  3541. # of exeext.
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3543. $as_echo_n "checking whether the C compiler works... " >&6; }
  3544. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3545. # The possible output files:
  3546. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3547. ac_rmfiles=
  3548. for ac_file in $ac_files
  3549. do
  3550. case $ac_file in
  3551. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3552. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3553. esac
  3554. done
  3555. rm -f $ac_rmfiles
  3556. if { { ac_try="$ac_link_default"
  3557. case "(($ac_try" in
  3558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3559. *) ac_try_echo=$ac_try;;
  3560. esac
  3561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3562. $as_echo "$ac_try_echo"; } >&5
  3563. (eval "$ac_link_default") 2>&5
  3564. ac_status=$?
  3565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3566. test $ac_status = 0; }; then :
  3567. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3568. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3569. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3570. # so that the user can short-circuit this test for compilers unknown to
  3571. # Autoconf.
  3572. for ac_file in $ac_files ''
  3573. do
  3574. test -f "$ac_file" || continue
  3575. case $ac_file in
  3576. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3577. ;;
  3578. [ab].out )
  3579. # We found the default executable, but exeext='' is most
  3580. # certainly right.
  3581. break;;
  3582. *.* )
  3583. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3584. then :; else
  3585. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3586. fi
  3587. # We set ac_cv_exeext here because the later test for it is not
  3588. # safe: cross compilers may not add the suffix if given an `-o'
  3589. # argument, so we may need to know it at that point already.
  3590. # Even if this section looks crufty: it has the advantage of
  3591. # actually working.
  3592. break;;
  3593. * )
  3594. break;;
  3595. esac
  3596. done
  3597. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3598. else
  3599. ac_file=''
  3600. fi
  3601. if test -z "$ac_file"; then :
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3603. $as_echo "no" >&6; }
  3604. $as_echo "$as_me: failed program was:" >&5
  3605. sed 's/^/| /' conftest.$ac_ext >&5
  3606. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3608. as_fn_error 77 "C compiler cannot create executables
  3609. See \`config.log' for more details" "$LINENO" 5; }
  3610. else
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3612. $as_echo "yes" >&6; }
  3613. fi
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3615. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3617. $as_echo "$ac_file" >&6; }
  3618. ac_exeext=$ac_cv_exeext
  3619. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3620. ac_clean_files=$ac_clean_files_save
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3622. $as_echo_n "checking for suffix of executables... " >&6; }
  3623. if { { ac_try="$ac_link"
  3624. case "(($ac_try" in
  3625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3626. *) ac_try_echo=$ac_try;;
  3627. esac
  3628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3629. $as_echo "$ac_try_echo"; } >&5
  3630. (eval "$ac_link") 2>&5
  3631. ac_status=$?
  3632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3633. test $ac_status = 0; }; then :
  3634. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3635. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3636. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3637. # `rm'.
  3638. for ac_file in conftest.exe conftest conftest.*; do
  3639. test -f "$ac_file" || continue
  3640. case $ac_file in
  3641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3642. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3643. break;;
  3644. * ) break;;
  3645. esac
  3646. done
  3647. else
  3648. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3650. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3651. See \`config.log' for more details" "$LINENO" 5; }
  3652. fi
  3653. rm -f conftest conftest$ac_cv_exeext
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3655. $as_echo "$ac_cv_exeext" >&6; }
  3656. rm -f conftest.$ac_ext
  3657. EXEEXT=$ac_cv_exeext
  3658. ac_exeext=$EXEEXT
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. #include <stdio.h>
  3662. int
  3663. main ()
  3664. {
  3665. FILE *f = fopen ("conftest.out", "w");
  3666. return ferror (f) || fclose (f) != 0;
  3667. ;
  3668. return 0;
  3669. }
  3670. _ACEOF
  3671. ac_clean_files="$ac_clean_files conftest.out"
  3672. # Check that the compiler produces executables we can run. If not, either
  3673. # the compiler is broken, or we cross compile.
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3675. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3676. if test "$cross_compiling" != yes; then
  3677. { { ac_try="$ac_link"
  3678. case "(($ac_try" in
  3679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3680. *) ac_try_echo=$ac_try;;
  3681. esac
  3682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3683. $as_echo "$ac_try_echo"; } >&5
  3684. (eval "$ac_link") 2>&5
  3685. ac_status=$?
  3686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3687. test $ac_status = 0; }
  3688. if { ac_try='./conftest$ac_cv_exeext'
  3689. { { case "(($ac_try" in
  3690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3691. *) ac_try_echo=$ac_try;;
  3692. esac
  3693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3694. $as_echo "$ac_try_echo"; } >&5
  3695. (eval "$ac_try") 2>&5
  3696. ac_status=$?
  3697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3698. test $ac_status = 0; }; }; then
  3699. cross_compiling=no
  3700. else
  3701. if test "$cross_compiling" = maybe; then
  3702. cross_compiling=yes
  3703. else
  3704. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3705. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3706. as_fn_error $? "cannot run C compiled programs.
  3707. If you meant to cross compile, use \`--host'.
  3708. See \`config.log' for more details" "$LINENO" 5; }
  3709. fi
  3710. fi
  3711. fi
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3713. $as_echo "$cross_compiling" >&6; }
  3714. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3715. ac_clean_files=$ac_clean_files_save
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3717. $as_echo_n "checking for suffix of object files... " >&6; }
  3718. if ${ac_cv_objext+:} false; then :
  3719. $as_echo_n "(cached) " >&6
  3720. else
  3721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3722. /* end confdefs.h. */
  3723. int
  3724. main ()
  3725. {
  3726. ;
  3727. return 0;
  3728. }
  3729. _ACEOF
  3730. rm -f conftest.o conftest.obj
  3731. if { { ac_try="$ac_compile"
  3732. case "(($ac_try" in
  3733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3734. *) ac_try_echo=$ac_try;;
  3735. esac
  3736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3737. $as_echo "$ac_try_echo"; } >&5
  3738. (eval "$ac_compile") 2>&5
  3739. ac_status=$?
  3740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3741. test $ac_status = 0; }; then :
  3742. for ac_file in conftest.o conftest.obj conftest.*; do
  3743. test -f "$ac_file" || continue;
  3744. case $ac_file in
  3745. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3746. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3747. break;;
  3748. esac
  3749. done
  3750. else
  3751. $as_echo "$as_me: failed program was:" >&5
  3752. sed 's/^/| /' conftest.$ac_ext >&5
  3753. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3754. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3755. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3756. See \`config.log' for more details" "$LINENO" 5; }
  3757. fi
  3758. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3761. $as_echo "$ac_cv_objext" >&6; }
  3762. OBJEXT=$ac_cv_objext
  3763. ac_objext=$OBJEXT
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3765. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3766. if ${ac_cv_c_compiler_gnu+:} false; then :
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3770. /* end confdefs.h. */
  3771. int
  3772. main ()
  3773. {
  3774. #ifndef __GNUC__
  3775. choke me
  3776. #endif
  3777. ;
  3778. return 0;
  3779. }
  3780. _ACEOF
  3781. if ac_fn_c_try_compile "$LINENO"; then :
  3782. ac_compiler_gnu=yes
  3783. else
  3784. ac_compiler_gnu=no
  3785. fi
  3786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3787. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3788. fi
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3790. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3791. if test $ac_compiler_gnu = yes; then
  3792. GCC=yes
  3793. else
  3794. GCC=
  3795. fi
  3796. ac_test_CFLAGS=${CFLAGS+set}
  3797. ac_save_CFLAGS=$CFLAGS
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3799. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3800. if ${ac_cv_prog_cc_g+:} false; then :
  3801. $as_echo_n "(cached) " >&6
  3802. else
  3803. ac_save_c_werror_flag=$ac_c_werror_flag
  3804. ac_c_werror_flag=yes
  3805. ac_cv_prog_cc_g=no
  3806. CFLAGS="-g"
  3807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3808. /* end confdefs.h. */
  3809. int
  3810. main ()
  3811. {
  3812. ;
  3813. return 0;
  3814. }
  3815. _ACEOF
  3816. if ac_fn_c_try_compile "$LINENO"; then :
  3817. ac_cv_prog_cc_g=yes
  3818. else
  3819. CFLAGS=""
  3820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3821. /* end confdefs.h. */
  3822. int
  3823. main ()
  3824. {
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. if ac_fn_c_try_compile "$LINENO"; then :
  3830. else
  3831. ac_c_werror_flag=$ac_save_c_werror_flag
  3832. CFLAGS="-g"
  3833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3834. /* end confdefs.h. */
  3835. int
  3836. main ()
  3837. {
  3838. ;
  3839. return 0;
  3840. }
  3841. _ACEOF
  3842. if ac_fn_c_try_compile "$LINENO"; then :
  3843. ac_cv_prog_cc_g=yes
  3844. fi
  3845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3846. fi
  3847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3848. fi
  3849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3850. ac_c_werror_flag=$ac_save_c_werror_flag
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3853. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3854. if test "$ac_test_CFLAGS" = set; then
  3855. CFLAGS=$ac_save_CFLAGS
  3856. elif test $ac_cv_prog_cc_g = yes; then
  3857. if test "$GCC" = yes; then
  3858. CFLAGS="-g -O2"
  3859. else
  3860. CFLAGS="-g"
  3861. fi
  3862. else
  3863. if test "$GCC" = yes; then
  3864. CFLAGS="-O2"
  3865. else
  3866. CFLAGS=
  3867. fi
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3870. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3871. if ${ac_cv_prog_cc_c89+:} false; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. ac_cv_prog_cc_c89=no
  3875. ac_save_CC=$CC
  3876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3877. /* end confdefs.h. */
  3878. #include <stdarg.h>
  3879. #include <stdio.h>
  3880. struct stat;
  3881. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3882. struct buf { int x; };
  3883. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3884. static char *e (p, i)
  3885. char **p;
  3886. int i;
  3887. {
  3888. return p[i];
  3889. }
  3890. static char *f (char * (*g) (char **, int), char **p, ...)
  3891. {
  3892. char *s;
  3893. va_list v;
  3894. va_start (v,p);
  3895. s = g (p, va_arg (v,int));
  3896. va_end (v);
  3897. return s;
  3898. }
  3899. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3900. function prototypes and stuff, but not '\xHH' hex character constants.
  3901. These don't provoke an error unfortunately, instead are silently treated
  3902. as 'x'. The following induces an error, until -std is added to get
  3903. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3904. array size at least. It's necessary to write '\x00'==0 to get something
  3905. that's true only with -std. */
  3906. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3907. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3908. inside strings and character constants. */
  3909. #define FOO(x) 'x'
  3910. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3911. int test (int i, double x);
  3912. struct s1 {int (*f) (int a);};
  3913. struct s2 {int (*f) (double a);};
  3914. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3915. int argc;
  3916. char **argv;
  3917. int
  3918. main ()
  3919. {
  3920. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3921. ;
  3922. return 0;
  3923. }
  3924. _ACEOF
  3925. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3926. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3927. do
  3928. CC="$ac_save_CC $ac_arg"
  3929. if ac_fn_c_try_compile "$LINENO"; then :
  3930. ac_cv_prog_cc_c89=$ac_arg
  3931. fi
  3932. rm -f core conftest.err conftest.$ac_objext
  3933. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3934. done
  3935. rm -f conftest.$ac_ext
  3936. CC=$ac_save_CC
  3937. fi
  3938. # AC_CACHE_VAL
  3939. case "x$ac_cv_prog_cc_c89" in
  3940. x)
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3942. $as_echo "none needed" >&6; } ;;
  3943. xno)
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3945. $as_echo "unsupported" >&6; } ;;
  3946. *)
  3947. CC="$CC $ac_cv_prog_cc_c89"
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3949. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3950. esac
  3951. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3952. fi
  3953. ac_ext=c
  3954. ac_cpp='$CPP $CPPFLAGS'
  3955. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3956. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3957. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3958. ac_ext=c
  3959. ac_cpp='$CPP $CPPFLAGS'
  3960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3964. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3965. if ${am_cv_prog_cc_c_o+:} false; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3969. /* end confdefs.h. */
  3970. int
  3971. main ()
  3972. {
  3973. ;
  3974. return 0;
  3975. }
  3976. _ACEOF
  3977. # Make sure it works both with $CC and with simple cc.
  3978. # Following AC_PROG_CC_C_O, we do the test twice because some
  3979. # compilers refuse to overwrite an existing .o file with -o,
  3980. # though they will create one.
  3981. am_cv_prog_cc_c_o=yes
  3982. for am_i in 1 2; do
  3983. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3984. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3985. ac_status=$?
  3986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3987. (exit $ac_status); } \
  3988. && test -f conftest2.$ac_objext; then
  3989. : OK
  3990. else
  3991. am_cv_prog_cc_c_o=no
  3992. break
  3993. fi
  3994. done
  3995. rm -f core conftest*
  3996. unset am_i
  3997. fi
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3999. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4000. if test "$am_cv_prog_cc_c_o" != yes; then
  4001. # Losing compiler, so override with the script.
  4002. # FIXME: It is wrong to rewrite CC.
  4003. # But if we don't then we get into trouble of one sort or another.
  4004. # A longer-term fix would be to have automake use am__CC in this case,
  4005. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4006. CC="$am_aux_dir/compile $CC"
  4007. fi
  4008. ac_ext=c
  4009. ac_cpp='$CPP $CPPFLAGS'
  4010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4013. DEPDIR="${am__leading_dot}deps"
  4014. ac_config_commands="$ac_config_commands depfiles"
  4015. am_make=${MAKE-make}
  4016. cat > confinc << 'END'
  4017. am__doit:
  4018. @echo this is the am__doit target
  4019. .PHONY: am__doit
  4020. END
  4021. # If we don't find an include directive, just comment out the code.
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4023. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4024. am__include="#"
  4025. am__quote=
  4026. _am_result=none
  4027. # First try GNU make style include.
  4028. echo "include confinc" > confmf
  4029. # Ignore all kinds of additional output from 'make'.
  4030. case `$am_make -s -f confmf 2> /dev/null` in #(
  4031. *the\ am__doit\ target*)
  4032. am__include=include
  4033. am__quote=
  4034. _am_result=GNU
  4035. ;;
  4036. esac
  4037. # Now try BSD make style include.
  4038. if test "$am__include" = "#"; then
  4039. echo '.include "confinc"' > confmf
  4040. case `$am_make -s -f confmf 2> /dev/null` in #(
  4041. *the\ am__doit\ target*)
  4042. am__include=.include
  4043. am__quote="\""
  4044. _am_result=BSD
  4045. ;;
  4046. esac
  4047. fi
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4049. $as_echo "$_am_result" >&6; }
  4050. rm -f confinc confmf
  4051. # Check whether --enable-dependency-tracking was given.
  4052. if test "${enable_dependency_tracking+set}" = set; then :
  4053. enableval=$enable_dependency_tracking;
  4054. fi
  4055. if test "x$enable_dependency_tracking" != xno; then
  4056. am_depcomp="$ac_aux_dir/depcomp"
  4057. AMDEPBACKSLASH='\'
  4058. am__nodep='_no'
  4059. fi
  4060. if test "x$enable_dependency_tracking" != xno; then
  4061. AMDEP_TRUE=
  4062. AMDEP_FALSE='#'
  4063. else
  4064. AMDEP_TRUE='#'
  4065. AMDEP_FALSE=
  4066. fi
  4067. depcc="$CC" am_compiler_list=
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4069. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4070. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4071. $as_echo_n "(cached) " >&6
  4072. else
  4073. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4074. # We make a subdir and do the tests there. Otherwise we can end up
  4075. # making bogus files that we don't know about and never remove. For
  4076. # instance it was reported that on HP-UX the gcc test will end up
  4077. # making a dummy file named 'D' -- because '-MD' means "put the output
  4078. # in D".
  4079. rm -rf conftest.dir
  4080. mkdir conftest.dir
  4081. # Copy depcomp to subdir because otherwise we won't find it if we're
  4082. # using a relative directory.
  4083. cp "$am_depcomp" conftest.dir
  4084. cd conftest.dir
  4085. # We will build objects and dependencies in a subdirectory because
  4086. # it helps to detect inapplicable dependency modes. For instance
  4087. # both Tru64's cc and ICC support -MD to output dependencies as a
  4088. # side effect of compilation, but ICC will put the dependencies in
  4089. # the current directory while Tru64 will put them in the object
  4090. # directory.
  4091. mkdir sub
  4092. am_cv_CC_dependencies_compiler_type=none
  4093. if test "$am_compiler_list" = ""; then
  4094. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4095. fi
  4096. am__universal=false
  4097. case " $depcc " in #(
  4098. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4099. esac
  4100. for depmode in $am_compiler_list; do
  4101. # Setup a source with many dependencies, because some compilers
  4102. # like to wrap large dependency lists on column 80 (with \), and
  4103. # we should not choose a depcomp mode which is confused by this.
  4104. #
  4105. # We need to recreate these files for each test, as the compiler may
  4106. # overwrite some of them when testing with obscure command lines.
  4107. # This happens at least with the AIX C compiler.
  4108. : > sub/conftest.c
  4109. for i in 1 2 3 4 5 6; do
  4110. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4111. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4112. # Solaris 10 /bin/sh.
  4113. echo '/* dummy */' > sub/conftst$i.h
  4114. done
  4115. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4116. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4117. # mode. It turns out that the SunPro C++ compiler does not properly
  4118. # handle '-M -o', and we need to detect this. Also, some Intel
  4119. # versions had trouble with output in subdirs.
  4120. am__obj=sub/conftest.${OBJEXT-o}
  4121. am__minus_obj="-o $am__obj"
  4122. case $depmode in
  4123. gcc)
  4124. # This depmode causes a compiler race in universal mode.
  4125. test "$am__universal" = false || continue
  4126. ;;
  4127. nosideeffect)
  4128. # After this tag, mechanisms are not by side-effect, so they'll
  4129. # only be used when explicitly requested.
  4130. if test "x$enable_dependency_tracking" = xyes; then
  4131. continue
  4132. else
  4133. break
  4134. fi
  4135. ;;
  4136. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4137. # This compiler won't grok '-c -o', but also, the minuso test has
  4138. # not run yet. These depmodes are late enough in the game, and
  4139. # so weak that their functioning should not be impacted.
  4140. am__obj=conftest.${OBJEXT-o}
  4141. am__minus_obj=
  4142. ;;
  4143. none) break ;;
  4144. esac
  4145. if depmode=$depmode \
  4146. source=sub/conftest.c object=$am__obj \
  4147. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4148. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4149. >/dev/null 2>conftest.err &&
  4150. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4151. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4152. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4153. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4154. # icc doesn't choke on unknown options, it will just issue warnings
  4155. # or remarks (even with -Werror). So we grep stderr for any message
  4156. # that says an option was ignored or not supported.
  4157. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4158. # icc: Command line warning: ignoring option '-M'; no argument required
  4159. # The diagnosis changed in icc 8.0:
  4160. # icc: Command line remark: option '-MP' not supported
  4161. if (grep 'ignoring option' conftest.err ||
  4162. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4163. am_cv_CC_dependencies_compiler_type=$depmode
  4164. break
  4165. fi
  4166. fi
  4167. done
  4168. cd ..
  4169. rm -rf conftest.dir
  4170. else
  4171. am_cv_CC_dependencies_compiler_type=none
  4172. fi
  4173. fi
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4175. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4176. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4177. if
  4178. test "x$enable_dependency_tracking" != xno \
  4179. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4180. am__fastdepCC_TRUE=
  4181. am__fastdepCC_FALSE='#'
  4182. else
  4183. am__fastdepCC_TRUE='#'
  4184. am__fastdepCC_FALSE=
  4185. fi
  4186. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  4187. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  4188. # in both places for now and restore CFLAGS at the end of config.
  4189. save_CFLAGS="$CFLAGS"
  4190. # Check whether --enable-werror was given.
  4191. if test "${enable_werror+set}" = set; then :
  4192. enableval=$enable_werror;
  4193. fi
  4194. # Add -Wall -Werror if we are using GCC.
  4195. if test "x$GCC" = "xyes"; then :
  4196. XCFLAGS="$XCFLAGS -Wall"
  4197. fi
  4198. if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
  4199. XCFLAGS="$XCFLAGS -Werror"
  4200. fi
  4201. # Find other programs we need.
  4202. if test -n "$ac_tool_prefix"; then
  4203. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4204. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4206. $as_echo_n "checking for $ac_word... " >&6; }
  4207. if ${ac_cv_prog_AR+:} false; then :
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. if test -n "$AR"; then
  4211. ac_cv_prog_AR="$AR" # Let the user override the test.
  4212. else
  4213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4214. for as_dir in $PATH
  4215. do
  4216. IFS=$as_save_IFS
  4217. test -z "$as_dir" && as_dir=.
  4218. for ac_exec_ext in '' $ac_executable_extensions; do
  4219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4220. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4222. break 2
  4223. fi
  4224. done
  4225. done
  4226. IFS=$as_save_IFS
  4227. fi
  4228. fi
  4229. AR=$ac_cv_prog_AR
  4230. if test -n "$AR"; then
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4232. $as_echo "$AR" >&6; }
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4235. $as_echo "no" >&6; }
  4236. fi
  4237. fi
  4238. if test -z "$ac_cv_prog_AR"; then
  4239. ac_ct_AR=$AR
  4240. # Extract the first word of "ar", so it can be a program name with args.
  4241. set dummy ar; ac_word=$2
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4243. $as_echo_n "checking for $ac_word... " >&6; }
  4244. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4245. $as_echo_n "(cached) " >&6
  4246. else
  4247. if test -n "$ac_ct_AR"; then
  4248. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4249. else
  4250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4251. for as_dir in $PATH
  4252. do
  4253. IFS=$as_save_IFS
  4254. test -z "$as_dir" && as_dir=.
  4255. for ac_exec_ext in '' $ac_executable_extensions; do
  4256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4257. ac_cv_prog_ac_ct_AR="ar"
  4258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4259. break 2
  4260. fi
  4261. done
  4262. done
  4263. IFS=$as_save_IFS
  4264. fi
  4265. fi
  4266. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4267. if test -n "$ac_ct_AR"; then
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4269. $as_echo "$ac_ct_AR" >&6; }
  4270. else
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4272. $as_echo "no" >&6; }
  4273. fi
  4274. if test "x$ac_ct_AR" = x; then
  4275. AR=""
  4276. else
  4277. case $cross_compiling:$ac_tool_warned in
  4278. yes:)
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4280. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4281. ac_tool_warned=yes ;;
  4282. esac
  4283. AR=$ac_ct_AR
  4284. fi
  4285. else
  4286. AR="$ac_cv_prog_AR"
  4287. fi
  4288. if test -n "$ac_tool_prefix"; then
  4289. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4290. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4292. $as_echo_n "checking for $ac_word... " >&6; }
  4293. if ${ac_cv_prog_RANLIB+:} false; then :
  4294. $as_echo_n "(cached) " >&6
  4295. else
  4296. if test -n "$RANLIB"; then
  4297. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4298. else
  4299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4300. for as_dir in $PATH
  4301. do
  4302. IFS=$as_save_IFS
  4303. test -z "$as_dir" && as_dir=.
  4304. for ac_exec_ext in '' $ac_executable_extensions; do
  4305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4306. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4308. break 2
  4309. fi
  4310. done
  4311. done
  4312. IFS=$as_save_IFS
  4313. fi
  4314. fi
  4315. RANLIB=$ac_cv_prog_RANLIB
  4316. if test -n "$RANLIB"; then
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4318. $as_echo "$RANLIB" >&6; }
  4319. else
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4321. $as_echo "no" >&6; }
  4322. fi
  4323. fi
  4324. if test -z "$ac_cv_prog_RANLIB"; then
  4325. ac_ct_RANLIB=$RANLIB
  4326. # Extract the first word of "ranlib", so it can be a program name with args.
  4327. set dummy ranlib; ac_word=$2
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4329. $as_echo_n "checking for $ac_word... " >&6; }
  4330. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4331. $as_echo_n "(cached) " >&6
  4332. else
  4333. if test -n "$ac_ct_RANLIB"; then
  4334. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4335. else
  4336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4337. for as_dir in $PATH
  4338. do
  4339. IFS=$as_save_IFS
  4340. test -z "$as_dir" && as_dir=.
  4341. for ac_exec_ext in '' $ac_executable_extensions; do
  4342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4343. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4345. break 2
  4346. fi
  4347. done
  4348. done
  4349. IFS=$as_save_IFS
  4350. fi
  4351. fi
  4352. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4353. if test -n "$ac_ct_RANLIB"; then
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4355. $as_echo "$ac_ct_RANLIB" >&6; }
  4356. else
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4358. $as_echo "no" >&6; }
  4359. fi
  4360. if test "x$ac_ct_RANLIB" = x; then
  4361. RANLIB="ranlib-not-found-in-path-error"
  4362. else
  4363. case $cross_compiling:$ac_tool_warned in
  4364. yes:)
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4367. ac_tool_warned=yes ;;
  4368. esac
  4369. RANLIB=$ac_ct_RANLIB
  4370. fi
  4371. else
  4372. RANLIB="$ac_cv_prog_RANLIB"
  4373. fi
  4374. # Extract the first word of "perl", so it can be a program name with args.
  4375. set dummy perl; ac_word=$2
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4377. $as_echo_n "checking for $ac_word... " >&6; }
  4378. if ${ac_cv_path_PERL+:} false; then :
  4379. $as_echo_n "(cached) " >&6
  4380. else
  4381. case $PERL in
  4382. [\\/]* | ?:[\\/]*)
  4383. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4384. ;;
  4385. *)
  4386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4387. for as_dir in $PATH
  4388. do
  4389. IFS=$as_save_IFS
  4390. test -z "$as_dir" && as_dir=.
  4391. for ac_exec_ext in '' $ac_executable_extensions; do
  4392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4393. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4395. break 2
  4396. fi
  4397. done
  4398. done
  4399. IFS=$as_save_IFS
  4400. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  4401. ;;
  4402. esac
  4403. fi
  4404. PERL=$ac_cv_path_PERL
  4405. if test -n "$PERL"; then
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4407. $as_echo "$PERL" >&6; }
  4408. else
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4410. $as_echo "no" >&6; }
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4413. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4414. set x ${MAKE-make}
  4415. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4416. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. cat >conftest.make <<\_ACEOF
  4420. SHELL = /bin/sh
  4421. all:
  4422. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4423. _ACEOF
  4424. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4425. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4426. *@@@%%%=?*=@@@%%%*)
  4427. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4428. *)
  4429. eval ac_cv_prog_make_${ac_make}_set=no;;
  4430. esac
  4431. rm -f conftest.make
  4432. fi
  4433. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4435. $as_echo "yes" >&6; }
  4436. SET_MAKE=
  4437. else
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4439. $as_echo "no" >&6; }
  4440. SET_MAKE="MAKE=${MAKE-make}"
  4441. fi
  4442. # See if makeinfo has been installed and is modern enough
  4443. # that we can use it.
  4444. # Extract the first word of "makeinfo", so it can be a program name with args.
  4445. set dummy makeinfo; ac_word=$2
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4447. $as_echo_n "checking for $ac_word... " >&6; }
  4448. if ${ac_cv_prog_MAKEINFO+:} false; then :
  4449. $as_echo_n "(cached) " >&6
  4450. else
  4451. if test -n "$MAKEINFO"; then
  4452. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  4453. else
  4454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4455. for as_dir in $PATH
  4456. do
  4457. IFS=$as_save_IFS
  4458. test -z "$as_dir" && as_dir=.
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4461. ac_cv_prog_MAKEINFO="makeinfo"
  4462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4463. break 2
  4464. fi
  4465. done
  4466. done
  4467. IFS=$as_save_IFS
  4468. fi
  4469. fi
  4470. MAKEINFO=$ac_cv_prog_MAKEINFO
  4471. if test -n "$MAKEINFO"; then
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  4473. $as_echo "$MAKEINFO" >&6; }
  4474. else
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4476. $as_echo "no" >&6; }
  4477. fi
  4478. if test -n "$MAKEINFO"; then
  4479. # Found it, now check the version.
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  4481. $as_echo_n "checking for modern makeinfo... " >&6; }
  4482. if ${gcc_cv_prog_makeinfo_modern+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  4486. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  4487. case $ac_prog_version in
  4488. '') gcc_cv_prog_makeinfo_modern=no;;
  4489. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  4490. *) gcc_cv_prog_makeinfo_modern=no;;
  4491. esac
  4492. fi
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  4494. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  4495. else
  4496. gcc_cv_prog_makeinfo_modern=no
  4497. fi
  4498. if test $gcc_cv_prog_makeinfo_modern = no; then
  4499. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  4500. fi
  4501. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  4502. BUILD_INFO_TRUE=
  4503. BUILD_INFO_FALSE='#'
  4504. else
  4505. BUILD_INFO_TRUE='#'
  4506. BUILD_INFO_FALSE=
  4507. fi
  4508. # Configure libtool
  4509. case `pwd` in
  4510. *\ * | *\ *)
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4512. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4513. esac
  4514. macro_version='2.2.7a'
  4515. macro_revision='1.3134'
  4516. ltmain="$ac_aux_dir/ltmain.sh"
  4517. # Backslashify metacharacters that are still active within
  4518. # double-quoted strings.
  4519. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4520. # Same as above, but do not quote variable references.
  4521. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4522. # Sed substitution to delay expansion of an escaped shell variable in a
  4523. # double_quote_subst'ed string.
  4524. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4525. # Sed substitution to delay expansion of an escaped single quote.
  4526. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4527. # Sed substitution to avoid accidental globbing in evaled expressions
  4528. no_glob_subst='s/\*/\\\*/g'
  4529. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4530. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4531. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4533. $as_echo_n "checking how to print strings... " >&6; }
  4534. # Test print first, because it will be a builtin if present.
  4535. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4536. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4537. ECHO='print -r --'
  4538. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4539. ECHO='printf %s\n'
  4540. else
  4541. # Use this function as a fallback that always works.
  4542. func_fallback_echo ()
  4543. {
  4544. eval 'cat <<_LTECHO_EOF
  4545. $1
  4546. _LTECHO_EOF'
  4547. }
  4548. ECHO='func_fallback_echo'
  4549. fi
  4550. # func_echo_all arg...
  4551. # Invoke $ECHO with all args, space-separated.
  4552. func_echo_all ()
  4553. {
  4554. $ECHO ""
  4555. }
  4556. case "$ECHO" in
  4557. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4558. $as_echo "printf" >&6; } ;;
  4559. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4560. $as_echo "print -r" >&6; } ;;
  4561. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4562. $as_echo "cat" >&6; } ;;
  4563. esac
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4565. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4566. if ${ac_cv_path_SED+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4570. for ac_i in 1 2 3 4 5 6 7; do
  4571. ac_script="$ac_script$as_nl$ac_script"
  4572. done
  4573. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4574. { ac_script=; unset ac_script;}
  4575. if test -z "$SED"; then
  4576. ac_path_SED_found=false
  4577. # Loop through the user's path and test for each of PROGNAME-LIST
  4578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4579. for as_dir in $PATH
  4580. do
  4581. IFS=$as_save_IFS
  4582. test -z "$as_dir" && as_dir=.
  4583. for ac_prog in sed gsed; do
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4586. as_fn_executable_p "$ac_path_SED" || continue
  4587. # Check for GNU ac_path_SED and select it if it is found.
  4588. # Check for GNU $ac_path_SED
  4589. case `"$ac_path_SED" --version 2>&1` in
  4590. *GNU*)
  4591. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4592. *)
  4593. ac_count=0
  4594. $as_echo_n 0123456789 >"conftest.in"
  4595. while :
  4596. do
  4597. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4598. mv "conftest.tmp" "conftest.in"
  4599. cp "conftest.in" "conftest.nl"
  4600. $as_echo '' >> "conftest.nl"
  4601. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4602. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4603. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4604. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4605. # Best one so far, save it but keep looking for a better one
  4606. ac_cv_path_SED="$ac_path_SED"
  4607. ac_path_SED_max=$ac_count
  4608. fi
  4609. # 10*(2^10) chars as input seems more than enough
  4610. test $ac_count -gt 10 && break
  4611. done
  4612. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4613. esac
  4614. $ac_path_SED_found && break 3
  4615. done
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. if test -z "$ac_cv_path_SED"; then
  4620. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4621. fi
  4622. else
  4623. ac_cv_path_SED=$SED
  4624. fi
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4627. $as_echo "$ac_cv_path_SED" >&6; }
  4628. SED="$ac_cv_path_SED"
  4629. rm -f conftest.sed
  4630. test -z "$SED" && SED=sed
  4631. Xsed="$SED -e 1s/^X//"
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4633. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4634. if ${ac_cv_path_GREP+:} false; then :
  4635. $as_echo_n "(cached) " >&6
  4636. else
  4637. if test -z "$GREP"; then
  4638. ac_path_GREP_found=false
  4639. # Loop through the user's path and test for each of PROGNAME-LIST
  4640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4641. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4642. do
  4643. IFS=$as_save_IFS
  4644. test -z "$as_dir" && as_dir=.
  4645. for ac_prog in grep ggrep; do
  4646. for ac_exec_ext in '' $ac_executable_extensions; do
  4647. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4648. as_fn_executable_p "$ac_path_GREP" || continue
  4649. # Check for GNU ac_path_GREP and select it if it is found.
  4650. # Check for GNU $ac_path_GREP
  4651. case `"$ac_path_GREP" --version 2>&1` in
  4652. *GNU*)
  4653. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4654. *)
  4655. ac_count=0
  4656. $as_echo_n 0123456789 >"conftest.in"
  4657. while :
  4658. do
  4659. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4660. mv "conftest.tmp" "conftest.in"
  4661. cp "conftest.in" "conftest.nl"
  4662. $as_echo 'GREP' >> "conftest.nl"
  4663. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4664. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4665. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4666. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4667. # Best one so far, save it but keep looking for a better one
  4668. ac_cv_path_GREP="$ac_path_GREP"
  4669. ac_path_GREP_max=$ac_count
  4670. fi
  4671. # 10*(2^10) chars as input seems more than enough
  4672. test $ac_count -gt 10 && break
  4673. done
  4674. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4675. esac
  4676. $ac_path_GREP_found && break 3
  4677. done
  4678. done
  4679. done
  4680. IFS=$as_save_IFS
  4681. if test -z "$ac_cv_path_GREP"; then
  4682. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4683. fi
  4684. else
  4685. ac_cv_path_GREP=$GREP
  4686. fi
  4687. fi
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4689. $as_echo "$ac_cv_path_GREP" >&6; }
  4690. GREP="$ac_cv_path_GREP"
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4692. $as_echo_n "checking for egrep... " >&6; }
  4693. if ${ac_cv_path_EGREP+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4697. then ac_cv_path_EGREP="$GREP -E"
  4698. else
  4699. if test -z "$EGREP"; then
  4700. ac_path_EGREP_found=false
  4701. # Loop through the user's path and test for each of PROGNAME-LIST
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4704. do
  4705. IFS=$as_save_IFS
  4706. test -z "$as_dir" && as_dir=.
  4707. for ac_prog in egrep; do
  4708. for ac_exec_ext in '' $ac_executable_extensions; do
  4709. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4710. as_fn_executable_p "$ac_path_EGREP" || continue
  4711. # Check for GNU ac_path_EGREP and select it if it is found.
  4712. # Check for GNU $ac_path_EGREP
  4713. case `"$ac_path_EGREP" --version 2>&1` in
  4714. *GNU*)
  4715. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4716. *)
  4717. ac_count=0
  4718. $as_echo_n 0123456789 >"conftest.in"
  4719. while :
  4720. do
  4721. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4722. mv "conftest.tmp" "conftest.in"
  4723. cp "conftest.in" "conftest.nl"
  4724. $as_echo 'EGREP' >> "conftest.nl"
  4725. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4726. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4727. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4728. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4729. # Best one so far, save it but keep looking for a better one
  4730. ac_cv_path_EGREP="$ac_path_EGREP"
  4731. ac_path_EGREP_max=$ac_count
  4732. fi
  4733. # 10*(2^10) chars as input seems more than enough
  4734. test $ac_count -gt 10 && break
  4735. done
  4736. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4737. esac
  4738. $ac_path_EGREP_found && break 3
  4739. done
  4740. done
  4741. done
  4742. IFS=$as_save_IFS
  4743. if test -z "$ac_cv_path_EGREP"; then
  4744. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4745. fi
  4746. else
  4747. ac_cv_path_EGREP=$EGREP
  4748. fi
  4749. fi
  4750. fi
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4752. $as_echo "$ac_cv_path_EGREP" >&6; }
  4753. EGREP="$ac_cv_path_EGREP"
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4755. $as_echo_n "checking for fgrep... " >&6; }
  4756. if ${ac_cv_path_FGREP+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4760. then ac_cv_path_FGREP="$GREP -F"
  4761. else
  4762. if test -z "$FGREP"; then
  4763. ac_path_FGREP_found=false
  4764. # Loop through the user's path and test for each of PROGNAME-LIST
  4765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4766. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4767. do
  4768. IFS=$as_save_IFS
  4769. test -z "$as_dir" && as_dir=.
  4770. for ac_prog in fgrep; do
  4771. for ac_exec_ext in '' $ac_executable_extensions; do
  4772. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4773. as_fn_executable_p "$ac_path_FGREP" || continue
  4774. # Check for GNU ac_path_FGREP and select it if it is found.
  4775. # Check for GNU $ac_path_FGREP
  4776. case `"$ac_path_FGREP" --version 2>&1` in
  4777. *GNU*)
  4778. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4779. *)
  4780. ac_count=0
  4781. $as_echo_n 0123456789 >"conftest.in"
  4782. while :
  4783. do
  4784. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4785. mv "conftest.tmp" "conftest.in"
  4786. cp "conftest.in" "conftest.nl"
  4787. $as_echo 'FGREP' >> "conftest.nl"
  4788. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4789. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4790. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4791. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4792. # Best one so far, save it but keep looking for a better one
  4793. ac_cv_path_FGREP="$ac_path_FGREP"
  4794. ac_path_FGREP_max=$ac_count
  4795. fi
  4796. # 10*(2^10) chars as input seems more than enough
  4797. test $ac_count -gt 10 && break
  4798. done
  4799. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4800. esac
  4801. $ac_path_FGREP_found && break 3
  4802. done
  4803. done
  4804. done
  4805. IFS=$as_save_IFS
  4806. if test -z "$ac_cv_path_FGREP"; then
  4807. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4808. fi
  4809. else
  4810. ac_cv_path_FGREP=$FGREP
  4811. fi
  4812. fi
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4815. $as_echo "$ac_cv_path_FGREP" >&6; }
  4816. FGREP="$ac_cv_path_FGREP"
  4817. test -z "$GREP" && GREP=grep
  4818. # Check whether --with-gnu-ld was given.
  4819. if test "${with_gnu_ld+set}" = set; then :
  4820. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4821. else
  4822. with_gnu_ld=no
  4823. fi
  4824. ac_prog=ld
  4825. if test "$GCC" = yes; then
  4826. # Check if gcc -print-prog-name=ld gives a path.
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4828. $as_echo_n "checking for ld used by $CC... " >&6; }
  4829. case $host in
  4830. *-*-mingw*)
  4831. # gcc leaves a trailing carriage return which upsets mingw
  4832. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4833. *)
  4834. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4835. esac
  4836. case $ac_prog in
  4837. # Accept absolute paths.
  4838. [\\/]* | ?:[\\/]*)
  4839. re_direlt='/[^/][^/]*/\.\./'
  4840. # Canonicalize the pathname of ld
  4841. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4842. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4843. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4844. done
  4845. test -z "$LD" && LD="$ac_prog"
  4846. ;;
  4847. "")
  4848. # If it fails, then pretend we aren't using GCC.
  4849. ac_prog=ld
  4850. ;;
  4851. *)
  4852. # If it is relative, then search for the first ld in PATH.
  4853. with_gnu_ld=unknown
  4854. ;;
  4855. esac
  4856. elif test "$with_gnu_ld" = yes; then
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4858. $as_echo_n "checking for GNU ld... " >&6; }
  4859. else
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4861. $as_echo_n "checking for non-GNU ld... " >&6; }
  4862. fi
  4863. if ${lt_cv_path_LD+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. if test -z "$LD"; then
  4867. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4868. for ac_dir in $PATH; do
  4869. IFS="$lt_save_ifs"
  4870. test -z "$ac_dir" && ac_dir=.
  4871. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4872. lt_cv_path_LD="$ac_dir/$ac_prog"
  4873. # Check to see if the program is GNU ld. I'd rather use --version,
  4874. # but apparently some variants of GNU ld only accept -v.
  4875. # Break only if it was the GNU/non-GNU ld that we prefer.
  4876. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4877. *GNU* | *'with BFD'*)
  4878. test "$with_gnu_ld" != no && break
  4879. ;;
  4880. *)
  4881. test "$with_gnu_ld" != yes && break
  4882. ;;
  4883. esac
  4884. fi
  4885. done
  4886. IFS="$lt_save_ifs"
  4887. else
  4888. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4889. fi
  4890. fi
  4891. LD="$lt_cv_path_LD"
  4892. if test -n "$LD"; then
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4894. $as_echo "$LD" >&6; }
  4895. else
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4897. $as_echo "no" >&6; }
  4898. fi
  4899. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4901. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4902. if ${lt_cv_prog_gnu_ld+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4906. case `$LD -v 2>&1 </dev/null` in
  4907. *GNU* | *'with BFD'*)
  4908. lt_cv_prog_gnu_ld=yes
  4909. ;;
  4910. *)
  4911. lt_cv_prog_gnu_ld=no
  4912. ;;
  4913. esac
  4914. fi
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4916. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4917. with_gnu_ld=$lt_cv_prog_gnu_ld
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4919. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4920. if ${lt_cv_path_NM+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. if test -n "$NM"; then
  4924. # Let the user override the test.
  4925. lt_cv_path_NM="$NM"
  4926. else
  4927. lt_nm_to_check="${ac_tool_prefix}nm"
  4928. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4929. lt_nm_to_check="$lt_nm_to_check nm"
  4930. fi
  4931. for lt_tmp_nm in $lt_nm_to_check; do
  4932. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4933. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4934. IFS="$lt_save_ifs"
  4935. test -z "$ac_dir" && ac_dir=.
  4936. tmp_nm="$ac_dir/$lt_tmp_nm"
  4937. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4938. # Check to see if the nm accepts a BSD-compat flag.
  4939. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4940. # nm: unknown option "B" ignored
  4941. # Tru64's nm complains that /dev/null is an invalid object file
  4942. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4943. */dev/null* | *'Invalid file or object type'*)
  4944. lt_cv_path_NM="$tmp_nm -B"
  4945. break
  4946. ;;
  4947. *)
  4948. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4949. */dev/null*)
  4950. lt_cv_path_NM="$tmp_nm -p"
  4951. break
  4952. ;;
  4953. *)
  4954. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4955. continue # so that we can try to find one that supports BSD flags
  4956. ;;
  4957. esac
  4958. ;;
  4959. esac
  4960. fi
  4961. done
  4962. IFS="$lt_save_ifs"
  4963. done
  4964. : ${lt_cv_path_NM=no}
  4965. fi
  4966. fi
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4968. $as_echo "$lt_cv_path_NM" >&6; }
  4969. if test "$lt_cv_path_NM" != "no"; then
  4970. NM="$lt_cv_path_NM"
  4971. else
  4972. # Didn't find any BSD compatible name lister, look for dumpbin.
  4973. if test -n "$DUMPBIN"; then :
  4974. # Let the user override the test.
  4975. else
  4976. if test -n "$ac_tool_prefix"; then
  4977. for ac_prog in dumpbin "link -dump"
  4978. do
  4979. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4980. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4982. $as_echo_n "checking for $ac_word... " >&6; }
  4983. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4984. $as_echo_n "(cached) " >&6
  4985. else
  4986. if test -n "$DUMPBIN"; then
  4987. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4988. else
  4989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4990. for as_dir in $PATH
  4991. do
  4992. IFS=$as_save_IFS
  4993. test -z "$as_dir" && as_dir=.
  4994. for ac_exec_ext in '' $ac_executable_extensions; do
  4995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4996. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4998. break 2
  4999. fi
  5000. done
  5001. done
  5002. IFS=$as_save_IFS
  5003. fi
  5004. fi
  5005. DUMPBIN=$ac_cv_prog_DUMPBIN
  5006. if test -n "$DUMPBIN"; then
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5008. $as_echo "$DUMPBIN" >&6; }
  5009. else
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5011. $as_echo "no" >&6; }
  5012. fi
  5013. test -n "$DUMPBIN" && break
  5014. done
  5015. fi
  5016. if test -z "$DUMPBIN"; then
  5017. ac_ct_DUMPBIN=$DUMPBIN
  5018. for ac_prog in dumpbin "link -dump"
  5019. do
  5020. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5021. set dummy $ac_prog; ac_word=$2
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5023. $as_echo_n "checking for $ac_word... " >&6; }
  5024. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5025. $as_echo_n "(cached) " >&6
  5026. else
  5027. if test -n "$ac_ct_DUMPBIN"; then
  5028. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5029. else
  5030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5031. for as_dir in $PATH
  5032. do
  5033. IFS=$as_save_IFS
  5034. test -z "$as_dir" && as_dir=.
  5035. for ac_exec_ext in '' $ac_executable_extensions; do
  5036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5037. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5039. break 2
  5040. fi
  5041. done
  5042. done
  5043. IFS=$as_save_IFS
  5044. fi
  5045. fi
  5046. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5047. if test -n "$ac_ct_DUMPBIN"; then
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5049. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5050. else
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5052. $as_echo "no" >&6; }
  5053. fi
  5054. test -n "$ac_ct_DUMPBIN" && break
  5055. done
  5056. if test "x$ac_ct_DUMPBIN" = x; then
  5057. DUMPBIN=":"
  5058. else
  5059. case $cross_compiling:$ac_tool_warned in
  5060. yes:)
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5063. ac_tool_warned=yes ;;
  5064. esac
  5065. DUMPBIN=$ac_ct_DUMPBIN
  5066. fi
  5067. fi
  5068. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5069. *COFF*)
  5070. DUMPBIN="$DUMPBIN -symbols"
  5071. ;;
  5072. *)
  5073. DUMPBIN=:
  5074. ;;
  5075. esac
  5076. fi
  5077. if test "$DUMPBIN" != ":"; then
  5078. NM="$DUMPBIN"
  5079. fi
  5080. fi
  5081. test -z "$NM" && NM=nm
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5083. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5084. if ${lt_cv_nm_interface+:} false; then :
  5085. $as_echo_n "(cached) " >&6
  5086. else
  5087. lt_cv_nm_interface="BSD nm"
  5088. echo "int some_variable = 0;" > conftest.$ac_ext
  5089. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5090. (eval "$ac_compile" 2>conftest.err)
  5091. cat conftest.err >&5
  5092. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5093. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5094. cat conftest.err >&5
  5095. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5096. cat conftest.out >&5
  5097. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5098. lt_cv_nm_interface="MS dumpbin"
  5099. fi
  5100. rm -f conftest*
  5101. fi
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5103. $as_echo "$lt_cv_nm_interface" >&6; }
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5105. $as_echo_n "checking whether ln -s works... " >&6; }
  5106. LN_S=$as_ln_s
  5107. if test "$LN_S" = "ln -s"; then
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5109. $as_echo "yes" >&6; }
  5110. else
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5112. $as_echo "no, using $LN_S" >&6; }
  5113. fi
  5114. # find the maximum length of command line arguments
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5116. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5117. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. i=0
  5121. teststring="ABCD"
  5122. case $build_os in
  5123. msdosdjgpp*)
  5124. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5125. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5126. # during glob expansion). Even if it were fixed, the result of this
  5127. # check would be larger than it should be.
  5128. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5129. ;;
  5130. gnu*)
  5131. # Under GNU Hurd, this test is not required because there is
  5132. # no limit to the length of command line arguments.
  5133. # Libtool will interpret -1 as no limit whatsoever
  5134. lt_cv_sys_max_cmd_len=-1;
  5135. ;;
  5136. cygwin* | mingw* | cegcc*)
  5137. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5138. # about 5 minutes as the teststring grows exponentially.
  5139. # Worse, since 9x/ME are not pre-emptively multitasking,
  5140. # you end up with a "frozen" computer, even though with patience
  5141. # the test eventually succeeds (with a max line length of 256k).
  5142. # Instead, let's just punt: use the minimum linelength reported by
  5143. # all of the supported platforms: 8192 (on NT/2K/XP).
  5144. lt_cv_sys_max_cmd_len=8192;
  5145. ;;
  5146. mint*)
  5147. # On MiNT this can take a long time and run out of memory.
  5148. lt_cv_sys_max_cmd_len=8192;
  5149. ;;
  5150. amigaos*)
  5151. # On AmigaOS with pdksh, this test takes hours, literally.
  5152. # So we just punt and use a minimum line length of 8192.
  5153. lt_cv_sys_max_cmd_len=8192;
  5154. ;;
  5155. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5156. # This has been around since 386BSD, at least. Likely further.
  5157. if test -x /sbin/sysctl; then
  5158. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5159. elif test -x /usr/sbin/sysctl; then
  5160. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5161. else
  5162. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5163. fi
  5164. # And add a safety zone
  5165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5166. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5167. ;;
  5168. interix*)
  5169. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5170. lt_cv_sys_max_cmd_len=196608
  5171. ;;
  5172. osf*)
  5173. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5174. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5175. # nice to cause kernel panics so lets avoid the loop below.
  5176. # First set a reasonable default.
  5177. lt_cv_sys_max_cmd_len=16384
  5178. #
  5179. if test -x /sbin/sysconfig; then
  5180. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5181. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5182. esac
  5183. fi
  5184. ;;
  5185. sco3.2v5*)
  5186. lt_cv_sys_max_cmd_len=102400
  5187. ;;
  5188. sysv5* | sco5v6* | sysv4.2uw2*)
  5189. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5190. if test -n "$kargmax"; then
  5191. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5192. else
  5193. lt_cv_sys_max_cmd_len=32768
  5194. fi
  5195. ;;
  5196. *)
  5197. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5198. if test -n "$lt_cv_sys_max_cmd_len"; then
  5199. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5200. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5201. else
  5202. # Make teststring a little bigger before we do anything with it.
  5203. # a 1K string should be a reasonable start.
  5204. for i in 1 2 3 4 5 6 7 8 ; do
  5205. teststring=$teststring$teststring
  5206. done
  5207. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5208. # If test is not a shell built-in, we'll probably end up computing a
  5209. # maximum length that is only half of the actual maximum length, but
  5210. # we can't tell.
  5211. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5212. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5213. test $i != 17 # 1/2 MB should be enough
  5214. do
  5215. i=`expr $i + 1`
  5216. teststring=$teststring$teststring
  5217. done
  5218. # Only check the string length outside the loop.
  5219. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5220. teststring=
  5221. # Add a significant safety factor because C++ compilers can tack on
  5222. # massive amounts of additional arguments before passing them to the
  5223. # linker. It appears as though 1/2 is a usable value.
  5224. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5225. fi
  5226. ;;
  5227. esac
  5228. fi
  5229. if test -n $lt_cv_sys_max_cmd_len ; then
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5231. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5232. else
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5234. $as_echo "none" >&6; }
  5235. fi
  5236. max_cmd_len=$lt_cv_sys_max_cmd_len
  5237. : ${CP="cp -f"}
  5238. : ${MV="mv -f"}
  5239. : ${RM="rm -f"}
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5241. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5242. # Try some XSI features
  5243. xsi_shell=no
  5244. ( _lt_dummy="a/b/c"
  5245. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5246. = c,a/b,, \
  5247. && eval 'test $(( 1 + 1 )) -eq 2 \
  5248. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5249. && xsi_shell=yes
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5251. $as_echo "$xsi_shell" >&6; }
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5253. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5254. lt_shell_append=no
  5255. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5256. >/dev/null 2>&1 \
  5257. && lt_shell_append=yes
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5259. $as_echo "$lt_shell_append" >&6; }
  5260. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5261. lt_unset=unset
  5262. else
  5263. lt_unset=false
  5264. fi
  5265. # test EBCDIC or ASCII
  5266. case `echo X|tr X '\101'` in
  5267. A) # ASCII based system
  5268. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5269. lt_SP2NL='tr \040 \012'
  5270. lt_NL2SP='tr \015\012 \040\040'
  5271. ;;
  5272. *) # EBCDIC based system
  5273. lt_SP2NL='tr \100 \n'
  5274. lt_NL2SP='tr \r\n \100\100'
  5275. ;;
  5276. esac
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5278. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5279. if ${lt_cv_ld_reload_flag+:} false; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. lt_cv_ld_reload_flag='-r'
  5283. fi
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5285. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5286. reload_flag=$lt_cv_ld_reload_flag
  5287. case $reload_flag in
  5288. "" | " "*) ;;
  5289. *) reload_flag=" $reload_flag" ;;
  5290. esac
  5291. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5292. case $host_os in
  5293. darwin*)
  5294. if test "$GCC" = yes; then
  5295. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5296. else
  5297. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5298. fi
  5299. ;;
  5300. esac
  5301. if test -n "$ac_tool_prefix"; then
  5302. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5303. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5305. $as_echo_n "checking for $ac_word... " >&6; }
  5306. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. if test -n "$OBJDUMP"; then
  5310. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5311. else
  5312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5313. for as_dir in $PATH
  5314. do
  5315. IFS=$as_save_IFS
  5316. test -z "$as_dir" && as_dir=.
  5317. for ac_exec_ext in '' $ac_executable_extensions; do
  5318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5319. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5321. break 2
  5322. fi
  5323. done
  5324. done
  5325. IFS=$as_save_IFS
  5326. fi
  5327. fi
  5328. OBJDUMP=$ac_cv_prog_OBJDUMP
  5329. if test -n "$OBJDUMP"; then
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5331. $as_echo "$OBJDUMP" >&6; }
  5332. else
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5334. $as_echo "no" >&6; }
  5335. fi
  5336. fi
  5337. if test -z "$ac_cv_prog_OBJDUMP"; then
  5338. ac_ct_OBJDUMP=$OBJDUMP
  5339. # Extract the first word of "objdump", so it can be a program name with args.
  5340. set dummy objdump; ac_word=$2
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. $as_echo_n "checking for $ac_word... " >&6; }
  5343. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. if test -n "$ac_ct_OBJDUMP"; then
  5347. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5348. else
  5349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5350. for as_dir in $PATH
  5351. do
  5352. IFS=$as_save_IFS
  5353. test -z "$as_dir" && as_dir=.
  5354. for ac_exec_ext in '' $ac_executable_extensions; do
  5355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5356. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5358. break 2
  5359. fi
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. fi
  5364. fi
  5365. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5366. if test -n "$ac_ct_OBJDUMP"; then
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5368. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5369. else
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5371. $as_echo "no" >&6; }
  5372. fi
  5373. if test "x$ac_ct_OBJDUMP" = x; then
  5374. OBJDUMP="false"
  5375. else
  5376. case $cross_compiling:$ac_tool_warned in
  5377. yes:)
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5380. ac_tool_warned=yes ;;
  5381. esac
  5382. OBJDUMP=$ac_ct_OBJDUMP
  5383. fi
  5384. else
  5385. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5386. fi
  5387. test -z "$OBJDUMP" && OBJDUMP=objdump
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5389. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5390. if ${lt_cv_deplibs_check_method+:} false; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5394. lt_cv_file_magic_test_file=
  5395. lt_cv_deplibs_check_method='unknown'
  5396. # Need to set the preceding variable on all platforms that support
  5397. # interlibrary dependencies.
  5398. # 'none' -- dependencies not supported.
  5399. # `unknown' -- same as none, but documents that we really don't know.
  5400. # 'pass_all' -- all dependencies passed with no checks.
  5401. # 'test_compile' -- check by making test program.
  5402. # 'file_magic [[regex]]' -- check by looking for files in library path
  5403. # which responds to the $file_magic_cmd with a given extended regex.
  5404. # If you have `file' or equivalent on your system and you're not sure
  5405. # whether `pass_all' will *always* work, you probably want this one.
  5406. case $host_os in
  5407. aix[4-9]*)
  5408. lt_cv_deplibs_check_method=pass_all
  5409. ;;
  5410. beos*)
  5411. lt_cv_deplibs_check_method=pass_all
  5412. ;;
  5413. bsdi[45]*)
  5414. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5415. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5416. lt_cv_file_magic_test_file=/shlib/libc.so
  5417. ;;
  5418. cygwin*)
  5419. # func_win32_libid is a shell function defined in ltmain.sh
  5420. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5421. lt_cv_file_magic_cmd='func_win32_libid'
  5422. ;;
  5423. mingw* | pw32*)
  5424. # Base MSYS/MinGW do not provide the 'file' command needed by
  5425. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5426. # unless we find 'file', for example because we are cross-compiling.
  5427. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5428. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5429. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5430. lt_cv_file_magic_cmd='func_win32_libid'
  5431. else
  5432. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5433. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5434. fi
  5435. ;;
  5436. cegcc*)
  5437. # use the weaker test based on 'objdump'. See mingw*.
  5438. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5439. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5440. ;;
  5441. darwin* | rhapsody*)
  5442. lt_cv_deplibs_check_method=pass_all
  5443. ;;
  5444. freebsd* | dragonfly*)
  5445. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5446. case $host_cpu in
  5447. i*86 )
  5448. # Not sure whether the presence of OpenBSD here was a mistake.
  5449. # Let's accept both of them until this is cleared up.
  5450. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5451. lt_cv_file_magic_cmd=/usr/bin/file
  5452. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5453. ;;
  5454. esac
  5455. else
  5456. lt_cv_deplibs_check_method=pass_all
  5457. fi
  5458. ;;
  5459. gnu*)
  5460. lt_cv_deplibs_check_method=pass_all
  5461. ;;
  5462. haiku*)
  5463. lt_cv_deplibs_check_method=pass_all
  5464. ;;
  5465. hpux10.20* | hpux11*)
  5466. lt_cv_file_magic_cmd=/usr/bin/file
  5467. case $host_cpu in
  5468. ia64*)
  5469. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5470. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5471. ;;
  5472. hppa*64*)
  5473. 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]'
  5474. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5475. ;;
  5476. *)
  5477. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5478. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5479. ;;
  5480. esac
  5481. ;;
  5482. interix[3-9]*)
  5483. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5485. ;;
  5486. irix5* | irix6* | nonstopux*)
  5487. case $LD in
  5488. *-32|*"-32 ") libmagic=32-bit;;
  5489. *-n32|*"-n32 ") libmagic=N32;;
  5490. *-64|*"-64 ") libmagic=64-bit;;
  5491. *) libmagic=never-match;;
  5492. esac
  5493. lt_cv_deplibs_check_method=pass_all
  5494. ;;
  5495. # This must be Linux ELF.
  5496. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5497. lt_cv_deplibs_check_method=pass_all
  5498. ;;
  5499. netbsd*)
  5500. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5501. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5502. else
  5503. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5504. fi
  5505. ;;
  5506. newos6*)
  5507. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5508. lt_cv_file_magic_cmd=/usr/bin/file
  5509. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5510. ;;
  5511. *nto* | *qnx*)
  5512. lt_cv_deplibs_check_method=pass_all
  5513. ;;
  5514. openbsd*)
  5515. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5516. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5517. else
  5518. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5519. fi
  5520. ;;
  5521. osf3* | osf4* | osf5*)
  5522. lt_cv_deplibs_check_method=pass_all
  5523. ;;
  5524. rdos*)
  5525. lt_cv_deplibs_check_method=pass_all
  5526. ;;
  5527. solaris*)
  5528. lt_cv_deplibs_check_method=pass_all
  5529. ;;
  5530. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5531. lt_cv_deplibs_check_method=pass_all
  5532. ;;
  5533. sysv4 | sysv4.3*)
  5534. case $host_vendor in
  5535. motorola)
  5536. 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]'
  5537. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5538. ;;
  5539. ncr)
  5540. lt_cv_deplibs_check_method=pass_all
  5541. ;;
  5542. sequent)
  5543. lt_cv_file_magic_cmd='/bin/file'
  5544. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5545. ;;
  5546. sni)
  5547. lt_cv_file_magic_cmd='/bin/file'
  5548. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5549. lt_cv_file_magic_test_file=/lib/libc.so
  5550. ;;
  5551. siemens)
  5552. lt_cv_deplibs_check_method=pass_all
  5553. ;;
  5554. pc)
  5555. lt_cv_deplibs_check_method=pass_all
  5556. ;;
  5557. esac
  5558. ;;
  5559. tpf*)
  5560. lt_cv_deplibs_check_method=pass_all
  5561. ;;
  5562. esac
  5563. fi
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5565. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5566. file_magic_cmd=$lt_cv_file_magic_cmd
  5567. deplibs_check_method=$lt_cv_deplibs_check_method
  5568. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5569. if test -n "$ac_tool_prefix"; then
  5570. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5571. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5573. $as_echo_n "checking for $ac_word... " >&6; }
  5574. if ${ac_cv_prog_AR+:} false; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. if test -n "$AR"; then
  5578. ac_cv_prog_AR="$AR" # Let the user override the test.
  5579. else
  5580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5581. for as_dir in $PATH
  5582. do
  5583. IFS=$as_save_IFS
  5584. test -z "$as_dir" && as_dir=.
  5585. for ac_exec_ext in '' $ac_executable_extensions; do
  5586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5587. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5589. break 2
  5590. fi
  5591. done
  5592. done
  5593. IFS=$as_save_IFS
  5594. fi
  5595. fi
  5596. AR=$ac_cv_prog_AR
  5597. if test -n "$AR"; then
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5599. $as_echo "$AR" >&6; }
  5600. else
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5602. $as_echo "no" >&6; }
  5603. fi
  5604. fi
  5605. if test -z "$ac_cv_prog_AR"; then
  5606. ac_ct_AR=$AR
  5607. # Extract the first word of "ar", so it can be a program name with args.
  5608. set dummy ar; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$ac_ct_AR"; then
  5615. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5624. ac_cv_prog_ac_ct_AR="ar"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5634. if test -n "$ac_ct_AR"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5636. $as_echo "$ac_ct_AR" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. if test "x$ac_ct_AR" = x; then
  5642. AR="false"
  5643. else
  5644. case $cross_compiling:$ac_tool_warned in
  5645. yes:)
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5648. ac_tool_warned=yes ;;
  5649. esac
  5650. AR=$ac_ct_AR
  5651. fi
  5652. else
  5653. AR="$ac_cv_prog_AR"
  5654. fi
  5655. test -z "$AR" && AR=ar
  5656. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5657. if test -n "$ac_tool_prefix"; then
  5658. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5659. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5661. $as_echo_n "checking for $ac_word... " >&6; }
  5662. if ${ac_cv_prog_STRIP+:} false; then :
  5663. $as_echo_n "(cached) " >&6
  5664. else
  5665. if test -n "$STRIP"; then
  5666. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5667. else
  5668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5669. for as_dir in $PATH
  5670. do
  5671. IFS=$as_save_IFS
  5672. test -z "$as_dir" && as_dir=.
  5673. for ac_exec_ext in '' $ac_executable_extensions; do
  5674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5675. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5677. break 2
  5678. fi
  5679. done
  5680. done
  5681. IFS=$as_save_IFS
  5682. fi
  5683. fi
  5684. STRIP=$ac_cv_prog_STRIP
  5685. if test -n "$STRIP"; then
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5687. $as_echo "$STRIP" >&6; }
  5688. else
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. fi
  5692. fi
  5693. if test -z "$ac_cv_prog_STRIP"; then
  5694. ac_ct_STRIP=$STRIP
  5695. # Extract the first word of "strip", so it can be a program name with args.
  5696. set dummy strip; ac_word=$2
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. $as_echo_n "checking for $ac_word... " >&6; }
  5699. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. if test -n "$ac_ct_STRIP"; then
  5703. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5704. else
  5705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5706. for as_dir in $PATH
  5707. do
  5708. IFS=$as_save_IFS
  5709. test -z "$as_dir" && as_dir=.
  5710. for ac_exec_ext in '' $ac_executable_extensions; do
  5711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5712. ac_cv_prog_ac_ct_STRIP="strip"
  5713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5714. break 2
  5715. fi
  5716. done
  5717. done
  5718. IFS=$as_save_IFS
  5719. fi
  5720. fi
  5721. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5722. if test -n "$ac_ct_STRIP"; then
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5724. $as_echo "$ac_ct_STRIP" >&6; }
  5725. else
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5727. $as_echo "no" >&6; }
  5728. fi
  5729. if test "x$ac_ct_STRIP" = x; then
  5730. STRIP=":"
  5731. else
  5732. case $cross_compiling:$ac_tool_warned in
  5733. yes:)
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5735. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5736. ac_tool_warned=yes ;;
  5737. esac
  5738. STRIP=$ac_ct_STRIP
  5739. fi
  5740. else
  5741. STRIP="$ac_cv_prog_STRIP"
  5742. fi
  5743. test -z "$STRIP" && STRIP=:
  5744. if test -n "$ac_tool_prefix"; then
  5745. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5746. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5748. $as_echo_n "checking for $ac_word... " >&6; }
  5749. if ${ac_cv_prog_RANLIB+:} false; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. if test -n "$RANLIB"; then
  5753. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5754. else
  5755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5756. for as_dir in $PATH
  5757. do
  5758. IFS=$as_save_IFS
  5759. test -z "$as_dir" && as_dir=.
  5760. for ac_exec_ext in '' $ac_executable_extensions; do
  5761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5762. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5764. break 2
  5765. fi
  5766. done
  5767. done
  5768. IFS=$as_save_IFS
  5769. fi
  5770. fi
  5771. RANLIB=$ac_cv_prog_RANLIB
  5772. if test -n "$RANLIB"; then
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5774. $as_echo "$RANLIB" >&6; }
  5775. else
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5777. $as_echo "no" >&6; }
  5778. fi
  5779. fi
  5780. if test -z "$ac_cv_prog_RANLIB"; then
  5781. ac_ct_RANLIB=$RANLIB
  5782. # Extract the first word of "ranlib", so it can be a program name with args.
  5783. set dummy ranlib; ac_word=$2
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. $as_echo_n "checking for $ac_word... " >&6; }
  5786. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. if test -n "$ac_ct_RANLIB"; then
  5790. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5791. else
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795. IFS=$as_save_IFS
  5796. test -z "$as_dir" && as_dir=.
  5797. for ac_exec_ext in '' $ac_executable_extensions; do
  5798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5799. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5801. break 2
  5802. fi
  5803. done
  5804. done
  5805. IFS=$as_save_IFS
  5806. fi
  5807. fi
  5808. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5809. if test -n "$ac_ct_RANLIB"; then
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5811. $as_echo "$ac_ct_RANLIB" >&6; }
  5812. else
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5814. $as_echo "no" >&6; }
  5815. fi
  5816. if test "x$ac_ct_RANLIB" = x; then
  5817. RANLIB=":"
  5818. else
  5819. case $cross_compiling:$ac_tool_warned in
  5820. yes:)
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5823. ac_tool_warned=yes ;;
  5824. esac
  5825. RANLIB=$ac_ct_RANLIB
  5826. fi
  5827. else
  5828. RANLIB="$ac_cv_prog_RANLIB"
  5829. fi
  5830. test -z "$RANLIB" && RANLIB=:
  5831. # Determine commands to create old-style static archives.
  5832. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5833. old_postinstall_cmds='chmod 644 $oldlib'
  5834. old_postuninstall_cmds=
  5835. if test -n "$RANLIB"; then
  5836. case $host_os in
  5837. openbsd*)
  5838. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5839. ;;
  5840. *)
  5841. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5842. ;;
  5843. esac
  5844. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5845. fi
  5846. case $host_os in
  5847. darwin*)
  5848. lock_old_archive_extraction=yes ;;
  5849. *)
  5850. lock_old_archive_extraction=no ;;
  5851. esac
  5852. # If no C compiler was specified, use CC.
  5853. LTCC=${LTCC-"$CC"}
  5854. # If no C compiler flags were specified, use CFLAGS.
  5855. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5856. # Allow CC to be a program name with arguments.
  5857. compiler=$CC
  5858. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5860. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5861. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5862. $as_echo_n "(cached) " >&6
  5863. else
  5864. # These are sane defaults that work on at least a few old systems.
  5865. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5866. # Character class describing NM global symbol codes.
  5867. symcode='[BCDEGRST]'
  5868. # Regexp to match symbols that can be accessed directly from C.
  5869. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5870. # Define system-specific variables.
  5871. case $host_os in
  5872. aix*)
  5873. symcode='[BCDT]'
  5874. ;;
  5875. cygwin* | mingw* | pw32* | cegcc*)
  5876. symcode='[ABCDGISTW]'
  5877. ;;
  5878. hpux*)
  5879. if test "$host_cpu" = ia64; then
  5880. symcode='[ABCDEGRST]'
  5881. fi
  5882. ;;
  5883. irix* | nonstopux*)
  5884. symcode='[BCDEGRST]'
  5885. ;;
  5886. osf*)
  5887. symcode='[BCDEGQRST]'
  5888. ;;
  5889. solaris*)
  5890. symcode='[BDRT]'
  5891. ;;
  5892. sco3.2v5*)
  5893. symcode='[DT]'
  5894. ;;
  5895. sysv4.2uw2*)
  5896. symcode='[DT]'
  5897. ;;
  5898. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5899. symcode='[ABDT]'
  5900. ;;
  5901. sysv4)
  5902. symcode='[DFNSTU]'
  5903. ;;
  5904. esac
  5905. # If we're using GNU nm, then use its standard symbol codes.
  5906. case `$NM -V 2>&1` in
  5907. *GNU* | *'with BFD'*)
  5908. symcode='[ABCDGIRSTW]' ;;
  5909. esac
  5910. # Transform an extracted symbol line into a proper C declaration.
  5911. # Some systems (esp. on ia64) link data and code symbols differently,
  5912. # so use this general approach.
  5913. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5914. # Transform an extracted symbol line into symbol name and symbol address
  5915. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5916. 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'"
  5917. # Handle CRLF in mingw tool chain
  5918. opt_cr=
  5919. case $build_os in
  5920. mingw*)
  5921. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5922. ;;
  5923. esac
  5924. # Try without a prefix underscore, then with it.
  5925. for ac_symprfx in "" "_"; do
  5926. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5927. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5928. # Write the raw and C identifiers.
  5929. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5930. # Fake it for dumpbin and say T for any non-static function
  5931. # and D for any global variable.
  5932. # Also find C++ and __fastcall symbols from MSVC++,
  5933. # which start with @ or ?.
  5934. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5935. " {last_section=section; section=\$ 3};"\
  5936. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5937. " \$ 0!~/External *\|/{next};"\
  5938. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5939. " {if(hide[section]) next};"\
  5940. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5941. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5942. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5943. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5944. " ' prfx=^$ac_symprfx"
  5945. else
  5946. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5947. fi
  5948. # Check to see that the pipe works correctly.
  5949. pipe_works=no
  5950. rm -f conftest*
  5951. cat > conftest.$ac_ext <<_LT_EOF
  5952. #ifdef __cplusplus
  5953. extern "C" {
  5954. #endif
  5955. char nm_test_var;
  5956. void nm_test_func(void);
  5957. void nm_test_func(void){}
  5958. #ifdef __cplusplus
  5959. }
  5960. #endif
  5961. int main(){nm_test_var='a';nm_test_func();return(0);}
  5962. _LT_EOF
  5963. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5964. (eval $ac_compile) 2>&5
  5965. ac_status=$?
  5966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5967. test $ac_status = 0; }; then
  5968. # Now try to grab the symbols.
  5969. nlist=conftest.nm
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5971. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5972. ac_status=$?
  5973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; } && test -s "$nlist"; then
  5975. # Try sorting and uniquifying the output.
  5976. if sort "$nlist" | uniq > "$nlist"T; then
  5977. mv -f "$nlist"T "$nlist"
  5978. else
  5979. rm -f "$nlist"T
  5980. fi
  5981. # Make sure that we snagged all the symbols we need.
  5982. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5983. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5984. cat <<_LT_EOF > conftest.$ac_ext
  5985. #ifdef __cplusplus
  5986. extern "C" {
  5987. #endif
  5988. _LT_EOF
  5989. # Now generate the symbol file.
  5990. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5991. cat <<_LT_EOF >> conftest.$ac_ext
  5992. /* The mapping between symbol names and symbols. */
  5993. const struct {
  5994. const char *name;
  5995. void *address;
  5996. }
  5997. lt__PROGRAM__LTX_preloaded_symbols[] =
  5998. {
  5999. { "@PROGRAM@", (void *) 0 },
  6000. _LT_EOF
  6001. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6002. cat <<\_LT_EOF >> conftest.$ac_ext
  6003. {0, (void *) 0}
  6004. };
  6005. /* This works around a problem in FreeBSD linker */
  6006. #ifdef FREEBSD_WORKAROUND
  6007. static const void *lt_preloaded_setup() {
  6008. return lt__PROGRAM__LTX_preloaded_symbols;
  6009. }
  6010. #endif
  6011. #ifdef __cplusplus
  6012. }
  6013. #endif
  6014. _LT_EOF
  6015. # Now try linking the two files.
  6016. mv conftest.$ac_objext conftstm.$ac_objext
  6017. lt_save_LIBS="$LIBS"
  6018. lt_save_CFLAGS="$CFLAGS"
  6019. LIBS="conftstm.$ac_objext"
  6020. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6022. (eval $ac_link) 2>&5
  6023. ac_status=$?
  6024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6025. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6026. pipe_works=yes
  6027. fi
  6028. LIBS="$lt_save_LIBS"
  6029. CFLAGS="$lt_save_CFLAGS"
  6030. else
  6031. echo "cannot find nm_test_func in $nlist" >&5
  6032. fi
  6033. else
  6034. echo "cannot find nm_test_var in $nlist" >&5
  6035. fi
  6036. else
  6037. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6038. fi
  6039. else
  6040. echo "$progname: failed program was:" >&5
  6041. cat conftest.$ac_ext >&5
  6042. fi
  6043. rm -rf conftest* conftst*
  6044. # Do not use the global_symbol_pipe unless it works.
  6045. if test "$pipe_works" = yes; then
  6046. break
  6047. else
  6048. lt_cv_sys_global_symbol_pipe=
  6049. fi
  6050. done
  6051. fi
  6052. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6053. lt_cv_sys_global_symbol_to_cdecl=
  6054. fi
  6055. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6057. $as_echo "failed" >&6; }
  6058. else
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6060. $as_echo "ok" >&6; }
  6061. fi
  6062. # Check whether --enable-libtool-lock was given.
  6063. if test "${enable_libtool_lock+set}" = set; then :
  6064. enableval=$enable_libtool_lock;
  6065. fi
  6066. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6067. # Some flags need to be propagated to the compiler or linker for good
  6068. # libtool support.
  6069. case $host in
  6070. ia64-*-hpux*)
  6071. # Find out which ABI we are using.
  6072. echo 'int i;' > conftest.$ac_ext
  6073. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6074. (eval $ac_compile) 2>&5
  6075. ac_status=$?
  6076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6077. test $ac_status = 0; }; then
  6078. case `/usr/bin/file conftest.$ac_objext` in
  6079. *ELF-32*)
  6080. HPUX_IA64_MODE="32"
  6081. ;;
  6082. *ELF-64*)
  6083. HPUX_IA64_MODE="64"
  6084. ;;
  6085. esac
  6086. fi
  6087. rm -rf conftest*
  6088. ;;
  6089. *-*-irix6*)
  6090. # Find out which ABI we are using.
  6091. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6092. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6093. (eval $ac_compile) 2>&5
  6094. ac_status=$?
  6095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6096. test $ac_status = 0; }; then
  6097. if test "$lt_cv_prog_gnu_ld" = yes; then
  6098. case `/usr/bin/file conftest.$ac_objext` in
  6099. *32-bit*)
  6100. LD="${LD-ld} -melf32bsmip"
  6101. ;;
  6102. *N32*)
  6103. LD="${LD-ld} -melf32bmipn32"
  6104. ;;
  6105. *64-bit*)
  6106. LD="${LD-ld} -melf64bmip"
  6107. ;;
  6108. esac
  6109. else
  6110. case `/usr/bin/file conftest.$ac_objext` in
  6111. *32-bit*)
  6112. LD="${LD-ld} -32"
  6113. ;;
  6114. *N32*)
  6115. LD="${LD-ld} -n32"
  6116. ;;
  6117. *64-bit*)
  6118. LD="${LD-ld} -64"
  6119. ;;
  6120. esac
  6121. fi
  6122. fi
  6123. rm -rf conftest*
  6124. ;;
  6125. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6126. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6127. # Find out which ABI we are using.
  6128. echo 'int i;' > conftest.$ac_ext
  6129. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6130. (eval $ac_compile) 2>&5
  6131. ac_status=$?
  6132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6133. test $ac_status = 0; }; then
  6134. case `/usr/bin/file conftest.o` in
  6135. *32-bit*)
  6136. case $host in
  6137. x86_64-*kfreebsd*-gnu)
  6138. LD="${LD-ld} -m elf_i386_fbsd"
  6139. ;;
  6140. x86_64-*linux*)
  6141. case `/usr/bin/file conftest.o` in
  6142. *x86-64*)
  6143. LD="${LD-ld} -m elf32_x86_64"
  6144. ;;
  6145. *)
  6146. LD="${LD-ld} -m elf_i386"
  6147. ;;
  6148. esac
  6149. ;;
  6150. powerpc64le-*linux*)
  6151. LD="${LD-ld} -m elf32lppclinux"
  6152. ;;
  6153. powerpc64-*linux*)
  6154. LD="${LD-ld} -m elf32ppclinux"
  6155. ;;
  6156. s390x-*linux*)
  6157. LD="${LD-ld} -m elf_s390"
  6158. ;;
  6159. sparc64-*linux*)
  6160. LD="${LD-ld} -m elf32_sparc"
  6161. ;;
  6162. esac
  6163. ;;
  6164. *64-bit*)
  6165. case $host in
  6166. x86_64-*kfreebsd*-gnu)
  6167. LD="${LD-ld} -m elf_x86_64_fbsd"
  6168. ;;
  6169. x86_64-*linux*)
  6170. LD="${LD-ld} -m elf_x86_64"
  6171. ;;
  6172. powerpcle-*linux*)
  6173. LD="${LD-ld} -m elf64lppc"
  6174. ;;
  6175. powerpc-*linux*)
  6176. LD="${LD-ld} -m elf64ppc"
  6177. ;;
  6178. s390*-*linux*|s390*-*tpf*)
  6179. LD="${LD-ld} -m elf64_s390"
  6180. ;;
  6181. sparc*-*linux*)
  6182. LD="${LD-ld} -m elf64_sparc"
  6183. ;;
  6184. esac
  6185. ;;
  6186. esac
  6187. fi
  6188. rm -rf conftest*
  6189. ;;
  6190. *-*-sco3.2v5*)
  6191. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6192. SAVE_CFLAGS="$CFLAGS"
  6193. CFLAGS="$CFLAGS -belf"
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6195. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6196. if ${lt_cv_cc_needs_belf+:} false; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. ac_ext=c
  6200. ac_cpp='$CPP $CPPFLAGS'
  6201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. int
  6207. main ()
  6208. {
  6209. ;
  6210. return 0;
  6211. }
  6212. _ACEOF
  6213. if ac_fn_c_try_link "$LINENO"; then :
  6214. lt_cv_cc_needs_belf=yes
  6215. else
  6216. lt_cv_cc_needs_belf=no
  6217. fi
  6218. rm -f core conftest.err conftest.$ac_objext \
  6219. conftest$ac_exeext conftest.$ac_ext
  6220. ac_ext=c
  6221. ac_cpp='$CPP $CPPFLAGS'
  6222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6225. fi
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6227. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6228. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6229. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6230. CFLAGS="$SAVE_CFLAGS"
  6231. fi
  6232. ;;
  6233. sparc*-*solaris*)
  6234. # Find out which ABI we are using.
  6235. echo 'int i;' > conftest.$ac_ext
  6236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6237. (eval $ac_compile) 2>&5
  6238. ac_status=$?
  6239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6240. test $ac_status = 0; }; then
  6241. case `/usr/bin/file conftest.o` in
  6242. *64-bit*)
  6243. case $lt_cv_prog_gnu_ld in
  6244. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6245. *)
  6246. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6247. LD="${LD-ld} -64"
  6248. fi
  6249. ;;
  6250. esac
  6251. ;;
  6252. esac
  6253. fi
  6254. rm -rf conftest*
  6255. ;;
  6256. esac
  6257. need_locks="$enable_libtool_lock"
  6258. case $host_os in
  6259. rhapsody* | darwin*)
  6260. if test -n "$ac_tool_prefix"; then
  6261. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6262. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6264. $as_echo_n "checking for $ac_word... " >&6; }
  6265. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6266. $as_echo_n "(cached) " >&6
  6267. else
  6268. if test -n "$DSYMUTIL"; then
  6269. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6270. else
  6271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6272. for as_dir in $PATH
  6273. do
  6274. IFS=$as_save_IFS
  6275. test -z "$as_dir" && as_dir=.
  6276. for ac_exec_ext in '' $ac_executable_extensions; do
  6277. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6278. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6280. break 2
  6281. fi
  6282. done
  6283. done
  6284. IFS=$as_save_IFS
  6285. fi
  6286. fi
  6287. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6288. if test -n "$DSYMUTIL"; then
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6290. $as_echo "$DSYMUTIL" >&6; }
  6291. else
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6293. $as_echo "no" >&6; }
  6294. fi
  6295. fi
  6296. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6297. ac_ct_DSYMUTIL=$DSYMUTIL
  6298. # Extract the first word of "dsymutil", so it can be a program name with args.
  6299. set dummy dsymutil; ac_word=$2
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6301. $as_echo_n "checking for $ac_word... " >&6; }
  6302. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. if test -n "$ac_ct_DSYMUTIL"; then
  6306. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6307. else
  6308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6309. for as_dir in $PATH
  6310. do
  6311. IFS=$as_save_IFS
  6312. test -z "$as_dir" && as_dir=.
  6313. for ac_exec_ext in '' $ac_executable_extensions; do
  6314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6315. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6317. break 2
  6318. fi
  6319. done
  6320. done
  6321. IFS=$as_save_IFS
  6322. fi
  6323. fi
  6324. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6325. if test -n "$ac_ct_DSYMUTIL"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6327. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6328. else
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6330. $as_echo "no" >&6; }
  6331. fi
  6332. if test "x$ac_ct_DSYMUTIL" = x; then
  6333. DSYMUTIL=":"
  6334. else
  6335. case $cross_compiling:$ac_tool_warned in
  6336. yes:)
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6339. ac_tool_warned=yes ;;
  6340. esac
  6341. DSYMUTIL=$ac_ct_DSYMUTIL
  6342. fi
  6343. else
  6344. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6345. fi
  6346. if test -n "$ac_tool_prefix"; then
  6347. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6348. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6350. $as_echo_n "checking for $ac_word... " >&6; }
  6351. if ${ac_cv_prog_NMEDIT+:} false; then :
  6352. $as_echo_n "(cached) " >&6
  6353. else
  6354. if test -n "$NMEDIT"; then
  6355. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6356. else
  6357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6358. for as_dir in $PATH
  6359. do
  6360. IFS=$as_save_IFS
  6361. test -z "$as_dir" && as_dir=.
  6362. for ac_exec_ext in '' $ac_executable_extensions; do
  6363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6364. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6366. break 2
  6367. fi
  6368. done
  6369. done
  6370. IFS=$as_save_IFS
  6371. fi
  6372. fi
  6373. NMEDIT=$ac_cv_prog_NMEDIT
  6374. if test -n "$NMEDIT"; then
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6376. $as_echo "$NMEDIT" >&6; }
  6377. else
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6379. $as_echo "no" >&6; }
  6380. fi
  6381. fi
  6382. if test -z "$ac_cv_prog_NMEDIT"; then
  6383. ac_ct_NMEDIT=$NMEDIT
  6384. # Extract the first word of "nmedit", so it can be a program name with args.
  6385. set dummy nmedit; ac_word=$2
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6387. $as_echo_n "checking for $ac_word... " >&6; }
  6388. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6389. $as_echo_n "(cached) " >&6
  6390. else
  6391. if test -n "$ac_ct_NMEDIT"; then
  6392. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6393. else
  6394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6395. for as_dir in $PATH
  6396. do
  6397. IFS=$as_save_IFS
  6398. test -z "$as_dir" && as_dir=.
  6399. for ac_exec_ext in '' $ac_executable_extensions; do
  6400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6401. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6403. break 2
  6404. fi
  6405. done
  6406. done
  6407. IFS=$as_save_IFS
  6408. fi
  6409. fi
  6410. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6411. if test -n "$ac_ct_NMEDIT"; then
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6413. $as_echo "$ac_ct_NMEDIT" >&6; }
  6414. else
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6416. $as_echo "no" >&6; }
  6417. fi
  6418. if test "x$ac_ct_NMEDIT" = x; then
  6419. NMEDIT=":"
  6420. else
  6421. case $cross_compiling:$ac_tool_warned in
  6422. yes:)
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6425. ac_tool_warned=yes ;;
  6426. esac
  6427. NMEDIT=$ac_ct_NMEDIT
  6428. fi
  6429. else
  6430. NMEDIT="$ac_cv_prog_NMEDIT"
  6431. fi
  6432. if test -n "$ac_tool_prefix"; then
  6433. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6434. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6436. $as_echo_n "checking for $ac_word... " >&6; }
  6437. if ${ac_cv_prog_LIPO+:} false; then :
  6438. $as_echo_n "(cached) " >&6
  6439. else
  6440. if test -n "$LIPO"; then
  6441. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6442. else
  6443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6444. for as_dir in $PATH
  6445. do
  6446. IFS=$as_save_IFS
  6447. test -z "$as_dir" && as_dir=.
  6448. for ac_exec_ext in '' $ac_executable_extensions; do
  6449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6450. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6452. break 2
  6453. fi
  6454. done
  6455. done
  6456. IFS=$as_save_IFS
  6457. fi
  6458. fi
  6459. LIPO=$ac_cv_prog_LIPO
  6460. if test -n "$LIPO"; then
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6462. $as_echo "$LIPO" >&6; }
  6463. else
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6465. $as_echo "no" >&6; }
  6466. fi
  6467. fi
  6468. if test -z "$ac_cv_prog_LIPO"; then
  6469. ac_ct_LIPO=$LIPO
  6470. # Extract the first word of "lipo", so it can be a program name with args.
  6471. set dummy lipo; ac_word=$2
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6473. $as_echo_n "checking for $ac_word... " >&6; }
  6474. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. if test -n "$ac_ct_LIPO"; then
  6478. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6479. else
  6480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481. for as_dir in $PATH
  6482. do
  6483. IFS=$as_save_IFS
  6484. test -z "$as_dir" && as_dir=.
  6485. for ac_exec_ext in '' $ac_executable_extensions; do
  6486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6487. ac_cv_prog_ac_ct_LIPO="lipo"
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6489. break 2
  6490. fi
  6491. done
  6492. done
  6493. IFS=$as_save_IFS
  6494. fi
  6495. fi
  6496. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6497. if test -n "$ac_ct_LIPO"; then
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6499. $as_echo "$ac_ct_LIPO" >&6; }
  6500. else
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6502. $as_echo "no" >&6; }
  6503. fi
  6504. if test "x$ac_ct_LIPO" = x; then
  6505. LIPO=":"
  6506. else
  6507. case $cross_compiling:$ac_tool_warned in
  6508. yes:)
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6510. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6511. ac_tool_warned=yes ;;
  6512. esac
  6513. LIPO=$ac_ct_LIPO
  6514. fi
  6515. else
  6516. LIPO="$ac_cv_prog_LIPO"
  6517. fi
  6518. if test -n "$ac_tool_prefix"; then
  6519. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6520. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6522. $as_echo_n "checking for $ac_word... " >&6; }
  6523. if ${ac_cv_prog_OTOOL+:} false; then :
  6524. $as_echo_n "(cached) " >&6
  6525. else
  6526. if test -n "$OTOOL"; then
  6527. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6528. else
  6529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6530. for as_dir in $PATH
  6531. do
  6532. IFS=$as_save_IFS
  6533. test -z "$as_dir" && as_dir=.
  6534. for ac_exec_ext in '' $ac_executable_extensions; do
  6535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6536. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6538. break 2
  6539. fi
  6540. done
  6541. done
  6542. IFS=$as_save_IFS
  6543. fi
  6544. fi
  6545. OTOOL=$ac_cv_prog_OTOOL
  6546. if test -n "$OTOOL"; then
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6548. $as_echo "$OTOOL" >&6; }
  6549. else
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6551. $as_echo "no" >&6; }
  6552. fi
  6553. fi
  6554. if test -z "$ac_cv_prog_OTOOL"; then
  6555. ac_ct_OTOOL=$OTOOL
  6556. # Extract the first word of "otool", so it can be a program name with args.
  6557. set dummy otool; ac_word=$2
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6559. $as_echo_n "checking for $ac_word... " >&6; }
  6560. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6561. $as_echo_n "(cached) " >&6
  6562. else
  6563. if test -n "$ac_ct_OTOOL"; then
  6564. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6565. else
  6566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6567. for as_dir in $PATH
  6568. do
  6569. IFS=$as_save_IFS
  6570. test -z "$as_dir" && as_dir=.
  6571. for ac_exec_ext in '' $ac_executable_extensions; do
  6572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6573. ac_cv_prog_ac_ct_OTOOL="otool"
  6574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6575. break 2
  6576. fi
  6577. done
  6578. done
  6579. IFS=$as_save_IFS
  6580. fi
  6581. fi
  6582. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6583. if test -n "$ac_ct_OTOOL"; then
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6585. $as_echo "$ac_ct_OTOOL" >&6; }
  6586. else
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6588. $as_echo "no" >&6; }
  6589. fi
  6590. if test "x$ac_ct_OTOOL" = x; then
  6591. OTOOL=":"
  6592. else
  6593. case $cross_compiling:$ac_tool_warned in
  6594. yes:)
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6597. ac_tool_warned=yes ;;
  6598. esac
  6599. OTOOL=$ac_ct_OTOOL
  6600. fi
  6601. else
  6602. OTOOL="$ac_cv_prog_OTOOL"
  6603. fi
  6604. if test -n "$ac_tool_prefix"; then
  6605. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6606. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6608. $as_echo_n "checking for $ac_word... " >&6; }
  6609. if ${ac_cv_prog_OTOOL64+:} false; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. if test -n "$OTOOL64"; then
  6613. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. test -z "$as_dir" && as_dir=.
  6620. for ac_exec_ext in '' $ac_executable_extensions; do
  6621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6622. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6624. break 2
  6625. fi
  6626. done
  6627. done
  6628. IFS=$as_save_IFS
  6629. fi
  6630. fi
  6631. OTOOL64=$ac_cv_prog_OTOOL64
  6632. if test -n "$OTOOL64"; then
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6634. $as_echo "$OTOOL64" >&6; }
  6635. else
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6637. $as_echo "no" >&6; }
  6638. fi
  6639. fi
  6640. if test -z "$ac_cv_prog_OTOOL64"; then
  6641. ac_ct_OTOOL64=$OTOOL64
  6642. # Extract the first word of "otool64", so it can be a program name with args.
  6643. set dummy otool64; ac_word=$2
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6645. $as_echo_n "checking for $ac_word... " >&6; }
  6646. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6647. $as_echo_n "(cached) " >&6
  6648. else
  6649. if test -n "$ac_ct_OTOOL64"; then
  6650. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6651. else
  6652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6653. for as_dir in $PATH
  6654. do
  6655. IFS=$as_save_IFS
  6656. test -z "$as_dir" && as_dir=.
  6657. for ac_exec_ext in '' $ac_executable_extensions; do
  6658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6659. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6661. break 2
  6662. fi
  6663. done
  6664. done
  6665. IFS=$as_save_IFS
  6666. fi
  6667. fi
  6668. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6669. if test -n "$ac_ct_OTOOL64"; then
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6671. $as_echo "$ac_ct_OTOOL64" >&6; }
  6672. else
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6674. $as_echo "no" >&6; }
  6675. fi
  6676. if test "x$ac_ct_OTOOL64" = x; then
  6677. OTOOL64=":"
  6678. else
  6679. case $cross_compiling:$ac_tool_warned in
  6680. yes:)
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6683. ac_tool_warned=yes ;;
  6684. esac
  6685. OTOOL64=$ac_ct_OTOOL64
  6686. fi
  6687. else
  6688. OTOOL64="$ac_cv_prog_OTOOL64"
  6689. fi
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6691. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6692. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6693. $as_echo_n "(cached) " >&6
  6694. else
  6695. lt_cv_apple_cc_single_mod=no
  6696. if test -z "${LT_MULTI_MODULE}"; then
  6697. # By default we will add the -single_module flag. You can override
  6698. # by either setting the environment variable LT_MULTI_MODULE
  6699. # non-empty at configure time, or by adding -multi_module to the
  6700. # link flags.
  6701. rm -rf libconftest.dylib*
  6702. echo "int foo(void){return 1;}" > conftest.c
  6703. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6704. -dynamiclib -Wl,-single_module conftest.c" >&5
  6705. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6706. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6707. _lt_result=$?
  6708. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6709. lt_cv_apple_cc_single_mod=yes
  6710. else
  6711. cat conftest.err >&5
  6712. fi
  6713. rm -rf libconftest.dylib*
  6714. rm -f conftest.*
  6715. fi
  6716. fi
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6718. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6720. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6721. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. lt_cv_ld_exported_symbols_list=no
  6725. save_LDFLAGS=$LDFLAGS
  6726. echo "_main" > conftest.sym
  6727. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6729. /* end confdefs.h. */
  6730. int
  6731. main ()
  6732. {
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_c_try_link "$LINENO"; then :
  6738. lt_cv_ld_exported_symbols_list=yes
  6739. else
  6740. lt_cv_ld_exported_symbols_list=no
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext \
  6743. conftest$ac_exeext conftest.$ac_ext
  6744. LDFLAGS="$save_LDFLAGS"
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6747. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6749. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6750. if ${lt_cv_ld_force_load+:} false; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. lt_cv_ld_force_load=no
  6754. cat > conftest.c << _LT_EOF
  6755. int forced_loaded() { return 2;}
  6756. _LT_EOF
  6757. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6758. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6759. echo "$AR cru libconftest.a conftest.o" >&5
  6760. $AR cru libconftest.a conftest.o 2>&5
  6761. cat > conftest.c << _LT_EOF
  6762. int main() { return 0;}
  6763. _LT_EOF
  6764. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6765. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6766. _lt_result=$?
  6767. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6768. lt_cv_ld_force_load=yes
  6769. else
  6770. cat conftest.err >&5
  6771. fi
  6772. rm -f conftest.err libconftest.a conftest conftest.c
  6773. rm -rf conftest.dSYM
  6774. fi
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6776. $as_echo "$lt_cv_ld_force_load" >&6; }
  6777. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6778. # build without first building modern cctools / linker.
  6779. case $host_cpu-$host_os in
  6780. *-rhapsody* | *-darwin1.[012])
  6781. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6782. *-darwin1.*)
  6783. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6784. *-darwin*)
  6785. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6786. # deployment target is forced to an earlier version.
  6787. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6788. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6789. ;;
  6790. 10.[012][,.]*)
  6791. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6792. ;;
  6793. *)
  6794. ;;
  6795. esac
  6796. ;;
  6797. esac
  6798. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6799. _lt_dar_single_mod='$single_module'
  6800. fi
  6801. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6802. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6803. else
  6804. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6805. fi
  6806. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6807. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6808. else
  6809. _lt_dsymutil=
  6810. fi
  6811. ;;
  6812. esac
  6813. ac_ext=c
  6814. ac_cpp='$CPP $CPPFLAGS'
  6815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6819. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6820. # On Suns, sometimes $CPP names a directory.
  6821. if test -n "$CPP" && test -d "$CPP"; then
  6822. CPP=
  6823. fi
  6824. if test -z "$CPP"; then
  6825. if ${ac_cv_prog_CPP+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. # Double quotes because CPP needs to be expanded
  6829. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6830. do
  6831. ac_preproc_ok=false
  6832. for ac_c_preproc_warn_flag in '' yes
  6833. do
  6834. # Use a header file that comes with gcc, so configuring glibc
  6835. # with a fresh cross-compiler works.
  6836. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6837. # <limits.h> exists even on freestanding compilers.
  6838. # On the NeXT, cc -E runs the code through the compiler's parser,
  6839. # not just through cpp. "Syntax error" is here to catch this case.
  6840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6841. /* end confdefs.h. */
  6842. #ifdef __STDC__
  6843. # include <limits.h>
  6844. #else
  6845. # include <assert.h>
  6846. #endif
  6847. Syntax error
  6848. _ACEOF
  6849. if ac_fn_c_try_cpp "$LINENO"; then :
  6850. else
  6851. # Broken: fails on valid input.
  6852. continue
  6853. fi
  6854. rm -f conftest.err conftest.i conftest.$ac_ext
  6855. # OK, works on sane cases. Now check whether nonexistent headers
  6856. # can be detected and how.
  6857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end confdefs.h. */
  6859. #include <ac_nonexistent.h>
  6860. _ACEOF
  6861. if ac_fn_c_try_cpp "$LINENO"; then :
  6862. # Broken: success on invalid input.
  6863. continue
  6864. else
  6865. # Passes both tests.
  6866. ac_preproc_ok=:
  6867. break
  6868. fi
  6869. rm -f conftest.err conftest.i conftest.$ac_ext
  6870. done
  6871. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6872. rm -f conftest.i conftest.err conftest.$ac_ext
  6873. if $ac_preproc_ok; then :
  6874. break
  6875. fi
  6876. done
  6877. ac_cv_prog_CPP=$CPP
  6878. fi
  6879. CPP=$ac_cv_prog_CPP
  6880. else
  6881. ac_cv_prog_CPP=$CPP
  6882. fi
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6884. $as_echo "$CPP" >&6; }
  6885. ac_preproc_ok=false
  6886. for ac_c_preproc_warn_flag in '' yes
  6887. do
  6888. # Use a header file that comes with gcc, so configuring glibc
  6889. # with a fresh cross-compiler works.
  6890. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6891. # <limits.h> exists even on freestanding compilers.
  6892. # On the NeXT, cc -E runs the code through the compiler's parser,
  6893. # not just through cpp. "Syntax error" is here to catch this case.
  6894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6895. /* end confdefs.h. */
  6896. #ifdef __STDC__
  6897. # include <limits.h>
  6898. #else
  6899. # include <assert.h>
  6900. #endif
  6901. Syntax error
  6902. _ACEOF
  6903. if ac_fn_c_try_cpp "$LINENO"; then :
  6904. else
  6905. # Broken: fails on valid input.
  6906. continue
  6907. fi
  6908. rm -f conftest.err conftest.i conftest.$ac_ext
  6909. # OK, works on sane cases. Now check whether nonexistent headers
  6910. # can be detected and how.
  6911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6912. /* end confdefs.h. */
  6913. #include <ac_nonexistent.h>
  6914. _ACEOF
  6915. if ac_fn_c_try_cpp "$LINENO"; then :
  6916. # Broken: success on invalid input.
  6917. continue
  6918. else
  6919. # Passes both tests.
  6920. ac_preproc_ok=:
  6921. break
  6922. fi
  6923. rm -f conftest.err conftest.i conftest.$ac_ext
  6924. done
  6925. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6926. rm -f conftest.i conftest.err conftest.$ac_ext
  6927. if $ac_preproc_ok; then :
  6928. else
  6929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6931. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6932. See \`config.log' for more details" "$LINENO" 5; }
  6933. fi
  6934. ac_ext=c
  6935. ac_cpp='$CPP $CPPFLAGS'
  6936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6940. $as_echo_n "checking for ANSI C header files... " >&6; }
  6941. if ${ac_cv_header_stdc+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6945. /* end confdefs.h. */
  6946. #include <stdlib.h>
  6947. #include <stdarg.h>
  6948. #include <string.h>
  6949. #include <float.h>
  6950. int
  6951. main ()
  6952. {
  6953. ;
  6954. return 0;
  6955. }
  6956. _ACEOF
  6957. if ac_fn_c_try_compile "$LINENO"; then :
  6958. ac_cv_header_stdc=yes
  6959. else
  6960. ac_cv_header_stdc=no
  6961. fi
  6962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6963. if test $ac_cv_header_stdc = yes; then
  6964. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6966. /* end confdefs.h. */
  6967. #include <string.h>
  6968. _ACEOF
  6969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6970. $EGREP "memchr" >/dev/null 2>&1; then :
  6971. else
  6972. ac_cv_header_stdc=no
  6973. fi
  6974. rm -f conftest*
  6975. fi
  6976. if test $ac_cv_header_stdc = yes; then
  6977. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6979. /* end confdefs.h. */
  6980. #include <stdlib.h>
  6981. _ACEOF
  6982. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6983. $EGREP "free" >/dev/null 2>&1; then :
  6984. else
  6985. ac_cv_header_stdc=no
  6986. fi
  6987. rm -f conftest*
  6988. fi
  6989. if test $ac_cv_header_stdc = yes; then
  6990. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6991. if test "$cross_compiling" = yes; then :
  6992. :
  6993. else
  6994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6995. /* end confdefs.h. */
  6996. #include <ctype.h>
  6997. #include <stdlib.h>
  6998. #if ((' ' & 0x0FF) == 0x020)
  6999. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7000. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7001. #else
  7002. # define ISLOWER(c) \
  7003. (('a' <= (c) && (c) <= 'i') \
  7004. || ('j' <= (c) && (c) <= 'r') \
  7005. || ('s' <= (c) && (c) <= 'z'))
  7006. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7007. #endif
  7008. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7009. int
  7010. main ()
  7011. {
  7012. int i;
  7013. for (i = 0; i < 256; i++)
  7014. if (XOR (islower (i), ISLOWER (i))
  7015. || toupper (i) != TOUPPER (i))
  7016. return 2;
  7017. return 0;
  7018. }
  7019. _ACEOF
  7020. if ac_fn_c_try_run "$LINENO"; then :
  7021. else
  7022. ac_cv_header_stdc=no
  7023. fi
  7024. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7025. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7026. fi
  7027. fi
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7030. $as_echo "$ac_cv_header_stdc" >&6; }
  7031. if test $ac_cv_header_stdc = yes; then
  7032. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7033. fi
  7034. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7035. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7036. inttypes.h stdint.h unistd.h
  7037. do :
  7038. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7039. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7040. "
  7041. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7042. cat >>confdefs.h <<_ACEOF
  7043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7044. _ACEOF
  7045. fi
  7046. done
  7047. for ac_header in dlfcn.h
  7048. do :
  7049. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7050. "
  7051. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7052. cat >>confdefs.h <<_ACEOF
  7053. #define HAVE_DLFCN_H 1
  7054. _ACEOF
  7055. fi
  7056. done
  7057. # Set options
  7058. enable_dlopen=no
  7059. enable_win32_dll=no
  7060. # Check whether --enable-shared was given.
  7061. if test "${enable_shared+set}" = set; then :
  7062. enableval=$enable_shared; p=${PACKAGE-default}
  7063. case $enableval in
  7064. yes) enable_shared=yes ;;
  7065. no) enable_shared=no ;;
  7066. *)
  7067. enable_shared=no
  7068. # Look at the argument we got. We use all the common list separators.
  7069. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7070. for pkg in $enableval; do
  7071. IFS="$lt_save_ifs"
  7072. if test "X$pkg" = "X$p"; then
  7073. enable_shared=yes
  7074. fi
  7075. done
  7076. IFS="$lt_save_ifs"
  7077. ;;
  7078. esac
  7079. else
  7080. enable_shared=yes
  7081. fi
  7082. # Check whether --enable-static was given.
  7083. if test "${enable_static+set}" = set; then :
  7084. enableval=$enable_static; p=${PACKAGE-default}
  7085. case $enableval in
  7086. yes) enable_static=yes ;;
  7087. no) enable_static=no ;;
  7088. *)
  7089. enable_static=no
  7090. # Look at the argument we got. We use all the common list separators.
  7091. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7092. for pkg in $enableval; do
  7093. IFS="$lt_save_ifs"
  7094. if test "X$pkg" = "X$p"; then
  7095. enable_static=yes
  7096. fi
  7097. done
  7098. IFS="$lt_save_ifs"
  7099. ;;
  7100. esac
  7101. else
  7102. enable_static=yes
  7103. fi
  7104. # Check whether --with-pic was given.
  7105. if test "${with_pic+set}" = set; then :
  7106. withval=$with_pic; pic_mode="$withval"
  7107. else
  7108. pic_mode=default
  7109. fi
  7110. test -z "$pic_mode" && pic_mode=default
  7111. # Check whether --enable-fast-install was given.
  7112. if test "${enable_fast_install+set}" = set; then :
  7113. enableval=$enable_fast_install; p=${PACKAGE-default}
  7114. case $enableval in
  7115. yes) enable_fast_install=yes ;;
  7116. no) enable_fast_install=no ;;
  7117. *)
  7118. enable_fast_install=no
  7119. # Look at the argument we got. We use all the common list separators.
  7120. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7121. for pkg in $enableval; do
  7122. IFS="$lt_save_ifs"
  7123. if test "X$pkg" = "X$p"; then
  7124. enable_fast_install=yes
  7125. fi
  7126. done
  7127. IFS="$lt_save_ifs"
  7128. ;;
  7129. esac
  7130. else
  7131. enable_fast_install=yes
  7132. fi
  7133. # This can be used to rebuild libtool when needed
  7134. LIBTOOL_DEPS="$ltmain"
  7135. # Always use our own libtool.
  7136. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7137. test -z "$LN_S" && LN_S="ln -s"
  7138. if test -n "${ZSH_VERSION+set}" ; then
  7139. setopt NO_GLOB_SUBST
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7142. $as_echo_n "checking for objdir... " >&6; }
  7143. if ${lt_cv_objdir+:} false; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. rm -f .libs 2>/dev/null
  7147. mkdir .libs 2>/dev/null
  7148. if test -d .libs; then
  7149. lt_cv_objdir=.libs
  7150. else
  7151. # MS-DOS does not allow filenames that begin with a dot.
  7152. lt_cv_objdir=_libs
  7153. fi
  7154. rmdir .libs 2>/dev/null
  7155. fi
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7157. $as_echo "$lt_cv_objdir" >&6; }
  7158. objdir=$lt_cv_objdir
  7159. cat >>confdefs.h <<_ACEOF
  7160. #define LT_OBJDIR "$lt_cv_objdir/"
  7161. _ACEOF
  7162. case $host_os in
  7163. aix3*)
  7164. # AIX sometimes has problems with the GCC collect2 program. For some
  7165. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7166. # vanish in a puff of smoke.
  7167. if test "X${COLLECT_NAMES+set}" != Xset; then
  7168. COLLECT_NAMES=
  7169. export COLLECT_NAMES
  7170. fi
  7171. ;;
  7172. esac
  7173. # Global variables:
  7174. ofile=libtool
  7175. can_build_shared=yes
  7176. # All known linkers require a `.a' archive for static linking (except MSVC,
  7177. # which needs '.lib').
  7178. libext=a
  7179. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7180. old_CC="$CC"
  7181. old_CFLAGS="$CFLAGS"
  7182. # Set sane defaults for various variables
  7183. test -z "$CC" && CC=cc
  7184. test -z "$LTCC" && LTCC=$CC
  7185. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7186. test -z "$LD" && LD=ld
  7187. test -z "$ac_objext" && ac_objext=o
  7188. for cc_temp in $compiler""; do
  7189. case $cc_temp in
  7190. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7191. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7192. \-*) ;;
  7193. *) break;;
  7194. esac
  7195. done
  7196. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7197. # Only perform the check for file, if the check method requires it
  7198. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7199. case $deplibs_check_method in
  7200. file_magic*)
  7201. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7203. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7204. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. case $MAGIC_CMD in
  7208. [\\/*] | ?:[\\/]*)
  7209. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7210. ;;
  7211. *)
  7212. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7213. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7214. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7215. for ac_dir in $ac_dummy; do
  7216. IFS="$lt_save_ifs"
  7217. test -z "$ac_dir" && ac_dir=.
  7218. if test -f $ac_dir/${ac_tool_prefix}file; then
  7219. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7220. if test -n "$file_magic_test_file"; then
  7221. case $deplibs_check_method in
  7222. "file_magic "*)
  7223. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7224. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7225. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7226. $EGREP "$file_magic_regex" > /dev/null; then
  7227. :
  7228. else
  7229. cat <<_LT_EOF 1>&2
  7230. *** Warning: the command libtool uses to detect shared libraries,
  7231. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7232. *** The result is that libtool may fail to recognize shared libraries
  7233. *** as such. This will affect the creation of libtool libraries that
  7234. *** depend on shared libraries, but programs linked with such libtool
  7235. *** libraries will work regardless of this problem. Nevertheless, you
  7236. *** may want to report the problem to your system manager and/or to
  7237. *** bug-libtool@gnu.org
  7238. _LT_EOF
  7239. fi ;;
  7240. esac
  7241. fi
  7242. break
  7243. fi
  7244. done
  7245. IFS="$lt_save_ifs"
  7246. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7247. ;;
  7248. esac
  7249. fi
  7250. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7251. if test -n "$MAGIC_CMD"; then
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7253. $as_echo "$MAGIC_CMD" >&6; }
  7254. else
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7256. $as_echo "no" >&6; }
  7257. fi
  7258. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7259. if test -n "$ac_tool_prefix"; then
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7261. $as_echo_n "checking for file... " >&6; }
  7262. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. case $MAGIC_CMD in
  7266. [\\/*] | ?:[\\/]*)
  7267. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7268. ;;
  7269. *)
  7270. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7271. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7272. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7273. for ac_dir in $ac_dummy; do
  7274. IFS="$lt_save_ifs"
  7275. test -z "$ac_dir" && ac_dir=.
  7276. if test -f $ac_dir/file; then
  7277. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7278. if test -n "$file_magic_test_file"; then
  7279. case $deplibs_check_method in
  7280. "file_magic "*)
  7281. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7282. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7283. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7284. $EGREP "$file_magic_regex" > /dev/null; then
  7285. :
  7286. else
  7287. cat <<_LT_EOF 1>&2
  7288. *** Warning: the command libtool uses to detect shared libraries,
  7289. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7290. *** The result is that libtool may fail to recognize shared libraries
  7291. *** as such. This will affect the creation of libtool libraries that
  7292. *** depend on shared libraries, but programs linked with such libtool
  7293. *** libraries will work regardless of this problem. Nevertheless, you
  7294. *** may want to report the problem to your system manager and/or to
  7295. *** bug-libtool@gnu.org
  7296. _LT_EOF
  7297. fi ;;
  7298. esac
  7299. fi
  7300. break
  7301. fi
  7302. done
  7303. IFS="$lt_save_ifs"
  7304. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7305. ;;
  7306. esac
  7307. fi
  7308. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7309. if test -n "$MAGIC_CMD"; then
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7311. $as_echo "$MAGIC_CMD" >&6; }
  7312. else
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315. fi
  7316. else
  7317. MAGIC_CMD=:
  7318. fi
  7319. fi
  7320. fi
  7321. ;;
  7322. esac
  7323. # Use C for the default configuration in the libtool script
  7324. lt_save_CC="$CC"
  7325. ac_ext=c
  7326. ac_cpp='$CPP $CPPFLAGS'
  7327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7330. # Source file extension for C test sources.
  7331. ac_ext=c
  7332. # Object file extension for compiled C test sources.
  7333. objext=o
  7334. objext=$objext
  7335. # Code to be used in simple compile tests
  7336. lt_simple_compile_test_code="int some_variable = 0;"
  7337. # Code to be used in simple link tests
  7338. lt_simple_link_test_code='int main(){return(0);}'
  7339. # If no C compiler was specified, use CC.
  7340. LTCC=${LTCC-"$CC"}
  7341. # If no C compiler flags were specified, use CFLAGS.
  7342. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7343. # Allow CC to be a program name with arguments.
  7344. compiler=$CC
  7345. # Save the default compiler, since it gets overwritten when the other
  7346. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7347. compiler_DEFAULT=$CC
  7348. # save warnings/boilerplate of simple test code
  7349. ac_outfile=conftest.$ac_objext
  7350. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7351. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7352. _lt_compiler_boilerplate=`cat conftest.err`
  7353. $RM conftest*
  7354. ac_outfile=conftest.$ac_objext
  7355. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7356. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7357. _lt_linker_boilerplate=`cat conftest.err`
  7358. $RM -r conftest*
  7359. ## CAVEAT EMPTOR:
  7360. ## There is no encapsulation within the following macros, do not change
  7361. ## the running order or otherwise move them around unless you know exactly
  7362. ## what you are doing...
  7363. if test -n "$compiler"; then
  7364. lt_prog_compiler_no_builtin_flag=
  7365. if test "$GCC" = yes; then
  7366. case $cc_basename in
  7367. nvcc*)
  7368. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7369. *)
  7370. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7371. esac
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7373. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7374. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. lt_cv_prog_compiler_rtti_exceptions=no
  7378. ac_outfile=conftest.$ac_objext
  7379. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7380. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7381. # Insert the option either (1) after the last *FLAGS variable, or
  7382. # (2) before a word containing "conftest.", or (3) at the end.
  7383. # Note that $ac_compile itself does not contain backslashes and begins
  7384. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7385. # The option is referenced via a variable to avoid confusing sed.
  7386. lt_compile=`echo "$ac_compile" | $SED \
  7387. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7388. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7389. -e 's:$: $lt_compiler_flag:'`
  7390. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7391. (eval "$lt_compile" 2>conftest.err)
  7392. ac_status=$?
  7393. cat conftest.err >&5
  7394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7395. if (exit $ac_status) && test -s "$ac_outfile"; then
  7396. # The compiler can only warn and ignore the option if not recognized
  7397. # So say no if there are warnings other than the usual output.
  7398. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7399. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7400. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7401. lt_cv_prog_compiler_rtti_exceptions=yes
  7402. fi
  7403. fi
  7404. $RM conftest*
  7405. fi
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7407. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7408. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7409. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7410. else
  7411. :
  7412. fi
  7413. fi
  7414. lt_prog_compiler_wl=
  7415. lt_prog_compiler_pic=
  7416. lt_prog_compiler_static=
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7418. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7419. if test "$GCC" = yes; then
  7420. lt_prog_compiler_wl='-Wl,'
  7421. lt_prog_compiler_static='-static'
  7422. case $host_os in
  7423. aix*)
  7424. # All AIX code is PIC.
  7425. if test "$host_cpu" = ia64; then
  7426. # AIX 5 now supports IA64 processor
  7427. lt_prog_compiler_static='-Bstatic'
  7428. fi
  7429. lt_prog_compiler_pic='-fPIC'
  7430. ;;
  7431. amigaos*)
  7432. case $host_cpu in
  7433. powerpc)
  7434. # see comment about AmigaOS4 .so support
  7435. lt_prog_compiler_pic='-fPIC'
  7436. ;;
  7437. m68k)
  7438. # FIXME: we need at least 68020 code to build shared libraries, but
  7439. # adding the `-m68020' flag to GCC prevents building anything better,
  7440. # like `-m68040'.
  7441. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7442. ;;
  7443. esac
  7444. ;;
  7445. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7446. # PIC is the default for these OSes.
  7447. ;;
  7448. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7449. # This hack is so that the source file can tell whether it is being
  7450. # built for inclusion in a dll (and should export symbols for example).
  7451. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7452. # (--disable-auto-import) libraries
  7453. lt_prog_compiler_pic='-DDLL_EXPORT'
  7454. ;;
  7455. darwin* | rhapsody*)
  7456. # PIC is the default on this platform
  7457. # Common symbols not allowed in MH_DYLIB files
  7458. lt_prog_compiler_pic='-fno-common'
  7459. ;;
  7460. haiku*)
  7461. # PIC is the default for Haiku.
  7462. # The "-static" flag exists, but is broken.
  7463. lt_prog_compiler_static=
  7464. ;;
  7465. hpux*)
  7466. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7467. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7468. # sets the default TLS model and affects inlining.
  7469. case $host_cpu in
  7470. hppa*64*)
  7471. # +Z the default
  7472. ;;
  7473. *)
  7474. lt_prog_compiler_pic='-fPIC'
  7475. ;;
  7476. esac
  7477. ;;
  7478. interix[3-9]*)
  7479. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7480. # Instead, we relocate shared libraries at runtime.
  7481. ;;
  7482. msdosdjgpp*)
  7483. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7484. # on systems that don't support them.
  7485. lt_prog_compiler_can_build_shared=no
  7486. enable_shared=no
  7487. ;;
  7488. *nto* | *qnx*)
  7489. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7490. # it will coredump.
  7491. lt_prog_compiler_pic='-fPIC -shared'
  7492. ;;
  7493. sysv4*MP*)
  7494. if test -d /usr/nec; then
  7495. lt_prog_compiler_pic=-Kconform_pic
  7496. fi
  7497. ;;
  7498. *)
  7499. lt_prog_compiler_pic='-fPIC'
  7500. ;;
  7501. esac
  7502. case $cc_basename in
  7503. nvcc*) # Cuda Compiler Driver 2.2
  7504. lt_prog_compiler_wl='-Xlinker '
  7505. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7506. ;;
  7507. esac
  7508. else
  7509. # PORTME Check for flag to pass linker flags through the system compiler.
  7510. case $host_os in
  7511. aix*)
  7512. lt_prog_compiler_wl='-Wl,'
  7513. if test "$host_cpu" = ia64; then
  7514. # AIX 5 now supports IA64 processor
  7515. lt_prog_compiler_static='-Bstatic'
  7516. else
  7517. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7518. fi
  7519. ;;
  7520. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7521. # This hack is so that the source file can tell whether it is being
  7522. # built for inclusion in a dll (and should export symbols for example).
  7523. lt_prog_compiler_pic='-DDLL_EXPORT'
  7524. ;;
  7525. hpux9* | hpux10* | hpux11*)
  7526. lt_prog_compiler_wl='-Wl,'
  7527. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7528. # not for PA HP-UX.
  7529. case $host_cpu in
  7530. hppa*64*|ia64*)
  7531. # +Z the default
  7532. ;;
  7533. *)
  7534. lt_prog_compiler_pic='+Z'
  7535. ;;
  7536. esac
  7537. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7538. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7539. ;;
  7540. irix5* | irix6* | nonstopux*)
  7541. lt_prog_compiler_wl='-Wl,'
  7542. # PIC (with -KPIC) is the default.
  7543. lt_prog_compiler_static='-non_shared'
  7544. ;;
  7545. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7546. case $cc_basename in
  7547. # old Intel for x86_64 which still supported -KPIC.
  7548. ecc*)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='-KPIC'
  7551. lt_prog_compiler_static='-static'
  7552. ;;
  7553. # icc used to be incompatible with GCC.
  7554. # ICC 10 doesn't accept -KPIC any more.
  7555. icc* | ifort*)
  7556. lt_prog_compiler_wl='-Wl,'
  7557. lt_prog_compiler_pic='-fPIC'
  7558. lt_prog_compiler_static='-static'
  7559. ;;
  7560. # Lahey Fortran 8.1.
  7561. lf95*)
  7562. lt_prog_compiler_wl='-Wl,'
  7563. lt_prog_compiler_pic='--shared'
  7564. lt_prog_compiler_static='--static'
  7565. ;;
  7566. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7567. # Portland Group compilers (*not* the Pentium gcc compiler,
  7568. # which looks to be a dead project)
  7569. lt_prog_compiler_wl='-Wl,'
  7570. lt_prog_compiler_pic='-fpic'
  7571. lt_prog_compiler_static='-Bstatic'
  7572. ;;
  7573. ccc*)
  7574. lt_prog_compiler_wl='-Wl,'
  7575. # All Alpha code is PIC.
  7576. lt_prog_compiler_static='-non_shared'
  7577. ;;
  7578. xl* | bgxl* | bgf* | mpixl*)
  7579. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7580. lt_prog_compiler_wl='-Wl,'
  7581. lt_prog_compiler_pic='-qpic'
  7582. lt_prog_compiler_static='-qstaticlink'
  7583. ;;
  7584. *)
  7585. case `$CC -V 2>&1 | sed 5q` in
  7586. *Sun\ F* | *Sun*Fortran*)
  7587. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7588. lt_prog_compiler_pic='-KPIC'
  7589. lt_prog_compiler_static='-Bstatic'
  7590. lt_prog_compiler_wl=''
  7591. ;;
  7592. *Sun\ C*)
  7593. # Sun C 5.9
  7594. lt_prog_compiler_pic='-KPIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. lt_prog_compiler_wl='-Wl,'
  7597. ;;
  7598. esac
  7599. ;;
  7600. esac
  7601. ;;
  7602. newsos6)
  7603. lt_prog_compiler_pic='-KPIC'
  7604. lt_prog_compiler_static='-Bstatic'
  7605. ;;
  7606. *nto* | *qnx*)
  7607. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7608. # it will coredump.
  7609. lt_prog_compiler_pic='-fPIC -shared'
  7610. ;;
  7611. osf3* | osf4* | osf5*)
  7612. lt_prog_compiler_wl='-Wl,'
  7613. # All OSF/1 code is PIC.
  7614. lt_prog_compiler_static='-non_shared'
  7615. ;;
  7616. rdos*)
  7617. lt_prog_compiler_static='-non_shared'
  7618. ;;
  7619. solaris*)
  7620. lt_prog_compiler_pic='-KPIC'
  7621. lt_prog_compiler_static='-Bstatic'
  7622. case $cc_basename in
  7623. f77* | f90* | f95*)
  7624. lt_prog_compiler_wl='-Qoption ld ';;
  7625. *)
  7626. lt_prog_compiler_wl='-Wl,';;
  7627. esac
  7628. ;;
  7629. sunos4*)
  7630. lt_prog_compiler_wl='-Qoption ld '
  7631. lt_prog_compiler_pic='-PIC'
  7632. lt_prog_compiler_static='-Bstatic'
  7633. ;;
  7634. sysv4 | sysv4.2uw2* | sysv4.3*)
  7635. lt_prog_compiler_wl='-Wl,'
  7636. lt_prog_compiler_pic='-KPIC'
  7637. lt_prog_compiler_static='-Bstatic'
  7638. ;;
  7639. sysv4*MP*)
  7640. if test -d /usr/nec ;then
  7641. lt_prog_compiler_pic='-Kconform_pic'
  7642. lt_prog_compiler_static='-Bstatic'
  7643. fi
  7644. ;;
  7645. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7646. lt_prog_compiler_wl='-Wl,'
  7647. lt_prog_compiler_pic='-KPIC'
  7648. lt_prog_compiler_static='-Bstatic'
  7649. ;;
  7650. unicos*)
  7651. lt_prog_compiler_wl='-Wl,'
  7652. lt_prog_compiler_can_build_shared=no
  7653. ;;
  7654. uts4*)
  7655. lt_prog_compiler_pic='-pic'
  7656. lt_prog_compiler_static='-Bstatic'
  7657. ;;
  7658. *)
  7659. lt_prog_compiler_can_build_shared=no
  7660. ;;
  7661. esac
  7662. fi
  7663. case $host_os in
  7664. # For platforms which do not support PIC, -DPIC is meaningless:
  7665. *djgpp*)
  7666. lt_prog_compiler_pic=
  7667. ;;
  7668. *)
  7669. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7670. ;;
  7671. esac
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7673. $as_echo "$lt_prog_compiler_pic" >&6; }
  7674. #
  7675. # Check to make sure the PIC flag actually works.
  7676. #
  7677. if test -n "$lt_prog_compiler_pic"; then
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7679. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7680. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7681. $as_echo_n "(cached) " >&6
  7682. else
  7683. lt_cv_prog_compiler_pic_works=no
  7684. ac_outfile=conftest.$ac_objext
  7685. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7686. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7687. # Insert the option either (1) after the last *FLAGS variable, or
  7688. # (2) before a word containing "conftest.", or (3) at the end.
  7689. # Note that $ac_compile itself does not contain backslashes and begins
  7690. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7691. # The option is referenced via a variable to avoid confusing sed.
  7692. lt_compile=`echo "$ac_compile" | $SED \
  7693. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7694. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7695. -e 's:$: $lt_compiler_flag:'`
  7696. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7697. (eval "$lt_compile" 2>conftest.err)
  7698. ac_status=$?
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. if (exit $ac_status) && test -s "$ac_outfile"; then
  7702. # The compiler can only warn and ignore the option if not recognized
  7703. # So say no if there are warnings other than the usual output.
  7704. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7705. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7706. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7707. lt_cv_prog_compiler_pic_works=yes
  7708. fi
  7709. fi
  7710. $RM conftest*
  7711. fi
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7713. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7714. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7715. case $lt_prog_compiler_pic in
  7716. "" | " "*) ;;
  7717. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7718. esac
  7719. else
  7720. lt_prog_compiler_pic=
  7721. lt_prog_compiler_can_build_shared=no
  7722. fi
  7723. fi
  7724. #
  7725. # Check to make sure the static flag actually works.
  7726. #
  7727. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7729. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7730. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7731. $as_echo_n "(cached) " >&6
  7732. else
  7733. lt_cv_prog_compiler_static_works=no
  7734. save_LDFLAGS="$LDFLAGS"
  7735. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7736. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7737. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7738. # The linker can only warn and ignore the option if not recognized
  7739. # So say no if there are warnings
  7740. if test -s conftest.err; then
  7741. # Append any errors to the config.log.
  7742. cat conftest.err 1>&5
  7743. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7744. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7745. if diff conftest.exp conftest.er2 >/dev/null; then
  7746. lt_cv_prog_compiler_static_works=yes
  7747. fi
  7748. else
  7749. lt_cv_prog_compiler_static_works=yes
  7750. fi
  7751. fi
  7752. $RM -r conftest*
  7753. LDFLAGS="$save_LDFLAGS"
  7754. fi
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7756. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7757. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7758. :
  7759. else
  7760. lt_prog_compiler_static=
  7761. fi
  7762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7763. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7764. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7765. $as_echo_n "(cached) " >&6
  7766. else
  7767. lt_cv_prog_compiler_c_o=no
  7768. $RM -r conftest 2>/dev/null
  7769. mkdir conftest
  7770. cd conftest
  7771. mkdir out
  7772. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7773. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7774. # Insert the option either (1) after the last *FLAGS variable, or
  7775. # (2) before a word containing "conftest.", or (3) at the end.
  7776. # Note that $ac_compile itself does not contain backslashes and begins
  7777. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7778. lt_compile=`echo "$ac_compile" | $SED \
  7779. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7780. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7781. -e 's:$: $lt_compiler_flag:'`
  7782. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7783. (eval "$lt_compile" 2>out/conftest.err)
  7784. ac_status=$?
  7785. cat out/conftest.err >&5
  7786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7787. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7788. then
  7789. # The compiler can only warn and ignore the option if not recognized
  7790. # So say no if there are warnings
  7791. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7792. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7793. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7794. lt_cv_prog_compiler_c_o=yes
  7795. fi
  7796. fi
  7797. chmod u+w . 2>&5
  7798. $RM conftest*
  7799. # SGI C++ compiler will create directory out/ii_files/ for
  7800. # template instantiation
  7801. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7802. $RM out/* && rmdir out
  7803. cd ..
  7804. $RM -r conftest
  7805. $RM conftest*
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7808. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7810. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7811. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7812. $as_echo_n "(cached) " >&6
  7813. else
  7814. lt_cv_prog_compiler_c_o=no
  7815. $RM -r conftest 2>/dev/null
  7816. mkdir conftest
  7817. cd conftest
  7818. mkdir out
  7819. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7820. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7821. # Insert the option either (1) after the last *FLAGS variable, or
  7822. # (2) before a word containing "conftest.", or (3) at the end.
  7823. # Note that $ac_compile itself does not contain backslashes and begins
  7824. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7825. lt_compile=`echo "$ac_compile" | $SED \
  7826. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7827. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7828. -e 's:$: $lt_compiler_flag:'`
  7829. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7830. (eval "$lt_compile" 2>out/conftest.err)
  7831. ac_status=$?
  7832. cat out/conftest.err >&5
  7833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7835. then
  7836. # The compiler can only warn and ignore the option if not recognized
  7837. # So say no if there are warnings
  7838. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7839. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7840. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7841. lt_cv_prog_compiler_c_o=yes
  7842. fi
  7843. fi
  7844. chmod u+w . 2>&5
  7845. $RM conftest*
  7846. # SGI C++ compiler will create directory out/ii_files/ for
  7847. # template instantiation
  7848. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7849. $RM out/* && rmdir out
  7850. cd ..
  7851. $RM -r conftest
  7852. $RM conftest*
  7853. fi
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7855. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7856. hard_links="nottested"
  7857. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7858. # do not overwrite the value of need_locks provided by the user
  7859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7860. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7861. hard_links=yes
  7862. $RM conftest*
  7863. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7864. touch conftest.a
  7865. ln conftest.a conftest.b 2>&5 || hard_links=no
  7866. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7868. $as_echo "$hard_links" >&6; }
  7869. if test "$hard_links" = no; then
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7871. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7872. need_locks=warn
  7873. fi
  7874. else
  7875. need_locks=no
  7876. fi
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7878. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7879. runpath_var=
  7880. allow_undefined_flag=
  7881. always_export_symbols=no
  7882. archive_cmds=
  7883. archive_expsym_cmds=
  7884. compiler_needs_object=no
  7885. enable_shared_with_static_runtimes=no
  7886. export_dynamic_flag_spec=
  7887. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7888. hardcode_automatic=no
  7889. hardcode_direct=no
  7890. hardcode_direct_absolute=no
  7891. hardcode_libdir_flag_spec=
  7892. hardcode_libdir_flag_spec_ld=
  7893. hardcode_libdir_separator=
  7894. hardcode_minus_L=no
  7895. hardcode_shlibpath_var=unsupported
  7896. inherit_rpath=no
  7897. link_all_deplibs=unknown
  7898. module_cmds=
  7899. module_expsym_cmds=
  7900. old_archive_from_new_cmds=
  7901. old_archive_from_expsyms_cmds=
  7902. thread_safe_flag_spec=
  7903. whole_archive_flag_spec=
  7904. # include_expsyms should be a list of space-separated symbols to be *always*
  7905. # included in the symbol list
  7906. include_expsyms=
  7907. # exclude_expsyms can be an extended regexp of symbols to exclude
  7908. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7909. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7910. # as well as any symbol that contains `d'.
  7911. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7912. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7913. # platforms (ab)use it in PIC code, but their linkers get confused if
  7914. # the symbol is explicitly referenced. Since portable code cannot
  7915. # rely on this symbol name, it's probably fine to never include it in
  7916. # preloaded symbol tables.
  7917. # Exclude shared library initialization/finalization symbols.
  7918. extract_expsyms_cmds=
  7919. case $host_os in
  7920. cygwin* | mingw* | pw32* | cegcc*)
  7921. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7922. # When not using gcc, we currently assume that we are using
  7923. # Microsoft Visual C++.
  7924. if test "$GCC" != yes; then
  7925. with_gnu_ld=no
  7926. fi
  7927. ;;
  7928. interix*)
  7929. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7930. with_gnu_ld=yes
  7931. ;;
  7932. openbsd*)
  7933. with_gnu_ld=no
  7934. ;;
  7935. esac
  7936. ld_shlibs=yes
  7937. # On some targets, GNU ld is compatible enough with the native linker
  7938. # that we're better off using the native interface for both.
  7939. lt_use_gnu_ld_interface=no
  7940. if test "$with_gnu_ld" = yes; then
  7941. case $host_os in
  7942. aix*)
  7943. # The AIX port of GNU ld has always aspired to compatibility
  7944. # with the native linker. However, as the warning in the GNU ld
  7945. # block says, versions before 2.19.5* couldn't really create working
  7946. # shared libraries, regardless of the interface used.
  7947. case `$LD -v 2>&1` in
  7948. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7949. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7950. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7951. *)
  7952. lt_use_gnu_ld_interface=yes
  7953. ;;
  7954. esac
  7955. ;;
  7956. *)
  7957. lt_use_gnu_ld_interface=yes
  7958. ;;
  7959. esac
  7960. fi
  7961. if test "$lt_use_gnu_ld_interface" = yes; then
  7962. # If archive_cmds runs LD, not CC, wlarc should be empty
  7963. wlarc='${wl}'
  7964. # Set some defaults for GNU ld with shared library support. These
  7965. # are reset later if shared libraries are not supported. Putting them
  7966. # here allows them to be overridden if necessary.
  7967. runpath_var=LD_RUN_PATH
  7968. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7969. export_dynamic_flag_spec='${wl}--export-dynamic'
  7970. # ancient GNU ld didn't support --whole-archive et. al.
  7971. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7972. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7973. else
  7974. whole_archive_flag_spec=
  7975. fi
  7976. supports_anon_versioning=no
  7977. case `$LD -v 2>&1` in
  7978. *GNU\ gold*) supports_anon_versioning=yes ;;
  7979. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7980. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7981. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7982. *\ 2.11.*) ;; # other 2.11 versions
  7983. *) supports_anon_versioning=yes ;;
  7984. esac
  7985. # See if GNU ld supports shared libraries.
  7986. case $host_os in
  7987. aix[3-9]*)
  7988. # On AIX/PPC, the GNU linker is very broken
  7989. if test "$host_cpu" != ia64; then
  7990. ld_shlibs=no
  7991. cat <<_LT_EOF 1>&2
  7992. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7993. *** to be unable to reliably create shared libraries on AIX.
  7994. *** Therefore, libtool is disabling shared libraries support. If you
  7995. *** really care for shared libraries, you may want to install binutils
  7996. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7997. *** You will then need to restart the configuration process.
  7998. _LT_EOF
  7999. fi
  8000. ;;
  8001. amigaos*)
  8002. case $host_cpu in
  8003. powerpc)
  8004. # see comment about AmigaOS4 .so support
  8005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8006. archive_expsym_cmds=''
  8007. ;;
  8008. m68k)
  8009. 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)'
  8010. hardcode_libdir_flag_spec='-L$libdir'
  8011. hardcode_minus_L=yes
  8012. ;;
  8013. esac
  8014. ;;
  8015. beos*)
  8016. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8017. allow_undefined_flag=unsupported
  8018. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8019. # support --undefined. This deserves some investigation. FIXME
  8020. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8021. else
  8022. ld_shlibs=no
  8023. fi
  8024. ;;
  8025. cygwin* | mingw* | pw32* | cegcc*)
  8026. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8027. # as there is no search path for DLLs.
  8028. hardcode_libdir_flag_spec='-L$libdir'
  8029. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8030. allow_undefined_flag=unsupported
  8031. always_export_symbols=no
  8032. enable_shared_with_static_runtimes=yes
  8033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8034. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8035. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8036. # If the export-symbols file already is a .def file (1st line
  8037. # is EXPORTS), use it as is; otherwise, prepend...
  8038. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8039. cp $export_symbols $output_objdir/$soname.def;
  8040. else
  8041. echo EXPORTS > $output_objdir/$soname.def;
  8042. cat $export_symbols >> $output_objdir/$soname.def;
  8043. fi~
  8044. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8045. else
  8046. ld_shlibs=no
  8047. fi
  8048. ;;
  8049. haiku*)
  8050. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8051. link_all_deplibs=yes
  8052. ;;
  8053. interix[3-9]*)
  8054. hardcode_direct=no
  8055. hardcode_shlibpath_var=no
  8056. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8057. export_dynamic_flag_spec='${wl}-E'
  8058. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8059. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8060. # default) and relocated if they conflict, which is a slow very memory
  8061. # consuming and fragmenting process. To avoid this, we pick a random,
  8062. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8063. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8064. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8065. 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'
  8066. ;;
  8067. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8068. tmp_diet=no
  8069. if test "$host_os" = linux-dietlibc; then
  8070. case $cc_basename in
  8071. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8072. esac
  8073. fi
  8074. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8075. && test "$tmp_diet" = no
  8076. then
  8077. tmp_addflag=' $pic_flag'
  8078. tmp_sharedflag='-shared'
  8079. case $cc_basename,$host_cpu in
  8080. pgcc*) # Portland Group C compiler
  8081. 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'
  8082. tmp_addflag=' $pic_flag'
  8083. ;;
  8084. pgf77* | pgf90* | pgf95* | pgfortran*)
  8085. # Portland Group f77 and f90 compilers
  8086. 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'
  8087. tmp_addflag=' $pic_flag -Mnomain' ;;
  8088. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8089. tmp_addflag=' -i_dynamic' ;;
  8090. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8091. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8092. ifc* | ifort*) # Intel Fortran compiler
  8093. tmp_addflag=' -nofor_main' ;;
  8094. lf95*) # Lahey Fortran 8.1
  8095. whole_archive_flag_spec=
  8096. tmp_sharedflag='--shared' ;;
  8097. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8098. tmp_sharedflag='-qmkshrobj'
  8099. tmp_addflag= ;;
  8100. nvcc*) # Cuda Compiler Driver 2.2
  8101. 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'
  8102. compiler_needs_object=yes
  8103. ;;
  8104. esac
  8105. case `$CC -V 2>&1 | sed 5q` in
  8106. *Sun\ C*) # Sun C 5.9
  8107. 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'
  8108. compiler_needs_object=yes
  8109. tmp_sharedflag='-G' ;;
  8110. *Sun\ F*) # Sun Fortran 8.3
  8111. tmp_sharedflag='-G' ;;
  8112. esac
  8113. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8114. if test "x$supports_anon_versioning" = xyes; then
  8115. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8116. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8117. echo "local: *; };" >> $output_objdir/$libname.ver~
  8118. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8119. fi
  8120. case $cc_basename in
  8121. xlf* | bgf* | bgxlf* | mpixlf*)
  8122. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8123. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8124. hardcode_libdir_flag_spec=
  8125. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8126. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8127. if test "x$supports_anon_versioning" = xyes; then
  8128. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8129. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8130. echo "local: *; };" >> $output_objdir/$libname.ver~
  8131. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8132. fi
  8133. ;;
  8134. esac
  8135. else
  8136. ld_shlibs=no
  8137. fi
  8138. ;;
  8139. netbsd*)
  8140. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8141. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8142. wlarc=
  8143. else
  8144. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8145. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8146. fi
  8147. ;;
  8148. solaris*)
  8149. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8150. ld_shlibs=no
  8151. cat <<_LT_EOF 1>&2
  8152. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8153. *** create shared libraries on Solaris systems. Therefore, libtool
  8154. *** is disabling shared libraries support. We urge you to upgrade GNU
  8155. *** binutils to release 2.9.1 or newer. Another option is to modify
  8156. *** your PATH or compiler configuration so that the native linker is
  8157. *** used, and then restart.
  8158. _LT_EOF
  8159. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8160. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8161. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8162. else
  8163. ld_shlibs=no
  8164. fi
  8165. ;;
  8166. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8167. case `$LD -v 2>&1` in
  8168. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8169. ld_shlibs=no
  8170. cat <<_LT_EOF 1>&2
  8171. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8172. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8173. *** is disabling shared libraries support. We urge you to upgrade GNU
  8174. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8175. *** your PATH or compiler configuration so that the native linker is
  8176. *** used, and then restart.
  8177. _LT_EOF
  8178. ;;
  8179. *)
  8180. # For security reasons, it is highly recommended that you always
  8181. # use absolute paths for naming shared libraries, and exclude the
  8182. # DT_RUNPATH tag from executables and libraries. But doing so
  8183. # requires that you compile everything twice, which is a pain.
  8184. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8185. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8186. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8187. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8188. else
  8189. ld_shlibs=no
  8190. fi
  8191. ;;
  8192. esac
  8193. ;;
  8194. sunos4*)
  8195. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8196. wlarc=
  8197. hardcode_direct=yes
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. *)
  8201. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8202. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8203. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8204. else
  8205. ld_shlibs=no
  8206. fi
  8207. ;;
  8208. esac
  8209. if test "$ld_shlibs" = no; then
  8210. runpath_var=
  8211. hardcode_libdir_flag_spec=
  8212. export_dynamic_flag_spec=
  8213. whole_archive_flag_spec=
  8214. fi
  8215. else
  8216. # PORTME fill in a description of your system's linker (not GNU ld)
  8217. case $host_os in
  8218. aix3*)
  8219. allow_undefined_flag=unsupported
  8220. always_export_symbols=yes
  8221. 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'
  8222. # Note: this linker hardcodes the directories in LIBPATH if there
  8223. # are no directories specified by -L.
  8224. hardcode_minus_L=yes
  8225. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8226. # Neither direct hardcoding nor static linking is supported with a
  8227. # broken collect2.
  8228. hardcode_direct=unsupported
  8229. fi
  8230. ;;
  8231. aix[4-9]*)
  8232. if test "$host_cpu" = ia64; then
  8233. # On IA64, the linker does run time linking by default, so we don't
  8234. # have to do anything special.
  8235. aix_use_runtimelinking=no
  8236. exp_sym_flag='-Bexport'
  8237. no_entry_flag=""
  8238. else
  8239. # If we're using GNU nm, then we don't want the "-C" option.
  8240. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8241. # Also, AIX nm treats weak defined symbols like other global
  8242. # defined symbols, whereas GNU nm marks them as "W".
  8243. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8244. 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'
  8245. else
  8246. 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'
  8247. fi
  8248. aix_use_runtimelinking=no
  8249. # Test if we are trying to use run time linking or normal
  8250. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8251. # need to do runtime linking.
  8252. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8253. for ld_flag in $LDFLAGS; do
  8254. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8255. aix_use_runtimelinking=yes
  8256. break
  8257. fi
  8258. done
  8259. ;;
  8260. esac
  8261. exp_sym_flag='-bexport'
  8262. no_entry_flag='-bnoentry'
  8263. fi
  8264. # When large executables or shared objects are built, AIX ld can
  8265. # have problems creating the table of contents. If linking a library
  8266. # or program results in "error TOC overflow" add -mminimal-toc to
  8267. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8268. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8269. archive_cmds=''
  8270. hardcode_direct=yes
  8271. hardcode_direct_absolute=yes
  8272. hardcode_libdir_separator=':'
  8273. link_all_deplibs=yes
  8274. file_list_spec='${wl}-f,'
  8275. if test "$GCC" = yes; then
  8276. case $host_os in aix4.[012]|aix4.[012].*)
  8277. # We only want to do this on AIX 4.2 and lower, the check
  8278. # below for broken collect2 doesn't work under 4.3+
  8279. collect2name=`${CC} -print-prog-name=collect2`
  8280. if test -f "$collect2name" &&
  8281. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8282. then
  8283. # We have reworked collect2
  8284. :
  8285. else
  8286. # We have old collect2
  8287. hardcode_direct=unsupported
  8288. # It fails to find uninstalled libraries when the uninstalled
  8289. # path is not listed in the libpath. Setting hardcode_minus_L
  8290. # to unsupported forces relinking
  8291. hardcode_minus_L=yes
  8292. hardcode_libdir_flag_spec='-L$libdir'
  8293. hardcode_libdir_separator=
  8294. fi
  8295. ;;
  8296. esac
  8297. shared_flag='-shared'
  8298. if test "$aix_use_runtimelinking" = yes; then
  8299. shared_flag="$shared_flag "'${wl}-G'
  8300. fi
  8301. else
  8302. # not using gcc
  8303. if test "$host_cpu" = ia64; then
  8304. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8305. # chokes on -Wl,-G. The following line is correct:
  8306. shared_flag='-G'
  8307. else
  8308. if test "$aix_use_runtimelinking" = yes; then
  8309. shared_flag='${wl}-G'
  8310. else
  8311. shared_flag='${wl}-bM:SRE'
  8312. fi
  8313. fi
  8314. fi
  8315. export_dynamic_flag_spec='${wl}-bexpall'
  8316. # It seems that -bexpall does not export symbols beginning with
  8317. # underscore (_), so it is better to generate a list of symbols to export.
  8318. always_export_symbols=yes
  8319. if test "$aix_use_runtimelinking" = yes; then
  8320. # Warning - without using the other runtime loading flags (-brtl),
  8321. # -berok will link without error, but may produce a broken library.
  8322. allow_undefined_flag='-berok'
  8323. # Determine the default libpath from the value encoded in an
  8324. # empty executable.
  8325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8326. /* end confdefs.h. */
  8327. int
  8328. main ()
  8329. {
  8330. ;
  8331. return 0;
  8332. }
  8333. _ACEOF
  8334. if ac_fn_c_try_link "$LINENO"; then :
  8335. lt_aix_libpath_sed='
  8336. /Import File Strings/,/^$/ {
  8337. /^0/ {
  8338. s/^0 *\(.*\)$/\1/
  8339. p
  8340. }
  8341. }'
  8342. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8343. # Check for a 64-bit object if we didn't find anything.
  8344. if test -z "$aix_libpath"; then
  8345. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8346. fi
  8347. fi
  8348. rm -f core conftest.err conftest.$ac_objext \
  8349. conftest$ac_exeext conftest.$ac_ext
  8350. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8351. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8352. 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"
  8353. else
  8354. if test "$host_cpu" = ia64; then
  8355. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8356. allow_undefined_flag="-z nodefs"
  8357. 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"
  8358. else
  8359. # Determine the default libpath from the value encoded in an
  8360. # empty executable.
  8361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8362. /* end confdefs.h. */
  8363. int
  8364. main ()
  8365. {
  8366. ;
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. if ac_fn_c_try_link "$LINENO"; then :
  8371. lt_aix_libpath_sed='
  8372. /Import File Strings/,/^$/ {
  8373. /^0/ {
  8374. s/^0 *\(.*\)$/\1/
  8375. p
  8376. }
  8377. }'
  8378. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8379. # Check for a 64-bit object if we didn't find anything.
  8380. if test -z "$aix_libpath"; then
  8381. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8382. fi
  8383. fi
  8384. rm -f core conftest.err conftest.$ac_objext \
  8385. conftest$ac_exeext conftest.$ac_ext
  8386. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8387. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8388. # Warning - without using the other run time loading flags,
  8389. # -berok will link without error, but may produce a broken library.
  8390. no_undefined_flag=' ${wl}-bernotok'
  8391. allow_undefined_flag=' ${wl}-berok'
  8392. if test "$with_gnu_ld" = yes; then
  8393. # We only use this code for GNU lds that support --whole-archive.
  8394. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8395. else
  8396. # Exported symbols can be pulled into shared objects from archives
  8397. whole_archive_flag_spec='$convenience'
  8398. fi
  8399. archive_cmds_need_lc=yes
  8400. # This is similar to how AIX traditionally builds its shared libraries.
  8401. 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'
  8402. fi
  8403. fi
  8404. ;;
  8405. amigaos*)
  8406. case $host_cpu in
  8407. powerpc)
  8408. # see comment about AmigaOS4 .so support
  8409. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8410. archive_expsym_cmds=''
  8411. ;;
  8412. m68k)
  8413. 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)'
  8414. hardcode_libdir_flag_spec='-L$libdir'
  8415. hardcode_minus_L=yes
  8416. ;;
  8417. esac
  8418. ;;
  8419. bsdi[45]*)
  8420. export_dynamic_flag_spec=-rdynamic
  8421. ;;
  8422. cygwin* | mingw* | pw32* | cegcc*)
  8423. # When not using gcc, we currently assume that we are using
  8424. # Microsoft Visual C++.
  8425. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8426. # no search path for DLLs.
  8427. hardcode_libdir_flag_spec=' '
  8428. allow_undefined_flag=unsupported
  8429. # Tell ltmain to make .lib files, not .a files.
  8430. libext=lib
  8431. # Tell ltmain to make .dll files, not .so files.
  8432. shrext_cmds=".dll"
  8433. # FIXME: Setting linknames here is a bad hack.
  8434. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8435. # The linker will automatically build a .lib file if we build a DLL.
  8436. old_archive_from_new_cmds='true'
  8437. # FIXME: Should let the user specify the lib program.
  8438. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8439. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8440. enable_shared_with_static_runtimes=yes
  8441. ;;
  8442. darwin* | rhapsody*)
  8443. archive_cmds_need_lc=no
  8444. hardcode_direct=no
  8445. hardcode_automatic=yes
  8446. hardcode_shlibpath_var=unsupported
  8447. if test "$lt_cv_ld_force_load" = "yes"; then
  8448. 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\"`'
  8449. else
  8450. whole_archive_flag_spec=''
  8451. fi
  8452. link_all_deplibs=yes
  8453. allow_undefined_flag="$_lt_dar_allow_undefined"
  8454. case $cc_basename in
  8455. ifort*) _lt_dar_can_shared=yes ;;
  8456. *) _lt_dar_can_shared=$GCC ;;
  8457. esac
  8458. if test "$_lt_dar_can_shared" = "yes"; then
  8459. output_verbose_link_cmd=func_echo_all
  8460. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8461. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8462. 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}"
  8463. 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}"
  8464. else
  8465. ld_shlibs=no
  8466. fi
  8467. ;;
  8468. dgux*)
  8469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8470. hardcode_libdir_flag_spec='-L$libdir'
  8471. hardcode_shlibpath_var=no
  8472. ;;
  8473. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8474. # support. Future versions do this automatically, but an explicit c++rt0.o
  8475. # does not break anything, and helps significantly (at the cost of a little
  8476. # extra space).
  8477. freebsd2.2*)
  8478. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8479. hardcode_libdir_flag_spec='-R$libdir'
  8480. hardcode_direct=yes
  8481. hardcode_shlibpath_var=no
  8482. ;;
  8483. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8484. freebsd2.*)
  8485. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8486. hardcode_direct=yes
  8487. hardcode_minus_L=yes
  8488. hardcode_shlibpath_var=no
  8489. ;;
  8490. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8491. freebsd* | dragonfly*)
  8492. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8493. hardcode_libdir_flag_spec='-R$libdir'
  8494. hardcode_direct=yes
  8495. hardcode_shlibpath_var=no
  8496. ;;
  8497. hpux9*)
  8498. if test "$GCC" = yes; then
  8499. 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'
  8500. else
  8501. 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'
  8502. fi
  8503. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8504. hardcode_libdir_separator=:
  8505. hardcode_direct=yes
  8506. # hardcode_minus_L: Not really in the search PATH,
  8507. # but as the default location of the library.
  8508. hardcode_minus_L=yes
  8509. export_dynamic_flag_spec='${wl}-E'
  8510. ;;
  8511. hpux10*)
  8512. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8513. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8514. else
  8515. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8516. fi
  8517. if test "$with_gnu_ld" = no; then
  8518. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8519. hardcode_libdir_flag_spec_ld='+b $libdir'
  8520. hardcode_libdir_separator=:
  8521. hardcode_direct=yes
  8522. hardcode_direct_absolute=yes
  8523. export_dynamic_flag_spec='${wl}-E'
  8524. # hardcode_minus_L: Not really in the search PATH,
  8525. # but as the default location of the library.
  8526. hardcode_minus_L=yes
  8527. fi
  8528. ;;
  8529. hpux11*)
  8530. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8531. case $host_cpu in
  8532. hppa*64*)
  8533. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8534. ;;
  8535. ia64*)
  8536. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8537. ;;
  8538. *)
  8539. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8540. ;;
  8541. esac
  8542. else
  8543. case $host_cpu in
  8544. hppa*64*)
  8545. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8546. ;;
  8547. ia64*)
  8548. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8549. ;;
  8550. *)
  8551. # Older versions of the 11.00 compiler do not understand -b yet
  8552. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8554. $as_echo_n "checking if $CC understands -b... " >&6; }
  8555. if ${lt_cv_prog_compiler__b+:} false; then :
  8556. $as_echo_n "(cached) " >&6
  8557. else
  8558. lt_cv_prog_compiler__b=no
  8559. save_LDFLAGS="$LDFLAGS"
  8560. LDFLAGS="$LDFLAGS -b"
  8561. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8562. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8563. # The linker can only warn and ignore the option if not recognized
  8564. # So say no if there are warnings
  8565. if test -s conftest.err; then
  8566. # Append any errors to the config.log.
  8567. cat conftest.err 1>&5
  8568. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8569. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8570. if diff conftest.exp conftest.er2 >/dev/null; then
  8571. lt_cv_prog_compiler__b=yes
  8572. fi
  8573. else
  8574. lt_cv_prog_compiler__b=yes
  8575. fi
  8576. fi
  8577. $RM -r conftest*
  8578. LDFLAGS="$save_LDFLAGS"
  8579. fi
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8581. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8582. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8583. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8584. else
  8585. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8586. fi
  8587. ;;
  8588. esac
  8589. fi
  8590. if test "$with_gnu_ld" = no; then
  8591. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8592. hardcode_libdir_separator=:
  8593. case $host_cpu in
  8594. hppa*64*|ia64*)
  8595. hardcode_direct=no
  8596. hardcode_shlibpath_var=no
  8597. ;;
  8598. *)
  8599. hardcode_direct=yes
  8600. hardcode_direct_absolute=yes
  8601. export_dynamic_flag_spec='${wl}-E'
  8602. # hardcode_minus_L: Not really in the search PATH,
  8603. # but as the default location of the library.
  8604. hardcode_minus_L=yes
  8605. ;;
  8606. esac
  8607. fi
  8608. ;;
  8609. irix5* | irix6* | nonstopux*)
  8610. if test "$GCC" = yes; then
  8611. 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'
  8612. # Try to use the -exported_symbol ld option, if it does not
  8613. # work, assume that -exports_file does not work either and
  8614. # implicitly export all symbols.
  8615. save_LDFLAGS="$LDFLAGS"
  8616. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8618. /* end confdefs.h. */
  8619. int foo(void) {}
  8620. _ACEOF
  8621. if ac_fn_c_try_link "$LINENO"; then :
  8622. 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'
  8623. fi
  8624. rm -f core conftest.err conftest.$ac_objext \
  8625. conftest$ac_exeext conftest.$ac_ext
  8626. LDFLAGS="$save_LDFLAGS"
  8627. else
  8628. 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'
  8629. 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'
  8630. fi
  8631. archive_cmds_need_lc='no'
  8632. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8633. hardcode_libdir_separator=:
  8634. inherit_rpath=yes
  8635. link_all_deplibs=yes
  8636. ;;
  8637. netbsd*)
  8638. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8639. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8640. else
  8641. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8642. fi
  8643. hardcode_libdir_flag_spec='-R$libdir'
  8644. hardcode_direct=yes
  8645. hardcode_shlibpath_var=no
  8646. ;;
  8647. newsos6)
  8648. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8649. hardcode_direct=yes
  8650. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8651. hardcode_libdir_separator=:
  8652. hardcode_shlibpath_var=no
  8653. ;;
  8654. *nto* | *qnx*)
  8655. ;;
  8656. openbsd*)
  8657. if test -f /usr/libexec/ld.so; then
  8658. hardcode_direct=yes
  8659. hardcode_shlibpath_var=no
  8660. hardcode_direct_absolute=yes
  8661. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8662. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8663. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8664. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8665. export_dynamic_flag_spec='${wl}-E'
  8666. else
  8667. case $host_os in
  8668. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8669. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8670. hardcode_libdir_flag_spec='-R$libdir'
  8671. ;;
  8672. *)
  8673. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8674. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8675. ;;
  8676. esac
  8677. fi
  8678. else
  8679. ld_shlibs=no
  8680. fi
  8681. ;;
  8682. os2*)
  8683. hardcode_libdir_flag_spec='-L$libdir'
  8684. hardcode_minus_L=yes
  8685. allow_undefined_flag=unsupported
  8686. 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'
  8687. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8688. ;;
  8689. osf3*)
  8690. if test "$GCC" = yes; then
  8691. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8692. 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'
  8693. else
  8694. allow_undefined_flag=' -expect_unresolved \*'
  8695. 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'
  8696. fi
  8697. archive_cmds_need_lc='no'
  8698. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8699. hardcode_libdir_separator=:
  8700. ;;
  8701. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8702. if test "$GCC" = yes; then
  8703. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8704. 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'
  8705. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8706. else
  8707. allow_undefined_flag=' -expect_unresolved \*'
  8708. 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'
  8709. 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~
  8710. $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'
  8711. # Both c and cxx compiler support -rpath directly
  8712. hardcode_libdir_flag_spec='-rpath $libdir'
  8713. fi
  8714. archive_cmds_need_lc='no'
  8715. hardcode_libdir_separator=:
  8716. ;;
  8717. solaris*)
  8718. no_undefined_flag=' -z defs'
  8719. if test "$GCC" = yes; then
  8720. wlarc='${wl}'
  8721. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8722. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8723. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8724. else
  8725. case `$CC -V 2>&1` in
  8726. *"Compilers 5.0"*)
  8727. wlarc=''
  8728. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8729. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8730. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8731. ;;
  8732. *)
  8733. wlarc='${wl}'
  8734. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8735. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8736. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8737. ;;
  8738. esac
  8739. fi
  8740. hardcode_libdir_flag_spec='-R$libdir'
  8741. hardcode_shlibpath_var=no
  8742. case $host_os in
  8743. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8744. *)
  8745. # The compiler driver will combine and reorder linker options,
  8746. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8747. # but is careful enough not to reorder.
  8748. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8749. if test "$GCC" = yes; then
  8750. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8751. else
  8752. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8753. fi
  8754. ;;
  8755. esac
  8756. link_all_deplibs=yes
  8757. ;;
  8758. sunos4*)
  8759. if test "x$host_vendor" = xsequent; then
  8760. # Use $CC to link under sequent, because it throws in some extra .o
  8761. # files that make .init and .fini sections work.
  8762. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8763. else
  8764. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8765. fi
  8766. hardcode_libdir_flag_spec='-L$libdir'
  8767. hardcode_direct=yes
  8768. hardcode_minus_L=yes
  8769. hardcode_shlibpath_var=no
  8770. ;;
  8771. sysv4)
  8772. case $host_vendor in
  8773. sni)
  8774. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8775. hardcode_direct=yes # is this really true???
  8776. ;;
  8777. siemens)
  8778. ## LD is ld it makes a PLAMLIB
  8779. ## CC just makes a GrossModule.
  8780. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8781. reload_cmds='$CC -r -o $output$reload_objs'
  8782. hardcode_direct=no
  8783. ;;
  8784. motorola)
  8785. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8786. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8787. ;;
  8788. esac
  8789. runpath_var='LD_RUN_PATH'
  8790. hardcode_shlibpath_var=no
  8791. ;;
  8792. sysv4.3*)
  8793. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8794. hardcode_shlibpath_var=no
  8795. export_dynamic_flag_spec='-Bexport'
  8796. ;;
  8797. sysv4*MP*)
  8798. if test -d /usr/nec; then
  8799. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8800. hardcode_shlibpath_var=no
  8801. runpath_var=LD_RUN_PATH
  8802. hardcode_runpath_var=yes
  8803. ld_shlibs=yes
  8804. fi
  8805. ;;
  8806. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8807. no_undefined_flag='${wl}-z,text'
  8808. archive_cmds_need_lc=no
  8809. hardcode_shlibpath_var=no
  8810. runpath_var='LD_RUN_PATH'
  8811. if test "$GCC" = yes; then
  8812. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8813. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8814. else
  8815. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8816. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8817. fi
  8818. ;;
  8819. sysv5* | sco3.2v5* | sco5v6*)
  8820. # Note: We can NOT use -z defs as we might desire, because we do not
  8821. # link with -lc, and that would cause any symbols used from libc to
  8822. # always be unresolved, which means just about no library would
  8823. # ever link correctly. If we're not using GNU ld we use -z text
  8824. # though, which does catch some bad symbols but isn't as heavy-handed
  8825. # as -z defs.
  8826. no_undefined_flag='${wl}-z,text'
  8827. allow_undefined_flag='${wl}-z,nodefs'
  8828. archive_cmds_need_lc=no
  8829. hardcode_shlibpath_var=no
  8830. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8831. hardcode_libdir_separator=':'
  8832. link_all_deplibs=yes
  8833. export_dynamic_flag_spec='${wl}-Bexport'
  8834. runpath_var='LD_RUN_PATH'
  8835. if test "$GCC" = yes; then
  8836. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8837. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8838. else
  8839. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8841. fi
  8842. ;;
  8843. uts4*)
  8844. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8845. hardcode_libdir_flag_spec='-L$libdir'
  8846. hardcode_shlibpath_var=no
  8847. ;;
  8848. *)
  8849. ld_shlibs=no
  8850. ;;
  8851. esac
  8852. if test x$host_vendor = xsni; then
  8853. case $host in
  8854. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8855. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8856. ;;
  8857. esac
  8858. fi
  8859. fi
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8861. $as_echo "$ld_shlibs" >&6; }
  8862. test "$ld_shlibs" = no && can_build_shared=no
  8863. with_gnu_ld=$with_gnu_ld
  8864. #
  8865. # Do we need to explicitly link libc?
  8866. #
  8867. case "x$archive_cmds_need_lc" in
  8868. x|xyes)
  8869. # Assume -lc should be added
  8870. archive_cmds_need_lc=yes
  8871. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8872. case $archive_cmds in
  8873. *'~'*)
  8874. # FIXME: we may have to deal with multi-command sequences.
  8875. ;;
  8876. '$CC '*)
  8877. # Test whether the compiler implicitly links with -lc since on some
  8878. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8879. # to ld, don't add -lc before -lgcc.
  8880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8881. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8882. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8883. $as_echo_n "(cached) " >&6
  8884. else
  8885. $RM conftest*
  8886. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8888. (eval $ac_compile) 2>&5
  8889. ac_status=$?
  8890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8891. test $ac_status = 0; } 2>conftest.err; then
  8892. soname=conftest
  8893. lib=conftest
  8894. libobjs=conftest.$ac_objext
  8895. deplibs=
  8896. wl=$lt_prog_compiler_wl
  8897. pic_flag=$lt_prog_compiler_pic
  8898. compiler_flags=-v
  8899. linker_flags=-v
  8900. verstring=
  8901. output_objdir=.
  8902. libname=conftest
  8903. lt_save_allow_undefined_flag=$allow_undefined_flag
  8904. allow_undefined_flag=
  8905. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8906. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8907. ac_status=$?
  8908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8909. test $ac_status = 0; }
  8910. then
  8911. lt_cv_archive_cmds_need_lc=no
  8912. else
  8913. lt_cv_archive_cmds_need_lc=yes
  8914. fi
  8915. allow_undefined_flag=$lt_save_allow_undefined_flag
  8916. else
  8917. cat conftest.err 1>&5
  8918. fi
  8919. $RM conftest*
  8920. fi
  8921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8922. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8923. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8924. ;;
  8925. esac
  8926. fi
  8927. ;;
  8928. esac
  8929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8930. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8931. if test "$GCC" = yes; then
  8932. case $host_os in
  8933. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8934. *) lt_awk_arg="/^libraries:/" ;;
  8935. esac
  8936. case $host_os in
  8937. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8938. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8939. esac
  8940. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8941. case $lt_search_path_spec in
  8942. *\;*)
  8943. # if the path contains ";" then we assume it to be the separator
  8944. # otherwise default to the standard path separator (i.e. ":") - it is
  8945. # assumed that no part of a normal pathname contains ";" but that should
  8946. # okay in the real world where ";" in dirpaths is itself problematic.
  8947. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8948. ;;
  8949. *)
  8950. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8951. ;;
  8952. esac
  8953. # Ok, now we have the path, separated by spaces, we can step through it
  8954. # and add multilib dir if necessary.
  8955. lt_tmp_lt_search_path_spec=
  8956. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8957. for lt_sys_path in $lt_search_path_spec; do
  8958. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8959. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8960. else
  8961. test -d "$lt_sys_path" && \
  8962. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8963. fi
  8964. done
  8965. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8966. BEGIN {RS=" "; FS="/|\n";} {
  8967. lt_foo="";
  8968. lt_count=0;
  8969. for (lt_i = NF; lt_i > 0; lt_i--) {
  8970. if ($lt_i != "" && $lt_i != ".") {
  8971. if ($lt_i == "..") {
  8972. lt_count++;
  8973. } else {
  8974. if (lt_count == 0) {
  8975. lt_foo="/" $lt_i lt_foo;
  8976. } else {
  8977. lt_count--;
  8978. }
  8979. }
  8980. }
  8981. }
  8982. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8983. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8984. }'`
  8985. # AWK program above erroneously prepends '/' to C:/dos/paths
  8986. # for these hosts.
  8987. case $host_os in
  8988. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8989. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8990. esac
  8991. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8992. else
  8993. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8994. fi
  8995. library_names_spec=
  8996. libname_spec='lib$name'
  8997. soname_spec=
  8998. shrext_cmds=".so"
  8999. postinstall_cmds=
  9000. postuninstall_cmds=
  9001. finish_cmds=
  9002. finish_eval=
  9003. shlibpath_var=
  9004. shlibpath_overrides_runpath=unknown
  9005. version_type=none
  9006. dynamic_linker="$host_os ld.so"
  9007. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9008. need_lib_prefix=unknown
  9009. hardcode_into_libs=no
  9010. # when you set need_version to no, make sure it does not cause -set_version
  9011. # flags to be left without arguments
  9012. need_version=unknown
  9013. case $host_os in
  9014. aix3*)
  9015. version_type=linux
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9017. shlibpath_var=LIBPATH
  9018. # AIX 3 has no versioning support, so we append a major version to the name.
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. ;;
  9021. aix[4-9]*)
  9022. version_type=linux
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. hardcode_into_libs=yes
  9026. if test "$host_cpu" = ia64; then
  9027. # AIX 5 supports IA64
  9028. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9029. shlibpath_var=LD_LIBRARY_PATH
  9030. else
  9031. # With GCC up to 2.95.x, collect2 would create an import file
  9032. # for dependence libraries. The import file would start with
  9033. # the line `#! .'. This would cause the generated library to
  9034. # depend on `.', always an invalid library. This was fixed in
  9035. # development snapshots of GCC prior to 3.0.
  9036. case $host_os in
  9037. aix4 | aix4.[01] | aix4.[01].*)
  9038. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9039. echo ' yes '
  9040. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9041. :
  9042. else
  9043. can_build_shared=no
  9044. fi
  9045. ;;
  9046. esac
  9047. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9048. # soname into executable. Probably we can add versioning support to
  9049. # collect2, so additional links can be useful in future.
  9050. if test "$aix_use_runtimelinking" = yes; then
  9051. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9052. # instead of lib<name>.a to let people know that these are not
  9053. # typical AIX shared libraries.
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9055. else
  9056. # We preserve .a as extension for shared libraries through AIX4.2
  9057. # and later when we are not doing run time linking.
  9058. library_names_spec='${libname}${release}.a $libname.a'
  9059. soname_spec='${libname}${release}${shared_ext}$major'
  9060. fi
  9061. shlibpath_var=LIBPATH
  9062. fi
  9063. ;;
  9064. amigaos*)
  9065. case $host_cpu in
  9066. powerpc)
  9067. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9068. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9070. ;;
  9071. m68k)
  9072. library_names_spec='$libname.ixlibrary $libname.a'
  9073. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9074. 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'
  9075. ;;
  9076. esac
  9077. ;;
  9078. beos*)
  9079. library_names_spec='${libname}${shared_ext}'
  9080. dynamic_linker="$host_os ld.so"
  9081. shlibpath_var=LIBRARY_PATH
  9082. ;;
  9083. bsdi[45]*)
  9084. version_type=linux
  9085. need_version=no
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9091. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9092. # the default ld.so.conf also contains /usr/contrib/lib and
  9093. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9094. # libtool to hard-code these into programs
  9095. ;;
  9096. cygwin* | mingw* | pw32* | cegcc*)
  9097. version_type=windows
  9098. shrext_cmds=".dll"
  9099. need_version=no
  9100. need_lib_prefix=no
  9101. case $GCC,$host_os in
  9102. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9103. library_names_spec='$libname.dll.a'
  9104. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9105. postinstall_cmds='base_file=`basename \${file}`~
  9106. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9107. dldir=$destdir/`dirname \$dlpath`~
  9108. test -d \$dldir || mkdir -p \$dldir~
  9109. $install_prog $dir/$dlname \$dldir/$dlname~
  9110. chmod a+x \$dldir/$dlname~
  9111. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9112. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9113. fi'
  9114. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9115. dlpath=$dir/\$dldll~
  9116. $RM \$dlpath'
  9117. shlibpath_overrides_runpath=yes
  9118. case $host_os in
  9119. cygwin*)
  9120. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9121. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9122. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9123. ;;
  9124. mingw* | cegcc*)
  9125. # MinGW DLLs use traditional 'lib' prefix
  9126. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9127. ;;
  9128. pw32*)
  9129. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9130. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9131. ;;
  9132. esac
  9133. ;;
  9134. *)
  9135. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9136. ;;
  9137. esac
  9138. dynamic_linker='Win32 ld.exe'
  9139. # FIXME: first we should search . and the directory the executable is in
  9140. shlibpath_var=PATH
  9141. ;;
  9142. darwin* | rhapsody*)
  9143. dynamic_linker="$host_os dyld"
  9144. version_type=darwin
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9148. soname_spec='${libname}${release}${major}$shared_ext'
  9149. shlibpath_overrides_runpath=yes
  9150. shlibpath_var=DYLD_LIBRARY_PATH
  9151. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9152. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9153. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9154. ;;
  9155. dgux*)
  9156. version_type=linux
  9157. need_lib_prefix=no
  9158. need_version=no
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. shlibpath_var=LD_LIBRARY_PATH
  9162. ;;
  9163. freebsd* | dragonfly*)
  9164. # DragonFly does not have aout. When/if they implement a new
  9165. # versioning mechanism, adjust this.
  9166. if test -x /usr/bin/objformat; then
  9167. objformat=`/usr/bin/objformat`
  9168. else
  9169. case $host_os in
  9170. freebsd[23].*) objformat=aout ;;
  9171. *) objformat=elf ;;
  9172. esac
  9173. fi
  9174. version_type=freebsd-$objformat
  9175. case $version_type in
  9176. freebsd-elf*)
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9178. need_version=no
  9179. need_lib_prefix=no
  9180. ;;
  9181. freebsd-*)
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9183. need_version=yes
  9184. ;;
  9185. esac
  9186. shlibpath_var=LD_LIBRARY_PATH
  9187. case $host_os in
  9188. freebsd2.*)
  9189. shlibpath_overrides_runpath=yes
  9190. ;;
  9191. freebsd3.[01]* | freebsdelf3.[01]*)
  9192. shlibpath_overrides_runpath=yes
  9193. hardcode_into_libs=yes
  9194. ;;
  9195. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9196. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9197. shlibpath_overrides_runpath=no
  9198. hardcode_into_libs=yes
  9199. ;;
  9200. *) # from 4.6 on, and DragonFly
  9201. shlibpath_overrides_runpath=yes
  9202. hardcode_into_libs=yes
  9203. ;;
  9204. esac
  9205. ;;
  9206. haiku*)
  9207. version_type=linux
  9208. need_lib_prefix=no
  9209. need_version=no
  9210. dynamic_linker="$host_os runtime_loader"
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. shlibpath_var=LIBRARY_PATH
  9214. shlibpath_overrides_runpath=yes
  9215. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. hpux9* | hpux10* | hpux11*)
  9219. # Give a soname corresponding to the major version so that dld.sl refuses to
  9220. # link against other versions.
  9221. version_type=sunos
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. case $host_cpu in
  9225. ia64*)
  9226. shrext_cmds='.so'
  9227. hardcode_into_libs=yes
  9228. dynamic_linker="$host_os dld.so"
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. if test "X$HPUX_IA64_MODE" = X32; then
  9234. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9235. else
  9236. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9237. fi
  9238. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9239. ;;
  9240. hppa*64*)
  9241. shrext_cmds='.sl'
  9242. hardcode_into_libs=yes
  9243. dynamic_linker="$host_os dld.sl"
  9244. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9245. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9247. soname_spec='${libname}${release}${shared_ext}$major'
  9248. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9249. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9250. ;;
  9251. *)
  9252. shrext_cmds='.sl'
  9253. dynamic_linker="$host_os dld.sl"
  9254. shlibpath_var=SHLIB_PATH
  9255. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9257. soname_spec='${libname}${release}${shared_ext}$major'
  9258. ;;
  9259. esac
  9260. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9261. postinstall_cmds='chmod 555 $lib'
  9262. # or fails outright, so override atomically:
  9263. install_override_mode=555
  9264. ;;
  9265. interix[3-9]*)
  9266. version_type=linux
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9270. soname_spec='${libname}${release}${shared_ext}$major'
  9271. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9272. shlibpath_var=LD_LIBRARY_PATH
  9273. shlibpath_overrides_runpath=no
  9274. hardcode_into_libs=yes
  9275. ;;
  9276. irix5* | irix6* | nonstopux*)
  9277. case $host_os in
  9278. nonstopux*) version_type=nonstopux ;;
  9279. *)
  9280. if test "$lt_cv_prog_gnu_ld" = yes; then
  9281. version_type=linux
  9282. else
  9283. version_type=irix
  9284. fi ;;
  9285. esac
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9290. case $host_os in
  9291. irix5* | nonstopux*)
  9292. libsuff= shlibsuff=
  9293. ;;
  9294. *)
  9295. case $LD in # libtool.m4 will add one of these switches to LD
  9296. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9297. libsuff= shlibsuff= libmagic=32-bit;;
  9298. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9299. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9300. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9301. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9302. *) libsuff= shlibsuff= libmagic=never-match;;
  9303. esac
  9304. ;;
  9305. esac
  9306. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9307. shlibpath_overrides_runpath=no
  9308. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9309. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9310. hardcode_into_libs=yes
  9311. ;;
  9312. # No shared lib support for Linux oldld, aout, or coff.
  9313. linux*oldld* | linux*aout* | linux*coff*)
  9314. dynamic_linker=no
  9315. ;;
  9316. # This must be Linux ELF.
  9317. # uclinux* changes (here and below) have been submitted to the libtool
  9318. # project, but have not yet been accepted: they are GCC-local changes
  9319. # for the time being. (See
  9320. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9321. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9322. version_type=linux
  9323. need_lib_prefix=no
  9324. need_version=no
  9325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9326. soname_spec='${libname}${release}${shared_ext}$major'
  9327. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. shlibpath_overrides_runpath=no
  9330. # Some binutils ld are patched to set DT_RUNPATH
  9331. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9332. $as_echo_n "(cached) " >&6
  9333. else
  9334. lt_cv_shlibpath_overrides_runpath=no
  9335. save_LDFLAGS=$LDFLAGS
  9336. save_libdir=$libdir
  9337. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9338. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9340. /* end confdefs.h. */
  9341. int
  9342. main ()
  9343. {
  9344. ;
  9345. return 0;
  9346. }
  9347. _ACEOF
  9348. if ac_fn_c_try_link "$LINENO"; then :
  9349. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9350. lt_cv_shlibpath_overrides_runpath=yes
  9351. fi
  9352. fi
  9353. rm -f core conftest.err conftest.$ac_objext \
  9354. conftest$ac_exeext conftest.$ac_ext
  9355. LDFLAGS=$save_LDFLAGS
  9356. libdir=$save_libdir
  9357. fi
  9358. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9359. # This implies no fast_install, which is unacceptable.
  9360. # Some rework will be needed to allow for fast_install
  9361. # before this can be enabled.
  9362. hardcode_into_libs=yes
  9363. # Append ld.so.conf contents to the search path
  9364. if test -f /etc/ld.so.conf; then
  9365. 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' ' '`
  9366. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9367. fi
  9368. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9369. # powerpc, because MkLinux only supported shared libraries with the
  9370. # GNU dynamic linker. Since this was broken with cross compilers,
  9371. # most powerpc-linux boxes support dynamic linking these days and
  9372. # people can always --disable-shared, the test was removed, and we
  9373. # assume the GNU/Linux dynamic linker is in use.
  9374. dynamic_linker='GNU/Linux ld.so'
  9375. ;;
  9376. netbsd*)
  9377. version_type=sunos
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9382. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9383. dynamic_linker='NetBSD (a.out) ld.so'
  9384. else
  9385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9386. soname_spec='${libname}${release}${shared_ext}$major'
  9387. dynamic_linker='NetBSD ld.elf_so'
  9388. fi
  9389. shlibpath_var=LD_LIBRARY_PATH
  9390. shlibpath_overrides_runpath=yes
  9391. hardcode_into_libs=yes
  9392. ;;
  9393. newsos6)
  9394. version_type=linux
  9395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9396. shlibpath_var=LD_LIBRARY_PATH
  9397. shlibpath_overrides_runpath=yes
  9398. ;;
  9399. *nto* | *qnx*)
  9400. version_type=qnx
  9401. need_lib_prefix=no
  9402. need_version=no
  9403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9404. soname_spec='${libname}${release}${shared_ext}$major'
  9405. shlibpath_var=LD_LIBRARY_PATH
  9406. shlibpath_overrides_runpath=no
  9407. hardcode_into_libs=yes
  9408. dynamic_linker='ldqnx.so'
  9409. ;;
  9410. openbsd*)
  9411. version_type=sunos
  9412. sys_lib_dlsearch_path_spec="/usr/lib"
  9413. need_lib_prefix=no
  9414. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9415. case $host_os in
  9416. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9417. *) need_version=no ;;
  9418. esac
  9419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9421. shlibpath_var=LD_LIBRARY_PATH
  9422. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9423. case $host_os in
  9424. openbsd2.[89] | openbsd2.[89].*)
  9425. shlibpath_overrides_runpath=no
  9426. ;;
  9427. *)
  9428. shlibpath_overrides_runpath=yes
  9429. ;;
  9430. esac
  9431. else
  9432. shlibpath_overrides_runpath=yes
  9433. fi
  9434. ;;
  9435. os2*)
  9436. libname_spec='$name'
  9437. shrext_cmds=".dll"
  9438. need_lib_prefix=no
  9439. library_names_spec='$libname${shared_ext} $libname.a'
  9440. dynamic_linker='OS/2 ld.exe'
  9441. shlibpath_var=LIBPATH
  9442. ;;
  9443. osf3* | osf4* | osf5*)
  9444. version_type=osf
  9445. need_lib_prefix=no
  9446. need_version=no
  9447. soname_spec='${libname}${release}${shared_ext}$major'
  9448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9451. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9452. ;;
  9453. rdos*)
  9454. dynamic_linker=no
  9455. ;;
  9456. solaris*)
  9457. version_type=linux
  9458. need_lib_prefix=no
  9459. need_version=no
  9460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9461. soname_spec='${libname}${release}${shared_ext}$major'
  9462. shlibpath_var=LD_LIBRARY_PATH
  9463. shlibpath_overrides_runpath=yes
  9464. hardcode_into_libs=yes
  9465. # ldd complains unless libraries are executable
  9466. postinstall_cmds='chmod +x $lib'
  9467. ;;
  9468. sunos4*)
  9469. version_type=sunos
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9471. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9472. shlibpath_var=LD_LIBRARY_PATH
  9473. shlibpath_overrides_runpath=yes
  9474. if test "$with_gnu_ld" = yes; then
  9475. need_lib_prefix=no
  9476. fi
  9477. need_version=yes
  9478. ;;
  9479. sysv4 | sysv4.3*)
  9480. version_type=linux
  9481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9482. soname_spec='${libname}${release}${shared_ext}$major'
  9483. shlibpath_var=LD_LIBRARY_PATH
  9484. case $host_vendor in
  9485. sni)
  9486. shlibpath_overrides_runpath=no
  9487. need_lib_prefix=no
  9488. runpath_var=LD_RUN_PATH
  9489. ;;
  9490. siemens)
  9491. need_lib_prefix=no
  9492. ;;
  9493. motorola)
  9494. need_lib_prefix=no
  9495. need_version=no
  9496. shlibpath_overrides_runpath=no
  9497. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9498. ;;
  9499. esac
  9500. ;;
  9501. sysv4*MP*)
  9502. if test -d /usr/nec ;then
  9503. version_type=linux
  9504. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9505. soname_spec='$libname${shared_ext}.$major'
  9506. shlibpath_var=LD_LIBRARY_PATH
  9507. fi
  9508. ;;
  9509. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9510. version_type=freebsd-elf
  9511. need_lib_prefix=no
  9512. need_version=no
  9513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9514. soname_spec='${libname}${release}${shared_ext}$major'
  9515. shlibpath_var=LD_LIBRARY_PATH
  9516. shlibpath_overrides_runpath=yes
  9517. hardcode_into_libs=yes
  9518. if test "$with_gnu_ld" = yes; then
  9519. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9520. else
  9521. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9522. case $host_os in
  9523. sco3.2v5*)
  9524. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9525. ;;
  9526. esac
  9527. fi
  9528. sys_lib_dlsearch_path_spec='/usr/lib'
  9529. ;;
  9530. tpf*)
  9531. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9532. version_type=linux
  9533. need_lib_prefix=no
  9534. need_version=no
  9535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9536. shlibpath_var=LD_LIBRARY_PATH
  9537. shlibpath_overrides_runpath=no
  9538. hardcode_into_libs=yes
  9539. ;;
  9540. uts4*)
  9541. version_type=linux
  9542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9543. soname_spec='${libname}${release}${shared_ext}$major'
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. ;;
  9546. *)
  9547. dynamic_linker=no
  9548. ;;
  9549. esac
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9551. $as_echo "$dynamic_linker" >&6; }
  9552. test "$dynamic_linker" = no && can_build_shared=no
  9553. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9554. if test "$GCC" = yes; then
  9555. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9556. fi
  9557. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9558. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9559. fi
  9560. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9561. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9562. fi
  9563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9564. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9565. hardcode_action=
  9566. if test -n "$hardcode_libdir_flag_spec" ||
  9567. test -n "$runpath_var" ||
  9568. test "X$hardcode_automatic" = "Xyes" ; then
  9569. # We can hardcode non-existent directories.
  9570. if test "$hardcode_direct" != no &&
  9571. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9572. # have to relink, otherwise we might link with an installed library
  9573. # when we should be linking with a yet-to-be-installed one
  9574. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9575. test "$hardcode_minus_L" != no; then
  9576. # Linking always hardcodes the temporary library directory.
  9577. hardcode_action=relink
  9578. else
  9579. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9580. hardcode_action=immediate
  9581. fi
  9582. else
  9583. # We cannot hardcode anything, or else we can only hardcode existing
  9584. # directories.
  9585. hardcode_action=unsupported
  9586. fi
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9588. $as_echo "$hardcode_action" >&6; }
  9589. if test "$hardcode_action" = relink ||
  9590. test "$inherit_rpath" = yes; then
  9591. # Fast installation is not supported
  9592. enable_fast_install=no
  9593. elif test "$shlibpath_overrides_runpath" = yes ||
  9594. test "$enable_shared" = no; then
  9595. # Fast installation is not necessary
  9596. enable_fast_install=needless
  9597. fi
  9598. if test "x$enable_dlopen" != xyes; then
  9599. enable_dlopen=unknown
  9600. enable_dlopen_self=unknown
  9601. enable_dlopen_self_static=unknown
  9602. else
  9603. lt_cv_dlopen=no
  9604. lt_cv_dlopen_libs=
  9605. case $host_os in
  9606. beos*)
  9607. lt_cv_dlopen="load_add_on"
  9608. lt_cv_dlopen_libs=
  9609. lt_cv_dlopen_self=yes
  9610. ;;
  9611. mingw* | pw32* | cegcc*)
  9612. lt_cv_dlopen="LoadLibrary"
  9613. lt_cv_dlopen_libs=
  9614. ;;
  9615. cygwin*)
  9616. lt_cv_dlopen="dlopen"
  9617. lt_cv_dlopen_libs=
  9618. ;;
  9619. darwin*)
  9620. # if libdl is installed we need to link against it
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9622. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9623. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9624. $as_echo_n "(cached) " >&6
  9625. else
  9626. ac_check_lib_save_LIBS=$LIBS
  9627. LIBS="-ldl $LIBS"
  9628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9629. /* end confdefs.h. */
  9630. /* Override any GCC internal prototype to avoid an error.
  9631. Use char because int might match the return type of a GCC
  9632. builtin and then its argument prototype would still apply. */
  9633. #ifdef __cplusplus
  9634. extern "C"
  9635. #endif
  9636. char dlopen ();
  9637. int
  9638. main ()
  9639. {
  9640. return dlopen ();
  9641. ;
  9642. return 0;
  9643. }
  9644. _ACEOF
  9645. if ac_fn_c_try_link "$LINENO"; then :
  9646. ac_cv_lib_dl_dlopen=yes
  9647. else
  9648. ac_cv_lib_dl_dlopen=no
  9649. fi
  9650. rm -f core conftest.err conftest.$ac_objext \
  9651. conftest$ac_exeext conftest.$ac_ext
  9652. LIBS=$ac_check_lib_save_LIBS
  9653. fi
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9655. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9656. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9657. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9658. else
  9659. lt_cv_dlopen="dyld"
  9660. lt_cv_dlopen_libs=
  9661. lt_cv_dlopen_self=yes
  9662. fi
  9663. ;;
  9664. *)
  9665. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9666. if test "x$ac_cv_func_shl_load" = xyes; then :
  9667. lt_cv_dlopen="shl_load"
  9668. else
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9670. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9671. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9672. $as_echo_n "(cached) " >&6
  9673. else
  9674. ac_check_lib_save_LIBS=$LIBS
  9675. LIBS="-ldld $LIBS"
  9676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9677. /* end confdefs.h. */
  9678. /* Override any GCC internal prototype to avoid an error.
  9679. Use char because int might match the return type of a GCC
  9680. builtin and then its argument prototype would still apply. */
  9681. #ifdef __cplusplus
  9682. extern "C"
  9683. #endif
  9684. char shl_load ();
  9685. int
  9686. main ()
  9687. {
  9688. return shl_load ();
  9689. ;
  9690. return 0;
  9691. }
  9692. _ACEOF
  9693. if ac_fn_c_try_link "$LINENO"; then :
  9694. ac_cv_lib_dld_shl_load=yes
  9695. else
  9696. ac_cv_lib_dld_shl_load=no
  9697. fi
  9698. rm -f core conftest.err conftest.$ac_objext \
  9699. conftest$ac_exeext conftest.$ac_ext
  9700. LIBS=$ac_check_lib_save_LIBS
  9701. fi
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9703. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9704. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9705. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9706. else
  9707. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9708. if test "x$ac_cv_func_dlopen" = xyes; then :
  9709. lt_cv_dlopen="dlopen"
  9710. else
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9712. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9713. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9714. $as_echo_n "(cached) " >&6
  9715. else
  9716. ac_check_lib_save_LIBS=$LIBS
  9717. LIBS="-ldl $LIBS"
  9718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9719. /* end confdefs.h. */
  9720. /* Override any GCC internal prototype to avoid an error.
  9721. Use char because int might match the return type of a GCC
  9722. builtin and then its argument prototype would still apply. */
  9723. #ifdef __cplusplus
  9724. extern "C"
  9725. #endif
  9726. char dlopen ();
  9727. int
  9728. main ()
  9729. {
  9730. return dlopen ();
  9731. ;
  9732. return 0;
  9733. }
  9734. _ACEOF
  9735. if ac_fn_c_try_link "$LINENO"; then :
  9736. ac_cv_lib_dl_dlopen=yes
  9737. else
  9738. ac_cv_lib_dl_dlopen=no
  9739. fi
  9740. rm -f core conftest.err conftest.$ac_objext \
  9741. conftest$ac_exeext conftest.$ac_ext
  9742. LIBS=$ac_check_lib_save_LIBS
  9743. fi
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9745. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9746. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9747. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9748. else
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9750. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9751. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9752. $as_echo_n "(cached) " >&6
  9753. else
  9754. ac_check_lib_save_LIBS=$LIBS
  9755. LIBS="-lsvld $LIBS"
  9756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9757. /* end confdefs.h. */
  9758. /* Override any GCC internal prototype to avoid an error.
  9759. Use char because int might match the return type of a GCC
  9760. builtin and then its argument prototype would still apply. */
  9761. #ifdef __cplusplus
  9762. extern "C"
  9763. #endif
  9764. char dlopen ();
  9765. int
  9766. main ()
  9767. {
  9768. return dlopen ();
  9769. ;
  9770. return 0;
  9771. }
  9772. _ACEOF
  9773. if ac_fn_c_try_link "$LINENO"; then :
  9774. ac_cv_lib_svld_dlopen=yes
  9775. else
  9776. ac_cv_lib_svld_dlopen=no
  9777. fi
  9778. rm -f core conftest.err conftest.$ac_objext \
  9779. conftest$ac_exeext conftest.$ac_ext
  9780. LIBS=$ac_check_lib_save_LIBS
  9781. fi
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9783. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9784. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9785. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9786. else
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9788. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9789. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9790. $as_echo_n "(cached) " >&6
  9791. else
  9792. ac_check_lib_save_LIBS=$LIBS
  9793. LIBS="-ldld $LIBS"
  9794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9795. /* end confdefs.h. */
  9796. /* Override any GCC internal prototype to avoid an error.
  9797. Use char because int might match the return type of a GCC
  9798. builtin and then its argument prototype would still apply. */
  9799. #ifdef __cplusplus
  9800. extern "C"
  9801. #endif
  9802. char dld_link ();
  9803. int
  9804. main ()
  9805. {
  9806. return dld_link ();
  9807. ;
  9808. return 0;
  9809. }
  9810. _ACEOF
  9811. if ac_fn_c_try_link "$LINENO"; then :
  9812. ac_cv_lib_dld_dld_link=yes
  9813. else
  9814. ac_cv_lib_dld_dld_link=no
  9815. fi
  9816. rm -f core conftest.err conftest.$ac_objext \
  9817. conftest$ac_exeext conftest.$ac_ext
  9818. LIBS=$ac_check_lib_save_LIBS
  9819. fi
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9821. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9822. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9823. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9824. fi
  9825. fi
  9826. fi
  9827. fi
  9828. fi
  9829. fi
  9830. ;;
  9831. esac
  9832. if test "x$lt_cv_dlopen" != xno; then
  9833. enable_dlopen=yes
  9834. else
  9835. enable_dlopen=no
  9836. fi
  9837. case $lt_cv_dlopen in
  9838. dlopen)
  9839. save_CPPFLAGS="$CPPFLAGS"
  9840. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9841. save_LDFLAGS="$LDFLAGS"
  9842. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9843. save_LIBS="$LIBS"
  9844. LIBS="$lt_cv_dlopen_libs $LIBS"
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9846. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9847. if ${lt_cv_dlopen_self+:} false; then :
  9848. $as_echo_n "(cached) " >&6
  9849. else
  9850. if test "$cross_compiling" = yes; then :
  9851. lt_cv_dlopen_self=cross
  9852. else
  9853. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9854. lt_status=$lt_dlunknown
  9855. cat > conftest.$ac_ext <<_LT_EOF
  9856. #line 11434 "configure"
  9857. #include "confdefs.h"
  9858. #if HAVE_DLFCN_H
  9859. #include <dlfcn.h>
  9860. #endif
  9861. #include <stdio.h>
  9862. #ifdef RTLD_GLOBAL
  9863. # define LT_DLGLOBAL RTLD_GLOBAL
  9864. #else
  9865. # ifdef DL_GLOBAL
  9866. # define LT_DLGLOBAL DL_GLOBAL
  9867. # else
  9868. # define LT_DLGLOBAL 0
  9869. # endif
  9870. #endif
  9871. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9872. find out it does not work in some platform. */
  9873. #ifndef LT_DLLAZY_OR_NOW
  9874. # ifdef RTLD_LAZY
  9875. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9876. # else
  9877. # ifdef DL_LAZY
  9878. # define LT_DLLAZY_OR_NOW DL_LAZY
  9879. # else
  9880. # ifdef RTLD_NOW
  9881. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9882. # else
  9883. # ifdef DL_NOW
  9884. # define LT_DLLAZY_OR_NOW DL_NOW
  9885. # else
  9886. # define LT_DLLAZY_OR_NOW 0
  9887. # endif
  9888. # endif
  9889. # endif
  9890. # endif
  9891. #endif
  9892. /* When -fvisbility=hidden is used, assume the code has been annotated
  9893. correspondingly for the symbols needed. */
  9894. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9895. void fnord () __attribute__((visibility("default")));
  9896. #endif
  9897. void fnord () { int i=42; }
  9898. int main ()
  9899. {
  9900. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9901. int status = $lt_dlunknown;
  9902. if (self)
  9903. {
  9904. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9905. else
  9906. {
  9907. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9908. else puts (dlerror ());
  9909. }
  9910. /* dlclose (self); */
  9911. }
  9912. else
  9913. puts (dlerror ());
  9914. return status;
  9915. }
  9916. _LT_EOF
  9917. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9918. (eval $ac_link) 2>&5
  9919. ac_status=$?
  9920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9921. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9922. (./conftest; exit; ) >&5 2>/dev/null
  9923. lt_status=$?
  9924. case x$lt_status in
  9925. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9926. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9927. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9928. esac
  9929. else :
  9930. # compilation failed
  9931. lt_cv_dlopen_self=no
  9932. fi
  9933. fi
  9934. rm -fr conftest*
  9935. fi
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9937. $as_echo "$lt_cv_dlopen_self" >&6; }
  9938. if test "x$lt_cv_dlopen_self" = xyes; then
  9939. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9941. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9942. if ${lt_cv_dlopen_self_static+:} false; then :
  9943. $as_echo_n "(cached) " >&6
  9944. else
  9945. if test "$cross_compiling" = yes; then :
  9946. lt_cv_dlopen_self_static=cross
  9947. else
  9948. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9949. lt_status=$lt_dlunknown
  9950. cat > conftest.$ac_ext <<_LT_EOF
  9951. #line 11540 "configure"
  9952. #include "confdefs.h"
  9953. #if HAVE_DLFCN_H
  9954. #include <dlfcn.h>
  9955. #endif
  9956. #include <stdio.h>
  9957. #ifdef RTLD_GLOBAL
  9958. # define LT_DLGLOBAL RTLD_GLOBAL
  9959. #else
  9960. # ifdef DL_GLOBAL
  9961. # define LT_DLGLOBAL DL_GLOBAL
  9962. # else
  9963. # define LT_DLGLOBAL 0
  9964. # endif
  9965. #endif
  9966. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9967. find out it does not work in some platform. */
  9968. #ifndef LT_DLLAZY_OR_NOW
  9969. # ifdef RTLD_LAZY
  9970. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9971. # else
  9972. # ifdef DL_LAZY
  9973. # define LT_DLLAZY_OR_NOW DL_LAZY
  9974. # else
  9975. # ifdef RTLD_NOW
  9976. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9977. # else
  9978. # ifdef DL_NOW
  9979. # define LT_DLLAZY_OR_NOW DL_NOW
  9980. # else
  9981. # define LT_DLLAZY_OR_NOW 0
  9982. # endif
  9983. # endif
  9984. # endif
  9985. # endif
  9986. #endif
  9987. /* When -fvisbility=hidden is used, assume the code has been annotated
  9988. correspondingly for the symbols needed. */
  9989. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9990. void fnord () __attribute__((visibility("default")));
  9991. #endif
  9992. void fnord () { int i=42; }
  9993. int main ()
  9994. {
  9995. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9996. int status = $lt_dlunknown;
  9997. if (self)
  9998. {
  9999. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10000. else
  10001. {
  10002. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10003. else puts (dlerror ());
  10004. }
  10005. /* dlclose (self); */
  10006. }
  10007. else
  10008. puts (dlerror ());
  10009. return status;
  10010. }
  10011. _LT_EOF
  10012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10013. (eval $ac_link) 2>&5
  10014. ac_status=$?
  10015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10016. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10017. (./conftest; exit; ) >&5 2>/dev/null
  10018. lt_status=$?
  10019. case x$lt_status in
  10020. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10021. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10022. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10023. esac
  10024. else :
  10025. # compilation failed
  10026. lt_cv_dlopen_self_static=no
  10027. fi
  10028. fi
  10029. rm -fr conftest*
  10030. fi
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10032. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10033. fi
  10034. CPPFLAGS="$save_CPPFLAGS"
  10035. LDFLAGS="$save_LDFLAGS"
  10036. LIBS="$save_LIBS"
  10037. ;;
  10038. esac
  10039. case $lt_cv_dlopen_self in
  10040. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10041. *) enable_dlopen_self=unknown ;;
  10042. esac
  10043. case $lt_cv_dlopen_self_static in
  10044. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10045. *) enable_dlopen_self_static=unknown ;;
  10046. esac
  10047. fi
  10048. striplib=
  10049. old_striplib=
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10051. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10052. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10053. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10054. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10056. $as_echo "yes" >&6; }
  10057. else
  10058. # FIXME - insert some real tests, host_os isn't really good enough
  10059. case $host_os in
  10060. darwin*)
  10061. if test -n "$STRIP" ; then
  10062. striplib="$STRIP -x"
  10063. old_striplib="$STRIP -S"
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10065. $as_echo "yes" >&6; }
  10066. else
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10068. $as_echo "no" >&6; }
  10069. fi
  10070. ;;
  10071. *)
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10073. $as_echo "no" >&6; }
  10074. ;;
  10075. esac
  10076. fi
  10077. # Report which library types will actually be built
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10079. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10081. $as_echo "$can_build_shared" >&6; }
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10083. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10084. test "$can_build_shared" = "no" && enable_shared=no
  10085. # On AIX, shared libraries and static libraries use the same namespace, and
  10086. # are all built from PIC.
  10087. case $host_os in
  10088. aix3*)
  10089. test "$enable_shared" = yes && enable_static=no
  10090. if test -n "$RANLIB"; then
  10091. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10092. postinstall_cmds='$RANLIB $lib'
  10093. fi
  10094. ;;
  10095. aix[4-9]*)
  10096. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10097. test "$enable_shared" = yes && enable_static=no
  10098. fi
  10099. ;;
  10100. esac
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10102. $as_echo "$enable_shared" >&6; }
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10104. $as_echo_n "checking whether to build static libraries... " >&6; }
  10105. # Make sure either enable_shared or enable_static is yes.
  10106. test "$enable_shared" = yes || enable_static=yes
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10108. $as_echo "$enable_static" >&6; }
  10109. fi
  10110. ac_ext=c
  10111. ac_cpp='$CPP $CPPFLAGS'
  10112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10115. CC="$lt_save_CC"
  10116. ac_config_commands="$ac_config_commands libtool"
  10117. # Only expand once:
  10118. case $host in
  10119. *-cygwin* | *-mingw*)
  10120. # 'host' will be top-level target in the case of a target lib,
  10121. # we must compare to with_cross_host to decide if this is a native
  10122. # or cross-compiler and select where to install dlls appropriately.
  10123. if test -n "$with_cross_host" &&
  10124. test x"$with_cross_host" != x"no"; then
  10125. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  10126. else
  10127. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  10128. fi
  10129. ;;
  10130. *)
  10131. lt_host_flags=
  10132. ;;
  10133. esac
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10135. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10136. # Check whether --enable-maintainer-mode was given.
  10137. if test "${enable_maintainer_mode+set}" = set; then :
  10138. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10139. else
  10140. USE_MAINTAINER_MODE=no
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10143. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10144. if test $USE_MAINTAINER_MODE = yes; then
  10145. MAINTAINER_MODE_TRUE=
  10146. MAINTAINER_MODE_FALSE='#'
  10147. else
  10148. MAINTAINER_MODE_TRUE='#'
  10149. MAINTAINER_MODE_FALSE=
  10150. fi
  10151. MAINT=$MAINTAINER_MODE_TRUE
  10152. # Create a spec file, so that compile/link tests don't fail
  10153. test -f libgfortran.spec || touch libgfortran.spec
  10154. FCFLAGS="$FCFLAGS -L."
  10155. # We need gfortran to compile parts of the library
  10156. # We can't use AC_PROG_FC because it expects a fully working gfortran.
  10157. #AC_PROG_FC(gfortran)
  10158. case `echo $GFORTRAN` in
  10159. -* | no* )
  10160. FC=no ;;
  10161. *)
  10162. set dummy $GFORTRAN; ac_word=$2
  10163. if test -x "$ac_word"; then
  10164. FC="$GFORTRAN"
  10165. else
  10166. FC=no
  10167. fi ;;
  10168. esac
  10169. ac_ext=${ac_fc_srcext-f}
  10170. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10171. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10172. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10173. if test -n "$ac_tool_prefix"; then
  10174. for ac_prog in gfortran
  10175. do
  10176. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10177. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10179. $as_echo_n "checking for $ac_word... " >&6; }
  10180. if ${ac_cv_prog_FC+:} false; then :
  10181. $as_echo_n "(cached) " >&6
  10182. else
  10183. if test -n "$FC"; then
  10184. ac_cv_prog_FC="$FC" # Let the user override the test.
  10185. else
  10186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10187. for as_dir in $PATH
  10188. do
  10189. IFS=$as_save_IFS
  10190. test -z "$as_dir" && as_dir=.
  10191. for ac_exec_ext in '' $ac_executable_extensions; do
  10192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10193. ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
  10194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10195. break 2
  10196. fi
  10197. done
  10198. done
  10199. IFS=$as_save_IFS
  10200. fi
  10201. fi
  10202. FC=$ac_cv_prog_FC
  10203. if test -n "$FC"; then
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
  10205. $as_echo "$FC" >&6; }
  10206. else
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10208. $as_echo "no" >&6; }
  10209. fi
  10210. test -n "$FC" && break
  10211. done
  10212. fi
  10213. if test -z "$FC"; then
  10214. ac_ct_FC=$FC
  10215. for ac_prog in gfortran
  10216. do
  10217. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10218. set dummy $ac_prog; ac_word=$2
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10220. $as_echo_n "checking for $ac_word... " >&6; }
  10221. if ${ac_cv_prog_ac_ct_FC+:} false; then :
  10222. $as_echo_n "(cached) " >&6
  10223. else
  10224. if test -n "$ac_ct_FC"; then
  10225. ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
  10226. else
  10227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10228. for as_dir in $PATH
  10229. do
  10230. IFS=$as_save_IFS
  10231. test -z "$as_dir" && as_dir=.
  10232. for ac_exec_ext in '' $ac_executable_extensions; do
  10233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10234. ac_cv_prog_ac_ct_FC="$ac_prog"
  10235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10236. break 2
  10237. fi
  10238. done
  10239. done
  10240. IFS=$as_save_IFS
  10241. fi
  10242. fi
  10243. ac_ct_FC=$ac_cv_prog_ac_ct_FC
  10244. if test -n "$ac_ct_FC"; then
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
  10246. $as_echo "$ac_ct_FC" >&6; }
  10247. else
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10249. $as_echo "no" >&6; }
  10250. fi
  10251. test -n "$ac_ct_FC" && break
  10252. done
  10253. if test "x$ac_ct_FC" = x; then
  10254. FC=""
  10255. else
  10256. case $cross_compiling:$ac_tool_warned in
  10257. yes:)
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10259. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10260. ac_tool_warned=yes ;;
  10261. esac
  10262. FC=$ac_ct_FC
  10263. fi
  10264. fi
  10265. # Provide some information about the compiler.
  10266. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
  10267. set X $ac_compile
  10268. ac_compiler=$2
  10269. for ac_option in --version -v -V -qversion; do
  10270. { { ac_try="$ac_compiler $ac_option >&5"
  10271. case "(($ac_try" in
  10272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10273. *) ac_try_echo=$ac_try;;
  10274. esac
  10275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10276. $as_echo "$ac_try_echo"; } >&5
  10277. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10278. ac_status=$?
  10279. if test -s conftest.err; then
  10280. sed '10a\
  10281. ... rest of stderr output deleted ...
  10282. 10q' conftest.err >conftest.er1
  10283. cat conftest.er1 >&5
  10284. fi
  10285. rm -f conftest.er1 conftest.err
  10286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10287. test $ac_status = 0; }
  10288. done
  10289. rm -f a.out
  10290. # If we don't use `.F' as extension, the preprocessor is not run on the
  10291. # input file. (Note that this only needs to work for GNU compilers.)
  10292. ac_save_ext=$ac_ext
  10293. ac_ext=F
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
  10295. $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
  10296. if ${ac_cv_fc_compiler_gnu+:} false; then :
  10297. $as_echo_n "(cached) " >&6
  10298. else
  10299. cat > conftest.$ac_ext <<_ACEOF
  10300. program main
  10301. #ifndef __GNUC__
  10302. choke me
  10303. #endif
  10304. end
  10305. _ACEOF
  10306. if ac_fn_fc_try_compile "$LINENO"; then :
  10307. ac_compiler_gnu=yes
  10308. else
  10309. ac_compiler_gnu=no
  10310. fi
  10311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10312. ac_cv_fc_compiler_gnu=$ac_compiler_gnu
  10313. fi
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
  10315. $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
  10316. ac_ext=$ac_save_ext
  10317. ac_test_FCFLAGS=${FCFLAGS+set}
  10318. ac_save_FCFLAGS=$FCFLAGS
  10319. FCFLAGS=
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
  10321. $as_echo_n "checking whether $FC accepts -g... " >&6; }
  10322. if ${ac_cv_prog_fc_g+:} false; then :
  10323. $as_echo_n "(cached) " >&6
  10324. else
  10325. FCFLAGS=-g
  10326. cat > conftest.$ac_ext <<_ACEOF
  10327. program main
  10328. end
  10329. _ACEOF
  10330. if ac_fn_fc_try_compile "$LINENO"; then :
  10331. ac_cv_prog_fc_g=yes
  10332. else
  10333. ac_cv_prog_fc_g=no
  10334. fi
  10335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10336. fi
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
  10338. $as_echo "$ac_cv_prog_fc_g" >&6; }
  10339. if test "$ac_test_FCFLAGS" = set; then
  10340. FCFLAGS=$ac_save_FCFLAGS
  10341. elif test $ac_cv_prog_fc_g = yes; then
  10342. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10343. FCFLAGS="-g -O2"
  10344. else
  10345. FCFLAGS="-g"
  10346. fi
  10347. else
  10348. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10349. FCFLAGS="-O2"
  10350. else
  10351. FCFLAGS=
  10352. fi
  10353. fi
  10354. if test $ac_compiler_gnu = yes; then
  10355. GFC=yes
  10356. else
  10357. GFC=
  10358. fi
  10359. ac_ext=c
  10360. ac_cpp='$CPP $CPPFLAGS'
  10361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10364. ac_ext=${ac_fc_srcext-f}
  10365. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10366. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10367. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10368. if test -z "$FC" || test "X$FC" = "Xno"; then
  10369. _lt_disable_FC=yes
  10370. fi
  10371. archive_cmds_need_lc_FC=no
  10372. allow_undefined_flag_FC=
  10373. always_export_symbols_FC=no
  10374. archive_expsym_cmds_FC=
  10375. export_dynamic_flag_spec_FC=
  10376. hardcode_direct_FC=no
  10377. hardcode_direct_absolute_FC=no
  10378. hardcode_libdir_flag_spec_FC=
  10379. hardcode_libdir_flag_spec_ld_FC=
  10380. hardcode_libdir_separator_FC=
  10381. hardcode_minus_L_FC=no
  10382. hardcode_automatic_FC=no
  10383. inherit_rpath_FC=no
  10384. module_cmds_FC=
  10385. module_expsym_cmds_FC=
  10386. link_all_deplibs_FC=unknown
  10387. old_archive_cmds_FC=$old_archive_cmds
  10388. reload_flag_FC=$reload_flag
  10389. reload_cmds_FC=$reload_cmds
  10390. no_undefined_flag_FC=
  10391. whole_archive_flag_spec_FC=
  10392. enable_shared_with_static_runtimes_FC=no
  10393. # Source file extension for fc test sources.
  10394. ac_ext=${ac_fc_srcext-f}
  10395. # Object file extension for compiled fc test sources.
  10396. objext=o
  10397. objext_FC=$objext
  10398. # No sense in running all these tests if we already determined that
  10399. # the FC compiler isn't working. Some variables (like enable_shared)
  10400. # are currently assumed to apply to all compilers on this platform,
  10401. # and will be corrupted by setting them based on a non-working compiler.
  10402. if test "$_lt_disable_FC" != yes; then
  10403. # Code to be used in simple compile tests
  10404. lt_simple_compile_test_code="\
  10405. subroutine t
  10406. return
  10407. end
  10408. "
  10409. # Code to be used in simple link tests
  10410. lt_simple_link_test_code="\
  10411. program t
  10412. end
  10413. "
  10414. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10415. # If no C compiler was specified, use CC.
  10416. LTCC=${LTCC-"$CC"}
  10417. # If no C compiler flags were specified, use CFLAGS.
  10418. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10419. # Allow CC to be a program name with arguments.
  10420. compiler=$CC
  10421. # save warnings/boilerplate of simple test code
  10422. ac_outfile=conftest.$ac_objext
  10423. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10424. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10425. _lt_compiler_boilerplate=`cat conftest.err`
  10426. $RM conftest*
  10427. ac_outfile=conftest.$ac_objext
  10428. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10429. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10430. _lt_linker_boilerplate=`cat conftest.err`
  10431. $RM -r conftest*
  10432. # Allow CC to be a program name with arguments.
  10433. lt_save_CC="$CC"
  10434. lt_save_GCC=$GCC
  10435. CC=${FC-"f95"}
  10436. compiler=$CC
  10437. GCC=$ac_cv_fc_compiler_gnu
  10438. compiler_FC=$CC
  10439. for cc_temp in $compiler""; do
  10440. case $cc_temp in
  10441. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10442. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10443. \-*) ;;
  10444. *) break;;
  10445. esac
  10446. done
  10447. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10448. if test -n "$compiler"; then
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10450. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10452. $as_echo "$can_build_shared" >&6; }
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10454. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10455. test "$can_build_shared" = "no" && enable_shared=no
  10456. # On AIX, shared libraries and static libraries use the same namespace, and
  10457. # are all built from PIC.
  10458. case $host_os in
  10459. aix3*)
  10460. test "$enable_shared" = yes && enable_static=no
  10461. if test -n "$RANLIB"; then
  10462. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10463. postinstall_cmds='$RANLIB $lib'
  10464. fi
  10465. ;;
  10466. aix[4-9]*)
  10467. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10468. test "$enable_shared" = yes && enable_static=no
  10469. fi
  10470. ;;
  10471. esac
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10473. $as_echo "$enable_shared" >&6; }
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10475. $as_echo_n "checking whether to build static libraries... " >&6; }
  10476. # Make sure either enable_shared or enable_static is yes.
  10477. test "$enable_shared" = yes || enable_static=yes
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10479. $as_echo "$enable_static" >&6; }
  10480. GCC_FC="$ac_cv_fc_compiler_gnu"
  10481. LD_FC="$LD"
  10482. ## CAVEAT EMPTOR:
  10483. ## There is no encapsulation within the following macros, do not change
  10484. ## the running order or otherwise move them around unless you know exactly
  10485. ## what you are doing...
  10486. # Dependencies to place before and after the object being linked:
  10487. predep_objects_FC=
  10488. postdep_objects_FC=
  10489. predeps_FC=
  10490. postdeps_FC=
  10491. compiler_lib_search_path_FC=
  10492. cat > conftest.$ac_ext <<_LT_EOF
  10493. subroutine foo
  10494. implicit none
  10495. integer a
  10496. a=0
  10497. return
  10498. end
  10499. _LT_EOF
  10500. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10501. (eval $ac_compile) 2>&5
  10502. ac_status=$?
  10503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10504. test $ac_status = 0; }; then
  10505. # Parse the compiler output and extract the necessary
  10506. # objects, libraries and library flags.
  10507. # Sentinel used to keep track of whether or not we are before
  10508. # the conftest object file.
  10509. pre_test_object_deps_done=no
  10510. for p in `eval "$output_verbose_link_cmd"`; do
  10511. case $p in
  10512. -L* | -R* | -l*)
  10513. # Some compilers place space between "-{L,R}" and the path.
  10514. # Remove the space.
  10515. if test $p = "-L" ||
  10516. test $p = "-R"; then
  10517. prev=$p
  10518. continue
  10519. else
  10520. prev=
  10521. fi
  10522. if test "$pre_test_object_deps_done" = no; then
  10523. case $p in
  10524. -L* | -R*)
  10525. # Internal compiler library paths should come after those
  10526. # provided the user. The postdeps already come after the
  10527. # user supplied libs so there is no need to process them.
  10528. if test -z "$compiler_lib_search_path_FC"; then
  10529. compiler_lib_search_path_FC="${prev}${p}"
  10530. else
  10531. compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
  10532. fi
  10533. ;;
  10534. # The "-l" case would never come before the object being
  10535. # linked, so don't bother handling this case.
  10536. esac
  10537. else
  10538. if test -z "$postdeps_FC"; then
  10539. postdeps_FC="${prev}${p}"
  10540. else
  10541. postdeps_FC="${postdeps_FC} ${prev}${p}"
  10542. fi
  10543. fi
  10544. ;;
  10545. *.$objext)
  10546. # This assumes that the test object file only shows up
  10547. # once in the compiler output.
  10548. if test "$p" = "conftest.$objext"; then
  10549. pre_test_object_deps_done=yes
  10550. continue
  10551. fi
  10552. if test "$pre_test_object_deps_done" = no; then
  10553. if test -z "$predep_objects_FC"; then
  10554. predep_objects_FC="$p"
  10555. else
  10556. predep_objects_FC="$predep_objects_FC $p"
  10557. fi
  10558. else
  10559. if test -z "$postdep_objects_FC"; then
  10560. postdep_objects_FC="$p"
  10561. else
  10562. postdep_objects_FC="$postdep_objects_FC $p"
  10563. fi
  10564. fi
  10565. ;;
  10566. *) ;; # Ignore the rest.
  10567. esac
  10568. done
  10569. # Clean up.
  10570. rm -f a.out a.exe
  10571. else
  10572. echo "libtool.m4: error: problem compiling FC test program"
  10573. fi
  10574. $RM -f confest.$objext
  10575. # PORTME: override above test on systems where it is broken
  10576. case " $postdeps_FC " in
  10577. *" -lc "*) archive_cmds_need_lc_FC=no ;;
  10578. esac
  10579. compiler_lib_search_dirs_FC=
  10580. if test -n "${compiler_lib_search_path_FC}"; then
  10581. compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10582. fi
  10583. lt_prog_compiler_wl_FC=
  10584. lt_prog_compiler_pic_FC=
  10585. lt_prog_compiler_static_FC=
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10587. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10588. if test "$GCC" = yes; then
  10589. lt_prog_compiler_wl_FC='-Wl,'
  10590. lt_prog_compiler_static_FC='-static'
  10591. case $host_os in
  10592. aix*)
  10593. # All AIX code is PIC.
  10594. if test "$host_cpu" = ia64; then
  10595. # AIX 5 now supports IA64 processor
  10596. lt_prog_compiler_static_FC='-Bstatic'
  10597. fi
  10598. lt_prog_compiler_pic_FC='-fPIC'
  10599. ;;
  10600. amigaos*)
  10601. case $host_cpu in
  10602. powerpc)
  10603. # see comment about AmigaOS4 .so support
  10604. lt_prog_compiler_pic_FC='-fPIC'
  10605. ;;
  10606. m68k)
  10607. # FIXME: we need at least 68020 code to build shared libraries, but
  10608. # adding the `-m68020' flag to GCC prevents building anything better,
  10609. # like `-m68040'.
  10610. lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
  10611. ;;
  10612. esac
  10613. ;;
  10614. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10615. # PIC is the default for these OSes.
  10616. ;;
  10617. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10618. # This hack is so that the source file can tell whether it is being
  10619. # built for inclusion in a dll (and should export symbols for example).
  10620. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10621. # (--disable-auto-import) libraries
  10622. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10623. ;;
  10624. darwin* | rhapsody*)
  10625. # PIC is the default on this platform
  10626. # Common symbols not allowed in MH_DYLIB files
  10627. lt_prog_compiler_pic_FC='-fno-common'
  10628. ;;
  10629. haiku*)
  10630. # PIC is the default for Haiku.
  10631. # The "-static" flag exists, but is broken.
  10632. lt_prog_compiler_static_FC=
  10633. ;;
  10634. hpux*)
  10635. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10636. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10637. # sets the default TLS model and affects inlining.
  10638. case $host_cpu in
  10639. hppa*64*)
  10640. # +Z the default
  10641. ;;
  10642. *)
  10643. lt_prog_compiler_pic_FC='-fPIC'
  10644. ;;
  10645. esac
  10646. ;;
  10647. interix[3-9]*)
  10648. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10649. # Instead, we relocate shared libraries at runtime.
  10650. ;;
  10651. msdosdjgpp*)
  10652. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10653. # on systems that don't support them.
  10654. lt_prog_compiler_can_build_shared_FC=no
  10655. enable_shared=no
  10656. ;;
  10657. *nto* | *qnx*)
  10658. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10659. # it will coredump.
  10660. lt_prog_compiler_pic_FC='-fPIC -shared'
  10661. ;;
  10662. sysv4*MP*)
  10663. if test -d /usr/nec; then
  10664. lt_prog_compiler_pic_FC=-Kconform_pic
  10665. fi
  10666. ;;
  10667. *)
  10668. lt_prog_compiler_pic_FC='-fPIC'
  10669. ;;
  10670. esac
  10671. case $cc_basename in
  10672. nvcc*) # Cuda Compiler Driver 2.2
  10673. lt_prog_compiler_wl_FC='-Xlinker '
  10674. lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
  10675. ;;
  10676. esac
  10677. else
  10678. # PORTME Check for flag to pass linker flags through the system compiler.
  10679. case $host_os in
  10680. aix*)
  10681. lt_prog_compiler_wl_FC='-Wl,'
  10682. if test "$host_cpu" = ia64; then
  10683. # AIX 5 now supports IA64 processor
  10684. lt_prog_compiler_static_FC='-Bstatic'
  10685. else
  10686. lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
  10687. fi
  10688. ;;
  10689. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10690. # This hack is so that the source file can tell whether it is being
  10691. # built for inclusion in a dll (and should export symbols for example).
  10692. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10693. ;;
  10694. hpux9* | hpux10* | hpux11*)
  10695. lt_prog_compiler_wl_FC='-Wl,'
  10696. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10697. # not for PA HP-UX.
  10698. case $host_cpu in
  10699. hppa*64*|ia64*)
  10700. # +Z the default
  10701. ;;
  10702. *)
  10703. lt_prog_compiler_pic_FC='+Z'
  10704. ;;
  10705. esac
  10706. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10707. lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
  10708. ;;
  10709. irix5* | irix6* | nonstopux*)
  10710. lt_prog_compiler_wl_FC='-Wl,'
  10711. # PIC (with -KPIC) is the default.
  10712. lt_prog_compiler_static_FC='-non_shared'
  10713. ;;
  10714. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10715. case $cc_basename in
  10716. # old Intel for x86_64 which still supported -KPIC.
  10717. ecc*)
  10718. lt_prog_compiler_wl_FC='-Wl,'
  10719. lt_prog_compiler_pic_FC='-KPIC'
  10720. lt_prog_compiler_static_FC='-static'
  10721. ;;
  10722. # icc used to be incompatible with GCC.
  10723. # ICC 10 doesn't accept -KPIC any more.
  10724. icc* | ifort*)
  10725. lt_prog_compiler_wl_FC='-Wl,'
  10726. lt_prog_compiler_pic_FC='-fPIC'
  10727. lt_prog_compiler_static_FC='-static'
  10728. ;;
  10729. # Lahey Fortran 8.1.
  10730. lf95*)
  10731. lt_prog_compiler_wl_FC='-Wl,'
  10732. lt_prog_compiler_pic_FC='--shared'
  10733. lt_prog_compiler_static_FC='--static'
  10734. ;;
  10735. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10736. # Portland Group compilers (*not* the Pentium gcc compiler,
  10737. # which looks to be a dead project)
  10738. lt_prog_compiler_wl_FC='-Wl,'
  10739. lt_prog_compiler_pic_FC='-fpic'
  10740. lt_prog_compiler_static_FC='-Bstatic'
  10741. ;;
  10742. ccc*)
  10743. lt_prog_compiler_wl_FC='-Wl,'
  10744. # All Alpha code is PIC.
  10745. lt_prog_compiler_static_FC='-non_shared'
  10746. ;;
  10747. xl* | bgxl* | bgf* | mpixl*)
  10748. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10749. lt_prog_compiler_wl_FC='-Wl,'
  10750. lt_prog_compiler_pic_FC='-qpic'
  10751. lt_prog_compiler_static_FC='-qstaticlink'
  10752. ;;
  10753. *)
  10754. case `$CC -V 2>&1 | sed 5q` in
  10755. *Sun\ F* | *Sun*Fortran*)
  10756. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10757. lt_prog_compiler_pic_FC='-KPIC'
  10758. lt_prog_compiler_static_FC='-Bstatic'
  10759. lt_prog_compiler_wl_FC=''
  10760. ;;
  10761. *Sun\ C*)
  10762. # Sun C 5.9
  10763. lt_prog_compiler_pic_FC='-KPIC'
  10764. lt_prog_compiler_static_FC='-Bstatic'
  10765. lt_prog_compiler_wl_FC='-Wl,'
  10766. ;;
  10767. esac
  10768. ;;
  10769. esac
  10770. ;;
  10771. newsos6)
  10772. lt_prog_compiler_pic_FC='-KPIC'
  10773. lt_prog_compiler_static_FC='-Bstatic'
  10774. ;;
  10775. *nto* | *qnx*)
  10776. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10777. # it will coredump.
  10778. lt_prog_compiler_pic_FC='-fPIC -shared'
  10779. ;;
  10780. osf3* | osf4* | osf5*)
  10781. lt_prog_compiler_wl_FC='-Wl,'
  10782. # All OSF/1 code is PIC.
  10783. lt_prog_compiler_static_FC='-non_shared'
  10784. ;;
  10785. rdos*)
  10786. lt_prog_compiler_static_FC='-non_shared'
  10787. ;;
  10788. solaris*)
  10789. lt_prog_compiler_pic_FC='-KPIC'
  10790. lt_prog_compiler_static_FC='-Bstatic'
  10791. case $cc_basename in
  10792. f77* | f90* | f95*)
  10793. lt_prog_compiler_wl_FC='-Qoption ld ';;
  10794. *)
  10795. lt_prog_compiler_wl_FC='-Wl,';;
  10796. esac
  10797. ;;
  10798. sunos4*)
  10799. lt_prog_compiler_wl_FC='-Qoption ld '
  10800. lt_prog_compiler_pic_FC='-PIC'
  10801. lt_prog_compiler_static_FC='-Bstatic'
  10802. ;;
  10803. sysv4 | sysv4.2uw2* | sysv4.3*)
  10804. lt_prog_compiler_wl_FC='-Wl,'
  10805. lt_prog_compiler_pic_FC='-KPIC'
  10806. lt_prog_compiler_static_FC='-Bstatic'
  10807. ;;
  10808. sysv4*MP*)
  10809. if test -d /usr/nec ;then
  10810. lt_prog_compiler_pic_FC='-Kconform_pic'
  10811. lt_prog_compiler_static_FC='-Bstatic'
  10812. fi
  10813. ;;
  10814. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10815. lt_prog_compiler_wl_FC='-Wl,'
  10816. lt_prog_compiler_pic_FC='-KPIC'
  10817. lt_prog_compiler_static_FC='-Bstatic'
  10818. ;;
  10819. unicos*)
  10820. lt_prog_compiler_wl_FC='-Wl,'
  10821. lt_prog_compiler_can_build_shared_FC=no
  10822. ;;
  10823. uts4*)
  10824. lt_prog_compiler_pic_FC='-pic'
  10825. lt_prog_compiler_static_FC='-Bstatic'
  10826. ;;
  10827. *)
  10828. lt_prog_compiler_can_build_shared_FC=no
  10829. ;;
  10830. esac
  10831. fi
  10832. case $host_os in
  10833. # For platforms which do not support PIC, -DPIC is meaningless:
  10834. *djgpp*)
  10835. lt_prog_compiler_pic_FC=
  10836. ;;
  10837. *)
  10838. lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
  10839. ;;
  10840. esac
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
  10842. $as_echo "$lt_prog_compiler_pic_FC" >&6; }
  10843. #
  10844. # Check to make sure the PIC flag actually works.
  10845. #
  10846. if test -n "$lt_prog_compiler_pic_FC"; then
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
  10848. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
  10849. if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. lt_cv_prog_compiler_pic_works_FC=no
  10853. ac_outfile=conftest.$ac_objext
  10854. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10855. lt_compiler_flag="$lt_prog_compiler_pic_FC"
  10856. # Insert the option either (1) after the last *FLAGS variable, or
  10857. # (2) before a word containing "conftest.", or (3) at the end.
  10858. # Note that $ac_compile itself does not contain backslashes and begins
  10859. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10860. # The option is referenced via a variable to avoid confusing sed.
  10861. lt_compile=`echo "$ac_compile" | $SED \
  10862. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10863. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10864. -e 's:$: $lt_compiler_flag:'`
  10865. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10866. (eval "$lt_compile" 2>conftest.err)
  10867. ac_status=$?
  10868. cat conftest.err >&5
  10869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10870. if (exit $ac_status) && test -s "$ac_outfile"; then
  10871. # The compiler can only warn and ignore the option if not recognized
  10872. # So say no if there are warnings other than the usual output.
  10873. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10874. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10875. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10876. lt_cv_prog_compiler_pic_works_FC=yes
  10877. fi
  10878. fi
  10879. $RM conftest*
  10880. fi
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
  10882. $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
  10883. if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
  10884. case $lt_prog_compiler_pic_FC in
  10885. "" | " "*) ;;
  10886. *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
  10887. esac
  10888. else
  10889. lt_prog_compiler_pic_FC=
  10890. lt_prog_compiler_can_build_shared_FC=no
  10891. fi
  10892. fi
  10893. #
  10894. # Check to make sure the static flag actually works.
  10895. #
  10896. wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
  10897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10898. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10899. if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
  10900. $as_echo_n "(cached) " >&6
  10901. else
  10902. lt_cv_prog_compiler_static_works_FC=no
  10903. save_LDFLAGS="$LDFLAGS"
  10904. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10905. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10906. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10907. # The linker can only warn and ignore the option if not recognized
  10908. # So say no if there are warnings
  10909. if test -s conftest.err; then
  10910. # Append any errors to the config.log.
  10911. cat conftest.err 1>&5
  10912. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10913. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10914. if diff conftest.exp conftest.er2 >/dev/null; then
  10915. lt_cv_prog_compiler_static_works_FC=yes
  10916. fi
  10917. else
  10918. lt_cv_prog_compiler_static_works_FC=yes
  10919. fi
  10920. fi
  10921. $RM -r conftest*
  10922. LDFLAGS="$save_LDFLAGS"
  10923. fi
  10924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
  10925. $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
  10926. if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
  10927. :
  10928. else
  10929. lt_prog_compiler_static_FC=
  10930. fi
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10932. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10933. if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
  10934. $as_echo_n "(cached) " >&6
  10935. else
  10936. lt_cv_prog_compiler_c_o_FC=no
  10937. $RM -r conftest 2>/dev/null
  10938. mkdir conftest
  10939. cd conftest
  10940. mkdir out
  10941. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10942. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10943. # Insert the option either (1) after the last *FLAGS variable, or
  10944. # (2) before a word containing "conftest.", or (3) at the end.
  10945. # Note that $ac_compile itself does not contain backslashes and begins
  10946. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10947. lt_compile=`echo "$ac_compile" | $SED \
  10948. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10949. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10950. -e 's:$: $lt_compiler_flag:'`
  10951. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10952. (eval "$lt_compile" 2>out/conftest.err)
  10953. ac_status=$?
  10954. cat out/conftest.err >&5
  10955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10956. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10957. then
  10958. # The compiler can only warn and ignore the option if not recognized
  10959. # So say no if there are warnings
  10960. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10961. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10962. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10963. lt_cv_prog_compiler_c_o_FC=yes
  10964. fi
  10965. fi
  10966. chmod u+w . 2>&5
  10967. $RM conftest*
  10968. # SGI C++ compiler will create directory out/ii_files/ for
  10969. # template instantiation
  10970. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10971. $RM out/* && rmdir out
  10972. cd ..
  10973. $RM -r conftest
  10974. $RM conftest*
  10975. fi
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10977. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10979. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10980. if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. lt_cv_prog_compiler_c_o_FC=no
  10984. $RM -r conftest 2>/dev/null
  10985. mkdir conftest
  10986. cd conftest
  10987. mkdir out
  10988. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10989. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10990. # Insert the option either (1) after the last *FLAGS variable, or
  10991. # (2) before a word containing "conftest.", or (3) at the end.
  10992. # Note that $ac_compile itself does not contain backslashes and begins
  10993. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10994. lt_compile=`echo "$ac_compile" | $SED \
  10995. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10996. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10997. -e 's:$: $lt_compiler_flag:'`
  10998. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10999. (eval "$lt_compile" 2>out/conftest.err)
  11000. ac_status=$?
  11001. cat out/conftest.err >&5
  11002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11003. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11004. then
  11005. # The compiler can only warn and ignore the option if not recognized
  11006. # So say no if there are warnings
  11007. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11008. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11009. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11010. lt_cv_prog_compiler_c_o_FC=yes
  11011. fi
  11012. fi
  11013. chmod u+w . 2>&5
  11014. $RM conftest*
  11015. # SGI C++ compiler will create directory out/ii_files/ for
  11016. # template instantiation
  11017. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11018. $RM out/* && rmdir out
  11019. cd ..
  11020. $RM -r conftest
  11021. $RM conftest*
  11022. fi
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  11024. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  11025. hard_links="nottested"
  11026. if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
  11027. # do not overwrite the value of need_locks provided by the user
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11029. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11030. hard_links=yes
  11031. $RM conftest*
  11032. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11033. touch conftest.a
  11034. ln conftest.a conftest.b 2>&5 || hard_links=no
  11035. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11037. $as_echo "$hard_links" >&6; }
  11038. if test "$hard_links" = no; then
  11039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11040. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11041. need_locks=warn
  11042. fi
  11043. else
  11044. need_locks=no
  11045. fi
  11046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11047. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11048. runpath_var=
  11049. allow_undefined_flag_FC=
  11050. always_export_symbols_FC=no
  11051. archive_cmds_FC=
  11052. archive_expsym_cmds_FC=
  11053. compiler_needs_object_FC=no
  11054. enable_shared_with_static_runtimes_FC=no
  11055. export_dynamic_flag_spec_FC=
  11056. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11057. hardcode_automatic_FC=no
  11058. hardcode_direct_FC=no
  11059. hardcode_direct_absolute_FC=no
  11060. hardcode_libdir_flag_spec_FC=
  11061. hardcode_libdir_flag_spec_ld_FC=
  11062. hardcode_libdir_separator_FC=
  11063. hardcode_minus_L_FC=no
  11064. hardcode_shlibpath_var_FC=unsupported
  11065. inherit_rpath_FC=no
  11066. link_all_deplibs_FC=unknown
  11067. module_cmds_FC=
  11068. module_expsym_cmds_FC=
  11069. old_archive_from_new_cmds_FC=
  11070. old_archive_from_expsyms_cmds_FC=
  11071. thread_safe_flag_spec_FC=
  11072. whole_archive_flag_spec_FC=
  11073. # include_expsyms should be a list of space-separated symbols to be *always*
  11074. # included in the symbol list
  11075. include_expsyms_FC=
  11076. # exclude_expsyms can be an extended regexp of symbols to exclude
  11077. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11078. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11079. # as well as any symbol that contains `d'.
  11080. exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11081. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11082. # platforms (ab)use it in PIC code, but their linkers get confused if
  11083. # the symbol is explicitly referenced. Since portable code cannot
  11084. # rely on this symbol name, it's probably fine to never include it in
  11085. # preloaded symbol tables.
  11086. # Exclude shared library initialization/finalization symbols.
  11087. extract_expsyms_cmds=
  11088. case $host_os in
  11089. cygwin* | mingw* | pw32* | cegcc*)
  11090. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11091. # When not using gcc, we currently assume that we are using
  11092. # Microsoft Visual C++.
  11093. if test "$GCC" != yes; then
  11094. with_gnu_ld=no
  11095. fi
  11096. ;;
  11097. interix*)
  11098. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11099. with_gnu_ld=yes
  11100. ;;
  11101. openbsd*)
  11102. with_gnu_ld=no
  11103. ;;
  11104. esac
  11105. ld_shlibs_FC=yes
  11106. # On some targets, GNU ld is compatible enough with the native linker
  11107. # that we're better off using the native interface for both.
  11108. lt_use_gnu_ld_interface=no
  11109. if test "$with_gnu_ld" = yes; then
  11110. case $host_os in
  11111. aix*)
  11112. # The AIX port of GNU ld has always aspired to compatibility
  11113. # with the native linker. However, as the warning in the GNU ld
  11114. # block says, versions before 2.19.5* couldn't really create working
  11115. # shared libraries, regardless of the interface used.
  11116. case `$LD -v 2>&1` in
  11117. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  11118. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  11119. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  11120. *)
  11121. lt_use_gnu_ld_interface=yes
  11122. ;;
  11123. esac
  11124. ;;
  11125. *)
  11126. lt_use_gnu_ld_interface=yes
  11127. ;;
  11128. esac
  11129. fi
  11130. if test "$lt_use_gnu_ld_interface" = yes; then
  11131. # If archive_cmds runs LD, not CC, wlarc should be empty
  11132. wlarc='${wl}'
  11133. # Set some defaults for GNU ld with shared library support. These
  11134. # are reset later if shared libraries are not supported. Putting them
  11135. # here allows them to be overridden if necessary.
  11136. runpath_var=LD_RUN_PATH
  11137. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11138. export_dynamic_flag_spec_FC='${wl}--export-dynamic'
  11139. # ancient GNU ld didn't support --whole-archive et. al.
  11140. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11141. whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11142. else
  11143. whole_archive_flag_spec_FC=
  11144. fi
  11145. supports_anon_versioning=no
  11146. case `$LD -v 2>&1` in
  11147. *GNU\ gold*) supports_anon_versioning=yes ;;
  11148. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11149. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11150. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11151. *\ 2.11.*) ;; # other 2.11 versions
  11152. *) supports_anon_versioning=yes ;;
  11153. esac
  11154. # See if GNU ld supports shared libraries.
  11155. case $host_os in
  11156. aix[3-9]*)
  11157. # On AIX/PPC, the GNU linker is very broken
  11158. if test "$host_cpu" != ia64; then
  11159. ld_shlibs_FC=no
  11160. cat <<_LT_EOF 1>&2
  11161. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11162. *** to be unable to reliably create shared libraries on AIX.
  11163. *** Therefore, libtool is disabling shared libraries support. If you
  11164. *** really care for shared libraries, you may want to install binutils
  11165. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11166. *** You will then need to restart the configuration process.
  11167. _LT_EOF
  11168. fi
  11169. ;;
  11170. amigaos*)
  11171. case $host_cpu in
  11172. powerpc)
  11173. # see comment about AmigaOS4 .so support
  11174. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11175. archive_expsym_cmds_FC=''
  11176. ;;
  11177. m68k)
  11178. archive_cmds_FC='$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)'
  11179. hardcode_libdir_flag_spec_FC='-L$libdir'
  11180. hardcode_minus_L_FC=yes
  11181. ;;
  11182. esac
  11183. ;;
  11184. beos*)
  11185. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11186. allow_undefined_flag_FC=unsupported
  11187. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11188. # support --undefined. This deserves some investigation. FIXME
  11189. archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11190. else
  11191. ld_shlibs_FC=no
  11192. fi
  11193. ;;
  11194. cygwin* | mingw* | pw32* | cegcc*)
  11195. # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
  11196. # as there is no search path for DLLs.
  11197. hardcode_libdir_flag_spec_FC='-L$libdir'
  11198. export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
  11199. allow_undefined_flag_FC=unsupported
  11200. always_export_symbols_FC=no
  11201. enable_shared_with_static_runtimes_FC=yes
  11202. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11203. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11204. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11205. # If the export-symbols file already is a .def file (1st line
  11206. # is EXPORTS), use it as is; otherwise, prepend...
  11207. archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11208. cp $export_symbols $output_objdir/$soname.def;
  11209. else
  11210. echo EXPORTS > $output_objdir/$soname.def;
  11211. cat $export_symbols >> $output_objdir/$soname.def;
  11212. fi~
  11213. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11214. else
  11215. ld_shlibs_FC=no
  11216. fi
  11217. ;;
  11218. haiku*)
  11219. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11220. link_all_deplibs_FC=yes
  11221. ;;
  11222. interix[3-9]*)
  11223. hardcode_direct_FC=no
  11224. hardcode_shlibpath_var_FC=no
  11225. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11226. export_dynamic_flag_spec_FC='${wl}-E'
  11227. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11228. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11229. # default) and relocated if they conflict, which is a slow very memory
  11230. # consuming and fragmenting process. To avoid this, we pick a random,
  11231. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11232. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11233. archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11234. archive_expsym_cmds_FC='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'
  11235. ;;
  11236. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  11237. tmp_diet=no
  11238. if test "$host_os" = linux-dietlibc; then
  11239. case $cc_basename in
  11240. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11241. esac
  11242. fi
  11243. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11244. && test "$tmp_diet" = no
  11245. then
  11246. tmp_addflag=' $pic_flag'
  11247. tmp_sharedflag='-shared'
  11248. case $cc_basename,$host_cpu in
  11249. pgcc*) # Portland Group C compiler
  11250. whole_archive_flag_spec_FC='${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'
  11251. tmp_addflag=' $pic_flag'
  11252. ;;
  11253. pgf77* | pgf90* | pgf95* | pgfortran*)
  11254. # Portland Group f77 and f90 compilers
  11255. whole_archive_flag_spec_FC='${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'
  11256. tmp_addflag=' $pic_flag -Mnomain' ;;
  11257. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11258. tmp_addflag=' -i_dynamic' ;;
  11259. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11260. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11261. ifc* | ifort*) # Intel Fortran compiler
  11262. tmp_addflag=' -nofor_main' ;;
  11263. lf95*) # Lahey Fortran 8.1
  11264. whole_archive_flag_spec_FC=
  11265. tmp_sharedflag='--shared' ;;
  11266. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11267. tmp_sharedflag='-qmkshrobj'
  11268. tmp_addflag= ;;
  11269. nvcc*) # Cuda Compiler Driver 2.2
  11270. whole_archive_flag_spec_FC='${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'
  11271. compiler_needs_object_FC=yes
  11272. ;;
  11273. esac
  11274. case `$CC -V 2>&1 | sed 5q` in
  11275. *Sun\ C*) # Sun C 5.9
  11276. whole_archive_flag_spec_FC='${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'
  11277. compiler_needs_object_FC=yes
  11278. tmp_sharedflag='-G' ;;
  11279. *Sun\ F*) # Sun Fortran 8.3
  11280. tmp_sharedflag='-G' ;;
  11281. esac
  11282. archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11283. if test "x$supports_anon_versioning" = xyes; then
  11284. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11285. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11286. echo "local: *; };" >> $output_objdir/$libname.ver~
  11287. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11288. fi
  11289. case $cc_basename in
  11290. xlf* | bgf* | bgxlf* | mpixlf*)
  11291. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11292. whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
  11293. hardcode_libdir_flag_spec_FC=
  11294. hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
  11295. archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11296. if test "x$supports_anon_versioning" = xyes; then
  11297. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11298. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11299. echo "local: *; };" >> $output_objdir/$libname.ver~
  11300. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11301. fi
  11302. ;;
  11303. esac
  11304. else
  11305. ld_shlibs_FC=no
  11306. fi
  11307. ;;
  11308. netbsd*)
  11309. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11310. archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11311. wlarc=
  11312. else
  11313. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11314. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11315. fi
  11316. ;;
  11317. solaris*)
  11318. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11319. ld_shlibs_FC=no
  11320. cat <<_LT_EOF 1>&2
  11321. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11322. *** create shared libraries on Solaris systems. Therefore, libtool
  11323. *** is disabling shared libraries support. We urge you to upgrade GNU
  11324. *** binutils to release 2.9.1 or newer. Another option is to modify
  11325. *** your PATH or compiler configuration so that the native linker is
  11326. *** used, and then restart.
  11327. _LT_EOF
  11328. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11329. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11330. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11331. else
  11332. ld_shlibs_FC=no
  11333. fi
  11334. ;;
  11335. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11336. case `$LD -v 2>&1` in
  11337. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11338. ld_shlibs_FC=no
  11339. cat <<_LT_EOF 1>&2
  11340. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11341. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11342. *** is disabling shared libraries support. We urge you to upgrade GNU
  11343. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11344. *** your PATH or compiler configuration so that the native linker is
  11345. *** used, and then restart.
  11346. _LT_EOF
  11347. ;;
  11348. *)
  11349. # For security reasons, it is highly recommended that you always
  11350. # use absolute paths for naming shared libraries, and exclude the
  11351. # DT_RUNPATH tag from executables and libraries. But doing so
  11352. # requires that you compile everything twice, which is a pain.
  11353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11354. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11355. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11356. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11357. else
  11358. ld_shlibs_FC=no
  11359. fi
  11360. ;;
  11361. esac
  11362. ;;
  11363. sunos4*)
  11364. archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11365. wlarc=
  11366. hardcode_direct_FC=yes
  11367. hardcode_shlibpath_var_FC=no
  11368. ;;
  11369. *)
  11370. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11371. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11372. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11373. else
  11374. ld_shlibs_FC=no
  11375. fi
  11376. ;;
  11377. esac
  11378. if test "$ld_shlibs_FC" = no; then
  11379. runpath_var=
  11380. hardcode_libdir_flag_spec_FC=
  11381. export_dynamic_flag_spec_FC=
  11382. whole_archive_flag_spec_FC=
  11383. fi
  11384. else
  11385. # PORTME fill in a description of your system's linker (not GNU ld)
  11386. case $host_os in
  11387. aix3*)
  11388. allow_undefined_flag_FC=unsupported
  11389. always_export_symbols_FC=yes
  11390. archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11391. # Note: this linker hardcodes the directories in LIBPATH if there
  11392. # are no directories specified by -L.
  11393. hardcode_minus_L_FC=yes
  11394. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11395. # Neither direct hardcoding nor static linking is supported with a
  11396. # broken collect2.
  11397. hardcode_direct_FC=unsupported
  11398. fi
  11399. ;;
  11400. aix[4-9]*)
  11401. if test "$host_cpu" = ia64; then
  11402. # On IA64, the linker does run time linking by default, so we don't
  11403. # have to do anything special.
  11404. aix_use_runtimelinking=no
  11405. exp_sym_flag='-Bexport'
  11406. no_entry_flag=""
  11407. else
  11408. # If we're using GNU nm, then we don't want the "-C" option.
  11409. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11410. # Also, AIX nm treats weak defined symbols like other global
  11411. # defined symbols, whereas GNU nm marks them as "W".
  11412. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11413. export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11414. else
  11415. export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11416. fi
  11417. aix_use_runtimelinking=no
  11418. # Test if we are trying to use run time linking or normal
  11419. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11420. # need to do runtime linking.
  11421. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11422. for ld_flag in $LDFLAGS; do
  11423. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11424. aix_use_runtimelinking=yes
  11425. break
  11426. fi
  11427. done
  11428. ;;
  11429. esac
  11430. exp_sym_flag='-bexport'
  11431. no_entry_flag='-bnoentry'
  11432. fi
  11433. # When large executables or shared objects are built, AIX ld can
  11434. # have problems creating the table of contents. If linking a library
  11435. # or program results in "error TOC overflow" add -mminimal-toc to
  11436. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11437. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11438. archive_cmds_FC=''
  11439. hardcode_direct_FC=yes
  11440. hardcode_direct_absolute_FC=yes
  11441. hardcode_libdir_separator_FC=':'
  11442. link_all_deplibs_FC=yes
  11443. file_list_spec_FC='${wl}-f,'
  11444. if test "$GCC" = yes; then
  11445. case $host_os in aix4.[012]|aix4.[012].*)
  11446. # We only want to do this on AIX 4.2 and lower, the check
  11447. # below for broken collect2 doesn't work under 4.3+
  11448. collect2name=`${CC} -print-prog-name=collect2`
  11449. if test -f "$collect2name" &&
  11450. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11451. then
  11452. # We have reworked collect2
  11453. :
  11454. else
  11455. # We have old collect2
  11456. hardcode_direct_FC=unsupported
  11457. # It fails to find uninstalled libraries when the uninstalled
  11458. # path is not listed in the libpath. Setting hardcode_minus_L
  11459. # to unsupported forces relinking
  11460. hardcode_minus_L_FC=yes
  11461. hardcode_libdir_flag_spec_FC='-L$libdir'
  11462. hardcode_libdir_separator_FC=
  11463. fi
  11464. ;;
  11465. esac
  11466. shared_flag='-shared'
  11467. if test "$aix_use_runtimelinking" = yes; then
  11468. shared_flag="$shared_flag "'${wl}-G'
  11469. fi
  11470. else
  11471. # not using gcc
  11472. if test "$host_cpu" = ia64; then
  11473. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11474. # chokes on -Wl,-G. The following line is correct:
  11475. shared_flag='-G'
  11476. else
  11477. if test "$aix_use_runtimelinking" = yes; then
  11478. shared_flag='${wl}-G'
  11479. else
  11480. shared_flag='${wl}-bM:SRE'
  11481. fi
  11482. fi
  11483. fi
  11484. export_dynamic_flag_spec_FC='${wl}-bexpall'
  11485. # It seems that -bexpall does not export symbols beginning with
  11486. # underscore (_), so it is better to generate a list of symbols to export.
  11487. always_export_symbols_FC=yes
  11488. if test "$aix_use_runtimelinking" = yes; then
  11489. # Warning - without using the other runtime loading flags (-brtl),
  11490. # -berok will link without error, but may produce a broken library.
  11491. allow_undefined_flag_FC='-berok'
  11492. # Determine the default libpath from the value encoded in an
  11493. # empty executable.
  11494. cat > conftest.$ac_ext <<_ACEOF
  11495. program main
  11496. end
  11497. _ACEOF
  11498. if ac_fn_fc_try_link "$LINENO"; then :
  11499. lt_aix_libpath_sed='
  11500. /Import File Strings/,/^$/ {
  11501. /^0/ {
  11502. s/^0 *\(.*\)$/\1/
  11503. p
  11504. }
  11505. }'
  11506. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11507. # Check for a 64-bit object if we didn't find anything.
  11508. if test -z "$aix_libpath"; then
  11509. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11510. fi
  11511. fi
  11512. rm -f core conftest.err conftest.$ac_objext \
  11513. conftest$ac_exeext conftest.$ac_ext
  11514. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11515. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11516. archive_expsym_cmds_FC='$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"
  11517. else
  11518. if test "$host_cpu" = ia64; then
  11519. hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
  11520. allow_undefined_flag_FC="-z nodefs"
  11521. archive_expsym_cmds_FC="\$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"
  11522. else
  11523. # Determine the default libpath from the value encoded in an
  11524. # empty executable.
  11525. cat > conftest.$ac_ext <<_ACEOF
  11526. program main
  11527. end
  11528. _ACEOF
  11529. if ac_fn_fc_try_link "$LINENO"; then :
  11530. lt_aix_libpath_sed='
  11531. /Import File Strings/,/^$/ {
  11532. /^0/ {
  11533. s/^0 *\(.*\)$/\1/
  11534. p
  11535. }
  11536. }'
  11537. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11538. # Check for a 64-bit object if we didn't find anything.
  11539. if test -z "$aix_libpath"; then
  11540. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11541. fi
  11542. fi
  11543. rm -f core conftest.err conftest.$ac_objext \
  11544. conftest$ac_exeext conftest.$ac_ext
  11545. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11546. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11547. # Warning - without using the other run time loading flags,
  11548. # -berok will link without error, but may produce a broken library.
  11549. no_undefined_flag_FC=' ${wl}-bernotok'
  11550. allow_undefined_flag_FC=' ${wl}-berok'
  11551. if test "$with_gnu_ld" = yes; then
  11552. # We only use this code for GNU lds that support --whole-archive.
  11553. whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11554. else
  11555. # Exported symbols can be pulled into shared objects from archives
  11556. whole_archive_flag_spec_FC='$convenience'
  11557. fi
  11558. archive_cmds_need_lc_FC=yes
  11559. # This is similar to how AIX traditionally builds its shared libraries.
  11560. archive_expsym_cmds_FC="\$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'
  11561. fi
  11562. fi
  11563. ;;
  11564. amigaos*)
  11565. case $host_cpu in
  11566. powerpc)
  11567. # see comment about AmigaOS4 .so support
  11568. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11569. archive_expsym_cmds_FC=''
  11570. ;;
  11571. m68k)
  11572. archive_cmds_FC='$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)'
  11573. hardcode_libdir_flag_spec_FC='-L$libdir'
  11574. hardcode_minus_L_FC=yes
  11575. ;;
  11576. esac
  11577. ;;
  11578. bsdi[45]*)
  11579. export_dynamic_flag_spec_FC=-rdynamic
  11580. ;;
  11581. cygwin* | mingw* | pw32* | cegcc*)
  11582. # When not using gcc, we currently assume that we are using
  11583. # Microsoft Visual C++.
  11584. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11585. # no search path for DLLs.
  11586. hardcode_libdir_flag_spec_FC=' '
  11587. allow_undefined_flag_FC=unsupported
  11588. # Tell ltmain to make .lib files, not .a files.
  11589. libext=lib
  11590. # Tell ltmain to make .dll files, not .so files.
  11591. shrext_cmds=".dll"
  11592. # FIXME: Setting linknames here is a bad hack.
  11593. archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11594. # The linker will automatically build a .lib file if we build a DLL.
  11595. old_archive_from_new_cmds_FC='true'
  11596. # FIXME: Should let the user specify the lib program.
  11597. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11598. fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
  11599. enable_shared_with_static_runtimes_FC=yes
  11600. ;;
  11601. darwin* | rhapsody*)
  11602. archive_cmds_need_lc_FC=no
  11603. hardcode_direct_FC=no
  11604. hardcode_automatic_FC=yes
  11605. hardcode_shlibpath_var_FC=unsupported
  11606. if test "$lt_cv_ld_force_load" = "yes"; then
  11607. whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11608. else
  11609. whole_archive_flag_spec_FC=''
  11610. fi
  11611. link_all_deplibs_FC=yes
  11612. allow_undefined_flag_FC="$_lt_dar_allow_undefined"
  11613. case $cc_basename in
  11614. ifort*) _lt_dar_can_shared=yes ;;
  11615. *) _lt_dar_can_shared=$GCC ;;
  11616. esac
  11617. if test "$_lt_dar_can_shared" = "yes"; then
  11618. output_verbose_link_cmd=func_echo_all
  11619. archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11620. module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11621. archive_expsym_cmds_FC="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}"
  11622. module_expsym_cmds_FC="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}"
  11623. else
  11624. ld_shlibs_FC=no
  11625. fi
  11626. ;;
  11627. dgux*)
  11628. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11629. hardcode_libdir_flag_spec_FC='-L$libdir'
  11630. hardcode_shlibpath_var_FC=no
  11631. ;;
  11632. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11633. # support. Future versions do this automatically, but an explicit c++rt0.o
  11634. # does not break anything, and helps significantly (at the cost of a little
  11635. # extra space).
  11636. freebsd2.2*)
  11637. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11638. hardcode_libdir_flag_spec_FC='-R$libdir'
  11639. hardcode_direct_FC=yes
  11640. hardcode_shlibpath_var_FC=no
  11641. ;;
  11642. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11643. freebsd2.*)
  11644. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11645. hardcode_direct_FC=yes
  11646. hardcode_minus_L_FC=yes
  11647. hardcode_shlibpath_var_FC=no
  11648. ;;
  11649. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11650. freebsd* | dragonfly*)
  11651. archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11652. hardcode_libdir_flag_spec_FC='-R$libdir'
  11653. hardcode_direct_FC=yes
  11654. hardcode_shlibpath_var_FC=no
  11655. ;;
  11656. hpux9*)
  11657. if test "$GCC" = yes; then
  11658. archive_cmds_FC='$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'
  11659. else
  11660. archive_cmds_FC='$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'
  11661. fi
  11662. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11663. hardcode_libdir_separator_FC=:
  11664. hardcode_direct_FC=yes
  11665. # hardcode_minus_L: Not really in the search PATH,
  11666. # but as the default location of the library.
  11667. hardcode_minus_L_FC=yes
  11668. export_dynamic_flag_spec_FC='${wl}-E'
  11669. ;;
  11670. hpux10*)
  11671. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11672. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11673. else
  11674. archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11675. fi
  11676. if test "$with_gnu_ld" = no; then
  11677. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11678. hardcode_libdir_flag_spec_ld_FC='+b $libdir'
  11679. hardcode_libdir_separator_FC=:
  11680. hardcode_direct_FC=yes
  11681. hardcode_direct_absolute_FC=yes
  11682. export_dynamic_flag_spec_FC='${wl}-E'
  11683. # hardcode_minus_L: Not really in the search PATH,
  11684. # but as the default location of the library.
  11685. hardcode_minus_L_FC=yes
  11686. fi
  11687. ;;
  11688. hpux11*)
  11689. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11690. case $host_cpu in
  11691. hppa*64*)
  11692. archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11693. ;;
  11694. ia64*)
  11695. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11696. ;;
  11697. *)
  11698. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11699. ;;
  11700. esac
  11701. else
  11702. case $host_cpu in
  11703. hppa*64*)
  11704. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11705. ;;
  11706. ia64*)
  11707. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11708. ;;
  11709. *)
  11710. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11711. ;;
  11712. esac
  11713. fi
  11714. if test "$with_gnu_ld" = no; then
  11715. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11716. hardcode_libdir_separator_FC=:
  11717. case $host_cpu in
  11718. hppa*64*|ia64*)
  11719. hardcode_direct_FC=no
  11720. hardcode_shlibpath_var_FC=no
  11721. ;;
  11722. *)
  11723. hardcode_direct_FC=yes
  11724. hardcode_direct_absolute_FC=yes
  11725. export_dynamic_flag_spec_FC='${wl}-E'
  11726. # hardcode_minus_L: Not really in the search PATH,
  11727. # but as the default location of the library.
  11728. hardcode_minus_L_FC=yes
  11729. ;;
  11730. esac
  11731. fi
  11732. ;;
  11733. irix5* | irix6* | nonstopux*)
  11734. if test "$GCC" = yes; then
  11735. archive_cmds_FC='$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'
  11736. # Try to use the -exported_symbol ld option, if it does not
  11737. # work, assume that -exports_file does not work either and
  11738. # implicitly export all symbols.
  11739. save_LDFLAGS="$LDFLAGS"
  11740. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11741. cat > conftest.$ac_ext <<_ACEOF
  11742. int foo(void) {}
  11743. _ACEOF
  11744. if ac_fn_fc_try_link "$LINENO"; then :
  11745. archive_expsym_cmds_FC='$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'
  11746. fi
  11747. rm -f core conftest.err conftest.$ac_objext \
  11748. conftest$ac_exeext conftest.$ac_ext
  11749. LDFLAGS="$save_LDFLAGS"
  11750. else
  11751. archive_cmds_FC='$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'
  11752. archive_expsym_cmds_FC='$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'
  11753. fi
  11754. archive_cmds_need_lc_FC='no'
  11755. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11756. hardcode_libdir_separator_FC=:
  11757. inherit_rpath_FC=yes
  11758. link_all_deplibs_FC=yes
  11759. ;;
  11760. netbsd*)
  11761. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11762. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11763. else
  11764. archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11765. fi
  11766. hardcode_libdir_flag_spec_FC='-R$libdir'
  11767. hardcode_direct_FC=yes
  11768. hardcode_shlibpath_var_FC=no
  11769. ;;
  11770. newsos6)
  11771. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11772. hardcode_direct_FC=yes
  11773. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11774. hardcode_libdir_separator_FC=:
  11775. hardcode_shlibpath_var_FC=no
  11776. ;;
  11777. *nto* | *qnx*)
  11778. ;;
  11779. openbsd*)
  11780. if test -f /usr/libexec/ld.so; then
  11781. hardcode_direct_FC=yes
  11782. hardcode_shlibpath_var_FC=no
  11783. hardcode_direct_absolute_FC=yes
  11784. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11785. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11786. archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11787. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11788. export_dynamic_flag_spec_FC='${wl}-E'
  11789. else
  11790. case $host_os in
  11791. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11792. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11793. hardcode_libdir_flag_spec_FC='-R$libdir'
  11794. ;;
  11795. *)
  11796. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11797. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11798. ;;
  11799. esac
  11800. fi
  11801. else
  11802. ld_shlibs_FC=no
  11803. fi
  11804. ;;
  11805. os2*)
  11806. hardcode_libdir_flag_spec_FC='-L$libdir'
  11807. hardcode_minus_L_FC=yes
  11808. allow_undefined_flag_FC=unsupported
  11809. archive_cmds_FC='$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'
  11810. old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11811. ;;
  11812. osf3*)
  11813. if test "$GCC" = yes; then
  11814. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11815. archive_cmds_FC='$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'
  11816. else
  11817. allow_undefined_flag_FC=' -expect_unresolved \*'
  11818. archive_cmds_FC='$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'
  11819. fi
  11820. archive_cmds_need_lc_FC='no'
  11821. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11822. hardcode_libdir_separator_FC=:
  11823. ;;
  11824. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11825. if test "$GCC" = yes; then
  11826. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11827. archive_cmds_FC='$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'
  11828. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11829. else
  11830. allow_undefined_flag_FC=' -expect_unresolved \*'
  11831. archive_cmds_FC='$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'
  11832. archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11833. $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'
  11834. # Both c and cxx compiler support -rpath directly
  11835. hardcode_libdir_flag_spec_FC='-rpath $libdir'
  11836. fi
  11837. archive_cmds_need_lc_FC='no'
  11838. hardcode_libdir_separator_FC=:
  11839. ;;
  11840. solaris*)
  11841. no_undefined_flag_FC=' -z defs'
  11842. if test "$GCC" = yes; then
  11843. wlarc='${wl}'
  11844. archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11845. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11846. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11847. else
  11848. case `$CC -V 2>&1` in
  11849. *"Compilers 5.0"*)
  11850. wlarc=''
  11851. archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11852. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11853. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11854. ;;
  11855. *)
  11856. wlarc='${wl}'
  11857. archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11858. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11859. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11860. ;;
  11861. esac
  11862. fi
  11863. hardcode_libdir_flag_spec_FC='-R$libdir'
  11864. hardcode_shlibpath_var_FC=no
  11865. case $host_os in
  11866. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11867. *)
  11868. # The compiler driver will combine and reorder linker options,
  11869. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11870. # but is careful enough not to reorder.
  11871. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11872. if test "$GCC" = yes; then
  11873. whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11874. else
  11875. whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
  11876. fi
  11877. ;;
  11878. esac
  11879. link_all_deplibs_FC=yes
  11880. ;;
  11881. sunos4*)
  11882. if test "x$host_vendor" = xsequent; then
  11883. # Use $CC to link under sequent, because it throws in some extra .o
  11884. # files that make .init and .fini sections work.
  11885. archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11886. else
  11887. archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11888. fi
  11889. hardcode_libdir_flag_spec_FC='-L$libdir'
  11890. hardcode_direct_FC=yes
  11891. hardcode_minus_L_FC=yes
  11892. hardcode_shlibpath_var_FC=no
  11893. ;;
  11894. sysv4)
  11895. case $host_vendor in
  11896. sni)
  11897. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11898. hardcode_direct_FC=yes # is this really true???
  11899. ;;
  11900. siemens)
  11901. ## LD is ld it makes a PLAMLIB
  11902. ## CC just makes a GrossModule.
  11903. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11904. reload_cmds_FC='$CC -r -o $output$reload_objs'
  11905. hardcode_direct_FC=no
  11906. ;;
  11907. motorola)
  11908. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11909. hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
  11910. ;;
  11911. esac
  11912. runpath_var='LD_RUN_PATH'
  11913. hardcode_shlibpath_var_FC=no
  11914. ;;
  11915. sysv4.3*)
  11916. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11917. hardcode_shlibpath_var_FC=no
  11918. export_dynamic_flag_spec_FC='-Bexport'
  11919. ;;
  11920. sysv4*MP*)
  11921. if test -d /usr/nec; then
  11922. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11923. hardcode_shlibpath_var_FC=no
  11924. runpath_var=LD_RUN_PATH
  11925. hardcode_runpath_var=yes
  11926. ld_shlibs_FC=yes
  11927. fi
  11928. ;;
  11929. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11930. no_undefined_flag_FC='${wl}-z,text'
  11931. archive_cmds_need_lc_FC=no
  11932. hardcode_shlibpath_var_FC=no
  11933. runpath_var='LD_RUN_PATH'
  11934. if test "$GCC" = yes; then
  11935. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11936. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11937. else
  11938. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11939. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11940. fi
  11941. ;;
  11942. sysv5* | sco3.2v5* | sco5v6*)
  11943. # Note: We can NOT use -z defs as we might desire, because we do not
  11944. # link with -lc, and that would cause any symbols used from libc to
  11945. # always be unresolved, which means just about no library would
  11946. # ever link correctly. If we're not using GNU ld we use -z text
  11947. # though, which does catch some bad symbols but isn't as heavy-handed
  11948. # as -z defs.
  11949. no_undefined_flag_FC='${wl}-z,text'
  11950. allow_undefined_flag_FC='${wl}-z,nodefs'
  11951. archive_cmds_need_lc_FC=no
  11952. hardcode_shlibpath_var_FC=no
  11953. hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
  11954. hardcode_libdir_separator_FC=':'
  11955. link_all_deplibs_FC=yes
  11956. export_dynamic_flag_spec_FC='${wl}-Bexport'
  11957. runpath_var='LD_RUN_PATH'
  11958. if test "$GCC" = yes; then
  11959. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11960. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11961. else
  11962. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11963. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11964. fi
  11965. ;;
  11966. uts4*)
  11967. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11968. hardcode_libdir_flag_spec_FC='-L$libdir'
  11969. hardcode_shlibpath_var_FC=no
  11970. ;;
  11971. *)
  11972. ld_shlibs_FC=no
  11973. ;;
  11974. esac
  11975. if test x$host_vendor = xsni; then
  11976. case $host in
  11977. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11978. export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
  11979. ;;
  11980. esac
  11981. fi
  11982. fi
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
  11984. $as_echo "$ld_shlibs_FC" >&6; }
  11985. test "$ld_shlibs_FC" = no && can_build_shared=no
  11986. with_gnu_ld_FC=$with_gnu_ld
  11987. #
  11988. # Do we need to explicitly link libc?
  11989. #
  11990. case "x$archive_cmds_need_lc_FC" in
  11991. x|xyes)
  11992. # Assume -lc should be added
  11993. archive_cmds_need_lc_FC=yes
  11994. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11995. case $archive_cmds_FC in
  11996. *'~'*)
  11997. # FIXME: we may have to deal with multi-command sequences.
  11998. ;;
  11999. '$CC '*)
  12000. # Test whether the compiler implicitly links with -lc since on some
  12001. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12002. # to ld, don't add -lc before -lgcc.
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12004. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12005. if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
  12006. $as_echo_n "(cached) " >&6
  12007. else
  12008. $RM conftest*
  12009. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12011. (eval $ac_compile) 2>&5
  12012. ac_status=$?
  12013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12014. test $ac_status = 0; } 2>conftest.err; then
  12015. soname=conftest
  12016. lib=conftest
  12017. libobjs=conftest.$ac_objext
  12018. deplibs=
  12019. wl=$lt_prog_compiler_wl_FC
  12020. pic_flag=$lt_prog_compiler_pic_FC
  12021. compiler_flags=-v
  12022. linker_flags=-v
  12023. verstring=
  12024. output_objdir=.
  12025. libname=conftest
  12026. lt_save_allow_undefined_flag=$allow_undefined_flag_FC
  12027. allow_undefined_flag_FC=
  12028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12029. (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12030. ac_status=$?
  12031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12032. test $ac_status = 0; }
  12033. then
  12034. lt_cv_archive_cmds_need_lc_FC=no
  12035. else
  12036. lt_cv_archive_cmds_need_lc_FC=yes
  12037. fi
  12038. allow_undefined_flag_FC=$lt_save_allow_undefined_flag
  12039. else
  12040. cat conftest.err 1>&5
  12041. fi
  12042. $RM conftest*
  12043. fi
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
  12045. $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
  12046. archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
  12047. ;;
  12048. esac
  12049. fi
  12050. ;;
  12051. esac
  12052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12053. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12054. library_names_spec=
  12055. libname_spec='lib$name'
  12056. soname_spec=
  12057. shrext_cmds=".so"
  12058. postinstall_cmds=
  12059. postuninstall_cmds=
  12060. finish_cmds=
  12061. finish_eval=
  12062. shlibpath_var=
  12063. shlibpath_overrides_runpath=unknown
  12064. version_type=none
  12065. dynamic_linker="$host_os ld.so"
  12066. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12067. need_lib_prefix=unknown
  12068. hardcode_into_libs=no
  12069. # when you set need_version to no, make sure it does not cause -set_version
  12070. # flags to be left without arguments
  12071. need_version=unknown
  12072. case $host_os in
  12073. aix3*)
  12074. version_type=linux
  12075. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12076. shlibpath_var=LIBPATH
  12077. # AIX 3 has no versioning support, so we append a major version to the name.
  12078. soname_spec='${libname}${release}${shared_ext}$major'
  12079. ;;
  12080. aix[4-9]*)
  12081. version_type=linux
  12082. need_lib_prefix=no
  12083. need_version=no
  12084. hardcode_into_libs=yes
  12085. if test "$host_cpu" = ia64; then
  12086. # AIX 5 supports IA64
  12087. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12088. shlibpath_var=LD_LIBRARY_PATH
  12089. else
  12090. # With GCC up to 2.95.x, collect2 would create an import file
  12091. # for dependence libraries. The import file would start with
  12092. # the line `#! .'. This would cause the generated library to
  12093. # depend on `.', always an invalid library. This was fixed in
  12094. # development snapshots of GCC prior to 3.0.
  12095. case $host_os in
  12096. aix4 | aix4.[01] | aix4.[01].*)
  12097. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12098. echo ' yes '
  12099. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12100. :
  12101. else
  12102. can_build_shared=no
  12103. fi
  12104. ;;
  12105. esac
  12106. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12107. # soname into executable. Probably we can add versioning support to
  12108. # collect2, so additional links can be useful in future.
  12109. if test "$aix_use_runtimelinking" = yes; then
  12110. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12111. # instead of lib<name>.a to let people know that these are not
  12112. # typical AIX shared libraries.
  12113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12114. else
  12115. # We preserve .a as extension for shared libraries through AIX4.2
  12116. # and later when we are not doing run time linking.
  12117. library_names_spec='${libname}${release}.a $libname.a'
  12118. soname_spec='${libname}${release}${shared_ext}$major'
  12119. fi
  12120. shlibpath_var=LIBPATH
  12121. fi
  12122. ;;
  12123. amigaos*)
  12124. case $host_cpu in
  12125. powerpc)
  12126. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12127. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12129. ;;
  12130. m68k)
  12131. library_names_spec='$libname.ixlibrary $libname.a'
  12132. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12133. 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'
  12134. ;;
  12135. esac
  12136. ;;
  12137. beos*)
  12138. library_names_spec='${libname}${shared_ext}'
  12139. dynamic_linker="$host_os ld.so"
  12140. shlibpath_var=LIBRARY_PATH
  12141. ;;
  12142. bsdi[45]*)
  12143. version_type=linux
  12144. need_version=no
  12145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12146. soname_spec='${libname}${release}${shared_ext}$major'
  12147. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12148. shlibpath_var=LD_LIBRARY_PATH
  12149. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12150. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12151. # the default ld.so.conf also contains /usr/contrib/lib and
  12152. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12153. # libtool to hard-code these into programs
  12154. ;;
  12155. cygwin* | mingw* | pw32* | cegcc*)
  12156. version_type=windows
  12157. shrext_cmds=".dll"
  12158. need_version=no
  12159. need_lib_prefix=no
  12160. case $GCC,$host_os in
  12161. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12162. library_names_spec='$libname.dll.a'
  12163. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12164. postinstall_cmds='base_file=`basename \${file}`~
  12165. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12166. dldir=$destdir/`dirname \$dlpath`~
  12167. test -d \$dldir || mkdir -p \$dldir~
  12168. $install_prog $dir/$dlname \$dldir/$dlname~
  12169. chmod a+x \$dldir/$dlname~
  12170. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12171. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12172. fi'
  12173. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12174. dlpath=$dir/\$dldll~
  12175. $RM \$dlpath'
  12176. shlibpath_overrides_runpath=yes
  12177. case $host_os in
  12178. cygwin*)
  12179. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12180. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12181. ;;
  12182. mingw* | cegcc*)
  12183. # MinGW DLLs use traditional 'lib' prefix
  12184. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12185. ;;
  12186. pw32*)
  12187. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12188. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12189. ;;
  12190. esac
  12191. ;;
  12192. *)
  12193. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12194. ;;
  12195. esac
  12196. dynamic_linker='Win32 ld.exe'
  12197. # FIXME: first we should search . and the directory the executable is in
  12198. shlibpath_var=PATH
  12199. ;;
  12200. darwin* | rhapsody*)
  12201. dynamic_linker="$host_os dyld"
  12202. version_type=darwin
  12203. need_lib_prefix=no
  12204. need_version=no
  12205. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12206. soname_spec='${libname}${release}${major}$shared_ext'
  12207. shlibpath_overrides_runpath=yes
  12208. shlibpath_var=DYLD_LIBRARY_PATH
  12209. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12210. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12211. ;;
  12212. dgux*)
  12213. version_type=linux
  12214. need_lib_prefix=no
  12215. need_version=no
  12216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12217. soname_spec='${libname}${release}${shared_ext}$major'
  12218. shlibpath_var=LD_LIBRARY_PATH
  12219. ;;
  12220. freebsd* | dragonfly*)
  12221. # DragonFly does not have aout. When/if they implement a new
  12222. # versioning mechanism, adjust this.
  12223. if test -x /usr/bin/objformat; then
  12224. objformat=`/usr/bin/objformat`
  12225. else
  12226. case $host_os in
  12227. freebsd[23].*) objformat=aout ;;
  12228. *) objformat=elf ;;
  12229. esac
  12230. fi
  12231. version_type=freebsd-$objformat
  12232. case $version_type in
  12233. freebsd-elf*)
  12234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12235. need_version=no
  12236. need_lib_prefix=no
  12237. ;;
  12238. freebsd-*)
  12239. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12240. need_version=yes
  12241. ;;
  12242. esac
  12243. shlibpath_var=LD_LIBRARY_PATH
  12244. case $host_os in
  12245. freebsd2.*)
  12246. shlibpath_overrides_runpath=yes
  12247. ;;
  12248. freebsd3.[01]* | freebsdelf3.[01]*)
  12249. shlibpath_overrides_runpath=yes
  12250. hardcode_into_libs=yes
  12251. ;;
  12252. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12253. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12254. shlibpath_overrides_runpath=no
  12255. hardcode_into_libs=yes
  12256. ;;
  12257. *) # from 4.6 on, and DragonFly
  12258. shlibpath_overrides_runpath=yes
  12259. hardcode_into_libs=yes
  12260. ;;
  12261. esac
  12262. ;;
  12263. haiku*)
  12264. version_type=linux
  12265. need_lib_prefix=no
  12266. need_version=no
  12267. dynamic_linker="$host_os runtime_loader"
  12268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12269. soname_spec='${libname}${release}${shared_ext}$major'
  12270. shlibpath_var=LIBRARY_PATH
  12271. shlibpath_overrides_runpath=yes
  12272. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12273. hardcode_into_libs=yes
  12274. ;;
  12275. hpux9* | hpux10* | hpux11*)
  12276. # Give a soname corresponding to the major version so that dld.sl refuses to
  12277. # link against other versions.
  12278. version_type=sunos
  12279. need_lib_prefix=no
  12280. need_version=no
  12281. case $host_cpu in
  12282. ia64*)
  12283. shrext_cmds='.so'
  12284. hardcode_into_libs=yes
  12285. dynamic_linker="$host_os dld.so"
  12286. shlibpath_var=LD_LIBRARY_PATH
  12287. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12289. soname_spec='${libname}${release}${shared_ext}$major'
  12290. if test "X$HPUX_IA64_MODE" = X32; then
  12291. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12292. else
  12293. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12294. fi
  12295. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12296. ;;
  12297. hppa*64*)
  12298. shrext_cmds='.sl'
  12299. hardcode_into_libs=yes
  12300. dynamic_linker="$host_os dld.sl"
  12301. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12302. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12304. soname_spec='${libname}${release}${shared_ext}$major'
  12305. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12306. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12307. ;;
  12308. *)
  12309. shrext_cmds='.sl'
  12310. dynamic_linker="$host_os dld.sl"
  12311. shlibpath_var=SHLIB_PATH
  12312. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12314. soname_spec='${libname}${release}${shared_ext}$major'
  12315. ;;
  12316. esac
  12317. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12318. postinstall_cmds='chmod 555 $lib'
  12319. # or fails outright, so override atomically:
  12320. install_override_mode=555
  12321. ;;
  12322. interix[3-9]*)
  12323. version_type=linux
  12324. need_lib_prefix=no
  12325. need_version=no
  12326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12327. soname_spec='${libname}${release}${shared_ext}$major'
  12328. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12329. shlibpath_var=LD_LIBRARY_PATH
  12330. shlibpath_overrides_runpath=no
  12331. hardcode_into_libs=yes
  12332. ;;
  12333. irix5* | irix6* | nonstopux*)
  12334. case $host_os in
  12335. nonstopux*) version_type=nonstopux ;;
  12336. *)
  12337. if test "$lt_cv_prog_gnu_ld" = yes; then
  12338. version_type=linux
  12339. else
  12340. version_type=irix
  12341. fi ;;
  12342. esac
  12343. need_lib_prefix=no
  12344. need_version=no
  12345. soname_spec='${libname}${release}${shared_ext}$major'
  12346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12347. case $host_os in
  12348. irix5* | nonstopux*)
  12349. libsuff= shlibsuff=
  12350. ;;
  12351. *)
  12352. case $LD in # libtool.m4 will add one of these switches to LD
  12353. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12354. libsuff= shlibsuff= libmagic=32-bit;;
  12355. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12356. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12357. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12358. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12359. *) libsuff= shlibsuff= libmagic=never-match;;
  12360. esac
  12361. ;;
  12362. esac
  12363. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12364. shlibpath_overrides_runpath=no
  12365. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12366. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12367. hardcode_into_libs=yes
  12368. ;;
  12369. # No shared lib support for Linux oldld, aout, or coff.
  12370. linux*oldld* | linux*aout* | linux*coff*)
  12371. dynamic_linker=no
  12372. ;;
  12373. # This must be Linux ELF.
  12374. # uclinux* changes (here and below) have been submitted to the libtool
  12375. # project, but have not yet been accepted: they are GCC-local changes
  12376. # for the time being. (See
  12377. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  12378. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  12379. version_type=linux
  12380. need_lib_prefix=no
  12381. need_version=no
  12382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12383. soname_spec='${libname}${release}${shared_ext}$major'
  12384. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12385. shlibpath_var=LD_LIBRARY_PATH
  12386. shlibpath_overrides_runpath=no
  12387. # Some binutils ld are patched to set DT_RUNPATH
  12388. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12389. $as_echo_n "(cached) " >&6
  12390. else
  12391. lt_cv_shlibpath_overrides_runpath=no
  12392. save_LDFLAGS=$LDFLAGS
  12393. save_libdir=$libdir
  12394. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
  12395. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
  12396. cat > conftest.$ac_ext <<_ACEOF
  12397. program main
  12398. end
  12399. _ACEOF
  12400. if ac_fn_fc_try_link "$LINENO"; then :
  12401. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12402. lt_cv_shlibpath_overrides_runpath=yes
  12403. fi
  12404. fi
  12405. rm -f core conftest.err conftest.$ac_objext \
  12406. conftest$ac_exeext conftest.$ac_ext
  12407. LDFLAGS=$save_LDFLAGS
  12408. libdir=$save_libdir
  12409. fi
  12410. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12411. # This implies no fast_install, which is unacceptable.
  12412. # Some rework will be needed to allow for fast_install
  12413. # before this can be enabled.
  12414. hardcode_into_libs=yes
  12415. # Append ld.so.conf contents to the search path
  12416. if test -f /etc/ld.so.conf; then
  12417. 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' ' '`
  12418. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12419. fi
  12420. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12421. # powerpc, because MkLinux only supported shared libraries with the
  12422. # GNU dynamic linker. Since this was broken with cross compilers,
  12423. # most powerpc-linux boxes support dynamic linking these days and
  12424. # people can always --disable-shared, the test was removed, and we
  12425. # assume the GNU/Linux dynamic linker is in use.
  12426. dynamic_linker='GNU/Linux ld.so'
  12427. ;;
  12428. netbsd*)
  12429. version_type=sunos
  12430. need_lib_prefix=no
  12431. need_version=no
  12432. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12434. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12435. dynamic_linker='NetBSD (a.out) ld.so'
  12436. else
  12437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12438. soname_spec='${libname}${release}${shared_ext}$major'
  12439. dynamic_linker='NetBSD ld.elf_so'
  12440. fi
  12441. shlibpath_var=LD_LIBRARY_PATH
  12442. shlibpath_overrides_runpath=yes
  12443. hardcode_into_libs=yes
  12444. ;;
  12445. newsos6)
  12446. version_type=linux
  12447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12448. shlibpath_var=LD_LIBRARY_PATH
  12449. shlibpath_overrides_runpath=yes
  12450. ;;
  12451. *nto* | *qnx*)
  12452. version_type=qnx
  12453. need_lib_prefix=no
  12454. need_version=no
  12455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12456. soname_spec='${libname}${release}${shared_ext}$major'
  12457. shlibpath_var=LD_LIBRARY_PATH
  12458. shlibpath_overrides_runpath=no
  12459. hardcode_into_libs=yes
  12460. dynamic_linker='ldqnx.so'
  12461. ;;
  12462. openbsd*)
  12463. version_type=sunos
  12464. sys_lib_dlsearch_path_spec="/usr/lib"
  12465. need_lib_prefix=no
  12466. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12467. case $host_os in
  12468. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12469. *) need_version=no ;;
  12470. esac
  12471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12472. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12473. shlibpath_var=LD_LIBRARY_PATH
  12474. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12475. case $host_os in
  12476. openbsd2.[89] | openbsd2.[89].*)
  12477. shlibpath_overrides_runpath=no
  12478. ;;
  12479. *)
  12480. shlibpath_overrides_runpath=yes
  12481. ;;
  12482. esac
  12483. else
  12484. shlibpath_overrides_runpath=yes
  12485. fi
  12486. ;;
  12487. os2*)
  12488. libname_spec='$name'
  12489. shrext_cmds=".dll"
  12490. need_lib_prefix=no
  12491. library_names_spec='$libname${shared_ext} $libname.a'
  12492. dynamic_linker='OS/2 ld.exe'
  12493. shlibpath_var=LIBPATH
  12494. ;;
  12495. osf3* | osf4* | osf5*)
  12496. version_type=osf
  12497. need_lib_prefix=no
  12498. need_version=no
  12499. soname_spec='${libname}${release}${shared_ext}$major'
  12500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12501. shlibpath_var=LD_LIBRARY_PATH
  12502. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12503. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12504. ;;
  12505. rdos*)
  12506. dynamic_linker=no
  12507. ;;
  12508. solaris*)
  12509. version_type=linux
  12510. need_lib_prefix=no
  12511. need_version=no
  12512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12513. soname_spec='${libname}${release}${shared_ext}$major'
  12514. shlibpath_var=LD_LIBRARY_PATH
  12515. shlibpath_overrides_runpath=yes
  12516. hardcode_into_libs=yes
  12517. # ldd complains unless libraries are executable
  12518. postinstall_cmds='chmod +x $lib'
  12519. ;;
  12520. sunos4*)
  12521. version_type=sunos
  12522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12523. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12524. shlibpath_var=LD_LIBRARY_PATH
  12525. shlibpath_overrides_runpath=yes
  12526. if test "$with_gnu_ld" = yes; then
  12527. need_lib_prefix=no
  12528. fi
  12529. need_version=yes
  12530. ;;
  12531. sysv4 | sysv4.3*)
  12532. version_type=linux
  12533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12534. soname_spec='${libname}${release}${shared_ext}$major'
  12535. shlibpath_var=LD_LIBRARY_PATH
  12536. case $host_vendor in
  12537. sni)
  12538. shlibpath_overrides_runpath=no
  12539. need_lib_prefix=no
  12540. runpath_var=LD_RUN_PATH
  12541. ;;
  12542. siemens)
  12543. need_lib_prefix=no
  12544. ;;
  12545. motorola)
  12546. need_lib_prefix=no
  12547. need_version=no
  12548. shlibpath_overrides_runpath=no
  12549. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12550. ;;
  12551. esac
  12552. ;;
  12553. sysv4*MP*)
  12554. if test -d /usr/nec ;then
  12555. version_type=linux
  12556. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12557. soname_spec='$libname${shared_ext}.$major'
  12558. shlibpath_var=LD_LIBRARY_PATH
  12559. fi
  12560. ;;
  12561. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12562. version_type=freebsd-elf
  12563. need_lib_prefix=no
  12564. need_version=no
  12565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12566. soname_spec='${libname}${release}${shared_ext}$major'
  12567. shlibpath_var=LD_LIBRARY_PATH
  12568. shlibpath_overrides_runpath=yes
  12569. hardcode_into_libs=yes
  12570. if test "$with_gnu_ld" = yes; then
  12571. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12572. else
  12573. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12574. case $host_os in
  12575. sco3.2v5*)
  12576. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12577. ;;
  12578. esac
  12579. fi
  12580. sys_lib_dlsearch_path_spec='/usr/lib'
  12581. ;;
  12582. tpf*)
  12583. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12584. version_type=linux
  12585. need_lib_prefix=no
  12586. need_version=no
  12587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12588. shlibpath_var=LD_LIBRARY_PATH
  12589. shlibpath_overrides_runpath=no
  12590. hardcode_into_libs=yes
  12591. ;;
  12592. uts4*)
  12593. version_type=linux
  12594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12595. soname_spec='${libname}${release}${shared_ext}$major'
  12596. shlibpath_var=LD_LIBRARY_PATH
  12597. ;;
  12598. *)
  12599. dynamic_linker=no
  12600. ;;
  12601. esac
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12603. $as_echo "$dynamic_linker" >&6; }
  12604. test "$dynamic_linker" = no && can_build_shared=no
  12605. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12606. if test "$GCC" = yes; then
  12607. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12608. fi
  12609. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12610. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12611. fi
  12612. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12613. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12614. fi
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12616. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12617. hardcode_action_FC=
  12618. if test -n "$hardcode_libdir_flag_spec_FC" ||
  12619. test -n "$runpath_var_FC" ||
  12620. test "X$hardcode_automatic_FC" = "Xyes" ; then
  12621. # We can hardcode non-existent directories.
  12622. if test "$hardcode_direct_FC" != no &&
  12623. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12624. # have to relink, otherwise we might link with an installed library
  12625. # when we should be linking with a yet-to-be-installed one
  12626. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
  12627. test "$hardcode_minus_L_FC" != no; then
  12628. # Linking always hardcodes the temporary library directory.
  12629. hardcode_action_FC=relink
  12630. else
  12631. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12632. hardcode_action_FC=immediate
  12633. fi
  12634. else
  12635. # We cannot hardcode anything, or else we can only hardcode existing
  12636. # directories.
  12637. hardcode_action_FC=unsupported
  12638. fi
  12639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
  12640. $as_echo "$hardcode_action_FC" >&6; }
  12641. if test "$hardcode_action_FC" = relink ||
  12642. test "$inherit_rpath_FC" = yes; then
  12643. # Fast installation is not supported
  12644. enable_fast_install=no
  12645. elif test "$shlibpath_overrides_runpath" = yes ||
  12646. test "$enable_shared" = no; then
  12647. # Fast installation is not necessary
  12648. enable_fast_install=needless
  12649. fi
  12650. fi # test -n "$compiler"
  12651. GCC=$lt_save_GCC
  12652. CC="$lt_save_CC"
  12653. fi # test "$_lt_disable_FC" != yes
  12654. ac_ext=c
  12655. ac_cpp='$CPP $CPPFLAGS'
  12656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12659. FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
  12660. # For libtool versioning info, format is CURRENT:REVISION:AGE
  12661. libtool_VERSION=1:0:0
  12662. # Check header files.
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12664. $as_echo_n "checking for ANSI C header files... " >&6; }
  12665. if ${ac_cv_header_stdc+:} false; then :
  12666. $as_echo_n "(cached) " >&6
  12667. else
  12668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12669. /* end confdefs.h. */
  12670. #include <stdlib.h>
  12671. #include <stdarg.h>
  12672. #include <string.h>
  12673. #include <float.h>
  12674. int
  12675. main ()
  12676. {
  12677. ;
  12678. return 0;
  12679. }
  12680. _ACEOF
  12681. if ac_fn_c_try_compile "$LINENO"; then :
  12682. ac_cv_header_stdc=yes
  12683. else
  12684. ac_cv_header_stdc=no
  12685. fi
  12686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12687. if test $ac_cv_header_stdc = yes; then
  12688. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12690. /* end confdefs.h. */
  12691. #include <string.h>
  12692. _ACEOF
  12693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12694. $EGREP "memchr" >/dev/null 2>&1; then :
  12695. else
  12696. ac_cv_header_stdc=no
  12697. fi
  12698. rm -f conftest*
  12699. fi
  12700. if test $ac_cv_header_stdc = yes; then
  12701. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12703. /* end confdefs.h. */
  12704. #include <stdlib.h>
  12705. _ACEOF
  12706. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12707. $EGREP "free" >/dev/null 2>&1; then :
  12708. else
  12709. ac_cv_header_stdc=no
  12710. fi
  12711. rm -f conftest*
  12712. fi
  12713. if test $ac_cv_header_stdc = yes; then
  12714. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12715. if test "$cross_compiling" = yes; then :
  12716. :
  12717. else
  12718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12719. /* end confdefs.h. */
  12720. #include <ctype.h>
  12721. #include <stdlib.h>
  12722. #if ((' ' & 0x0FF) == 0x020)
  12723. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12724. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12725. #else
  12726. # define ISLOWER(c) \
  12727. (('a' <= (c) && (c) <= 'i') \
  12728. || ('j' <= (c) && (c) <= 'r') \
  12729. || ('s' <= (c) && (c) <= 'z'))
  12730. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12731. #endif
  12732. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12733. int
  12734. main ()
  12735. {
  12736. int i;
  12737. for (i = 0; i < 256; i++)
  12738. if (XOR (islower (i), ISLOWER (i))
  12739. || toupper (i) != TOUPPER (i))
  12740. return 2;
  12741. return 0;
  12742. }
  12743. _ACEOF
  12744. if ac_fn_c_try_run "$LINENO"; then :
  12745. else
  12746. ac_cv_header_stdc=no
  12747. fi
  12748. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12749. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12750. fi
  12751. fi
  12752. fi
  12753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12754. $as_echo "$ac_cv_header_stdc" >&6; }
  12755. if test $ac_cv_header_stdc = yes; then
  12756. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12757. fi
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12759. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12760. if ${ac_cv_header_time+:} false; then :
  12761. $as_echo_n "(cached) " >&6
  12762. else
  12763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12764. /* end confdefs.h. */
  12765. #include <sys/types.h>
  12766. #include <sys/time.h>
  12767. #include <time.h>
  12768. int
  12769. main ()
  12770. {
  12771. if ((struct tm *) 0)
  12772. return 0;
  12773. ;
  12774. return 0;
  12775. }
  12776. _ACEOF
  12777. if ac_fn_c_try_compile "$LINENO"; then :
  12778. ac_cv_header_time=yes
  12779. else
  12780. ac_cv_header_time=no
  12781. fi
  12782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12783. fi
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12785. $as_echo "$ac_cv_header_time" >&6; }
  12786. if test $ac_cv_header_time = yes; then
  12787. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12788. fi
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  12790. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  12791. if ${gcc_cv_header_string+:} false; then :
  12792. $as_echo_n "(cached) " >&6
  12793. else
  12794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12795. /* end confdefs.h. */
  12796. #include <string.h>
  12797. #include <strings.h>
  12798. int
  12799. main ()
  12800. {
  12801. ;
  12802. return 0;
  12803. }
  12804. _ACEOF
  12805. if ac_fn_c_try_compile "$LINENO"; then :
  12806. gcc_cv_header_string=yes
  12807. else
  12808. gcc_cv_header_string=no
  12809. fi
  12810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12811. fi
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  12813. $as_echo "$gcc_cv_header_string" >&6; }
  12814. if test $gcc_cv_header_string = yes; then
  12815. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  12816. fi
  12817. for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
  12818. do :
  12819. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12820. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12821. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12822. cat >>confdefs.h <<_ACEOF
  12823. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12824. _ACEOF
  12825. fi
  12826. done
  12827. XPCFLAGS=""
  12828. case "$host" in
  12829. *-*-rtems*)
  12830. # RTEMS supports Pthreads, but the library is not available at GCC build time.
  12831. ;;
  12832. nvptx*-*-* | amdgcn*-*-*)
  12833. # NVPTX does not support Pthreads, has its own code replacement.
  12834. libgomp_use_pthreads=no
  12835. # NVPTX is an accelerator-only target
  12836. libgomp_offloaded_only=yes
  12837. ;;
  12838. *)
  12839. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  12840. # In case the pthread.h system header is not found, this test will fail.
  12841. CFLAGS="$CFLAGS -pthread"
  12842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12843. /* end confdefs.h. */
  12844. #include <pthread.h>
  12845. void *g(void *d) { return NULL; }
  12846. int
  12847. main ()
  12848. {
  12849. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12850. ;
  12851. return 0;
  12852. }
  12853. _ACEOF
  12854. if ac_fn_c_try_link "$LINENO"; then :
  12855. XPCFLAGS=" -Wc,-pthread"
  12856. else
  12857. CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
  12858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12859. /* end confdefs.h. */
  12860. #include <pthread.h>
  12861. void *g(void *d) { return NULL; }
  12862. int
  12863. main ()
  12864. {
  12865. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12866. ;
  12867. return 0;
  12868. }
  12869. _ACEOF
  12870. if ac_fn_c_try_link "$LINENO"; then :
  12871. else
  12872. as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext \
  12875. conftest$ac_exeext conftest.$ac_ext
  12876. fi
  12877. rm -f core conftest.err conftest.$ac_objext \
  12878. conftest$ac_exeext conftest.$ac_ext
  12879. esac
  12880. if test x$libgomp_use_pthreads != xno; then
  12881. $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
  12882. fi
  12883. if test x$libgomp_offloaded_only = xyes; then
  12884. $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
  12885. fi
  12886. if test "x$enable_offload_defaulted" = xyes; then
  12887. $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
  12888. fi
  12889. # The cast to long int works around a bug in the HP C Compiler
  12890. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12891. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12892. # This bug is HP SR number 8606223364.
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  12894. $as_echo_n "checking size of void *... " >&6; }
  12895. if ${ac_cv_sizeof_void_p+:} false; then :
  12896. $as_echo_n "(cached) " >&6
  12897. else
  12898. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  12899. else
  12900. if test "$ac_cv_type_void_p" = yes; then
  12901. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12903. as_fn_error 77 "cannot compute sizeof (void *)
  12904. See \`config.log' for more details" "$LINENO" 5; }
  12905. else
  12906. ac_cv_sizeof_void_p=0
  12907. fi
  12908. fi
  12909. fi
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  12911. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  12912. cat >>confdefs.h <<_ACEOF
  12913. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  12914. _ACEOF
  12915. # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
  12916. #
  12917. # Copyright (C) 2014-2022 Free Software Foundation, Inc.
  12918. #
  12919. # Contributed by Mentor Embedded.
  12920. #
  12921. # This file is part of the GNU Offloading and Multi Processing Library
  12922. # (libgomp).
  12923. #
  12924. # Libgomp is free software; you can redistribute it and/or modify it
  12925. # under the terms of the GNU General Public License as published by
  12926. # the Free Software Foundation; either version 3, or (at your option)
  12927. # any later version.
  12928. #
  12929. # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
  12930. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12931. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12932. # more details.
  12933. #
  12934. # Under Section 7 of GPL version 3, you are granted additional
  12935. # permissions described in the GCC Runtime Library Exception, version
  12936. # 3.1, as published by the Free Software Foundation.
  12937. #
  12938. # You should have received a copy of the GNU General Public License and
  12939. # a copy of the GCC Runtime Library Exception along with this program;
  12940. # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  12941. # <http://www.gnu.org/licenses/>.
  12942. plugin_support=yes
  12943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  12944. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  12945. if ${ac_cv_lib_dl_dlsym+:} false; then :
  12946. $as_echo_n "(cached) " >&6
  12947. else
  12948. ac_check_lib_save_LIBS=$LIBS
  12949. LIBS="-ldl $LIBS"
  12950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12951. /* end confdefs.h. */
  12952. /* Override any GCC internal prototype to avoid an error.
  12953. Use char because int might match the return type of a GCC
  12954. builtin and then its argument prototype would still apply. */
  12955. #ifdef __cplusplus
  12956. extern "C"
  12957. #endif
  12958. char dlsym ();
  12959. int
  12960. main ()
  12961. {
  12962. return dlsym ();
  12963. ;
  12964. return 0;
  12965. }
  12966. _ACEOF
  12967. if ac_fn_c_try_link "$LINENO"; then :
  12968. ac_cv_lib_dl_dlsym=yes
  12969. else
  12970. ac_cv_lib_dl_dlsym=no
  12971. fi
  12972. rm -f core conftest.err conftest.$ac_objext \
  12973. conftest$ac_exeext conftest.$ac_ext
  12974. LIBS=$ac_check_lib_save_LIBS
  12975. fi
  12976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  12977. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  12978. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  12979. cat >>confdefs.h <<_ACEOF
  12980. #define HAVE_LIBDL 1
  12981. _ACEOF
  12982. LIBS="-ldl $LIBS"
  12983. else
  12984. plugin_support=no
  12985. fi
  12986. if test x"$plugin_support" = xyes; then
  12987. $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
  12988. elif test "x${enable_offload_targets-no}" != xno; then
  12989. as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
  12990. fi
  12991. for ac_header in $ac_header_list
  12992. do :
  12993. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12994. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  12995. "
  12996. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12997. cat >>confdefs.h <<_ACEOF
  12998. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12999. _ACEOF
  13000. fi
  13001. done
  13002. for ac_func in $ac_func_list
  13003. do :
  13004. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13005. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13006. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13007. cat >>confdefs.h <<_ACEOF
  13008. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13009. _ACEOF
  13010. fi
  13011. done
  13012. # Look for the CUDA driver package.
  13013. CUDA_DRIVER_INCLUDE=
  13014. CUDA_DRIVER_LIB=
  13015. CUDA_DRIVER_CPPFLAGS=
  13016. CUDA_DRIVER_LDFLAGS=
  13017. # Check whether --with-cuda-driver was given.
  13018. if test "${with_cuda_driver+set}" = set; then :
  13019. withval=$with_cuda_driver;
  13020. fi
  13021. # Check whether --with-cuda-driver-include was given.
  13022. if test "${with_cuda_driver_include+set}" = set; then :
  13023. withval=$with_cuda_driver_include;
  13024. fi
  13025. # Check whether --with-cuda-driver-lib was given.
  13026. if test "${with_cuda_driver_lib+set}" = set; then :
  13027. withval=$with_cuda_driver_lib;
  13028. fi
  13029. case "x$with_cuda_driver" in
  13030. x) ;;
  13031. xno)
  13032. CUDA_DRIVER_INCLUDE=no
  13033. CUDA_DRIVER_LIB=no
  13034. ;;
  13035. *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
  13036. CUDA_DRIVER_LIB=$with_cuda_driver/lib
  13037. ;;
  13038. esac
  13039. if test "x$with_cuda_driver_include" != x; then
  13040. CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
  13041. fi
  13042. if test "x$with_cuda_driver_lib" != x; then
  13043. CUDA_DRIVER_LIB=$with_cuda_driver_lib
  13044. fi
  13045. if test "x$CUDA_DRIVER_INCLUDE" != x \
  13046. && test "x$CUDA_DRIVER_INCLUDE" != xno; then
  13047. CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
  13048. fi
  13049. if test "x$CUDA_DRIVER_LIB" != x \
  13050. && test "x$CUDA_DRIVER_LIB" != xno; then
  13051. CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
  13052. fi
  13053. PLUGIN_NVPTX=0
  13054. PLUGIN_NVPTX_CPPFLAGS=
  13055. PLUGIN_NVPTX_LDFLAGS=
  13056. PLUGIN_NVPTX_LIBS=
  13057. PLUGIN_NVPTX_DYNAMIC=0
  13058. # Look for HSA run-time, its includes and libraries
  13059. HSA_RUNTIME_INCLUDE=
  13060. HSA_RUNTIME_LIB=
  13061. HSA_RUNTIME_CPPFLAGS=
  13062. HSA_RUNTIME_LDFLAGS=
  13063. # Check whether --with-hsa-runtime was given.
  13064. if test "${with_hsa_runtime+set}" = set; then :
  13065. withval=$with_hsa_runtime;
  13066. fi
  13067. # Check whether --with-hsa-runtime-include was given.
  13068. if test "${with_hsa_runtime_include+set}" = set; then :
  13069. withval=$with_hsa_runtime_include;
  13070. fi
  13071. # Check whether --with-hsa-runtime-lib was given.
  13072. if test "${with_hsa_runtime_lib+set}" = set; then :
  13073. withval=$with_hsa_runtime_lib;
  13074. fi
  13075. if test "x$with_hsa_runtime" != x; then
  13076. HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
  13077. HSA_RUNTIME_LIB=$with_hsa_runtime/lib
  13078. fi
  13079. if test "x$with_hsa_runtime_include" != x; then
  13080. HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
  13081. fi
  13082. if test "x$with_hsa_runtime_lib" != x; then
  13083. HSA_RUNTIME_LIB=$with_hsa_runtime_lib
  13084. fi
  13085. if test "x$HSA_RUNTIME_INCLUDE" != x; then
  13086. HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
  13087. fi
  13088. if test "x$HSA_RUNTIME_LIB" != x; then
  13089. HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
  13090. fi
  13091. PLUGIN_GCN=0
  13092. PLUGIN_GCN_CPPFLAGS=
  13093. PLUGIN_GCN_LDFLAGS=
  13094. PLUGIN_GCN_LIBS=
  13095. # Parse '--enable-offload-targets', figure out the corresponding libgomp
  13096. # plugins, and configure to find the corresponding offload compilers.
  13097. # 'offload_plugins' and 'offload_targets' will be populated in the same order.
  13098. offload_plugins=
  13099. offload_targets=
  13100. offload_additional_options=
  13101. offload_additional_lib_paths=
  13102. if test x"$enable_offload_targets" != x; then
  13103. for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
  13104. tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
  13105. tgt=`echo $tgt | sed 's/=.*//'`
  13106. tgt_plugin=
  13107. case $tgt in
  13108. *-intelmic-* | *-intelmicemul-*)
  13109. tgt_plugin=intelmic
  13110. ;;
  13111. nvptx*)
  13112. case "${target}" in
  13113. aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
  13114. case "$ac_cv_sizeof_void_p" in
  13115. 4)
  13116. # PR libgomp/65099: Currently, we only support offloading in
  13117. # 64-bit configurations.
  13118. PLUGIN_NVPTX=0
  13119. ;;
  13120. *)
  13121. tgt_plugin=nvptx
  13122. PLUGIN_NVPTX=$tgt
  13123. if test "x$CUDA_DRIVER_LIB" != xno \
  13124. && test "x$CUDA_DRIVER_LIB" != xno; then
  13125. PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
  13126. PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
  13127. PLUGIN_NVPTX_LIBS='-lcuda'
  13128. PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
  13129. CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
  13130. PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
  13131. LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
  13132. PLUGIN_NVPTX_save_LIBS=$LIBS
  13133. LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
  13134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13135. /* end confdefs.h. */
  13136. #include "cuda.h"
  13137. int
  13138. main ()
  13139. {
  13140. CUresult r = cuCtxPushCurrent (NULL);
  13141. ;
  13142. return 0;
  13143. }
  13144. _ACEOF
  13145. if ac_fn_c_try_link "$LINENO"; then :
  13146. PLUGIN_NVPTX=1
  13147. fi
  13148. rm -f core conftest.err conftest.$ac_objext \
  13149. conftest$ac_exeext conftest.$ac_ext
  13150. CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
  13151. LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
  13152. LIBS=$PLUGIN_NVPTX_save_LIBS
  13153. fi
  13154. case $PLUGIN_NVPTX in
  13155. nvptx*)
  13156. if (test "x$CUDA_DRIVER_INCLUDE" = x \
  13157. || test "x$CUDA_DRIVER_INCLUDE" = xno) \
  13158. && (test "x$CUDA_DRIVER_LIB" = x \
  13159. || test "x$CUDA_DRIVER_LIB" = xno); then
  13160. PLUGIN_NVPTX=1
  13161. PLUGIN_NVPTX_LIBS='-ldl'
  13162. PLUGIN_NVPTX_DYNAMIC=1
  13163. else
  13164. PLUGIN_NVPTX=0
  13165. as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
  13166. fi
  13167. ;;
  13168. esac
  13169. ;;
  13170. esac
  13171. ;;
  13172. *-*-*)
  13173. # Target architecture not supported.
  13174. PLUGIN_NVPTX=0
  13175. ;;
  13176. esac
  13177. ;;
  13178. amdgcn*)
  13179. case "${target}" in
  13180. x86_64-*-*)
  13181. case "$ac_cv_sizeof_void_p" in
  13182. 4)
  13183. PLUGIN_GCN=0
  13184. ;;
  13185. *)
  13186. tgt_plugin=gcn
  13187. PLUGIN_GCN=$tgt
  13188. PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
  13189. PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
  13190. PLUGIN_GCN_LIBS="-ldl"
  13191. PLUGIN_GCN=1
  13192. ;;
  13193. esac
  13194. ;;
  13195. *-*-*)
  13196. PLUGIN_GCN=0
  13197. ;;
  13198. esac
  13199. ;;
  13200. *)
  13201. as_fn_error $? "unknown offload target specified" "$LINENO" 5
  13202. ;;
  13203. esac
  13204. if test x"$tgt_plugin" = x; then
  13205. # Not configuring libgomp for this offload target if we're not building
  13206. # the corresponding offload plugin.
  13207. continue
  13208. elif test x"$offload_plugins" = x; then
  13209. offload_plugins=$tgt_plugin
  13210. offload_targets=$tgt
  13211. else
  13212. offload_plugins=$offload_plugins,$tgt_plugin
  13213. offload_targets=$offload_targets,$tgt
  13214. fi
  13215. # Configure additional search paths.
  13216. if test x"$tgt_dir" != x; then
  13217. offload_additional_options="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
  13218. offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
  13219. else
  13220. offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
  13221. offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
  13222. fi
  13223. done
  13224. fi
  13225. cat >>confdefs.h <<_ACEOF
  13226. #define OFFLOAD_PLUGINS "$offload_plugins"
  13227. _ACEOF
  13228. if test $PLUGIN_NVPTX = 1; then
  13229. PLUGIN_NVPTX_TRUE=
  13230. PLUGIN_NVPTX_FALSE='#'
  13231. else
  13232. PLUGIN_NVPTX_TRUE='#'
  13233. PLUGIN_NVPTX_FALSE=
  13234. fi
  13235. cat >>confdefs.h <<_ACEOF
  13236. #define PLUGIN_NVPTX $PLUGIN_NVPTX
  13237. _ACEOF
  13238. cat >>confdefs.h <<_ACEOF
  13239. #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
  13240. _ACEOF
  13241. if test $PLUGIN_GCN = 1; then
  13242. PLUGIN_GCN_TRUE=
  13243. PLUGIN_GCN_FALSE='#'
  13244. else
  13245. PLUGIN_GCN_TRUE='#'
  13246. PLUGIN_GCN_FALSE=
  13247. fi
  13248. cat >>confdefs.h <<_ACEOF
  13249. #define PLUGIN_GCN $PLUGIN_GCN
  13250. _ACEOF
  13251. # Check for functions needed.
  13252. for ac_func in getloadavg clock_gettime strtoull
  13253. do :
  13254. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13255. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13256. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13257. cat >>confdefs.h <<_ACEOF
  13258. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13259. _ACEOF
  13260. fi
  13261. done
  13262. for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
  13263. do :
  13264. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13265. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13266. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13267. cat >>confdefs.h <<_ACEOF
  13268. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13269. _ACEOF
  13270. fi
  13271. done
  13272. # Check for broken semaphore implementation on darwin.
  13273. # sem_init returns: sem_init error: Function not implemented.
  13274. case "$host" in
  13275. *-darwin*)
  13276. $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
  13277. ;;
  13278. esac
  13279. # RTEMS specific checks
  13280. case "$host" in
  13281. *-*-rtems*)
  13282. ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
  13283. "
  13284. if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
  13285. cat >>confdefs.h <<_ACEOF
  13286. #define HAVE_STRUCT__MUTEX_CONTROL 1
  13287. _ACEOF
  13288. fi
  13289. ;;
  13290. esac
  13291. # Check whether --enable-linux-futex was given.
  13292. if test "${enable_linux_futex+set}" = set; then :
  13293. enableval=$enable_linux_futex;
  13294. case "$enableval" in
  13295. yes|no|default) ;;
  13296. *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
  13297. esac
  13298. else
  13299. enable_linux_futex=default
  13300. fi
  13301. case "$target" in
  13302. *-linux* | *-uclinux*)
  13303. case "$enable_linux_futex" in
  13304. default)
  13305. # If headers don't have gettid/futex syscalls definition, then
  13306. # default to no, otherwise there will be compile time failures.
  13307. # Otherwise, default to yes. If we don't detect we are
  13308. # compiled/linked against NPTL and not cross-compiling, check
  13309. # if programs are run by default against NPTL and if not, issue
  13310. # a warning.
  13311. enable_linux_futex=no
  13312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13313. /* end confdefs.h. */
  13314. #include <sys/syscall.h>
  13315. #include <unistd.h>
  13316. int lk;
  13317. int
  13318. main ()
  13319. {
  13320. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  13321. ;
  13322. return 0;
  13323. }
  13324. _ACEOF
  13325. if ac_fn_c_try_link "$LINENO"; then :
  13326. save_LIBS="$LIBS"
  13327. LIBS="-lpthread $LIBS"
  13328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13329. /* end confdefs.h. */
  13330. #ifndef _GNU_SOURCE
  13331. #define _GNU_SOURCE 1
  13332. #endif
  13333. #include <pthread.h>
  13334. pthread_t th; void *status;
  13335. int
  13336. main ()
  13337. {
  13338. pthread_tryjoin_np (th, &status);
  13339. ;
  13340. return 0;
  13341. }
  13342. _ACEOF
  13343. if ac_fn_c_try_link "$LINENO"; then :
  13344. enable_linux_futex=yes
  13345. else
  13346. if test x$cross_compiling = xno; then
  13347. if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
  13348. | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
  13349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
  13350. If so, please configure with --disable-linux-futex" >&5
  13351. $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
  13352. If so, please configure with --disable-linux-futex" >&2;}
  13353. fi
  13354. fi
  13355. enable_linux_futex=yes
  13356. fi
  13357. rm -f core conftest.err conftest.$ac_objext \
  13358. conftest$ac_exeext conftest.$ac_ext
  13359. LIBS="$save_LIBS"
  13360. fi
  13361. rm -f core conftest.err conftest.$ac_objext \
  13362. conftest$ac_exeext conftest.$ac_ext
  13363. ;;
  13364. yes)
  13365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13366. /* end confdefs.h. */
  13367. #include <sys/syscall.h>
  13368. #include <unistd.h>
  13369. int lk;
  13370. int
  13371. main ()
  13372. {
  13373. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  13374. ;
  13375. return 0;
  13376. }
  13377. _ACEOF
  13378. if ac_fn_c_try_link "$LINENO"; then :
  13379. else
  13380. as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
  13381. fi
  13382. rm -f core conftest.err conftest.$ac_objext \
  13383. conftest$ac_exeext conftest.$ac_ext
  13384. ;;
  13385. esac
  13386. ;;
  13387. *)
  13388. enable_linux_futex=no
  13389. ;;
  13390. esac
  13391. if test x$enable_linux_futex = xyes; then
  13392. :
  13393. fi
  13394. # Check for pthread_{,attr_}[sg]etaffinity_np.
  13395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13396. /* end confdefs.h. */
  13397. #define _GNU_SOURCE
  13398. #include <pthread.h>
  13399. int
  13400. main ()
  13401. {
  13402. cpu_set_t cpuset;
  13403. pthread_attr_t attr;
  13404. pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
  13405. if (CPU_ISSET (0, &cpuset))
  13406. CPU_SET (1, &cpuset);
  13407. else
  13408. CPU_ZERO (&cpuset);
  13409. pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
  13410. pthread_attr_init (&attr);
  13411. pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
  13412. pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
  13413. ;
  13414. return 0;
  13415. }
  13416. _ACEOF
  13417. if ac_fn_c_try_link "$LINENO"; then :
  13418. $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
  13419. fi
  13420. rm -f core conftest.err conftest.$ac_objext \
  13421. conftest$ac_exeext conftest.$ac_ext
  13422. # At least for glibc, clock_gettime is in librt. But don't pull that
  13423. # in if it still doesn't give us the function we want.
  13424. if test $ac_cv_func_clock_gettime = no; then
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13426. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13427. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  13428. $as_echo_n "(cached) " >&6
  13429. else
  13430. ac_check_lib_save_LIBS=$LIBS
  13431. LIBS="-lrt $LIBS"
  13432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13433. /* end confdefs.h. */
  13434. /* Override any GCC internal prototype to avoid an error.
  13435. Use char because int might match the return type of a GCC
  13436. builtin and then its argument prototype would still apply. */
  13437. #ifdef __cplusplus
  13438. extern "C"
  13439. #endif
  13440. char clock_gettime ();
  13441. int
  13442. main ()
  13443. {
  13444. return clock_gettime ();
  13445. ;
  13446. return 0;
  13447. }
  13448. _ACEOF
  13449. if ac_fn_c_try_link "$LINENO"; then :
  13450. ac_cv_lib_rt_clock_gettime=yes
  13451. else
  13452. ac_cv_lib_rt_clock_gettime=no
  13453. fi
  13454. rm -f core conftest.err conftest.$ac_objext \
  13455. conftest$ac_exeext conftest.$ac_ext
  13456. LIBS=$ac_check_lib_save_LIBS
  13457. fi
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13459. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13460. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  13461. LIBS="-lrt $LIBS"
  13462. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  13463. fi
  13464. fi
  13465. # Check for uname.
  13466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13467. /* end confdefs.h. */
  13468. #include <string.h>
  13469. #include <stdlib.h>
  13470. #include <sys/utsname.h>
  13471. int
  13472. main ()
  13473. {
  13474. struct utsname buf;
  13475. volatile size_t len = 0;
  13476. if (!uname (buf))
  13477. len = strlen (buf.nodename);
  13478. ;
  13479. return 0;
  13480. }
  13481. _ACEOF
  13482. if ac_fn_c_try_compile "$LINENO"; then :
  13483. $as_echo "#define HAVE_UNAME 1" >>confdefs.h
  13484. fi
  13485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13486. # Check for gethostname.
  13487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13488. /* end confdefs.h. */
  13489. #include <unistd.h>
  13490. int
  13491. main ()
  13492. {
  13493. char buf[256];
  13494. if (gethostname (buf, sizeof (buf) - 1) == 0)
  13495. buf[255] = '\0';
  13496. ;
  13497. return 0;
  13498. }
  13499. _ACEOF
  13500. if ac_fn_c_try_compile "$LINENO"; then :
  13501. $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  13502. fi
  13503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13504. # Check for getpid.
  13505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13506. /* end confdefs.h. */
  13507. #include <unistd.h>
  13508. int
  13509. main ()
  13510. {
  13511. int pid = getpid ();
  13512. ;
  13513. return 0;
  13514. }
  13515. _ACEOF
  13516. if ac_fn_c_try_compile "$LINENO"; then :
  13517. $as_echo "#define HAVE_GETPID 1" >>confdefs.h
  13518. fi
  13519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13520. # See if we support thread-local storage.
  13521. # Check whether --enable-tls was given.
  13522. if test "${enable_tls+set}" = set; then :
  13523. enableval=$enable_tls;
  13524. case "$enableval" in
  13525. yes|no) ;;
  13526. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  13527. esac
  13528. else
  13529. enable_tls=yes
  13530. fi
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  13532. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  13533. if ${gcc_cv_have_tls+:} false; then :
  13534. $as_echo_n "(cached) " >&6
  13535. else
  13536. if test "$cross_compiling" = yes; then :
  13537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13538. /* end confdefs.h. */
  13539. __thread int a; int b; int main() { return a = b; }
  13540. _ACEOF
  13541. if ac_fn_c_try_link "$LINENO"; then :
  13542. chktls_save_LDFLAGS="$LDFLAGS"
  13543. case $host in
  13544. *-*-linux* | -*-uclinuxfdpic*)
  13545. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  13546. ;;
  13547. esac
  13548. chktls_save_CFLAGS="$CFLAGS"
  13549. CFLAGS="-fPIC $CFLAGS"
  13550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13551. /* end confdefs.h. */
  13552. int f() { return 0; }
  13553. _ACEOF
  13554. if ac_fn_c_try_link "$LINENO"; then :
  13555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13556. /* end confdefs.h. */
  13557. __thread int a; int b; int f() { return a = b; }
  13558. _ACEOF
  13559. if ac_fn_c_try_link "$LINENO"; then :
  13560. gcc_cv_have_tls=yes
  13561. else
  13562. gcc_cv_have_tls=no
  13563. fi
  13564. rm -f core conftest.err conftest.$ac_objext \
  13565. conftest$ac_exeext conftest.$ac_ext
  13566. else
  13567. gcc_cv_have_tls=yes
  13568. fi
  13569. rm -f core conftest.err conftest.$ac_objext \
  13570. conftest$ac_exeext conftest.$ac_ext
  13571. CFLAGS="$chktls_save_CFLAGS"
  13572. LDFLAGS="$chktls_save_LDFLAGS"
  13573. else
  13574. gcc_cv_have_tls=no
  13575. fi
  13576. rm -f core conftest.err conftest.$ac_objext \
  13577. conftest$ac_exeext conftest.$ac_ext
  13578. else
  13579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13580. /* end confdefs.h. */
  13581. __thread int a; int b; int main() { return a = b; }
  13582. _ACEOF
  13583. if ac_fn_c_try_run "$LINENO"; then :
  13584. chktls_save_LDFLAGS="$LDFLAGS"
  13585. LDFLAGS="-static $LDFLAGS"
  13586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13587. /* end confdefs.h. */
  13588. int main() { return 0; }
  13589. _ACEOF
  13590. if ac_fn_c_try_link "$LINENO"; then :
  13591. if test "$cross_compiling" = yes; then :
  13592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13594. as_fn_error $? "cannot run test program while cross compiling
  13595. See \`config.log' for more details" "$LINENO" 5; }
  13596. else
  13597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13598. /* end confdefs.h. */
  13599. __thread int a; int b; int main() { return a = b; }
  13600. _ACEOF
  13601. if ac_fn_c_try_run "$LINENO"; then :
  13602. gcc_cv_have_tls=yes
  13603. else
  13604. gcc_cv_have_tls=no
  13605. fi
  13606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13607. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13608. fi
  13609. else
  13610. gcc_cv_have_tls=yes
  13611. fi
  13612. rm -f core conftest.err conftest.$ac_objext \
  13613. conftest$ac_exeext conftest.$ac_ext
  13614. LDFLAGS="$chktls_save_LDFLAGS"
  13615. if test $gcc_cv_have_tls = yes; then
  13616. chktls_save_CFLAGS="$CFLAGS"
  13617. thread_CFLAGS=failed
  13618. for flag in '' '-pthread' '-lpthread'; do
  13619. CFLAGS="$flag $chktls_save_CFLAGS"
  13620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13621. /* end confdefs.h. */
  13622. #include <pthread.h>
  13623. void *g(void *d) { return NULL; }
  13624. int
  13625. main ()
  13626. {
  13627. pthread_t t; pthread_create(&t,NULL,g,NULL);
  13628. ;
  13629. return 0;
  13630. }
  13631. _ACEOF
  13632. if ac_fn_c_try_link "$LINENO"; then :
  13633. thread_CFLAGS="$flag"
  13634. fi
  13635. rm -f core conftest.err conftest.$ac_objext \
  13636. conftest$ac_exeext conftest.$ac_ext
  13637. if test "X$thread_CFLAGS" != Xfailed; then
  13638. break
  13639. fi
  13640. done
  13641. CFLAGS="$chktls_save_CFLAGS"
  13642. if test "X$thread_CFLAGS" != Xfailed; then
  13643. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  13644. if test "$cross_compiling" = yes; then :
  13645. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13647. as_fn_error $? "cannot run test program while cross compiling
  13648. See \`config.log' for more details" "$LINENO" 5; }
  13649. else
  13650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13651. /* end confdefs.h. */
  13652. #include <pthread.h>
  13653. __thread int a;
  13654. static int *volatile a_in_other_thread;
  13655. static void *
  13656. thread_func (void *arg)
  13657. {
  13658. a_in_other_thread = &a;
  13659. return (void *)0;
  13660. }
  13661. int
  13662. main ()
  13663. {
  13664. pthread_t thread;
  13665. void *thread_retval;
  13666. int *volatile a_in_main_thread;
  13667. a_in_main_thread = &a;
  13668. if (pthread_create (&thread, (pthread_attr_t *)0,
  13669. thread_func, (void *)0))
  13670. return 0;
  13671. if (pthread_join (thread, &thread_retval))
  13672. return 0;
  13673. return (a_in_other_thread == a_in_main_thread);
  13674. ;
  13675. return 0;
  13676. }
  13677. _ACEOF
  13678. if ac_fn_c_try_run "$LINENO"; then :
  13679. gcc_cv_have_tls=yes
  13680. else
  13681. gcc_cv_have_tls=no
  13682. fi
  13683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13685. fi
  13686. CFLAGS="$chktls_save_CFLAGS"
  13687. fi
  13688. fi
  13689. else
  13690. gcc_cv_have_tls=no
  13691. fi
  13692. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13693. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13694. fi
  13695. fi
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  13697. $as_echo "$gcc_cv_have_tls" >&6; }
  13698. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  13699. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  13700. fi
  13701. # See if we have emulated thread-local storage.
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
  13703. $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
  13704. if ${gcc_cv_use_emutls+:} false; then :
  13705. $as_echo_n "(cached) " >&6
  13706. else
  13707. gcc_cv_use_emutls=no
  13708. echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
  13709. if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
  13710. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  13711. (eval $ac_try) 2>&5
  13712. ac_status=$?
  13713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13714. test $ac_status = 0; }; }; then
  13715. if grep __emutls_get_address conftest.s > /dev/null; then
  13716. gcc_cv_use_emutls=yes
  13717. fi
  13718. fi
  13719. rm -f conftest.*
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
  13722. $as_echo "$gcc_cv_use_emutls" >&6; }
  13723. if test "$gcc_cv_use_emutls" = "yes" ; then
  13724. $as_echo "#define USE_EMUTLS 1" >>confdefs.h
  13725. fi
  13726. # See what sort of export controls are available.
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  13728. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  13729. if ${libgomp_cv_have_attribute_visibility+:} false; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. save_CFLAGS="$CFLAGS"
  13733. CFLAGS="$CFLAGS -Werror"
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. void __attribute__((visibility("hidden"))) foo(void) { }
  13737. int
  13738. main ()
  13739. {
  13740. ;
  13741. return 0;
  13742. }
  13743. _ACEOF
  13744. if ac_fn_c_try_compile "$LINENO"; then :
  13745. libgomp_cv_have_attribute_visibility=yes
  13746. else
  13747. libgomp_cv_have_attribute_visibility=no
  13748. fi
  13749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13750. CFLAGS="$save_CFLAGS"
  13751. fi
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
  13753. $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
  13754. if test $libgomp_cv_have_attribute_visibility = yes; then
  13755. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  13756. fi
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  13758. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  13759. if ${libgomp_cv_have_attribute_dllexport+:} false; then :
  13760. $as_echo_n "(cached) " >&6
  13761. else
  13762. save_CFLAGS="$CFLAGS"
  13763. CFLAGS="$CFLAGS -Werror"
  13764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13765. /* end confdefs.h. */
  13766. void __attribute__((dllexport)) foo(void) { }
  13767. int
  13768. main ()
  13769. {
  13770. ;
  13771. return 0;
  13772. }
  13773. _ACEOF
  13774. if ac_fn_c_try_compile "$LINENO"; then :
  13775. libgomp_cv_have_attribute_dllexport=yes
  13776. else
  13777. libgomp_cv_have_attribute_dllexport=no
  13778. fi
  13779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13780. CFLAGS="$save_CFLAGS"
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
  13783. $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
  13784. if test $libgomp_cv_have_attribute_dllexport = yes; then
  13785. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  13786. fi
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  13788. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  13789. if ${libgomp_cv_have_attribute_alias+:} false; then :
  13790. $as_echo_n "(cached) " >&6
  13791. else
  13792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13793. /* end confdefs.h. */
  13794. void foo(void) { }
  13795. extern void bar(void) __attribute__((alias("foo")));
  13796. int
  13797. main ()
  13798. {
  13799. bar();
  13800. ;
  13801. return 0;
  13802. }
  13803. _ACEOF
  13804. if ac_fn_c_try_link "$LINENO"; then :
  13805. libgomp_cv_have_attribute_alias=yes
  13806. else
  13807. libgomp_cv_have_attribute_alias=no
  13808. fi
  13809. rm -f core conftest.err conftest.$ac_objext \
  13810. conftest$ac_exeext conftest.$ac_ext
  13811. fi
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
  13813. $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
  13814. if test $libgomp_cv_have_attribute_alias = yes; then
  13815. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  13816. fi
  13817. # Check whether --with-gnu-ld was given.
  13818. if test "${with_gnu_ld+set}" = set; then :
  13819. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13820. else
  13821. with_gnu_ld=no
  13822. fi
  13823. ac_prog=ld
  13824. if test "$GCC" = yes; then
  13825. # Check if gcc -print-prog-name=ld gives a path.
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13827. $as_echo_n "checking for ld used by $CC... " >&6; }
  13828. case $host in
  13829. *-*-mingw*)
  13830. # gcc leaves a trailing carriage return which upsets mingw
  13831. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13832. *)
  13833. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13834. esac
  13835. case $ac_prog in
  13836. # Accept absolute paths.
  13837. [\\/]* | ?:[\\/]*)
  13838. re_direlt='/[^/][^/]*/\.\./'
  13839. # Canonicalize the pathname of ld
  13840. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13841. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13842. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13843. done
  13844. test -z "$LD" && LD="$ac_prog"
  13845. ;;
  13846. "")
  13847. # If it fails, then pretend we aren't using GCC.
  13848. ac_prog=ld
  13849. ;;
  13850. *)
  13851. # If it is relative, then search for the first ld in PATH.
  13852. with_gnu_ld=unknown
  13853. ;;
  13854. esac
  13855. elif test "$with_gnu_ld" = yes; then
  13856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13857. $as_echo_n "checking for GNU ld... " >&6; }
  13858. else
  13859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13860. $as_echo_n "checking for non-GNU ld... " >&6; }
  13861. fi
  13862. if ${lt_cv_path_LD+:} false; then :
  13863. $as_echo_n "(cached) " >&6
  13864. else
  13865. if test -z "$LD"; then
  13866. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13867. for ac_dir in $PATH; do
  13868. IFS="$lt_save_ifs"
  13869. test -z "$ac_dir" && ac_dir=.
  13870. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13871. lt_cv_path_LD="$ac_dir/$ac_prog"
  13872. # Check to see if the program is GNU ld. I'd rather use --version,
  13873. # but apparently some variants of GNU ld only accept -v.
  13874. # Break only if it was the GNU/non-GNU ld that we prefer.
  13875. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13876. *GNU* | *'with BFD'*)
  13877. test "$with_gnu_ld" != no && break
  13878. ;;
  13879. *)
  13880. test "$with_gnu_ld" != yes && break
  13881. ;;
  13882. esac
  13883. fi
  13884. done
  13885. IFS="$lt_save_ifs"
  13886. else
  13887. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13888. fi
  13889. fi
  13890. LD="$lt_cv_path_LD"
  13891. if test -n "$LD"; then
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13893. $as_echo "$LD" >&6; }
  13894. else
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13896. $as_echo "no" >&6; }
  13897. fi
  13898. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13900. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13901. if ${lt_cv_prog_gnu_ld+:} false; then :
  13902. $as_echo_n "(cached) " >&6
  13903. else
  13904. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13905. case `$LD -v 2>&1 </dev/null` in
  13906. *GNU* | *'with BFD'*)
  13907. lt_cv_prog_gnu_ld=yes
  13908. ;;
  13909. *)
  13910. lt_cv_prog_gnu_ld=no
  13911. ;;
  13912. esac
  13913. fi
  13914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13915. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13916. with_gnu_ld=$lt_cv_prog_gnu_ld
  13917. # If we're not using GNU ld, then there's no point in even trying these
  13918. # tests. Check for that first. We should have already tested for gld
  13919. # by now (in libtool), but require it now just to be safe...
  13920. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  13921. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  13922. # The name set by libtool depends on the version of libtool. Shame on us
  13923. # for depending on an impl detail, but c'est la vie. Older versions used
  13924. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  13925. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  13926. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  13927. # set (hence we're using an older libtool), then set it.
  13928. if test x${with_gnu_ld+set} != xset; then
  13929. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  13930. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  13931. with_gnu_ld=no
  13932. else
  13933. with_gnu_ld=$ac_cv_prog_gnu_ld
  13934. fi
  13935. fi
  13936. # Start by getting the version number. I think the libtool test already
  13937. # does some of this, but throws away the result.
  13938. libgomp_ld_is_gold=no
  13939. libgomp_ld_is_mold=no
  13940. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  13941. libgomp_ld_is_gold=yes
  13942. elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
  13943. libat_ld_is_mold=yes
  13944. fi
  13945. ldver=`$LD --version 2>/dev/null |
  13946. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  13947. libgomp_gnu_ld_version=`echo $ldver | \
  13948. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  13949. # Set --gc-sections.
  13950. if test "$with_gnu_ld" = "notbroken"; then
  13951. # GNU ld it is! Joy and bunny rabbits!
  13952. # All these tests are for C++; save the language and the compiler flags.
  13953. # Need to do this so that g++ won't try to link in libstdc++
  13954. ac_test_CFLAGS="${CFLAGS+set}"
  13955. ac_save_CFLAGS="$CFLAGS"
  13956. CFLAGS='-x c++ -Wl,--gc-sections'
  13957. # Check for -Wl,--gc-sections
  13958. # XXX This test is broken at the moment, as symbols required for linking
  13959. # are now in libsupc++ (not built yet). In addition, this test has
  13960. # cored on solaris in the past. In addition, --gc-sections doesn't
  13961. # really work at the moment (keeps on discarding used sections, first
  13962. # .eh_frame and now some of the glibc sections for iconv).
  13963. # Bzzzzt. Thanks for playing, maybe next time.
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  13965. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  13966. if test "$cross_compiling" = yes; then :
  13967. ac_sectionLDflags=yes
  13968. else
  13969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13970. /* end confdefs.h. */
  13971. int main(void)
  13972. {
  13973. try { throw 1; }
  13974. catch (...) { };
  13975. return 0;
  13976. }
  13977. _ACEOF
  13978. if ac_fn_c_try_run "$LINENO"; then :
  13979. ac_sectionLDflags=yes
  13980. else
  13981. ac_sectionLDflags=no
  13982. fi
  13983. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13984. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13985. fi
  13986. if test "$ac_test_CFLAGS" = set; then
  13987. CFLAGS="$ac_save_CFLAGS"
  13988. else
  13989. # this is the suspicious part
  13990. CFLAGS=''
  13991. fi
  13992. if test "$ac_sectionLDflags" = "yes"; then
  13993. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  13994. fi
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  13996. $as_echo "$ac_sectionLDflags" >&6; }
  13997. fi
  13998. # Set linker optimization flags.
  13999. if test x"$with_gnu_ld" = x"yes"; then
  14000. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  14001. fi
  14002. # Check whether --enable-symvers was given.
  14003. if test "${enable_symvers+set}" = set; then :
  14004. enableval=$enable_symvers;
  14005. case "$enableval" in
  14006. yes|no|gnu*|sun) ;;
  14007. *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  14008. esac
  14009. else
  14010. enable_symvers=yes
  14011. fi
  14012. # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
  14013. # don't know enough about $LD to do tricks...
  14014. # Turn a 'yes' into a suitable default.
  14015. if test x$enable_symvers = xyes ; then
  14016. # FIXME The following test is too strict, in theory.
  14017. if test $enable_shared = no || test "x$LD" = x; then
  14018. enable_symvers=no
  14019. else
  14020. if test $with_gnu_ld = yes ; then
  14021. enable_symvers=gnu
  14022. else
  14023. case ${target_os} in
  14024. # Sun symbol versioning exists since Solaris 2.5.
  14025. solaris2.[5-9]* | solaris2.1[0-9]*)
  14026. enable_symvers=sun ;;
  14027. *)
  14028. enable_symvers=no ;;
  14029. esac
  14030. fi
  14031. fi
  14032. fi
  14033. # Check if 'sun' was requested on non-Solaris 2 platforms.
  14034. if test x$enable_symvers = xsun ; then
  14035. case ${target_os} in
  14036. solaris2*)
  14037. # All fine.
  14038. ;;
  14039. *)
  14040. # Unlikely to work.
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  14042. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  14044. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14046. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14047. enable_symvers=no
  14048. ;;
  14049. esac
  14050. fi
  14051. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  14052. if test $enable_symvers != no; then
  14053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  14054. $as_echo_n "checking for shared libgcc... " >&6; }
  14055. ac_save_CFLAGS="$CFLAGS"
  14056. CFLAGS=' -lgcc_s'
  14057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14058. /* end confdefs.h. */
  14059. int
  14060. main ()
  14061. {
  14062. return 0;
  14063. ;
  14064. return 0;
  14065. }
  14066. _ACEOF
  14067. if ac_fn_c_try_link "$LINENO"; then :
  14068. libgomp_shared_libgcc=yes
  14069. else
  14070. libgomp_shared_libgcc=no
  14071. fi
  14072. rm -f core conftest.err conftest.$ac_objext \
  14073. conftest$ac_exeext conftest.$ac_ext
  14074. CFLAGS="$ac_save_CFLAGS"
  14075. if test $libgomp_shared_libgcc = no; then
  14076. cat > conftest.c <<EOF
  14077. int main (void) { return 0; }
  14078. EOF
  14079. libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  14080. -shared -shared-libgcc -o conftest.so \
  14081. conftest.c -v 2>&1 >/dev/null \
  14082. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  14083. rm -f conftest.c conftest.so
  14084. if test x${libgomp_libgcc_s_suffix+set} = xset; then
  14085. CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
  14086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14087. /* end confdefs.h. */
  14088. int
  14089. main ()
  14090. {
  14091. return 0;
  14092. ;
  14093. return 0;
  14094. }
  14095. _ACEOF
  14096. if ac_fn_c_try_link "$LINENO"; then :
  14097. libgomp_shared_libgcc=yes
  14098. fi
  14099. rm -f core conftest.err conftest.$ac_objext \
  14100. conftest$ac_exeext conftest.$ac_ext
  14101. CFLAGS="$ac_save_CFLAGS"
  14102. fi
  14103. fi
  14104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
  14105. $as_echo "$libgomp_shared_libgcc" >&6; }
  14106. fi
  14107. # For GNU ld, we need at least this version. The format is described in
  14108. # LIBGOMP_CHECK_LINKER_FEATURES above.
  14109. libgomp_min_gnu_ld_version=21400
  14110. # XXXXXXXXXXX libgomp_gnu_ld_version=21390
  14111. # Check to see if unspecified "yes" value can win, given results above.
  14112. # Change "yes" into either "no" or a style name.
  14113. if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
  14114. if test $with_gnu_ld = yes; then
  14115. if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
  14116. enable_symvers=gnu
  14117. elif test $libgomp_ld_is_gold = yes ; then
  14118. enable_symvers=gnu
  14119. elif test $libgomp_ld_is_mold = yes ; then
  14120. enable_symvers=gnu
  14121. else
  14122. # The right tools, the right setup, but too old. Fallbacks?
  14123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
  14124. $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  14126. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  14127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  14128. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
  14130. $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
  14131. if test $libgomp_gnu_ld_version -ge 21200 ; then
  14132. # Globbing fix is present, proper block support is not.
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14134. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14135. enable_symvers=no
  14136. else
  14137. # 2.11 or older.
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14139. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14140. enable_symvers=no
  14141. fi
  14142. fi
  14143. elif test $enable_symvers = sun; then
  14144. : All interesting versions of Sun ld support sun style symbol versioning.
  14145. else
  14146. # just fail for now
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  14148. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  14150. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  14152. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14154. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14155. enable_symvers=no
  14156. fi
  14157. fi
  14158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
  14159. $as_echo_n "checking whether the target supports .symver directive... " >&6; }
  14160. if ${libgomp_cv_have_as_symver_directive+:} false; then :
  14161. $as_echo_n "(cached) " >&6
  14162. else
  14163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14164. /* end confdefs.h. */
  14165. void foo (void); __asm (".symver foo, bar@SYMVER");
  14166. int
  14167. main ()
  14168. {
  14169. ;
  14170. return 0;
  14171. }
  14172. _ACEOF
  14173. if ac_fn_c_try_compile "$LINENO"; then :
  14174. libgomp_cv_have_as_symver_directive=yes
  14175. else
  14176. libgomp_cv_have_as_symver_directive=no
  14177. fi
  14178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14179. fi
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
  14181. $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
  14182. if test $libgomp_cv_have_as_symver_directive = yes; then
  14183. $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
  14184. fi
  14185. if test $enable_symvers != no; then
  14186. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
  14187. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
  14188. else
  14189. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
  14190. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
  14191. fi
  14192. if test $enable_symvers = gnu; then
  14193. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  14194. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  14195. else
  14196. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  14197. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  14198. fi
  14199. if test $enable_symvers = sun; then
  14200. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  14201. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  14202. else
  14203. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  14204. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  14205. fi
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  14207. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  14208. if test $enable_symvers != no ; then
  14209. case ${target_os} in
  14210. # The Solaris 2 runtime linker doesn't support the GNU extension of
  14211. # binding the same symbol to different versions
  14212. solaris2*)
  14213. ;;
  14214. # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
  14215. *)
  14216. $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
  14217. ;;
  14218. esac
  14219. fi
  14220. if test $enable_symvers = gnu; then
  14221. $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  14222. fi
  14223. # Determine cpu count to limit testsuite parallelism.
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
  14225. $as_echo_n "checking the number of available CPUs... " >&6; }
  14226. CPU_COUNT="0"
  14227. # Try generic methods
  14228. # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
  14229. # 'NPROCESSORS_ONLN' are platform-specific
  14230. command -v getconf >/dev/null 2>&1 && \
  14231. CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
  14232. if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
  14233. : # empty
  14234. else
  14235. # 'nproc' is part of GNU Coreutils and is widely available
  14236. CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
  14237. fi
  14238. if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
  14239. : # empty
  14240. else
  14241. # Try platform-specific preferred methods
  14242. case $host_os in #(
  14243. *linux*) :
  14244. CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
  14245. *darwin*) :
  14246. CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
  14247. freebsd*) :
  14248. command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
  14249. netbsd*) :
  14250. command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
  14251. solaris*) :
  14252. command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
  14253. mingw*) :
  14254. CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
  14255. msys*) :
  14256. CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
  14257. cygwin*) :
  14258. CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
  14259. *) :
  14260. ;;
  14261. esac
  14262. fi
  14263. if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
  14264. : # empty
  14265. else
  14266. # Try less preferred generic method
  14267. # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
  14268. CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
  14269. fi
  14270. if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
  14271. : # empty
  14272. else
  14273. # Try platform-specific fallback methods
  14274. # They can be less accurate and slower then preferred methods
  14275. case $host_os in #(
  14276. *linux*) :
  14277. CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
  14278. *darwin*) :
  14279. CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
  14280. freebsd*) :
  14281. CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
  14282. netbsd*) :
  14283. CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
  14284. CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
  14285. solaris*) :
  14286. command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
  14287. CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
  14288. mingw*) :
  14289. if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
  14290. : # empty
  14291. else
  14292. test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
  14293. fi ;; #(
  14294. msys*) :
  14295. test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
  14296. cygwin*) :
  14297. test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
  14298. *) :
  14299. ;;
  14300. esac
  14301. fi
  14302. if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
  14304. $as_echo "$CPU_COUNT" >&6; }
  14305. else
  14306. CPU_COUNT="1"
  14307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
  14308. $as_echo "unable to detect (assuming 1)" >&6; }
  14309. fi
  14310. # Get target configury.
  14311. . ${srcdir}/configure.tgt
  14312. CFLAGS="$save_CFLAGS $XCFLAGS"
  14313. # Check for __sync_val_compare_and_swap, but only after the target has
  14314. # had a chance to set XCFLAGS.
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
  14316. $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
  14317. if ${libgomp_cv_have_sync_builtins+:} false; then :
  14318. $as_echo_n "(cached) " >&6
  14319. else
  14320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14321. /* end confdefs.h. */
  14322. int
  14323. main ()
  14324. {
  14325. int foo; __sync_val_compare_and_swap(&foo, 0, 1);
  14326. ;
  14327. return 0;
  14328. }
  14329. _ACEOF
  14330. if ac_fn_c_try_link "$LINENO"; then :
  14331. libgomp_cv_have_sync_builtins=yes
  14332. else
  14333. libgomp_cv_have_sync_builtins=no
  14334. fi
  14335. rm -f core conftest.err conftest.$ac_objext \
  14336. conftest$ac_exeext conftest.$ac_ext
  14337. fi
  14338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
  14339. $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
  14340. if test $libgomp_cv_have_sync_builtins = yes; then
  14341. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  14342. fi
  14343. XCFLAGS="$XCFLAGS$XPCFLAGS"
  14344. # Add CET specific flags if CET is enabled
  14345. # Check whether --enable-cet was given.
  14346. if test "${enable_cet+set}" = set; then :
  14347. enableval=$enable_cet;
  14348. case "$enableval" in
  14349. yes|no|auto) ;;
  14350. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  14351. esac
  14352. else
  14353. enable_cet=auto
  14354. fi
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  14356. $as_echo_n "checking for CET support... " >&6; }
  14357. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  14358. case "$host" in
  14359. i[34567]86-*-linux* | x86_64-*-linux*)
  14360. case "$enable_cet" in
  14361. auto)
  14362. # Check if target supports multi-byte NOPs
  14363. # and if compiler and assembler support CET insn.
  14364. cet_save_CFLAGS="$CFLAGS"
  14365. CFLAGS="$CFLAGS -fcf-protection"
  14366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14367. /* end confdefs.h. */
  14368. int
  14369. main ()
  14370. {
  14371. #if !defined(__SSE2__)
  14372. #error target does not support multi-byte NOPs
  14373. #else
  14374. asm ("setssbsy");
  14375. #endif
  14376. ;
  14377. return 0;
  14378. }
  14379. _ACEOF
  14380. if ac_fn_c_try_compile "$LINENO"; then :
  14381. enable_cet=yes
  14382. else
  14383. enable_cet=no
  14384. fi
  14385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14386. CFLAGS="$cet_save_CFLAGS"
  14387. ;;
  14388. yes)
  14389. # Check if assembler supports CET.
  14390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14391. /* end confdefs.h. */
  14392. int
  14393. main ()
  14394. {
  14395. asm ("setssbsy");
  14396. ;
  14397. return 0;
  14398. }
  14399. _ACEOF
  14400. if ac_fn_c_try_compile "$LINENO"; then :
  14401. else
  14402. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  14403. fi
  14404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14405. ;;
  14406. esac
  14407. ;;
  14408. *)
  14409. enable_cet=no
  14410. ;;
  14411. esac
  14412. if test x$enable_cet = xyes; then
  14413. CET_FLAGS="-fcf-protection -mshstk"
  14414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14415. $as_echo "yes" >&6; }
  14416. else
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14418. $as_echo "no" >&6; }
  14419. fi
  14420. XCFLAGS="$XCFLAGS $CET_FLAGS"
  14421. FCFLAGS="$FCFLAGS $CET_FLAGS"
  14422. # Conditionalize the makefile for this target machine.
  14423. tmake_file_=
  14424. for f in ${tmake_file}
  14425. do
  14426. if test -f ${srcdir}/config/$f
  14427. then
  14428. tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  14429. fi
  14430. done
  14431. tmake_file="${tmake_file_}"
  14432. # Cleanup and exit.
  14433. CFLAGS="$save_CFLAGS"
  14434. cat >confcache <<\_ACEOF
  14435. # This file is a shell script that caches the results of configure
  14436. # tests run on this system so they can be shared between configure
  14437. # scripts and configure runs, see configure's option --config-cache.
  14438. # It is not useful on other systems. If it contains results you don't
  14439. # want to keep, you may remove or edit it.
  14440. #
  14441. # config.status only pays attention to the cache file if you give it
  14442. # the --recheck option to rerun configure.
  14443. #
  14444. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14445. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14446. # following values.
  14447. _ACEOF
  14448. # The following way of writing the cache mishandles newlines in values,
  14449. # but we know of no workaround that is simple, portable, and efficient.
  14450. # So, we kill variables containing newlines.
  14451. # Ultrix sh set writes to stderr and can't be redirected directly,
  14452. # and sets the high bit in the cache file unless we assign to the vars.
  14453. (
  14454. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14455. eval ac_val=\$$ac_var
  14456. case $ac_val in #(
  14457. *${as_nl}*)
  14458. case $ac_var in #(
  14459. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14460. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14461. esac
  14462. case $ac_var in #(
  14463. _ | IFS | as_nl) ;; #(
  14464. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14465. *) { eval $ac_var=; unset $ac_var;} ;;
  14466. esac ;;
  14467. esac
  14468. done
  14469. (set) 2>&1 |
  14470. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14471. *${as_nl}ac_space=\ *)
  14472. # `set' does not quote correctly, so add quotes: double-quote
  14473. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14474. sed -n \
  14475. "s/'/'\\\\''/g;
  14476. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14477. ;; #(
  14478. *)
  14479. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14480. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14481. ;;
  14482. esac |
  14483. sort
  14484. ) |
  14485. sed '
  14486. /^ac_cv_env_/b end
  14487. t clear
  14488. :clear
  14489. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14490. t end
  14491. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14492. :end' >>confcache
  14493. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14494. if test -w "$cache_file"; then
  14495. if test "x$cache_file" != "x/dev/null"; then
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14497. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14498. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14499. cat confcache >"$cache_file"
  14500. else
  14501. case $cache_file in #(
  14502. */* | ?:*)
  14503. mv -f confcache "$cache_file"$$ &&
  14504. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14505. *)
  14506. mv -f confcache "$cache_file" ;;
  14507. esac
  14508. fi
  14509. fi
  14510. else
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14512. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14513. fi
  14514. fi
  14515. rm -f confcache
  14516. if test ${multilib} = yes; then
  14517. multilib_arg="--enable-multilib"
  14518. else
  14519. multilib_arg=
  14520. fi
  14521. # Set up the set of libraries that we need to link against for libgomp.
  14522. # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
  14523. # which will force linkage against -lpthread (or equivalent for the system).
  14524. # That's not 100% ideal, but about the best we can do easily.
  14525. if test $enable_shared = yes; then
  14526. link_gomp="-lgomp %{static: $LIBS}"
  14527. else
  14528. link_gomp="-lgomp $LIBS"
  14529. fi
  14530. if test "$ac_cv_fc_compiler_gnu" = yes; then
  14531. USE_FORTRAN_TRUE=
  14532. USE_FORTRAN_FALSE='#'
  14533. else
  14534. USE_FORTRAN_TRUE='#'
  14535. USE_FORTRAN_FALSE=
  14536. fi
  14537. # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
  14538. # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
  14539. # the underscore here and update the PREREQ. If it doesn't, then we'll
  14540. # need to copy this macro to our acinclude.m4.
  14541. save_CFLAGS="$CFLAGS"
  14542. for i in $config_path; do
  14543. if test -f $srcdir/config/$i/omp-lock.h; then
  14544. CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
  14545. break
  14546. fi
  14547. done
  14548. if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
  14549. fi
  14550. if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
  14551. else
  14552. OMP_INT128_SIZE=0
  14553. fi
  14554. if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
  14555. else
  14556. OMP_DEPEND_KIND=0
  14557. fi
  14558. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
  14559. else
  14560. as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
  14561. fi
  14562. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
  14563. fi
  14564. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
  14565. fi
  14566. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
  14567. fi
  14568. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
  14569. else
  14570. as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
  14571. fi
  14572. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
  14573. fi
  14574. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
  14575. fi
  14576. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
  14577. fi
  14578. # If the lock fits in an integer, then arrange for Fortran to use that
  14579. # integer. If it doesn't, then arrange for Fortran to use a pointer.
  14580. # Except that we don't have a way at present to multi-lib the installed
  14581. # Fortran modules, so we assume 8 bytes for pointers, regardless of the
  14582. # actual target.
  14583. OMP_LOCK_KIND=$OMP_LOCK_SIZE
  14584. OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
  14585. if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
  14586. OMP_LOCK_KIND=8
  14587. fi
  14588. if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
  14589. OMP_NEST_LOCK_KIND=8
  14590. fi
  14591. OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
  14592. OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
  14593. if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
  14594. OMP_LOCK_25_KIND=8
  14595. fi
  14596. if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
  14597. OMP_NEST_LOCK_25_KIND=8
  14598. fi
  14599. if test "$ac_cv_fc_compiler_gnu" = yes; then
  14600. if test $OMP_DEPEND_KIND -eq 16; then
  14601. if test $OMP_INT128_SIZE -ne 16; then
  14602. as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
  14603. fi
  14604. else
  14605. if test $OMP_DEPEND_KIND -ne 8; then
  14606. as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
  14607. fi
  14608. fi
  14609. fi
  14610. CFLAGS="$save_CFLAGS"
  14611. # Determine what GCC version number to use in filesystem paths.
  14612. get_gcc_base_ver="cat"
  14613. # Check whether --with-gcc-major-version-only was given.
  14614. if test "${with_gcc_major_version_only+set}" = set; then :
  14615. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  14616. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  14617. fi
  14618. fi
  14619. ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
  14620. ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
  14621. ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
  14622. ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
  14623. cat >confcache <<\_ACEOF
  14624. # This file is a shell script that caches the results of configure
  14625. # tests run on this system so they can be shared between configure
  14626. # scripts and configure runs, see configure's option --config-cache.
  14627. # It is not useful on other systems. If it contains results you don't
  14628. # want to keep, you may remove or edit it.
  14629. #
  14630. # config.status only pays attention to the cache file if you give it
  14631. # the --recheck option to rerun configure.
  14632. #
  14633. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14634. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14635. # following values.
  14636. _ACEOF
  14637. # The following way of writing the cache mishandles newlines in values,
  14638. # but we know of no workaround that is simple, portable, and efficient.
  14639. # So, we kill variables containing newlines.
  14640. # Ultrix sh set writes to stderr and can't be redirected directly,
  14641. # and sets the high bit in the cache file unless we assign to the vars.
  14642. (
  14643. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14644. eval ac_val=\$$ac_var
  14645. case $ac_val in #(
  14646. *${as_nl}*)
  14647. case $ac_var in #(
  14648. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14649. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14650. esac
  14651. case $ac_var in #(
  14652. _ | IFS | as_nl) ;; #(
  14653. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14654. *) { eval $ac_var=; unset $ac_var;} ;;
  14655. esac ;;
  14656. esac
  14657. done
  14658. (set) 2>&1 |
  14659. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14660. *${as_nl}ac_space=\ *)
  14661. # `set' does not quote correctly, so add quotes: double-quote
  14662. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14663. sed -n \
  14664. "s/'/'\\\\''/g;
  14665. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14666. ;; #(
  14667. *)
  14668. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14669. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14670. ;;
  14671. esac |
  14672. sort
  14673. ) |
  14674. sed '
  14675. /^ac_cv_env_/b end
  14676. t clear
  14677. :clear
  14678. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14679. t end
  14680. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14681. :end' >>confcache
  14682. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14683. if test -w "$cache_file"; then
  14684. if test "x$cache_file" != "x/dev/null"; then
  14685. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14686. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14687. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14688. cat confcache >"$cache_file"
  14689. else
  14690. case $cache_file in #(
  14691. */* | ?:*)
  14692. mv -f confcache "$cache_file"$$ &&
  14693. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14694. *)
  14695. mv -f confcache "$cache_file" ;;
  14696. esac
  14697. fi
  14698. fi
  14699. else
  14700. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14701. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14702. fi
  14703. fi
  14704. rm -f confcache
  14705. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14706. # Let make expand exec_prefix.
  14707. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14708. DEFS=-DHAVE_CONFIG_H
  14709. ac_libobjs=
  14710. ac_ltlibobjs=
  14711. U=
  14712. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14713. # 1. Remove the extension, and $U if already installed.
  14714. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14715. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14716. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14717. # will be set to the directory where LIBOBJS objects are built.
  14718. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14719. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14720. done
  14721. LIBOBJS=$ac_libobjs
  14722. LTLIBOBJS=$ac_ltlibobjs
  14723. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  14724. as_fn_error $? "conditional \"GENINSRC\" was never defined.
  14725. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14726. fi
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14728. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14729. if test -n "$am_sleep_pid"; then
  14730. # Hide warnings about reused PIDs.
  14731. wait $am_sleep_pid 2>/dev/null
  14732. fi
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14734. $as_echo "done" >&6; }
  14735. if test -n "$EXEEXT"; then
  14736. am__EXEEXT_TRUE=
  14737. am__EXEEXT_FALSE='#'
  14738. else
  14739. am__EXEEXT_TRUE='#'
  14740. am__EXEEXT_FALSE=
  14741. fi
  14742. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14743. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14744. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14745. fi
  14746. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14747. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14748. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14749. fi
  14750. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  14751. as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
  14752. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14753. fi
  14754. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14755. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14756. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14757. fi
  14758. if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
  14759. as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
  14760. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14761. fi
  14762. if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
  14763. as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
  14764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14765. fi
  14766. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
  14767. as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
  14768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14769. fi
  14770. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  14771. as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  14772. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14773. fi
  14774. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  14775. as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  14776. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14777. fi
  14778. if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
  14779. as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
  14780. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14781. fi
  14782. : "${CONFIG_STATUS=./config.status}"
  14783. ac_write_fail=0
  14784. ac_clean_files_save=$ac_clean_files
  14785. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14786. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14787. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14788. as_write_fail=0
  14789. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14790. #! $SHELL
  14791. # Generated by $as_me.
  14792. # Run this file to recreate the current configuration.
  14793. # Compiler output produced by configure, useful for debugging
  14794. # configure, is in config.log if it exists.
  14795. debug=false
  14796. ac_cs_recheck=false
  14797. ac_cs_silent=false
  14798. SHELL=\${CONFIG_SHELL-$SHELL}
  14799. export SHELL
  14800. _ASEOF
  14801. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14802. ## -------------------- ##
  14803. ## M4sh Initialization. ##
  14804. ## -------------------- ##
  14805. # Be more Bourne compatible
  14806. DUALCASE=1; export DUALCASE # for MKS sh
  14807. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14808. emulate sh
  14809. NULLCMD=:
  14810. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14811. # is contrary to our usage. Disable this feature.
  14812. alias -g '${1+"$@"}'='"$@"'
  14813. setopt NO_GLOB_SUBST
  14814. else
  14815. case `(set -o) 2>/dev/null` in #(
  14816. *posix*) :
  14817. set -o posix ;; #(
  14818. *) :
  14819. ;;
  14820. esac
  14821. fi
  14822. as_nl='
  14823. '
  14824. export as_nl
  14825. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14826. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14827. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14828. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14829. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14830. # but without wasting forks for bash or zsh.
  14831. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14832. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14833. as_echo='print -r --'
  14834. as_echo_n='print -rn --'
  14835. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14836. as_echo='printf %s\n'
  14837. as_echo_n='printf %s'
  14838. else
  14839. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14840. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14841. as_echo_n='/usr/ucb/echo -n'
  14842. else
  14843. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14844. as_echo_n_body='eval
  14845. arg=$1;
  14846. case $arg in #(
  14847. *"$as_nl"*)
  14848. expr "X$arg" : "X\\(.*\\)$as_nl";
  14849. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14850. esac;
  14851. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14852. '
  14853. export as_echo_n_body
  14854. as_echo_n='sh -c $as_echo_n_body as_echo'
  14855. fi
  14856. export as_echo_body
  14857. as_echo='sh -c $as_echo_body as_echo'
  14858. fi
  14859. # The user is always right.
  14860. if test "${PATH_SEPARATOR+set}" != set; then
  14861. PATH_SEPARATOR=:
  14862. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14863. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14864. PATH_SEPARATOR=';'
  14865. }
  14866. fi
  14867. # IFS
  14868. # We need space, tab and new line, in precisely that order. Quoting is
  14869. # there to prevent editors from complaining about space-tab.
  14870. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14871. # splitting by setting IFS to empty value.)
  14872. IFS=" "" $as_nl"
  14873. # Find who we are. Look in the path if we contain no directory separator.
  14874. as_myself=
  14875. case $0 in #((
  14876. *[\\/]* ) as_myself=$0 ;;
  14877. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14878. for as_dir in $PATH
  14879. do
  14880. IFS=$as_save_IFS
  14881. test -z "$as_dir" && as_dir=.
  14882. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14883. done
  14884. IFS=$as_save_IFS
  14885. ;;
  14886. esac
  14887. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14888. # in which case we are not to be found in the path.
  14889. if test "x$as_myself" = x; then
  14890. as_myself=$0
  14891. fi
  14892. if test ! -f "$as_myself"; then
  14893. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14894. exit 1
  14895. fi
  14896. # Unset variables that we do not need and which cause bugs (e.g. in
  14897. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14898. # suppresses any "Segmentation fault" message there. '((' could
  14899. # trigger a bug in pdksh 5.2.14.
  14900. for as_var in BASH_ENV ENV MAIL MAILPATH
  14901. do eval test x\${$as_var+set} = xset \
  14902. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14903. done
  14904. PS1='$ '
  14905. PS2='> '
  14906. PS4='+ '
  14907. # NLS nuisances.
  14908. LC_ALL=C
  14909. export LC_ALL
  14910. LANGUAGE=C
  14911. export LANGUAGE
  14912. # CDPATH.
  14913. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14914. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14915. # ----------------------------------------
  14916. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14917. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14918. # script with STATUS, using 1 if that was 0.
  14919. as_fn_error ()
  14920. {
  14921. as_status=$1; test $as_status -eq 0 && as_status=1
  14922. if test "$4"; then
  14923. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14924. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14925. fi
  14926. $as_echo "$as_me: error: $2" >&2
  14927. as_fn_exit $as_status
  14928. } # as_fn_error
  14929. # as_fn_set_status STATUS
  14930. # -----------------------
  14931. # Set $? to STATUS, without forking.
  14932. as_fn_set_status ()
  14933. {
  14934. return $1
  14935. } # as_fn_set_status
  14936. # as_fn_exit STATUS
  14937. # -----------------
  14938. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14939. as_fn_exit ()
  14940. {
  14941. set +e
  14942. as_fn_set_status $1
  14943. exit $1
  14944. } # as_fn_exit
  14945. # as_fn_unset VAR
  14946. # ---------------
  14947. # Portably unset VAR.
  14948. as_fn_unset ()
  14949. {
  14950. { eval $1=; unset $1;}
  14951. }
  14952. as_unset=as_fn_unset
  14953. # as_fn_append VAR VALUE
  14954. # ----------------------
  14955. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14956. # advantage of any shell optimizations that allow amortized linear growth over
  14957. # repeated appends, instead of the typical quadratic growth present in naive
  14958. # implementations.
  14959. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14960. eval 'as_fn_append ()
  14961. {
  14962. eval $1+=\$2
  14963. }'
  14964. else
  14965. as_fn_append ()
  14966. {
  14967. eval $1=\$$1\$2
  14968. }
  14969. fi # as_fn_append
  14970. # as_fn_arith ARG...
  14971. # ------------------
  14972. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14973. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14974. # must be portable across $(()) and expr.
  14975. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14976. eval 'as_fn_arith ()
  14977. {
  14978. as_val=$(( $* ))
  14979. }'
  14980. else
  14981. as_fn_arith ()
  14982. {
  14983. as_val=`expr "$@" || test $? -eq 1`
  14984. }
  14985. fi # as_fn_arith
  14986. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14987. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14988. as_expr=expr
  14989. else
  14990. as_expr=false
  14991. fi
  14992. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14993. as_basename=basename
  14994. else
  14995. as_basename=false
  14996. fi
  14997. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14998. as_dirname=dirname
  14999. else
  15000. as_dirname=false
  15001. fi
  15002. as_me=`$as_basename -- "$0" ||
  15003. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15004. X"$0" : 'X\(//\)$' \| \
  15005. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15006. $as_echo X/"$0" |
  15007. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15008. s//\1/
  15009. q
  15010. }
  15011. /^X\/\(\/\/\)$/{
  15012. s//\1/
  15013. q
  15014. }
  15015. /^X\/\(\/\).*/{
  15016. s//\1/
  15017. q
  15018. }
  15019. s/.*/./; q'`
  15020. # Avoid depending upon Character Ranges.
  15021. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15022. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15023. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15024. as_cr_digits='0123456789'
  15025. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15026. ECHO_C= ECHO_N= ECHO_T=
  15027. case `echo -n x` in #(((((
  15028. -n*)
  15029. case `echo 'xy\c'` in
  15030. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15031. xy) ECHO_C='\c';;
  15032. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15033. ECHO_T=' ';;
  15034. esac;;
  15035. *)
  15036. ECHO_N='-n';;
  15037. esac
  15038. rm -f conf$$ conf$$.exe conf$$.file
  15039. if test -d conf$$.dir; then
  15040. rm -f conf$$.dir/conf$$.file
  15041. else
  15042. rm -f conf$$.dir
  15043. mkdir conf$$.dir 2>/dev/null
  15044. fi
  15045. if (echo >conf$$.file) 2>/dev/null; then
  15046. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15047. as_ln_s='ln -s'
  15048. # ... but there are two gotchas:
  15049. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15050. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15051. # In both cases, we have to default to `cp -pR'.
  15052. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15053. as_ln_s='cp -pR'
  15054. elif ln conf$$.file conf$$ 2>/dev/null; then
  15055. as_ln_s=ln
  15056. else
  15057. as_ln_s='cp -pR'
  15058. fi
  15059. else
  15060. as_ln_s='cp -pR'
  15061. fi
  15062. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15063. rmdir conf$$.dir 2>/dev/null
  15064. # as_fn_mkdir_p
  15065. # -------------
  15066. # Create "$as_dir" as a directory, including parents if necessary.
  15067. as_fn_mkdir_p ()
  15068. {
  15069. case $as_dir in #(
  15070. -*) as_dir=./$as_dir;;
  15071. esac
  15072. test -d "$as_dir" || eval $as_mkdir_p || {
  15073. as_dirs=
  15074. while :; do
  15075. case $as_dir in #(
  15076. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15077. *) as_qdir=$as_dir;;
  15078. esac
  15079. as_dirs="'$as_qdir' $as_dirs"
  15080. as_dir=`$as_dirname -- "$as_dir" ||
  15081. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15082. X"$as_dir" : 'X\(//\)[^/]' \| \
  15083. X"$as_dir" : 'X\(//\)$' \| \
  15084. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15085. $as_echo X"$as_dir" |
  15086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15087. s//\1/
  15088. q
  15089. }
  15090. /^X\(\/\/\)[^/].*/{
  15091. s//\1/
  15092. q
  15093. }
  15094. /^X\(\/\/\)$/{
  15095. s//\1/
  15096. q
  15097. }
  15098. /^X\(\/\).*/{
  15099. s//\1/
  15100. q
  15101. }
  15102. s/.*/./; q'`
  15103. test -d "$as_dir" && break
  15104. done
  15105. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15106. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15107. } # as_fn_mkdir_p
  15108. if mkdir -p . 2>/dev/null; then
  15109. as_mkdir_p='mkdir -p "$as_dir"'
  15110. else
  15111. test -d ./-p && rmdir ./-p
  15112. as_mkdir_p=false
  15113. fi
  15114. # as_fn_executable_p FILE
  15115. # -----------------------
  15116. # Test if FILE is an executable regular file.
  15117. as_fn_executable_p ()
  15118. {
  15119. test -f "$1" && test -x "$1"
  15120. } # as_fn_executable_p
  15121. as_test_x='test -x'
  15122. as_executable_p=as_fn_executable_p
  15123. # Sed expression to map a string onto a valid CPP name.
  15124. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15125. # Sed expression to map a string onto a valid variable name.
  15126. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15127. exec 6>&1
  15128. ## ----------------------------------- ##
  15129. ## Main body of $CONFIG_STATUS script. ##
  15130. ## ----------------------------------- ##
  15131. _ASEOF
  15132. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15134. # Save the log message, to keep $0 and so on meaningful, and to
  15135. # report actual input values of CONFIG_FILES etc. instead of their
  15136. # values after options handling.
  15137. ac_log="
  15138. This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
  15139. generated by GNU Autoconf 2.69. Invocation command line was
  15140. CONFIG_FILES = $CONFIG_FILES
  15141. CONFIG_HEADERS = $CONFIG_HEADERS
  15142. CONFIG_LINKS = $CONFIG_LINKS
  15143. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15144. $ $0 $@
  15145. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15146. "
  15147. _ACEOF
  15148. case $ac_config_files in *"
  15149. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15150. esac
  15151. case $ac_config_headers in *"
  15152. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15153. esac
  15154. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15155. # Files that config.status was made for.
  15156. config_files="$ac_config_files"
  15157. config_headers="$ac_config_headers"
  15158. config_commands="$ac_config_commands"
  15159. _ACEOF
  15160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15161. ac_cs_usage="\
  15162. \`$as_me' instantiates files and other configuration actions
  15163. from templates according to the current configuration. Unless the files
  15164. and actions are specified as TAGs, all are instantiated by default.
  15165. Usage: $0 [OPTION]... [TAG]...
  15166. -h, --help print this help, then exit
  15167. -V, --version print version number and configuration settings, then exit
  15168. --config print configuration, then exit
  15169. -q, --quiet, --silent
  15170. do not print progress messages
  15171. -d, --debug don't remove temporary files
  15172. --recheck update $as_me by reconfiguring in the same conditions
  15173. --file=FILE[:TEMPLATE]
  15174. instantiate the configuration file FILE
  15175. --header=FILE[:TEMPLATE]
  15176. instantiate the configuration header FILE
  15177. Configuration files:
  15178. $config_files
  15179. Configuration headers:
  15180. $config_headers
  15181. Configuration commands:
  15182. $config_commands
  15183. Report bugs to the package provider.
  15184. GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
  15185. General help using GNU software: <http://www.gnu.org/gethelp/>."
  15186. _ACEOF
  15187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15188. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15189. ac_cs_version="\\
  15190. GNU Offloading and Multi Processing Runtime Library config.status 1.0
  15191. configured by $0, generated by GNU Autoconf 2.69,
  15192. with options \\"\$ac_cs_config\\"
  15193. Copyright (C) 2012 Free Software Foundation, Inc.
  15194. This config.status script is free software; the Free Software Foundation
  15195. gives unlimited permission to copy, distribute and modify it."
  15196. ac_pwd='$ac_pwd'
  15197. srcdir='$srcdir'
  15198. INSTALL='$INSTALL'
  15199. MKDIR_P='$MKDIR_P'
  15200. AWK='$AWK'
  15201. test -n "\$AWK" || AWK=awk
  15202. _ACEOF
  15203. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15204. # The default lists apply if the user does not specify any file.
  15205. ac_need_defaults=:
  15206. while test $# != 0
  15207. do
  15208. case $1 in
  15209. --*=?*)
  15210. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15211. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15212. ac_shift=:
  15213. ;;
  15214. --*=)
  15215. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15216. ac_optarg=
  15217. ac_shift=:
  15218. ;;
  15219. *)
  15220. ac_option=$1
  15221. ac_optarg=$2
  15222. ac_shift=shift
  15223. ;;
  15224. esac
  15225. case $ac_option in
  15226. # Handling of the options.
  15227. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15228. ac_cs_recheck=: ;;
  15229. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15230. $as_echo "$ac_cs_version"; exit ;;
  15231. --config | --confi | --conf | --con | --co | --c )
  15232. $as_echo "$ac_cs_config"; exit ;;
  15233. --debug | --debu | --deb | --de | --d | -d )
  15234. debug=: ;;
  15235. --file | --fil | --fi | --f )
  15236. $ac_shift
  15237. case $ac_optarg in
  15238. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15239. '') as_fn_error $? "missing file argument" ;;
  15240. esac
  15241. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15242. ac_need_defaults=false;;
  15243. --header | --heade | --head | --hea )
  15244. $ac_shift
  15245. case $ac_optarg in
  15246. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15247. esac
  15248. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15249. ac_need_defaults=false;;
  15250. --he | --h)
  15251. # Conflict between --help and --header
  15252. as_fn_error $? "ambiguous option: \`$1'
  15253. Try \`$0 --help' for more information.";;
  15254. --help | --hel | -h )
  15255. $as_echo "$ac_cs_usage"; exit ;;
  15256. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15257. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15258. ac_cs_silent=: ;;
  15259. # This is an error.
  15260. -*) as_fn_error $? "unrecognized option: \`$1'
  15261. Try \`$0 --help' for more information." ;;
  15262. *) as_fn_append ac_config_targets " $1"
  15263. ac_need_defaults=false ;;
  15264. esac
  15265. shift
  15266. done
  15267. ac_configure_extra_args=
  15268. if $ac_cs_silent; then
  15269. exec 6>/dev/null
  15270. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15271. fi
  15272. _ACEOF
  15273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15274. if \$ac_cs_recheck; then
  15275. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15276. shift
  15277. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15278. CONFIG_SHELL='$SHELL'
  15279. export CONFIG_SHELL
  15280. exec "\$@"
  15281. fi
  15282. _ACEOF
  15283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15284. exec 5>>config.log
  15285. {
  15286. echo
  15287. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15288. ## Running $as_me. ##
  15289. _ASBOX
  15290. $as_echo "$ac_log"
  15291. } >&5
  15292. _ACEOF
  15293. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15294. #
  15295. # INIT-COMMANDS
  15296. #
  15297. srcdir="$srcdir"
  15298. host="$host"
  15299. target="$target"
  15300. with_multisubdir="$with_multisubdir"
  15301. with_multisrctop="$with_multisrctop"
  15302. with_target_subdir="$with_target_subdir"
  15303. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  15304. multi_basedir="$multi_basedir"
  15305. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15306. CC="$CC"
  15307. CXX="$CXX"
  15308. GFORTRAN="$GFORTRAN"
  15309. GDC="$GDC"
  15310. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15311. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15312. # if CDPATH is set.
  15313. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15314. sed_quote_subst='$sed_quote_subst'
  15315. double_quote_subst='$double_quote_subst'
  15316. delay_variable_subst='$delay_variable_subst'
  15317. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15318. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15319. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15320. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15321. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15322. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15323. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15324. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15325. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15326. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15327. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15328. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15329. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15330. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15331. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15332. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15333. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15334. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15335. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15336. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15337. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15338. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15339. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15340. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15341. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15342. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15343. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15344. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15345. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15346. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15347. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15348. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15349. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15350. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15351. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15352. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15353. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15354. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15355. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15356. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15357. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15358. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15359. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15360. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15361. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15362. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15363. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15364. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15365. 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"`'
  15366. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15367. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15368. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15369. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15370. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15371. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15372. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15373. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15374. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15375. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15376. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15377. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15378. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15379. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15380. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15381. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15382. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15383. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15384. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15385. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15386. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15387. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15388. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15389. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15390. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15391. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15392. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15393. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15394. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15395. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15396. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15397. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15398. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15399. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15400. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15401. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15402. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15403. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15404. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15405. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15406. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15407. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15408. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15409. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15410. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15411. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15412. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15413. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15414. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15415. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15416. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15417. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15418. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15419. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15420. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15421. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15422. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15423. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15424. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15425. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15426. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15427. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15428. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15429. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15430. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15431. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15432. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15433. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15434. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15435. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15436. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15437. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15438. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15439. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15440. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15441. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15442. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15443. LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
  15444. reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
  15445. reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15446. old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15447. compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
  15448. GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
  15449. lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
  15450. lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
  15451. lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
  15452. lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
  15453. lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
  15454. archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
  15455. enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
  15456. export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  15457. whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  15458. compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
  15459. old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15460. old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15461. archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15462. archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15463. module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15464. module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15465. with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
  15466. allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
  15467. no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
  15468. hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  15469. hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
  15470. hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
  15471. hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
  15472. hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
  15473. hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
  15474. hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
  15475. hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
  15476. inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
  15477. link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
  15478. fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
  15479. always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
  15480. export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15481. exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
  15482. include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
  15483. prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15484. file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
  15485. hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
  15486. compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
  15487. predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
  15488. postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
  15489. predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
  15490. postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
  15491. compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
  15492. LTCC='$LTCC'
  15493. LTCFLAGS='$LTCFLAGS'
  15494. compiler='$compiler_DEFAULT'
  15495. # A function that is used when there is no print builtin or printf.
  15496. func_fallback_echo ()
  15497. {
  15498. eval 'cat <<_LTECHO_EOF
  15499. \$1
  15500. _LTECHO_EOF'
  15501. }
  15502. # Quote evaled strings.
  15503. for var in SHELL \
  15504. ECHO \
  15505. SED \
  15506. GREP \
  15507. EGREP \
  15508. FGREP \
  15509. LD \
  15510. NM \
  15511. LN_S \
  15512. lt_SP2NL \
  15513. lt_NL2SP \
  15514. reload_flag \
  15515. OBJDUMP \
  15516. deplibs_check_method \
  15517. file_magic_cmd \
  15518. AR \
  15519. AR_FLAGS \
  15520. STRIP \
  15521. RANLIB \
  15522. CC \
  15523. CFLAGS \
  15524. compiler \
  15525. lt_cv_sys_global_symbol_pipe \
  15526. lt_cv_sys_global_symbol_to_cdecl \
  15527. lt_cv_sys_global_symbol_to_c_name_address \
  15528. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15529. lt_prog_compiler_no_builtin_flag \
  15530. lt_prog_compiler_wl \
  15531. lt_prog_compiler_pic \
  15532. lt_prog_compiler_static \
  15533. lt_cv_prog_compiler_c_o \
  15534. need_locks \
  15535. DSYMUTIL \
  15536. NMEDIT \
  15537. LIPO \
  15538. OTOOL \
  15539. OTOOL64 \
  15540. shrext_cmds \
  15541. export_dynamic_flag_spec \
  15542. whole_archive_flag_spec \
  15543. compiler_needs_object \
  15544. with_gnu_ld \
  15545. allow_undefined_flag \
  15546. no_undefined_flag \
  15547. hardcode_libdir_flag_spec \
  15548. hardcode_libdir_flag_spec_ld \
  15549. hardcode_libdir_separator \
  15550. fix_srcfile_path \
  15551. exclude_expsyms \
  15552. include_expsyms \
  15553. file_list_spec \
  15554. variables_saved_for_relink \
  15555. libname_spec \
  15556. library_names_spec \
  15557. soname_spec \
  15558. install_override_mode \
  15559. finish_eval \
  15560. old_striplib \
  15561. striplib \
  15562. compiler_lib_search_dirs \
  15563. predep_objects \
  15564. postdep_objects \
  15565. predeps \
  15566. postdeps \
  15567. compiler_lib_search_path \
  15568. LD_FC \
  15569. reload_flag_FC \
  15570. compiler_FC \
  15571. lt_prog_compiler_no_builtin_flag_FC \
  15572. lt_prog_compiler_wl_FC \
  15573. lt_prog_compiler_pic_FC \
  15574. lt_prog_compiler_static_FC \
  15575. lt_cv_prog_compiler_c_o_FC \
  15576. export_dynamic_flag_spec_FC \
  15577. whole_archive_flag_spec_FC \
  15578. compiler_needs_object_FC \
  15579. with_gnu_ld_FC \
  15580. allow_undefined_flag_FC \
  15581. no_undefined_flag_FC \
  15582. hardcode_libdir_flag_spec_FC \
  15583. hardcode_libdir_flag_spec_ld_FC \
  15584. hardcode_libdir_separator_FC \
  15585. fix_srcfile_path_FC \
  15586. exclude_expsyms_FC \
  15587. include_expsyms_FC \
  15588. file_list_spec_FC \
  15589. compiler_lib_search_dirs_FC \
  15590. predep_objects_FC \
  15591. postdep_objects_FC \
  15592. predeps_FC \
  15593. postdeps_FC \
  15594. compiler_lib_search_path_FC; do
  15595. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15596. *[\\\\\\\`\\"\\\$]*)
  15597. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15598. ;;
  15599. *)
  15600. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15601. ;;
  15602. esac
  15603. done
  15604. # Double-quote double-evaled strings.
  15605. for var in reload_cmds \
  15606. old_postinstall_cmds \
  15607. old_postuninstall_cmds \
  15608. old_archive_cmds \
  15609. extract_expsyms_cmds \
  15610. old_archive_from_new_cmds \
  15611. old_archive_from_expsyms_cmds \
  15612. archive_cmds \
  15613. archive_expsym_cmds \
  15614. module_cmds \
  15615. module_expsym_cmds \
  15616. export_symbols_cmds \
  15617. prelink_cmds \
  15618. postinstall_cmds \
  15619. postuninstall_cmds \
  15620. finish_cmds \
  15621. sys_lib_search_path_spec \
  15622. sys_lib_dlsearch_path_spec \
  15623. reload_cmds_FC \
  15624. old_archive_cmds_FC \
  15625. old_archive_from_new_cmds_FC \
  15626. old_archive_from_expsyms_cmds_FC \
  15627. archive_cmds_FC \
  15628. archive_expsym_cmds_FC \
  15629. module_cmds_FC \
  15630. module_expsym_cmds_FC \
  15631. export_symbols_cmds_FC \
  15632. prelink_cmds_FC; do
  15633. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15634. *[\\\\\\\`\\"\\\$]*)
  15635. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15636. ;;
  15637. *)
  15638. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15639. ;;
  15640. esac
  15641. done
  15642. ac_aux_dir='$ac_aux_dir'
  15643. xsi_shell='$xsi_shell'
  15644. lt_shell_append='$lt_shell_append'
  15645. # See if we are running on zsh, and set the options which allow our
  15646. # commands through without removal of \ escapes INIT.
  15647. if test -n "\${ZSH_VERSION+set}" ; then
  15648. setopt NO_GLOB_SUBST
  15649. fi
  15650. PACKAGE='$PACKAGE'
  15651. VERSION='$VERSION'
  15652. TIMESTAMP='$TIMESTAMP'
  15653. RM='$RM'
  15654. ofile='$ofile'
  15655. _ACEOF
  15656. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15657. # Handling of arguments.
  15658. for ac_config_target in $ac_config_targets
  15659. do
  15660. case $ac_config_target in
  15661. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15662. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15663. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15664. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15665. "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
  15666. "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
  15667. "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
  15668. "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
  15669. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15670. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  15671. "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
  15672. "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
  15673. "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
  15674. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15675. esac
  15676. done
  15677. # If the user did not use the arguments to specify the items to instantiate,
  15678. # then the envvar interface is used. Set only those that are not.
  15679. # We use the long form for the default assignment because of an extremely
  15680. # bizarre bug on SunOS 4.1.3.
  15681. if $ac_need_defaults; then
  15682. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15683. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15684. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15685. fi
  15686. # Have a temporary directory for convenience. Make it in the build tree
  15687. # simply because there is no reason against having it here, and in addition,
  15688. # creating and moving files from /tmp can sometimes cause problems.
  15689. # Hook for its removal unless debugging.
  15690. # Note that there is a small window in which the directory will not be cleaned:
  15691. # after its creation but before its name has been assigned to `$tmp'.
  15692. $debug ||
  15693. {
  15694. tmp= ac_tmp=
  15695. trap 'exit_status=$?
  15696. : "${ac_tmp:=$tmp}"
  15697. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15698. ' 0
  15699. trap 'as_fn_exit 1' 1 2 13 15
  15700. }
  15701. # Create a (secure) tmp directory for tmp files.
  15702. {
  15703. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15704. test -d "$tmp"
  15705. } ||
  15706. {
  15707. tmp=./conf$$-$RANDOM
  15708. (umask 077 && mkdir "$tmp")
  15709. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15710. ac_tmp=$tmp
  15711. # Set up the scripts for CONFIG_FILES section.
  15712. # No need to generate them if there are no CONFIG_FILES.
  15713. # This happens for instance with `./config.status config.h'.
  15714. if test -n "$CONFIG_FILES"; then
  15715. ac_cr=`echo X | tr X '\015'`
  15716. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15717. # But we know of no other shell where ac_cr would be empty at this
  15718. # point, so we can use a bashism as a fallback.
  15719. if test "x$ac_cr" = x; then
  15720. eval ac_cr=\$\'\\r\'
  15721. fi
  15722. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15723. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15724. ac_cs_awk_cr='\\r'
  15725. else
  15726. ac_cs_awk_cr=$ac_cr
  15727. fi
  15728. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15729. _ACEOF
  15730. {
  15731. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15732. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15733. echo "_ACEOF"
  15734. } >conf$$subs.sh ||
  15735. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15736. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15737. ac_delim='%!_!# '
  15738. for ac_last_try in false false false false false :; do
  15739. . ./conf$$subs.sh ||
  15740. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15741. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15742. if test $ac_delim_n = $ac_delim_num; then
  15743. break
  15744. elif $ac_last_try; then
  15745. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15746. else
  15747. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15748. fi
  15749. done
  15750. rm -f conf$$subs.sh
  15751. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15752. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15753. _ACEOF
  15754. sed -n '
  15755. h
  15756. s/^/S["/; s/!.*/"]=/
  15757. p
  15758. g
  15759. s/^[^!]*!//
  15760. :repl
  15761. t repl
  15762. s/'"$ac_delim"'$//
  15763. t delim
  15764. :nl
  15765. h
  15766. s/\(.\{148\}\)..*/\1/
  15767. t more1
  15768. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15769. p
  15770. n
  15771. b repl
  15772. :more1
  15773. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15774. p
  15775. g
  15776. s/.\{148\}//
  15777. t nl
  15778. :delim
  15779. h
  15780. s/\(.\{148\}\)..*/\1/
  15781. t more2
  15782. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15783. p
  15784. b
  15785. :more2
  15786. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15787. p
  15788. g
  15789. s/.\{148\}//
  15790. t delim
  15791. ' <conf$$subs.awk | sed '
  15792. /^[^""]/{
  15793. N
  15794. s/\n//
  15795. }
  15796. ' >>$CONFIG_STATUS || ac_write_fail=1
  15797. rm -f conf$$subs.awk
  15798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15799. _ACAWK
  15800. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15801. for (key in S) S_is_set[key] = 1
  15802. FS = ""
  15803. }
  15804. {
  15805. line = $ 0
  15806. nfields = split(line, field, "@")
  15807. substed = 0
  15808. len = length(field[1])
  15809. for (i = 2; i < nfields; i++) {
  15810. key = field[i]
  15811. keylen = length(key)
  15812. if (S_is_set[key]) {
  15813. value = S[key]
  15814. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15815. len += length(value) + length(field[++i])
  15816. substed = 1
  15817. } else
  15818. len += 1 + keylen
  15819. }
  15820. print line
  15821. }
  15822. _ACAWK
  15823. _ACEOF
  15824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15825. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15826. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15827. else
  15828. cat
  15829. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15830. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15831. _ACEOF
  15832. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15833. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15834. # trailing colons and then remove the whole line if VPATH becomes empty
  15835. # (actually we leave an empty line to preserve line numbers).
  15836. if test "x$srcdir" = x.; then
  15837. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15838. h
  15839. s///
  15840. s/^/:/
  15841. s/[ ]*$/:/
  15842. s/:\$(srcdir):/:/g
  15843. s/:\${srcdir}:/:/g
  15844. s/:@srcdir@:/:/g
  15845. s/^:*//
  15846. s/:*$//
  15847. x
  15848. s/\(=[ ]*\).*/\1/
  15849. G
  15850. s/\n//
  15851. s/^[^=]*=[ ]*$//
  15852. }'
  15853. fi
  15854. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15855. fi # test -n "$CONFIG_FILES"
  15856. # Set up the scripts for CONFIG_HEADERS section.
  15857. # No need to generate them if there are no CONFIG_HEADERS.
  15858. # This happens for instance with `./config.status Makefile'.
  15859. if test -n "$CONFIG_HEADERS"; then
  15860. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15861. BEGIN {
  15862. _ACEOF
  15863. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15864. # here-document in config.status, that substitutes the proper values into
  15865. # config.h.in to produce config.h.
  15866. # Create a delimiter string that does not exist in confdefs.h, to ease
  15867. # handling of long lines.
  15868. ac_delim='%!_!# '
  15869. for ac_last_try in false false :; do
  15870. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15871. if test -z "$ac_tt"; then
  15872. break
  15873. elif $ac_last_try; then
  15874. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15875. else
  15876. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15877. fi
  15878. done
  15879. # For the awk script, D is an array of macro values keyed by name,
  15880. # likewise P contains macro parameters if any. Preserve backslash
  15881. # newline sequences.
  15882. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15883. sed -n '
  15884. s/.\{148\}/&'"$ac_delim"'/g
  15885. t rset
  15886. :rset
  15887. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15888. t def
  15889. d
  15890. :def
  15891. s/\\$//
  15892. t bsnl
  15893. s/["\\]/\\&/g
  15894. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15895. D["\1"]=" \3"/p
  15896. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15897. d
  15898. :bsnl
  15899. s/["\\]/\\&/g
  15900. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15901. D["\1"]=" \3\\\\\\n"\\/p
  15902. t cont
  15903. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15904. t cont
  15905. d
  15906. :cont
  15907. n
  15908. s/.\{148\}/&'"$ac_delim"'/g
  15909. t clear
  15910. :clear
  15911. s/\\$//
  15912. t bsnlc
  15913. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15914. d
  15915. :bsnlc
  15916. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15917. b cont
  15918. ' <confdefs.h | sed '
  15919. s/'"$ac_delim"'/"\\\
  15920. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15921. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15922. for (key in D) D_is_set[key] = 1
  15923. FS = ""
  15924. }
  15925. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15926. line = \$ 0
  15927. split(line, arg, " ")
  15928. if (arg[1] == "#") {
  15929. defundef = arg[2]
  15930. mac1 = arg[3]
  15931. } else {
  15932. defundef = substr(arg[1], 2)
  15933. mac1 = arg[2]
  15934. }
  15935. split(mac1, mac2, "(") #)
  15936. macro = mac2[1]
  15937. prefix = substr(line, 1, index(line, defundef) - 1)
  15938. if (D_is_set[macro]) {
  15939. # Preserve the white space surrounding the "#".
  15940. print prefix "define", macro P[macro] D[macro]
  15941. next
  15942. } else {
  15943. # Replace #undef with comments. This is necessary, for example,
  15944. # in the case of _POSIX_SOURCE, which is predefined and required
  15945. # on some systems where configure will not decide to define it.
  15946. if (defundef == "undef") {
  15947. print "/*", prefix defundef, macro, "*/"
  15948. next
  15949. }
  15950. }
  15951. }
  15952. { print }
  15953. _ACAWK
  15954. _ACEOF
  15955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15956. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15957. fi # test -n "$CONFIG_HEADERS"
  15958. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15959. shift
  15960. for ac_tag
  15961. do
  15962. case $ac_tag in
  15963. :[FHLC]) ac_mode=$ac_tag; continue;;
  15964. esac
  15965. case $ac_mode$ac_tag in
  15966. :[FHL]*:*);;
  15967. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15968. :[FH]-) ac_tag=-:-;;
  15969. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15970. esac
  15971. ac_save_IFS=$IFS
  15972. IFS=:
  15973. set x $ac_tag
  15974. IFS=$ac_save_IFS
  15975. shift
  15976. ac_file=$1
  15977. shift
  15978. case $ac_mode in
  15979. :L) ac_source=$1;;
  15980. :[FH])
  15981. ac_file_inputs=
  15982. for ac_f
  15983. do
  15984. case $ac_f in
  15985. -) ac_f="$ac_tmp/stdin";;
  15986. *) # Look for the file first in the build tree, then in the source tree
  15987. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15988. # because $ac_f cannot contain `:'.
  15989. test -f "$ac_f" ||
  15990. case $ac_f in
  15991. [\\/$]*) false;;
  15992. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15993. esac ||
  15994. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15995. esac
  15996. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15997. as_fn_append ac_file_inputs " '$ac_f'"
  15998. done
  15999. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16000. # use $as_me), people would be surprised to read:
  16001. # /* config.h. Generated by config.status. */
  16002. configure_input='Generated from '`
  16003. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16004. `' by configure.'
  16005. if test x"$ac_file" != x-; then
  16006. configure_input="$ac_file. $configure_input"
  16007. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16008. $as_echo "$as_me: creating $ac_file" >&6;}
  16009. fi
  16010. # Neutralize special characters interpreted by sed in replacement strings.
  16011. case $configure_input in #(
  16012. *\&* | *\|* | *\\* )
  16013. ac_sed_conf_input=`$as_echo "$configure_input" |
  16014. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16015. *) ac_sed_conf_input=$configure_input;;
  16016. esac
  16017. case $ac_tag in
  16018. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16019. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16020. esac
  16021. ;;
  16022. esac
  16023. ac_dir=`$as_dirname -- "$ac_file" ||
  16024. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16025. X"$ac_file" : 'X\(//\)[^/]' \| \
  16026. X"$ac_file" : 'X\(//\)$' \| \
  16027. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16028. $as_echo X"$ac_file" |
  16029. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16030. s//\1/
  16031. q
  16032. }
  16033. /^X\(\/\/\)[^/].*/{
  16034. s//\1/
  16035. q
  16036. }
  16037. /^X\(\/\/\)$/{
  16038. s//\1/
  16039. q
  16040. }
  16041. /^X\(\/\).*/{
  16042. s//\1/
  16043. q
  16044. }
  16045. s/.*/./; q'`
  16046. as_dir="$ac_dir"; as_fn_mkdir_p
  16047. ac_builddir=.
  16048. case "$ac_dir" in
  16049. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16050. *)
  16051. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16052. # A ".." for each directory in $ac_dir_suffix.
  16053. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16054. case $ac_top_builddir_sub in
  16055. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16056. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16057. esac ;;
  16058. esac
  16059. ac_abs_top_builddir=$ac_pwd
  16060. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16061. # for backward compatibility:
  16062. ac_top_builddir=$ac_top_build_prefix
  16063. case $srcdir in
  16064. .) # We are building in place.
  16065. ac_srcdir=.
  16066. ac_top_srcdir=$ac_top_builddir_sub
  16067. ac_abs_top_srcdir=$ac_pwd ;;
  16068. [\\/]* | ?:[\\/]* ) # Absolute name.
  16069. ac_srcdir=$srcdir$ac_dir_suffix;
  16070. ac_top_srcdir=$srcdir
  16071. ac_abs_top_srcdir=$srcdir ;;
  16072. *) # Relative name.
  16073. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16074. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16075. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16076. esac
  16077. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16078. case $ac_mode in
  16079. :F)
  16080. #
  16081. # CONFIG_FILE
  16082. #
  16083. case $INSTALL in
  16084. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16085. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16086. esac
  16087. ac_MKDIR_P=$MKDIR_P
  16088. case $MKDIR_P in
  16089. [\\/$]* | ?:[\\/]* ) ;;
  16090. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16091. esac
  16092. _ACEOF
  16093. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16094. # If the template does not know about datarootdir, expand it.
  16095. # FIXME: This hack should be removed a few years after 2.60.
  16096. ac_datarootdir_hack=; ac_datarootdir_seen=
  16097. ac_sed_dataroot='
  16098. /datarootdir/ {
  16099. p
  16100. q
  16101. }
  16102. /@datadir@/p
  16103. /@docdir@/p
  16104. /@infodir@/p
  16105. /@localedir@/p
  16106. /@mandir@/p'
  16107. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16108. *datarootdir*) ac_datarootdir_seen=yes;;
  16109. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16111. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16112. _ACEOF
  16113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16114. ac_datarootdir_hack='
  16115. s&@datadir@&$datadir&g
  16116. s&@docdir@&$docdir&g
  16117. s&@infodir@&$infodir&g
  16118. s&@localedir@&$localedir&g
  16119. s&@mandir@&$mandir&g
  16120. s&\\\${datarootdir}&$datarootdir&g' ;;
  16121. esac
  16122. _ACEOF
  16123. # Neutralize VPATH when `$srcdir' = `.'.
  16124. # Shell code in configure.ac might set extrasub.
  16125. # FIXME: do we really want to maintain this feature?
  16126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16127. ac_sed_extra="$ac_vpsub
  16128. $extrasub
  16129. _ACEOF
  16130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16131. :t
  16132. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16133. s|@configure_input@|$ac_sed_conf_input|;t t
  16134. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16135. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16136. s&@srcdir@&$ac_srcdir&;t t
  16137. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16138. s&@top_srcdir@&$ac_top_srcdir&;t t
  16139. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16140. s&@builddir@&$ac_builddir&;t t
  16141. s&@abs_builddir@&$ac_abs_builddir&;t t
  16142. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16143. s&@INSTALL@&$ac_INSTALL&;t t
  16144. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16145. $ac_datarootdir_hack
  16146. "
  16147. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16148. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16149. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16150. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16151. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16152. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16154. which seems to be undefined. Please make sure it is defined" >&5
  16155. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16156. which seems to be undefined. Please make sure it is defined" >&2;}
  16157. rm -f "$ac_tmp/stdin"
  16158. case $ac_file in
  16159. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16160. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16161. esac \
  16162. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16163. ;;
  16164. :H)
  16165. #
  16166. # CONFIG_HEADER
  16167. #
  16168. if test x"$ac_file" != x-; then
  16169. {
  16170. $as_echo "/* $configure_input */" \
  16171. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16172. } >"$ac_tmp/config.h" \
  16173. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16174. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16176. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16177. else
  16178. rm -f "$ac_file"
  16179. mv "$ac_tmp/config.h" "$ac_file" \
  16180. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16181. fi
  16182. else
  16183. $as_echo "/* $configure_input */" \
  16184. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16185. || as_fn_error $? "could not create -" "$LINENO" 5
  16186. fi
  16187. # Compute "$ac_file"'s index in $config_headers.
  16188. _am_arg="$ac_file"
  16189. _am_stamp_count=1
  16190. for _am_header in $config_headers :; do
  16191. case $_am_header in
  16192. $_am_arg | $_am_arg:* )
  16193. break ;;
  16194. * )
  16195. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16196. esac
  16197. done
  16198. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16199. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16200. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16201. X"$_am_arg" : 'X\(//\)$' \| \
  16202. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16203. $as_echo X"$_am_arg" |
  16204. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16205. s//\1/
  16206. q
  16207. }
  16208. /^X\(\/\/\)[^/].*/{
  16209. s//\1/
  16210. q
  16211. }
  16212. /^X\(\/\/\)$/{
  16213. s//\1/
  16214. q
  16215. }
  16216. /^X\(\/\).*/{
  16217. s//\1/
  16218. q
  16219. }
  16220. s/.*/./; q'`/stamp-h$_am_stamp_count
  16221. ;;
  16222. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16223. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16224. ;;
  16225. esac
  16226. case $ac_file$ac_mode in
  16227. "default-1":C)
  16228. # Only add multilib support code if we just rebuilt the top-level
  16229. # Makefile.
  16230. case " $CONFIG_FILES " in
  16231. *" Makefile "*)
  16232. ac_file=Makefile . ${multi_basedir}/config-ml.in
  16233. ;;
  16234. esac ;;
  16235. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16236. # Older Autoconf quotes --file arguments for eval, but not when files
  16237. # are listed without --file. Let's play safe and only enable the eval
  16238. # if we detect the quoting.
  16239. case $CONFIG_FILES in
  16240. *\'*) eval set x "$CONFIG_FILES" ;;
  16241. *) set x $CONFIG_FILES ;;
  16242. esac
  16243. shift
  16244. for mf
  16245. do
  16246. # Strip MF so we end up with the name of the file.
  16247. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16248. # Check whether this is an Automake generated Makefile or not.
  16249. # We used to match only the files named 'Makefile.in', but
  16250. # some people rename them; so instead we look at the file content.
  16251. # Grep'ing the first line is not enough: some people post-process
  16252. # each Makefile.in and add a new line on top of each file to say so.
  16253. # Grep'ing the whole file is not good either: AIX grep has a line
  16254. # limit of 2048, but all sed's we know have understand at least 4000.
  16255. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16256. dirpart=`$as_dirname -- "$mf" ||
  16257. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16258. X"$mf" : 'X\(//\)[^/]' \| \
  16259. X"$mf" : 'X\(//\)$' \| \
  16260. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16261. $as_echo X"$mf" |
  16262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16263. s//\1/
  16264. q
  16265. }
  16266. /^X\(\/\/\)[^/].*/{
  16267. s//\1/
  16268. q
  16269. }
  16270. /^X\(\/\/\)$/{
  16271. s//\1/
  16272. q
  16273. }
  16274. /^X\(\/\).*/{
  16275. s//\1/
  16276. q
  16277. }
  16278. s/.*/./; q'`
  16279. else
  16280. continue
  16281. fi
  16282. # Extract the definition of DEPDIR, am__include, and am__quote
  16283. # from the Makefile without running 'make'.
  16284. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16285. test -z "$DEPDIR" && continue
  16286. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16287. test -z "$am__include" && continue
  16288. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16289. # Find all dependency output files, they are included files with
  16290. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16291. # simplest approach to changing $(DEPDIR) to its actual value in the
  16292. # expansion.
  16293. for file in `sed -n "
  16294. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16295. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16296. # Make sure the directory exists.
  16297. test -f "$dirpart/$file" && continue
  16298. fdir=`$as_dirname -- "$file" ||
  16299. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16300. X"$file" : 'X\(//\)[^/]' \| \
  16301. X"$file" : 'X\(//\)$' \| \
  16302. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16303. $as_echo X"$file" |
  16304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16305. s//\1/
  16306. q
  16307. }
  16308. /^X\(\/\/\)[^/].*/{
  16309. s//\1/
  16310. q
  16311. }
  16312. /^X\(\/\/\)$/{
  16313. s//\1/
  16314. q
  16315. }
  16316. /^X\(\/\).*/{
  16317. s//\1/
  16318. q
  16319. }
  16320. s/.*/./; q'`
  16321. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16322. # echo "creating $dirpart/$file"
  16323. echo '# dummy' > "$dirpart/$file"
  16324. done
  16325. done
  16326. }
  16327. ;;
  16328. "libtool":C)
  16329. # See if we are running on zsh, and set the options which allow our
  16330. # commands through without removal of \ escapes.
  16331. if test -n "${ZSH_VERSION+set}" ; then
  16332. setopt NO_GLOB_SUBST
  16333. fi
  16334. cfgfile="${ofile}T"
  16335. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16336. $RM "$cfgfile"
  16337. cat <<_LT_EOF >> "$cfgfile"
  16338. #! $SHELL
  16339. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16340. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16341. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16342. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16343. #
  16344. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16345. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16346. # Written by Gordon Matzigkeit, 1996
  16347. #
  16348. # This file is part of GNU Libtool.
  16349. #
  16350. # GNU Libtool is free software; you can redistribute it and/or
  16351. # modify it under the terms of the GNU General Public License as
  16352. # published by the Free Software Foundation; either version 2 of
  16353. # the License, or (at your option) any later version.
  16354. #
  16355. # As a special exception to the GNU General Public License,
  16356. # if you distribute this file as part of a program or library that
  16357. # is built using GNU Libtool, you may include this file under the
  16358. # same distribution terms that you use for the rest of that program.
  16359. #
  16360. # GNU Libtool is distributed in the hope that it will be useful,
  16361. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16362. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16363. # GNU General Public License for more details.
  16364. #
  16365. # You should have received a copy of the GNU General Public License
  16366. # along with GNU Libtool; see the file COPYING. If not, a copy
  16367. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16368. # obtained by writing to the Free Software Foundation, Inc.,
  16369. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16370. # The names of the tagged configurations supported by this script.
  16371. available_tags="FC "
  16372. # ### BEGIN LIBTOOL CONFIG
  16373. # Which release of libtool.m4 was used?
  16374. macro_version=$macro_version
  16375. macro_revision=$macro_revision
  16376. # Whether or not to build shared libraries.
  16377. build_libtool_libs=$enable_shared
  16378. # Whether or not to build static libraries.
  16379. build_old_libs=$enable_static
  16380. # What type of objects to build.
  16381. pic_mode=$pic_mode
  16382. # Whether or not to optimize for fast installation.
  16383. fast_install=$enable_fast_install
  16384. # Shell to use when invoking shell scripts.
  16385. SHELL=$lt_SHELL
  16386. # An echo program that protects backslashes.
  16387. ECHO=$lt_ECHO
  16388. # The host system.
  16389. host_alias=$host_alias
  16390. host=$host
  16391. host_os=$host_os
  16392. # The build system.
  16393. build_alias=$build_alias
  16394. build=$build
  16395. build_os=$build_os
  16396. # A sed program that does not truncate output.
  16397. SED=$lt_SED
  16398. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16399. Xsed="\$SED -e 1s/^X//"
  16400. # A grep program that handles long lines.
  16401. GREP=$lt_GREP
  16402. # An ERE matcher.
  16403. EGREP=$lt_EGREP
  16404. # A literal string matcher.
  16405. FGREP=$lt_FGREP
  16406. # A BSD- or MS-compatible name lister.
  16407. NM=$lt_NM
  16408. # Whether we need soft or hard links.
  16409. LN_S=$lt_LN_S
  16410. # What is the maximum length of a command?
  16411. max_cmd_len=$max_cmd_len
  16412. # Object file suffix (normally "o").
  16413. objext=$ac_objext
  16414. # Executable file suffix (normally "").
  16415. exeext=$exeext
  16416. # whether the shell understands "unset".
  16417. lt_unset=$lt_unset
  16418. # turn spaces into newlines.
  16419. SP2NL=$lt_lt_SP2NL
  16420. # turn newlines into spaces.
  16421. NL2SP=$lt_lt_NL2SP
  16422. # An object symbol dumper.
  16423. OBJDUMP=$lt_OBJDUMP
  16424. # Method to check whether dependent libraries are shared objects.
  16425. deplibs_check_method=$lt_deplibs_check_method
  16426. # Command to use when deplibs_check_method == "file_magic".
  16427. file_magic_cmd=$lt_file_magic_cmd
  16428. # The archiver.
  16429. AR=$lt_AR
  16430. AR_FLAGS=$lt_AR_FLAGS
  16431. # A symbol stripping program.
  16432. STRIP=$lt_STRIP
  16433. # Commands used to install an old-style archive.
  16434. RANLIB=$lt_RANLIB
  16435. old_postinstall_cmds=$lt_old_postinstall_cmds
  16436. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16437. # Whether to use a lock for old archive extraction.
  16438. lock_old_archive_extraction=$lock_old_archive_extraction
  16439. # A C compiler.
  16440. LTCC=$lt_CC
  16441. # LTCC compiler flags.
  16442. LTCFLAGS=$lt_CFLAGS
  16443. # Take the output of nm and produce a listing of raw symbols and C names.
  16444. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16445. # Transform the output of nm in a proper C declaration.
  16446. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16447. # Transform the output of nm in a C name address pair.
  16448. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16449. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16450. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16451. # The name of the directory that contains temporary libtool files.
  16452. objdir=$objdir
  16453. # Used to examine libraries when file_magic_cmd begins with "file".
  16454. MAGIC_CMD=$MAGIC_CMD
  16455. # Must we lock files when doing compilation?
  16456. need_locks=$lt_need_locks
  16457. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16458. DSYMUTIL=$lt_DSYMUTIL
  16459. # Tool to change global to local symbols on Mac OS X.
  16460. NMEDIT=$lt_NMEDIT
  16461. # Tool to manipulate fat objects and archives on Mac OS X.
  16462. LIPO=$lt_LIPO
  16463. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16464. OTOOL=$lt_OTOOL
  16465. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16466. OTOOL64=$lt_OTOOL64
  16467. # Old archive suffix (normally "a").
  16468. libext=$libext
  16469. # Shared library suffix (normally ".so").
  16470. shrext_cmds=$lt_shrext_cmds
  16471. # The commands to extract the exported symbol list from a shared archive.
  16472. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16473. # Variables whose values should be saved in libtool wrapper scripts and
  16474. # restored at link time.
  16475. variables_saved_for_relink=$lt_variables_saved_for_relink
  16476. # Do we need the "lib" prefix for modules?
  16477. need_lib_prefix=$need_lib_prefix
  16478. # Do we need a version for libraries?
  16479. need_version=$need_version
  16480. # Library versioning type.
  16481. version_type=$version_type
  16482. # Shared library runtime path variable.
  16483. runpath_var=$runpath_var
  16484. # Shared library path variable.
  16485. shlibpath_var=$shlibpath_var
  16486. # Is shlibpath searched before the hard-coded library search path?
  16487. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16488. # Format of library name prefix.
  16489. libname_spec=$lt_libname_spec
  16490. # List of archive names. First name is the real one, the rest are links.
  16491. # The last name is the one that the linker finds with -lNAME
  16492. library_names_spec=$lt_library_names_spec
  16493. # The coded name of the library, if different from the real name.
  16494. soname_spec=$lt_soname_spec
  16495. # Permission mode override for installation of shared libraries.
  16496. install_override_mode=$lt_install_override_mode
  16497. # Command to use after installation of a shared archive.
  16498. postinstall_cmds=$lt_postinstall_cmds
  16499. # Command to use after uninstallation of a shared archive.
  16500. postuninstall_cmds=$lt_postuninstall_cmds
  16501. # Commands used to finish a libtool library installation in a directory.
  16502. finish_cmds=$lt_finish_cmds
  16503. # As "finish_cmds", except a single script fragment to be evaled but
  16504. # not shown.
  16505. finish_eval=$lt_finish_eval
  16506. # Whether we should hardcode library paths into libraries.
  16507. hardcode_into_libs=$hardcode_into_libs
  16508. # Compile-time system search path for libraries.
  16509. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16510. # Run-time system search path for libraries.
  16511. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16512. # Whether dlopen is supported.
  16513. dlopen_support=$enable_dlopen
  16514. # Whether dlopen of programs is supported.
  16515. dlopen_self=$enable_dlopen_self
  16516. # Whether dlopen of statically linked programs is supported.
  16517. dlopen_self_static=$enable_dlopen_self_static
  16518. # Commands to strip libraries.
  16519. old_striplib=$lt_old_striplib
  16520. striplib=$lt_striplib
  16521. # The linker used to build libraries.
  16522. LD=$lt_LD
  16523. # How to create reloadable object files.
  16524. reload_flag=$lt_reload_flag
  16525. reload_cmds=$lt_reload_cmds
  16526. # Commands used to build an old-style archive.
  16527. old_archive_cmds=$lt_old_archive_cmds
  16528. # A language specific compiler.
  16529. CC=$lt_compiler
  16530. # Is the compiler the GNU compiler?
  16531. with_gcc=$GCC
  16532. # Compiler flag to turn off builtin functions.
  16533. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16534. # How to pass a linker flag through the compiler.
  16535. wl=$lt_lt_prog_compiler_wl
  16536. # Additional compiler flags for building library objects.
  16537. pic_flag=$lt_lt_prog_compiler_pic
  16538. # Compiler flag to prevent dynamic linking.
  16539. link_static_flag=$lt_lt_prog_compiler_static
  16540. # Does compiler simultaneously support -c and -o options?
  16541. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16542. # Whether or not to add -lc for building shared libraries.
  16543. build_libtool_need_lc=$archive_cmds_need_lc
  16544. # Whether or not to disallow shared libs when runtime libs are static.
  16545. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16546. # Compiler flag to allow reflexive dlopens.
  16547. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16548. # Compiler flag to generate shared objects directly from archives.
  16549. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16550. # Whether the compiler copes with passing no objects directly.
  16551. compiler_needs_object=$lt_compiler_needs_object
  16552. # Create an old-style archive from a shared archive.
  16553. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16554. # Create a temporary old-style archive to link instead of a shared archive.
  16555. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16556. # Commands used to build a shared archive.
  16557. archive_cmds=$lt_archive_cmds
  16558. archive_expsym_cmds=$lt_archive_expsym_cmds
  16559. # Commands used to build a loadable module if different from building
  16560. # a shared archive.
  16561. module_cmds=$lt_module_cmds
  16562. module_expsym_cmds=$lt_module_expsym_cmds
  16563. # Whether we are building with GNU ld or not.
  16564. with_gnu_ld=$lt_with_gnu_ld
  16565. # Flag that allows shared libraries with undefined symbols to be built.
  16566. allow_undefined_flag=$lt_allow_undefined_flag
  16567. # Flag that enforces no undefined symbols.
  16568. no_undefined_flag=$lt_no_undefined_flag
  16569. # Flag to hardcode \$libdir into a binary during linking.
  16570. # This must work even if \$libdir does not exist
  16571. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16572. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16573. # during linking. This must work even if \$libdir does not exist.
  16574. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16575. # Whether we need a single "-rpath" flag with a separated argument.
  16576. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16577. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16578. # DIR into the resulting binary.
  16579. hardcode_direct=$hardcode_direct
  16580. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16581. # DIR into the resulting binary and the resulting library dependency is
  16582. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16583. # library is relocated.
  16584. hardcode_direct_absolute=$hardcode_direct_absolute
  16585. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16586. # into the resulting binary.
  16587. hardcode_minus_L=$hardcode_minus_L
  16588. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16589. # into the resulting binary.
  16590. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16591. # Set to "yes" if building a shared library automatically hardcodes DIR
  16592. # into the library and all subsequent libraries and executables linked
  16593. # against it.
  16594. hardcode_automatic=$hardcode_automatic
  16595. # Set to yes if linker adds runtime paths of dependent libraries
  16596. # to runtime path list.
  16597. inherit_rpath=$inherit_rpath
  16598. # Whether libtool must link a program against all its dependency libraries.
  16599. link_all_deplibs=$link_all_deplibs
  16600. # Fix the shell variable \$srcfile for the compiler.
  16601. fix_srcfile_path=$lt_fix_srcfile_path
  16602. # Set to "yes" if exported symbols are required.
  16603. always_export_symbols=$always_export_symbols
  16604. # The commands to list exported symbols.
  16605. export_symbols_cmds=$lt_export_symbols_cmds
  16606. # Symbols that should not be listed in the preloaded symbols.
  16607. exclude_expsyms=$lt_exclude_expsyms
  16608. # Symbols that must always be exported.
  16609. include_expsyms=$lt_include_expsyms
  16610. # Commands necessary for linking programs (against libraries) with templates.
  16611. prelink_cmds=$lt_prelink_cmds
  16612. # Specify filename containing input files.
  16613. file_list_spec=$lt_file_list_spec
  16614. # How to hardcode a shared library path into an executable.
  16615. hardcode_action=$hardcode_action
  16616. # The directories searched by this compiler when creating a shared library.
  16617. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16618. # Dependencies to place before and after the objects being linked to
  16619. # create a shared library.
  16620. predep_objects=$lt_predep_objects
  16621. postdep_objects=$lt_postdep_objects
  16622. predeps=$lt_predeps
  16623. postdeps=$lt_postdeps
  16624. # The library search path used internally by the compiler when linking
  16625. # a shared library.
  16626. compiler_lib_search_path=$lt_compiler_lib_search_path
  16627. # ### END LIBTOOL CONFIG
  16628. _LT_EOF
  16629. case $host_os in
  16630. aix3*)
  16631. cat <<\_LT_EOF >> "$cfgfile"
  16632. # AIX sometimes has problems with the GCC collect2 program. For some
  16633. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16634. # vanish in a puff of smoke.
  16635. if test "X${COLLECT_NAMES+set}" != Xset; then
  16636. COLLECT_NAMES=
  16637. export COLLECT_NAMES
  16638. fi
  16639. _LT_EOF
  16640. ;;
  16641. esac
  16642. ltmain="$ac_aux_dir/ltmain.sh"
  16643. # We use sed instead of cat because bash on DJGPP gets confused if
  16644. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16645. # text mode, it properly converts lines to CR/LF. This bash problem
  16646. # is reportedly fixed, but why not run on old versions too?
  16647. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16648. || (rm -f "$cfgfile"; exit 1)
  16649. case $xsi_shell in
  16650. yes)
  16651. cat << \_LT_EOF >> "$cfgfile"
  16652. # func_dirname file append nondir_replacement
  16653. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16654. # otherwise set result to NONDIR_REPLACEMENT.
  16655. func_dirname ()
  16656. {
  16657. case ${1} in
  16658. */*) func_dirname_result="${1%/*}${2}" ;;
  16659. * ) func_dirname_result="${3}" ;;
  16660. esac
  16661. }
  16662. # func_basename file
  16663. func_basename ()
  16664. {
  16665. func_basename_result="${1##*/}"
  16666. }
  16667. # func_dirname_and_basename file append nondir_replacement
  16668. # perform func_basename and func_dirname in a single function
  16669. # call:
  16670. # dirname: Compute the dirname of FILE. If nonempty,
  16671. # add APPEND to the result, otherwise set result
  16672. # to NONDIR_REPLACEMENT.
  16673. # value returned in "$func_dirname_result"
  16674. # basename: Compute filename of FILE.
  16675. # value retuned in "$func_basename_result"
  16676. # Implementation must be kept synchronized with func_dirname
  16677. # and func_basename. For efficiency, we do not delegate to
  16678. # those functions but instead duplicate the functionality here.
  16679. func_dirname_and_basename ()
  16680. {
  16681. case ${1} in
  16682. */*) func_dirname_result="${1%/*}${2}" ;;
  16683. * ) func_dirname_result="${3}" ;;
  16684. esac
  16685. func_basename_result="${1##*/}"
  16686. }
  16687. # func_stripname prefix suffix name
  16688. # strip PREFIX and SUFFIX off of NAME.
  16689. # PREFIX and SUFFIX must not contain globbing or regex special
  16690. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16691. # dot (in which case that matches only a dot).
  16692. func_stripname ()
  16693. {
  16694. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16695. # positional parameters, so assign one to ordinary parameter first.
  16696. func_stripname_result=${3}
  16697. func_stripname_result=${func_stripname_result#"${1}"}
  16698. func_stripname_result=${func_stripname_result%"${2}"}
  16699. }
  16700. # func_opt_split
  16701. func_opt_split ()
  16702. {
  16703. func_opt_split_opt=${1%%=*}
  16704. func_opt_split_arg=${1#*=}
  16705. }
  16706. # func_lo2o object
  16707. func_lo2o ()
  16708. {
  16709. case ${1} in
  16710. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16711. *) func_lo2o_result=${1} ;;
  16712. esac
  16713. }
  16714. # func_xform libobj-or-source
  16715. func_xform ()
  16716. {
  16717. func_xform_result=${1%.*}.lo
  16718. }
  16719. # func_arith arithmetic-term...
  16720. func_arith ()
  16721. {
  16722. func_arith_result=$(( $* ))
  16723. }
  16724. # func_len string
  16725. # STRING may not start with a hyphen.
  16726. func_len ()
  16727. {
  16728. func_len_result=${#1}
  16729. }
  16730. _LT_EOF
  16731. ;;
  16732. *) # Bourne compatible functions.
  16733. cat << \_LT_EOF >> "$cfgfile"
  16734. # func_dirname file append nondir_replacement
  16735. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16736. # otherwise set result to NONDIR_REPLACEMENT.
  16737. func_dirname ()
  16738. {
  16739. # Extract subdirectory from the argument.
  16740. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16741. if test "X$func_dirname_result" = "X${1}"; then
  16742. func_dirname_result="${3}"
  16743. else
  16744. func_dirname_result="$func_dirname_result${2}"
  16745. fi
  16746. }
  16747. # func_basename file
  16748. func_basename ()
  16749. {
  16750. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16751. }
  16752. # func_stripname prefix suffix name
  16753. # strip PREFIX and SUFFIX off of NAME.
  16754. # PREFIX and SUFFIX must not contain globbing or regex special
  16755. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16756. # dot (in which case that matches only a dot).
  16757. # func_strip_suffix prefix name
  16758. func_stripname ()
  16759. {
  16760. case ${2} in
  16761. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16762. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16763. esac
  16764. }
  16765. # sed scripts:
  16766. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16767. my_sed_long_arg='1s/^-[^=]*=//'
  16768. # func_opt_split
  16769. func_opt_split ()
  16770. {
  16771. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16772. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16773. }
  16774. # func_lo2o object
  16775. func_lo2o ()
  16776. {
  16777. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16778. }
  16779. # func_xform libobj-or-source
  16780. func_xform ()
  16781. {
  16782. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16783. }
  16784. # func_arith arithmetic-term...
  16785. func_arith ()
  16786. {
  16787. func_arith_result=`expr "$@"`
  16788. }
  16789. # func_len string
  16790. # STRING may not start with a hyphen.
  16791. func_len ()
  16792. {
  16793. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16794. }
  16795. _LT_EOF
  16796. esac
  16797. case $lt_shell_append in
  16798. yes)
  16799. cat << \_LT_EOF >> "$cfgfile"
  16800. # func_append var value
  16801. # Append VALUE to the end of shell variable VAR.
  16802. func_append ()
  16803. {
  16804. eval "$1+=\$2"
  16805. }
  16806. _LT_EOF
  16807. ;;
  16808. *)
  16809. cat << \_LT_EOF >> "$cfgfile"
  16810. # func_append var value
  16811. # Append VALUE to the end of shell variable VAR.
  16812. func_append ()
  16813. {
  16814. eval "$1=\$$1\$2"
  16815. }
  16816. _LT_EOF
  16817. ;;
  16818. esac
  16819. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16820. || (rm -f "$cfgfile"; exit 1)
  16821. mv -f "$cfgfile" "$ofile" ||
  16822. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16823. chmod +x "$ofile"
  16824. cat <<_LT_EOF >> "$ofile"
  16825. # ### BEGIN LIBTOOL TAG CONFIG: FC
  16826. # The linker used to build libraries.
  16827. LD=$lt_LD_FC
  16828. # How to create reloadable object files.
  16829. reload_flag=$lt_reload_flag_FC
  16830. reload_cmds=$lt_reload_cmds_FC
  16831. # Commands used to build an old-style archive.
  16832. old_archive_cmds=$lt_old_archive_cmds_FC
  16833. # A language specific compiler.
  16834. CC=$lt_compiler_FC
  16835. # Is the compiler the GNU compiler?
  16836. with_gcc=$GCC_FC
  16837. # Compiler flag to turn off builtin functions.
  16838. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
  16839. # How to pass a linker flag through the compiler.
  16840. wl=$lt_lt_prog_compiler_wl_FC
  16841. # Additional compiler flags for building library objects.
  16842. pic_flag=$lt_lt_prog_compiler_pic_FC
  16843. # Compiler flag to prevent dynamic linking.
  16844. link_static_flag=$lt_lt_prog_compiler_static_FC
  16845. # Does compiler simultaneously support -c and -o options?
  16846. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
  16847. # Whether or not to add -lc for building shared libraries.
  16848. build_libtool_need_lc=$archive_cmds_need_lc_FC
  16849. # Whether or not to disallow shared libs when runtime libs are static.
  16850. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
  16851. # Compiler flag to allow reflexive dlopens.
  16852. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
  16853. # Compiler flag to generate shared objects directly from archives.
  16854. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
  16855. # Whether the compiler copes with passing no objects directly.
  16856. compiler_needs_object=$lt_compiler_needs_object_FC
  16857. # Create an old-style archive from a shared archive.
  16858. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
  16859. # Create a temporary old-style archive to link instead of a shared archive.
  16860. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
  16861. # Commands used to build a shared archive.
  16862. archive_cmds=$lt_archive_cmds_FC
  16863. archive_expsym_cmds=$lt_archive_expsym_cmds_FC
  16864. # Commands used to build a loadable module if different from building
  16865. # a shared archive.
  16866. module_cmds=$lt_module_cmds_FC
  16867. module_expsym_cmds=$lt_module_expsym_cmds_FC
  16868. # Whether we are building with GNU ld or not.
  16869. with_gnu_ld=$lt_with_gnu_ld_FC
  16870. # Flag that allows shared libraries with undefined symbols to be built.
  16871. allow_undefined_flag=$lt_allow_undefined_flag_FC
  16872. # Flag that enforces no undefined symbols.
  16873. no_undefined_flag=$lt_no_undefined_flag_FC
  16874. # Flag to hardcode \$libdir into a binary during linking.
  16875. # This must work even if \$libdir does not exist
  16876. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
  16877. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16878. # during linking. This must work even if \$libdir does not exist.
  16879. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
  16880. # Whether we need a single "-rpath" flag with a separated argument.
  16881. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
  16882. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16883. # DIR into the resulting binary.
  16884. hardcode_direct=$hardcode_direct_FC
  16885. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16886. # DIR into the resulting binary and the resulting library dependency is
  16887. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16888. # library is relocated.
  16889. hardcode_direct_absolute=$hardcode_direct_absolute_FC
  16890. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16891. # into the resulting binary.
  16892. hardcode_minus_L=$hardcode_minus_L_FC
  16893. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16894. # into the resulting binary.
  16895. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
  16896. # Set to "yes" if building a shared library automatically hardcodes DIR
  16897. # into the library and all subsequent libraries and executables linked
  16898. # against it.
  16899. hardcode_automatic=$hardcode_automatic_FC
  16900. # Set to yes if linker adds runtime paths of dependent libraries
  16901. # to runtime path list.
  16902. inherit_rpath=$inherit_rpath_FC
  16903. # Whether libtool must link a program against all its dependency libraries.
  16904. link_all_deplibs=$link_all_deplibs_FC
  16905. # Fix the shell variable \$srcfile for the compiler.
  16906. fix_srcfile_path=$lt_fix_srcfile_path_FC
  16907. # Set to "yes" if exported symbols are required.
  16908. always_export_symbols=$always_export_symbols_FC
  16909. # The commands to list exported symbols.
  16910. export_symbols_cmds=$lt_export_symbols_cmds_FC
  16911. # Symbols that should not be listed in the preloaded symbols.
  16912. exclude_expsyms=$lt_exclude_expsyms_FC
  16913. # Symbols that must always be exported.
  16914. include_expsyms=$lt_include_expsyms_FC
  16915. # Commands necessary for linking programs (against libraries) with templates.
  16916. prelink_cmds=$lt_prelink_cmds_FC
  16917. # Specify filename containing input files.
  16918. file_list_spec=$lt_file_list_spec_FC
  16919. # How to hardcode a shared library path into an executable.
  16920. hardcode_action=$hardcode_action_FC
  16921. # The directories searched by this compiler when creating a shared library.
  16922. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
  16923. # Dependencies to place before and after the objects being linked to
  16924. # create a shared library.
  16925. predep_objects=$lt_predep_objects_FC
  16926. postdep_objects=$lt_postdep_objects_FC
  16927. predeps=$lt_predeps_FC
  16928. postdeps=$lt_postdeps_FC
  16929. # The library search path used internally by the compiler when linking
  16930. # a shared library.
  16931. compiler_lib_search_path=$lt_compiler_lib_search_path_FC
  16932. # ### END LIBTOOL TAG CONFIG: FC
  16933. _LT_EOF
  16934. ;;
  16935. esac
  16936. done # for ac_tag
  16937. as_fn_exit 0
  16938. _ACEOF
  16939. ac_clean_files=$ac_clean_files_save
  16940. test $ac_write_fail = 0 ||
  16941. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16942. # configure is writing to config.log, and then calls config.status.
  16943. # config.status does its own redirection, appending to config.log.
  16944. # Unfortunately, on DOS this fails, as config.log is still kept open
  16945. # by configure, so config.status won't be able to write to it; its
  16946. # output is simply discarded. So we exec the FD to /dev/null,
  16947. # effectively closing config.log, so it can be properly (re)opened and
  16948. # appended to by config.status. When coming back to configure, we
  16949. # need to make the FD available again.
  16950. if test "$no_create" != yes; then
  16951. ac_cs_success=:
  16952. ac_config_status_args=
  16953. test "$silent" = yes &&
  16954. ac_config_status_args="$ac_config_status_args --quiet"
  16955. exec 5>/dev/null
  16956. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16957. exec 5>>config.log
  16958. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16959. # would make configure fail if this is the last instruction.
  16960. $ac_cs_success || as_fn_exit 1
  16961. fi
  16962. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16964. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16965. fi